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.

Sharing AI progress in mathematics

https://openai.com/index/sharing-ai-progress-in-mathematics/
521•OfficialTurkey•5h ago•444 comments

Strands Decider 2B: a small, open-source, decision model

https://strandsagents.com/blog/introducing-strands-decider/
38•gmays•1h ago•4 comments

Mistral Large 4

https://mistral.ai/news/mistral-large-4/\
1622•Philpax•14h ago•973 comments

Decisions API is in public beta

https://developers.openai.com/api/docs/guides/decisions
174•chiefstorm•6h ago•73 comments

The cost of lies: A Mineserver story

https://www.jeremyreimer.com/rockets-item.lsp?f=true&p=272
23•luu•2d ago•7 comments

Penguin Mail – open-source Rust email client for Linux with AI

https://penguin-mail.com/
89•kavourias•5h ago•39 comments

EmbeddingGemma 2: An open, lightweight multimodal embedding model

https://blog.google/innovation-and-ai/technology/developers-tools/embeddinggemma-2/
240•ilreb•11h ago•31 comments

AnyPS5: Port PS5 binaries to PC without emulation (87% system libraries mapped)

https://github.com/boykopovar/AnyPS5
130•Fe2O3•3h ago•101 comments

Claude Code’s suggested message feature: I think the real customer is the model

https://www.zohaib.cc/blog/smartest-claude-code-feature
122•zed_labs_dev•9h ago•63 comments

OpenTPU – An open-source AI accelerator, developed by AI

https://github.com/FeSens/openTPU
249•fsbonetto•10h ago•307 comments

LLMs may have helped my RSI

https://vaughanhilts.me/2026/10/05/llms-immensely-helped-my-rsi.html
50•vaughands•1d ago•28 comments

State of Devs 2026

https://2026.stateofdevs.com/en-US/
87•sgdesign•3h ago•26 comments

Utah to let AI examine patients and prescribe medication without human oversight

https://www.techspot.com/news/114111-utah-become-first-state-ai-examine-patients-prescribe.html
92•healsdata•10h ago•104 comments

Jev-Driven SRE Diagnosis: What Worked and What Failed

https://www.sregym.com/blog/jev-driven-sre-diagnosis
8•matt_d•1h ago•2 comments

Paramount Skydance has completed its $111B merger with Warner Bros. Discovery

https://arstechnica.com/tech-policy/2026/10/paramount-completes-111b-warner-merger-creating-skyda...
189•Mgtyalx•6h ago•311 comments

When random is not actually random enough

https://ersc.io/blog/when-random-isnt-random-enough
35•steveklabnik•7h ago•8 comments

What's Earth's dominant species by mass?

https://signoregalilei.com/2026/09/27/whats-earths-dominant-species-by-mass/
168•surprisetalk•14h ago•111 comments

How Fast is Python 3.15?

https://blog.miguelgrinberg.com/post/how-fast-is-python-3-15
35•Qem•5h ago•24 comments

Treg (OpenRouter for Tools)

https://github.com/superdesigndev/treg
3•trollied•10h ago•0 comments

ESP32-C3 Adblock

https://github.com/M-Abozaid/esp32-c3-adblock
10•jayhoon•1h ago•2 comments

Integer multiplication below n log n

https://github.com/openai/math/tree/main/preprints/Integer-multiplication-below-n-log-n-September...
71•E-Reverance•4h ago•53 comments

UniEvo-VL: Self-Distillation Training for Multimodal Model Self-Improvement

https://arxiv.org/abs/2609.38721
12•gmays•4h ago•3 comments

California closed the Montana license plate loophole

https://www.thedrive.com/news/heres-how-california-closed-the-montana-license-plate-loophole
73•speckx•10h ago•159 comments

Benchmark in Milliseconds

https://matklad.github.io/2026/10/05/benchmark-milliseconds.html
130•surprisetalk•1d ago•38 comments

South Korea says AI agents appear to have been used to hack the country's banks

https://www.reuters.com/world/south-koreas-lee-says-ai-appears-have-been-used-bank-hacks-2026-10-06/
41•thoughtpeddler•3h ago•10 comments

The Query Transformation Pipeline

https://readyset.io/blog/how-readyset-rewrites-your-sql-inside-the-query-transformation-pipeline
14•gvsg-rs•5h ago•0 comments

Nobel Prize in Physics 2026: Francis Halzen

https://www.nobelprize.org/prizes/physics/2026/
539•solarist•17h ago•184 comments

Xbox has secured exclusive GTA 6 streaming rights

https://www.theverge.com/report/1005859/microsoft-xbox-gta-6-streaming-rights
6•thm•58m ago•1 comments

OpenSSH 10.6

https://www.openssh.org/releasenotes.html#10.6
92•torcete•6h ago•22 comments

Couple was swatted 55 times in 2 years over a post about Norm Macdonald

https://www.cbc.ca/radio/asithappens/milwaukee-swatting-couple-9.7370118
84•colinprince•1h ago•88 comments