frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Fast(er) regular expression engines in Ruby

https://serpapi.com/blog/faster-regular-expression-engines-in-ruby/
60•davidsojevic•1y ago

Comments

yxhuvud•1y ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•1y ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•1y ago
> Another nuance was found in ruby, which cannot scan the haystack with invalid UTF-8 byte sequences.

This is extremely basic ruby: UTF-8 encoded strings must be valid UTF-8. This is not unique to ruby. If I recall correctly, python 3 does the same thing.

    2.7.1 :001 > haystack = "\xfc\xa1\xa1\xa1\xa1\xa1abc"
    2.7.1 :003 > haystack.force_encoding "ASCII-8BIT"
    => "\xFC\xA1\xA1\xA1\xA1\xA1abc" 
    2.7.1 :004 > haystack.scan(/.+/)
    => ["\xFC\xA1\xA1\xA1\xA1\xA1abc"]
This person is a senior engineer on their Team page. All they had to do was google "ArgumentError: invalid byte sequence in UTF-8". Or ask a coworker... the company has Ruby on Rails applications. headdesk
burntsushi•1y ago
The nuance is specifically relevant here because neither of the other two regex engines benchmarked have this requirement. It's doubly relevant because that means running a regex search doesn't require a UTF-8 validation step, and is therefore likely beneficial from a perf perspective, dependening on the workload.
kayodelycaon•1y ago
That’s a good point. I hadn’t considered it because I’ve hit the validation error long before getting to search. It is possible to avoid string operations with careful coding prior to the search.

Edit: After a little testing, the strings can be read from and written to files without triggering validation. Presumably this applies to sockets as well.

DmitryOlshansky•1y ago
I wonder how std.regex of dlang would fare in such test. Sadly due to a tiny bit of D’s GC use it’s hard to provide as a library for other languages. If there is an interest I might take it through the tests.

Astra for Law

https://openai.com/index/astra-for-law/
81•vertigoruntime•43m ago•57 comments

Hister: A private search engine for the pages you visit and the files you keep

https://github.com/asciimoo/hister
316•bookofjoe•4h ago•108 comments

Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA

https://global.fujitsu/en-global/pr/news/2026/09/14-02
447•my123•2d ago•160 comments

Wax motor

https://en.wikipedia.org/wiki/Wax_motor
103•mhb•1d ago•18 comments

Everybody's Lost Their Minds

https://www.netmeister.org/blog/everybodys-lost-their-minds.html
86•ibobev•1h ago•27 comments

CrowdSec Source Code Leak

https://www.crowdsec.net/blog/crowdsec-statement-source-code-exposure
103•eccgecko•5h ago•30 comments

Rate limits on GitLab.com are changing

https://about.gitlab.com/blog/rate-limit-change-2026/
120•darkwater•5h ago•96 comments

Towards Self-Driving Codebases

https://blog.detail.dev/posts/towards-self-driving-codebases/
67•wilhelmklopp•4h ago•62 comments

Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data

https://arxiv.org/abs/2609.18842
68•Betelbuddy•4h ago•19 comments

Bend

https://bend-lang.com/
24•nicolas-siplis•25m ago•3 comments

André Weil and the Hodge Conjecture

https://jiahao116.github.io/Articles/
15•caojiahao•5d ago•4 comments

Why I didn’t sign the Fields medallists’ letter

https://gowers.wordpress.com/2026/09/17/why-i-didnt-sign-the-fields-medallists-letter/
168•simianwords•12h ago•215 comments

The American Religion of Self-Storage Facilities

https://www.newyorker.com/magazine/2026/09/21/the-american-religion-of-self-storage-facilities
143•pseudolus•7h ago•242 comments

Zettascale (YC S24) Is Hiring ASIC/FPGA Engineers to Build Chips for ASI

https://zscc.ai/careers?job_id=109821
1•el_al•4h ago

How GLM built its own inference infrastructure

https://z.ai/blog/glm-built-its-inference-infrastructure
330•whiteros_e•12h ago•246 comments

Running Ubuntu on the Lenovo IdeaPad Duet

https://vhaudiquet.fr/blog/duet-ubuntu/
47•vhaudiquet•2d ago•11 comments

TSMC revealing details about next gen A14 node

https://iedm26.mapyourshow.com/8_0/sessions/session-details.cfm?scheduleid=331
52•osnium123•2d ago•17 comments

Launch HN: Skillsync (YC W26) – AI chat sessions made portable across agents

30•cat-whisperer•4h ago•40 comments

One year of sponsored Servo development

https://servo.org/blog/2026/09/15/one-year-of-sponsorship/
330•AshleysBrain•12h ago•133 comments

T. Rex Had a Body Temperature of 97 Degrees

https://www.nytimes.com/2026/09/16/science/trex-dinosaur-temperature-warm-blooded.html
36•marojejian•3h ago•50 comments

How do we prevent mathemathics from devolving into the Medieval Era of secrecy?

https://mathoverflow.net/questions/515260/how-do-we-prevent-mathematics-from-devolving-into-the-m...
31•jjgreen•2d ago•11 comments

CCC invites all model citizens to 40C3

https://events.ccc.de/en/2026/09/12/40c3-model-citizens/
299•antonly•12h ago•160 comments

Canto: A speech model built for the real world

https://wisprflow.ai/canto
13•sleepypandas•2h ago•5 comments

Grand MS-DOS Gaming General MIDI Showdown

https://blog.johnnovak.net/2023/03/05/grand-ms-dos-gaming-general-midi-showdown/
70•ibobev•2d ago•8 comments

Vibe Coding is the new Internet Dating?

https://joecmarshall.com/posts/vibecoding-is-the-new-internet-dating/
44•flancrest•2d ago•81 comments

Show HN: Share your AI Setup, Learn from others

https://mysetup.ai/
148•steveybrown•7h ago•77 comments

The Return of Sail Power: Cargo Ships Are Turning Back to the Wind

https://gcaptain.com/the-return-of-sail-power-cargo-ships-are-turning-back-to-the-wind/
163•gumby•20h ago•117 comments

Vinix – A modern operating system written in V

https://vinix-os.org/
79•hggh•5h ago•51 comments

LLM Classification Is Feature Engineering

https://minimallysufficient.com/posts/llm-classification-is-feature-extraction/
81•minsufficient•5h ago•16 comments

Don't Make Job Referrals Public

https://blog.melashri.net/micro/public-job-referral/
17•elashri•2h ago•12 comments