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.

Google Play Integrity locks out alternative operating systems

https://consumerrights.wiki/w/Google_Play_Integrity_locks_out_alternative_operating_systems
179•DeepLogin•3h ago•45 comments

My OpenAI Dot made a discovery without me asking

https://echo.ls/dots-cwc/
592•maplet•9h ago•275 comments

BetterSPICE is a free, open-source SPICE circuit simulator

https://bspicesim.com/
105•zdw•5h ago•30 comments

Making cement in seconds just needs a big microwave

https://arstechnica.com/science/2026/12/making-cement-in-seconds-just-needs-a-really-big-microwave/
20•amooe•3d ago•5 comments

What broke when I enabled PQC for Git and SSH

https://nordlenord.github.io/my-shared-notes/?id=f86ed9e6f4ac17225617717a5a14255f
109•tukHelix•5h ago•43 comments

NSA, NIST, and post-quantum cryptography

https://blog.cr.yp.to/20220805-nsa.html
69•frostbyte64•3h ago•10 comments

Did AI rediscover a cryptographic attack NSA had known since 2015?

https://an.dywa.ng/ecc.html
894•cbeuw•18h ago•614 comments

Make Me a Million-Bench: a benchmark where AIs build companies in the real world

https://andonlabs.com/evals/mmm-bench
121•lukaspetersson•9h ago•84 comments

How to find and upgrade SSH and PGP keys using P‑256, ED25519, and Curve25519

https://sethmlarson.dev/how-to-find-and-upgrade-256-bit-curve-keys
261•lumpa•11h ago•103 comments

CleanYourTV: Remove Ads and Bloat from Android TV and Google TV

https://cleanyour.tv
518•kls0e•18h ago•177 comments

OpenAI: Smooth four-dimensional Poincaré conjecture disproved [pdf]

https://github.com/openai/math/blob/main/preprints/Exotic-four-spheres-detected-by-Khovanov-homol...
197•xhevahir•8h ago•117 comments

OpenAI's matrix multiplication paper solved a harder problem in computer science

https://www.newscientist.com/article/2602472-openai-solved-a-huge-problem-in-computer-science-and...
190•shinryuu•12h ago•32 comments

Into which trinitarian heresy hath ye fallen?

https://blesswrong.com
485•rachelshu•16h ago•355 comments

Tinybrowser: A browser running directly in the browser

https://tinybrowser.ericc.ch/
119•auraham•8h ago•46 comments

FreeHand

https://microsoft.github.io/FreeHand/
43•jhack•4h ago•25 comments

Claude still falls for old jailbreak exploits

https://spectrum.ieee.org/anthropic-ipo-security
365•speckx•16h ago•213 comments

Intellectual Debt After Generative AI

https://www.noemamag.com/intellectual-debt-after-generative-ai/
584•theanonymousone•1d ago•395 comments

Building Z86: Lessons from Implementing an Out-of-Order x86 CPU on FPGA

https://nand2mario.github.io/posts/2026/z86/
42•wicket•2d ago•3 comments

Rare books destroyed in truck crash, upending Oakland man's future

https://oaklandside.org/2026/11/25/pratum-rare-books-big-rig-crash-wuum/
251•gnabgib•16h ago•73 comments

California to require businesses to provide customers with human support

https://calmatters.digitaldemocracy.org/bills/b-29278
9•DeepLogin•2h ago•0 comments

The IceCube Neutrino Observatory

https://icecube.wisc.edu/science/icecube/
17•tzury•1d ago•3 comments

An OS with no threads: The Actor Model

https://www.timdbg.com/posts/dbgos-actor-model/
335•ingve•1d ago•149 comments

Pipedream Cybersecurity Incident

https://status.perplexity.com/incidents/01M915PACNW98P5015NZ4NTQHE
22•xishi•4h ago•2 comments

Our next chapter: Thunderbird Technologies Corporation

https://blog.thunderbird.net/2026/12/our-next-chapter-thunderbird-technologies-corporation/
222•abraham•15h ago•144 comments

The spectrum between coding and vibe coding

https://dmitryfrank.com/articles/ai_for_coding_in_2026
200•dimonomid•17h ago•114 comments

Show HN: Weavon, 99.93% Pandoc in 9.3 MB of Rust, 15-50x faster, PDF without TeX

https://github.com/weavon/weavon
295•deyvium•18h ago•135 comments

Hammering Pins in Harmony – Printing with the ImageWriter II

http://nerdlypleasures.blogspot.com/2026/11/hammering-pins-in-harmony-printing-with.html
7•TheWoollyBully•3d ago•1 comments

I just heard from a reliable source that ECC P-256 was broken

https://www.schneier.com/blog/archives/2026/12/nsa-urging-transition-to-post-quantum-cryptography...
431•arto•12h ago•189 comments

Boris and Tibo: Silicon Valley Embraces the Franchise Player

https://www.dbreunig.com/2026/12/02/silicon-valley-embraces-the-franchise-player.html
38•dbreunig•2d ago•15 comments

Open Source Volumetric Capture

https://ritmps.github.io/chumps/
160•bongoherbert•16h ago•2 comments