lexbor
linux
Our great sponsors
lexbor | linux | |
---|---|---|
9 | 811 | |
649 | 145,754 | |
3.5% | - | |
1.4 | 10.0 | |
8 days ago | about 20 hours ago | |
C | C | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lexbor
-
Created a performance-focused HTML5 parser for Ruby, trying to be API-compatible with Nokogiri
It supports both CSS selectors and XPath like Nokogiri, but with separate engines - parsing and CSS engine by Lexbor, XPath engine by libxml2. (Nokogiri internally converts CSS selectors to XPath syntax, and uses XPath engine for all searches).
-
Andreas Kling (of SerenityOS fame) is building a new Linux browser using SerenityOS libraries
An HTML parser, probably the simplest relatively modern example I could find is 1MB https://github.com/lexbor/lexbor (haven't used it, but might look more into it now that I know it exists.)
-
The State of Web Scraping in 2021
Lazyweb link: https://github.com/rushter/selectolax
although I don't follow the need to have what appears to be two completely separate HTML parsing C libraries as dependencies; seeing this in the readme for Modest gives me the shivers because lxml has _seen some shit_
> Modest is a fast HTML renderer implemented as a pure C99 library with no outside dependencies.
although its other dep seems much more cognizant about the HTML5 standard, for whatever that's worth: https://github.com/lexbor/lexbor#lexbor
---
> It looks like the author of the article just googled some libraries for each language and didn't research the topic
Heh, oh, new to the Internet, are you? :-D
-
Libraries for retrivieng html data from website
Lexbor is here: https://github.com/lexbor/lexbor
-
What second language to learn after Python?
Well, regarding HTML5, what I've found was libxml (does not support tag-soup HTML5), https://github.com/lexbor/lexbor, for which I was unable to find good documentation ( see https://lexbor.com/docs/lexbor/#dom), Apache Xerces (appears to not support tag-soup HTML5 as well), and Gumbo, which does not appear to be active and to support selectors and XPath (although there are libraries that add that).
-
You can't parse [X]HTML with regex
I think we've all (mostly?) tried it. It really is the Wild West of the web when you're trying to parse other people's HTML, though.
I've played around with this parser which is extremely quick. https://github.com/lexbor/lexbor
-
How SerpApi sped up data extraction from HTML from 3s to 800ms (or How to profile and optimize Ruby code and C extension)
I’m glad to have the opportunity to contribute to an open-source project that is used by thousands of people. Hopefully, we will speed up Nokogiri (or XML parser it uses) to match the performance of html5ever or lexbor at some point in the future. 800 ms to extract data from HTML is still too much.
linux
-
A Linking Adventure
It’s all optional. Before I found the Linux kernel’s nolibc [0], I wrote a minimal C runtime based on bunch of stuff I read [1].
[0] https://github.com/torvalds/linux/tree/master/tools/include/...
[1] https://github.com/lpsantil/rt0/blob/master/src/lib/00_start...
- Fedora now has frame pointers
-
Update on Samsung SSD Reliability
As a data point, the Linux kernel has a long list of workarounds for "ata" related devices (SSDs, HDDs, etc):
https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4...
Can be a bit eye opening to look down that and see equipment you're using listed. ;)
This seems to be the same thing for NVMe. eg Samsung, SK Hynix, Micron, Kingston, ADATA, Intel drives:
https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4...
Not quite as easy to read and understand as the ata driver code though. :/
There are further device specific workarounds in other parts of the NVMe driver code too.
eg for specific Toshiba, LiteON, and Kioxia devices:
https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4...
While this eems to be special handling for Samsung X5 SSD external drives, and also Samsung 970 Evo Plus drives:
https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4...
-
How worried are you about AI taking over music?
Linux 18k contributors 146k stars
-
Cmon guys, help the guy out
git clone https://github.com/torvalds/linux windows cd windows make menuconfig make -j$(nproc)
-
USB Gadget Mode on SD will essentially turn any tablet into a larger screen for your Deck. Looking for Linux power users to help me get it to work.
https://github.com/torvalds/linux/tree/master/drivers/usb/gadget/udc has a bunch of supported UDCs. The Steam Deck just seem to use the AMD's built-in USB controller (check with lspci), and I doubt it can support it.
-
Checksum algorithm
See the link
- Touchscreen Notebook Multilaser M11W Prime PC280
-
CONFIG_VT=n in 2023
The VT subsystem is not as well-maintained as other subsystems in the Linux kernel. Even Linus Torvalds, who wrote a large portion of the VT subsystem very early in Linux's history, considers it "bitrot" now. A few years ago CVE-2020-14390 was discovered in the VT subsystem, which was the VT console corrupting memory when scrolling up in some conditions. When this issue was discovered, the best fix that the kernel developers did to avoid making large changes to code they consider to be fragile, was to simply prevent scroll up from working in the VT console. The commit message in https://github.com/torvalds/linux/commit/973c096f6a85e5b5f2a295126ba6928d9a6afd45 provides further reference.
What are some alternatives?
zen-kernel - Zen Patched Kernel Sources
DS4Windows - Like those other ds4tools, but sexier
myhtml - Fast C/C++ HTML 5 Parser. Using threads.
winapps - Run Windows apps such as Microsoft Office/Adobe in Linux (Ubuntu/Fedora) and GNOME/KDE as if they were a part of the native OS, including Nautilus integration.
Open and cheap DIY IP-KVM based on Raspberry Pi - Open and inexpensive DIY IP-KVM based on Raspberry Pi
RyzenAdj - Adjust power management settings for Ryzen APUs
void-packages - The Void source packages collection
serenity - The Serenity Operating System 🐞
vscode-gitlens - Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
edk2-sdm845 - (Maybe) Generic edk2 port for sdm845
selectolax - Python binding to Modest and Lexbor engines (fast HTML5 parser with CSS selectors).
AutoEq - Automatic headphone equalization from frequency responses