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.

AI companies leak data to advertisers [pdf]

https://jorgegarciaherrero.com/wp-content/interactivos/20260916-Prompt-like-a-butterfly-sting-lik...
115•damaru2•2h ago•27 comments

Using any C++ library in Godot

https://blog.conan.io/cpp/conan/gamedev/godot/cmake/2026/09/29/Using-Any-Cpp-Library-In-Godot.html
56•czoido•2h ago•20 comments

Phyllotaxis: An audio-reactive LED display

https://jagi.studio/posts/phyllotaxis/
158•evakhoury•19h ago•19 comments

The systems that no one will test

https://blog.christianperone.com/2026/09/the-systems-that-no-one-will-test/
80•perone•1d ago•30 comments

Booted up in 1993, this server still runs – but not for much longer (2017)

https://www.computerworld.com/article/1673071/booted-up-in-1993-this-server-still-runs-but-not-fo...
71•doener•1d ago•24 comments

California farmers are struggling to sell grapes as demand for wine drops

https://www.kqed.org/news/12101534/california-farmers-are-struggling-to-sell-grapes-as-demand-for...
246•randycupertino•15h ago•616 comments

Pirating the Pirates

https://mubi.com/en/notebook/posts/pirating-the-pirates
608•piotrgrabowski•19h ago•304 comments

Software occlusion culling in Block Game

https://enikofox.com/posts/software-rendered-occlusion-culling-in-block-game/
28•airhangerf15•1d ago•2 comments

Tank Body Problem

http://www.jimsitu.com
121•jimbooonooo•10h ago•27 comments

Startup Nights 2026 is comming up on 5-6 Nov. in Switzerland

https://www.startup-nights.ch/event/
11•sschueller•3h ago•3 comments

MicroLLM Lab – Try 7 tiny LLM's in the browser

https://stateofutopia.com/experiments/microllmlab/
251•logicallee•16h ago•87 comments

ESP32S3 cluster running 1.58-bit (BitNet) Language model

https://github.com/Low-Zi-Hong/ESP32s3-LLM-Cluster
108•nkko•13h ago•23 comments

New Cyber-OSINT model released

https://twitter.com/0x0SojalSec/status/2104736980768866439
14•soltanov•1h ago•3 comments

Jeff – Jev-compatible 0.8B decision models, trained at home, ~30 ms

https://github.com/firelex/jeff
511•firelex•15h ago•196 comments

12,000-year-old Göbeklitepe burials explain scattered bones

https://archaeologymag.com/2026/09/gobeklitepe-burials-hundreds-of-scattered-bones/
141•yusufaytas•3d ago•39 comments

Hermann Weyl – Frank Aydelotte memorandum (1945)

https://albert.ias.edu/server/api/core/bitstreams/9feac6ca-38d1-4f5c-9876-75915f1a5762/content
4•georgecmu•2d ago•0 comments

Nvidia wants to put a watchdog chip next to every AI agent

https://www.cnbc.com/2026/09/28/nvidia-releases.html
186•jonbaer•19h ago•234 comments

Hijacking the PS5's RTMP stream

https://yashgarg.dev/posts/hijacking-ps5-rtmp-stream/
263•ibobev•19h ago•87 comments

Sonnet 5.5

https://www.anthropic.com/claude-sonnet-5-5
816•D2OQZG8l5BI1S06•17h ago•550 comments

Updated Google Maps shows destruction of the city of Rafah

https://twitter.com/AliAbunimah/status/2103890594137309425
616•slowin•19h ago•475 comments

Simulating Airband AM Radios

https://bitbashing.io/am-radio.html
51•shellpipe•2d ago•4 comments

Scientists solve 1840s space weather mystery

https://arstechnica.com/science/2026/09/scientists-solve-1840s-space-weather-mystery/
112•gumby•15h ago•48 comments

Kids turned low-traffic NPR Spotify comments into a secret group chat

https://www.thisamericanlife.org/897/transcript
419•simonpure•19h ago•224 comments

Does Reddit have an astroturfing problem? What the data suggests

https://www.petervijeh.com/projects/reddit-astroturf
237•p-s-v•21h ago•289 comments

Four CHI '26 papers I wish I wrote

https://countingfromzero.blog/2026/04/24/four-chi-26-papers-i-wish-i-wrote/
9•luu•2d ago•3 comments

World Labs is Joining AMD

https://www.worldlabs.ai/blog/amd-announcement
283•mfiguiere•15h ago•111 comments

Show HN: HN.watch – Videos of all Hacker News posts

https://hn.watch/
191•mrborgen•20h ago•96 comments

It's Time to Investigate the AI Labs

https://calnewport.com/its-time-to-investigate-the-ai-labs/
524•ibobev•15h ago•215 comments

1996 chat room simulator connected to Win95 and System 7 web desktops

https://lolchat.rip/
116•henrychannel•11h ago•46 comments

When did Google get so weird?

https://sancho.bearblog.dev/google-weird/
1899•sancho-panza•1d ago•1065 comments