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.

Farewell

https://github.com/p-e-w/heretic/issues/601
422•nolist_policy•2h ago•169 comments

Claude Code sabotage: preliminary benchmarking

https://xinyadu.github.io/blog/claude-code-sabotage.html
170•abedelez•3h ago•58 comments

Audible removes download option for purchased audiobooks

https://consumerrights.wiki/w/Audible_removes_download_option_for_purchased_audiobooks
96•DeepLogin•2h ago•31 comments

Show HN: Luciole Mono – terminal font designed for legibility

https://scriptor-pro.github.io/luciole-mono/
43•BaudouinVH•1h ago•23 comments

GGUF LLM Models with Hidden Malware on Hugging Face Reached 2400 Victims

https://malspark.com/blog/malicious-gguf-models-hugging-face/
49•homarp•2h ago•18 comments

Unkernel: Real Linux kernel, compiled to WebAssembly

https://unkernel.dev
449•nreece•11h ago•118 comments

Loom seamlessly combines weaving, knitting and braiding

https://news.cornell.edu/stories/2026/11/loom-seamlessly-combines-weaving-knitting-and-braiding
197•PaulHoule•3d ago•26 comments

Diablo II

https://www.filfre.net/2026/11/diablo-ii/
61•doppp•4h ago•18 comments

Knuth: Moratorium on Error Reports

https://www-cs-faculty.stanford.edu/~knuth/moratorium.html
237•ultraficial•10h ago•122 comments

Google's DeepCrossAttention achieves comparable model quality up to 3x faster

https://research.google/blog/supercharging-transformer-residual-connections/
489•ComputedCamp995•15h ago•174 comments

The Balatro Timeline

https://localthunk.com/blog/balatro-timeline-3aarh
453•sheepscreek•1d ago•136 comments

IBM MVS 3.8 Community Edition (52-year old OS)

https://github.com/MVS-sysgen/sysgen
5•emersonrsantos•1h ago•1 comments

GPT 6.2 Astra Solves a Historical Mystery

https://generativehistory.substack.com/p/gpt-62-astra-solves-a-historical
477•dr_red_dog•2d ago•303 comments

Paolo Soleri built a utopian eco-city in the Arizona desert

https://www.worldofinteriors.com/story/paolo-soleri-arconsati-arizona
114•robtherobber•1d ago•32 comments

Credit card skimming scripts using WebRTC found on popular shopping sites

https://www.infohawk.com/news/2026-11-27-black-friday-webrtc-skimmer
561•scanr•22h ago•309 comments

Swapping Jolt's sorted collections to a B+tree

https://yogthos.net/posts/2026-11-23-b+trees.html
14•nefreat•4d ago•3 comments

FCC approves 1M SpaceX data centers in space. Astronomers are dismayed

https://www.washingtonpost.com/technology/2026/11/26/fcc-approves-1-million-spacex-data-centers-s...
17•bookofjoe•1h ago•14 comments

Signals

https://www.quarter--mile.com/Signals
36•surprisetalk•2d ago•23 comments

Sydney Fire Ant Infestation

https://www.abc.net.au/news/2026-11-25/nsw-government-ramps-up-efforts-to-respond-to-fire-ants-/1...
81•altilunium•2d ago•51 comments

Convex skills send the user's app idea to a remote server without telling them

https://github.com/convex/convex-backend-skill/issues/64
336•MickyTheMouse•20h ago•114 comments

What Is the Metabolism-First Theory for the Origin of Life?

https://www.quantamagazine.org/what-is-the-metabolism-first-theory-for-the-origin-of-life-20261111/
45•ibobev•2d ago•11 comments

Tabernetes: A Kubernetes cluster whose nodes are browser tabs

https://tabernet.es/
174•mmcclure•15h ago•59 comments

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
223•o4c•1d ago•74 comments

Show HN: bouncemarket – a live prediction market game for a bouncing ball

https://bouncemarket.minhanhday.com/
394•mday404•23h ago•133 comments

The Quantum Omelette Problem

https://quantumfrontiers.com/2026/10/11/the-quantum-omelette-problem-how-much-energy-belongs-to-t...
20•wawayanda•2d ago•1 comments

Build your own amp modeler: $78 DIY pedal kit from TONE3000

https://www.guitarworld.com/gear/guitar-pedals/tone3000-daisy-audio-diy-pedal-kit
110•gregsadetsky•3d ago•30 comments

Michael Nielsen took down his book on neural nets

https://neuralnetworksanddeeplearning.com/
603•brandonb•18h ago•418 comments

9/UX: a Macintosh-inspired desktop for 9front

https://progrium.github.io/9ux/
150•rbanffy•16h ago•41 comments

Show HN: Fleetlayer – Framework for running many AI agents on multiple machines

https://fleetlayer.ai/
17•nathan_f77•5h ago•9 comments

jjack: A CLI and TypeScript library to help jj users manage PR stacks on GitHub

https://github.com/david-crespo/jjack
5•g0xA52A2A•2d ago•1 comments