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.

GPT 6.2 Astra Solves a Historical Mystery

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

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

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

Credit card skimming scripts using WebRTC found on popular shopping sites

https://www.infohawk.com/news/2026-11-27-black-friday-webrtc-skimmer
421•scanr•9h ago•222 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
225•MickyTheMouse•7h ago•73 comments

The Balatro Timeline

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

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

https://progrium.github.io/9ux/
68•rbanffy•3h ago•11 comments

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
135•o4c•22h ago•46 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
40•gregsadetsky•3d ago•8 comments

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

https://bouncemarket.minhanhday.com/
326•mday404•10h ago•113 comments

Source Control from Hell

https://frantic.im/git/
54•emschwartz•3h ago•40 comments

Tabernetes: A Kubernetes cluster whose nodes are browser tabs

https://tabernet.es/
29•mmcclure•2h ago•10 comments

The AT&T Unix PC (3B1) VM

https://virtuallyfun.com/2026/11/22/the-ultimate-att-unix-pc-3b1-vm-w-tcp-ip-and-apps/
56•ok123456•5h ago•10 comments

First images of the impact of DART asteroid deflection experiment

https://arstechnica.com/space/2026/11/europes-hera-mission-returns-to-the-chaotic-scene-of-a-cosm...
184•Bender•1d ago•56 comments

States sue SpaceX to stop Grok from generating child sex images, revenge porn

https://www.oag.state.va.us/media-center/news-releases/jay-jones/3162-attorneys-general-jones-and...
262•DeepLogin•5h ago•143 comments

Painting 1990s anime scenes in Python

https://www.fofr.ai/greenhouse-after-the-typhoon
11•magoghm•1h ago•1 comments

Rayshader 1.0: Exit the Matrix

https://www.tylermw.com/posts/rayverse/rayshader-1-0-exit-the-matrix.html
74•tylermw•10h ago•11 comments

Scrapheap America

https://dansinker.com/posts/2026-11-20-scrapheap/
59•only_in_america•6h ago•22 comments

Cyberpunk Television Shows

https://shellzine.net/cyberpunk-television/
3•zdw•2d ago•0 comments

Passkey blues

https://ssg.dev/passkey-blues/
9•sedatk•1h ago•1 comments

Atlantic 1866: information and shipping in the age of the telegraph

https://atlantic-1866.com/
26•libraryofbabel•2d ago•1 comments

Show HN: DragDropMath – Learn math by feel

https://dragdropmath.com/
96•ziofill•7h ago•29 comments

SessionGraph: Visualize all your coding agent sessions in one interactive graph

https://sessiongraph.ai/
23•arvindell•4h ago•10 comments

Lydian Chromatic Concept of Tonal Organization

https://en.wikipedia.org/wiki/Lydian_Chromatic_Concept_of_Tonal_Organization
43•benbreen•2d ago•3 comments

Show HN: Analysis of Hacker News predictions since 2008

https://hnpredictions.com/
55•mv4•3d ago•58 comments

False computer-checked proofs

https://cr.yp.to/proofs/falseccp.html
178•_tk_•10h ago•75 comments

Michael Nielsen took down his book on neural nets

https://neuralnetworksanddeeplearning.com/
379•brandonb•5h ago•251 comments

Prospero: Bloat-free, native AI coding harness with ImGui

https://github.com/skeeto/prospero
32•ingve•5h ago•7 comments

Quad9 Blocks Nginx2root.com

https://quad9.net/?url=nginx2root.com#domain-tester
14•KillerDiller•4h ago•7 comments

Show HN: Getting 101 tok/s from Inkling 2 Mini in vLLM on one GB10

https://runtimenotes.com/blog/getting-101-tok-s-from-inkling-2-mini-in-vllm-on-one-gb10/
37•runtimenotes•6h ago•7 comments

Making a 3D fantasy map like a 16th-Century atlas

https://www.spritefusion.com/blog/making-a-fantasy-map-like-a-16th-century-atlas
95•HugoDz•11h ago•14 comments