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.

Claude: System Prompts

https://platform.claude.com/docs/en/release-notes/system-prompts
99•tosh•1h ago•42 comments

Firefox for iOS now has a native adblocker

https://support.mozilla.org/en-US/kb/block-ads-firefox-ios
55•pentagrama•1h ago•17 comments

A SAT Attack on Tarski's High School Algebra Problem

https://arxiv.org/abs/2608.08421
30•matt_d•4d ago•14 comments

Does anyone run Postgres without PgBouncer?

https://brandur.org/fragments/postgres-without-pgbouncer
49•abelanger•3d ago•17 comments

Research papers using "kidney disappointment" instead of "kidney failure"

https://scholar.google.com/scholar?q=%22kidney+disappointment%22
77•Alifatisk•2h ago•33 comments

Asus Bike Booster

https://www.asus.com/accessories/bike-booster/asus-oxiis/oxiis-intelligent-bike-booster/
509•wiradikusuma•4d ago•355 comments

Chestnut – eGPU dock with open-source firmware

https://hwbusters.com/news/comma-ai-egpu-dock-runs-open-source-firmware-249-bare-799-with-an-rx-9...
63•txrx0000•2d ago•16 comments

Tasklet (YC P26) Is Hiring a Head of Design Engineering

https://tasklet.ai/careers/head-of-design-engineering
1•mayop100•55m ago

Asynchronous I/O in DuckDB: Work, Thread, Work

https://duckdb.org/2026/07/31/asynchronous-io
215•pdet•6d ago•26 comments

Superconducting monolayer cuprate with a single CuO2 plane

https://www.nature.com/articles/s41586-026-10857-1
35•sbulaev•3d ago•11 comments

Software Engineering fundamentals matter more

https://rhonabwy.com/2026/08/15/software-engineering-fundamentals-matter-more-than-ever/
224•ingve•15h ago•144 comments

Super El Niño Keeps Growing as New Forecasts Reach Record Territory Ahead Winter

https://www.severe-weather.eu/long-range-2/super-el-nino-growth-accelerating-to-record-strength-f...
323•dgellow•19h ago•211 comments

Cultivating a state of mind where new ideas are born (2023)

https://www.henrikkarlsson.xyz/p/good-ideas
214•felixbraun•17h ago•51 comments

Semaglutide linked to lower predicted dementia risk

https://alz-journals.onlinelibrary.wiley.com/doi/10.1002/dad2.70432
450•randycupertino•22h ago•339 comments

Patterns and problems in emerging multi-agent systems

https://www.anthropic.com/research/multiagent-systems
147•maxutility•12h ago•102 comments

Guiding Ships with Moire Patterns (2018)

https://tinkerings.org/2018/03/28/guiding-ships-with-moire-patterns/
84•Eridanus2•12h ago•22 comments

US oil reserves are so low, the caverns holding them could be damaged

https://www.independent.co.uk/news/world/americas/us-politics/strategic-petroleum-reserve-trump-i...
43•NordStreamYacht•1h ago•13 comments

At-home test for infected ticks could improve Lyme Disease diagnosis

https://www.smithsonianmag.com/innovation/the-first-at-home-test-for-infected-ticks-could-improve...
271•gmays•1d ago•105 comments

A True Telnet BBS on a Casio Calculator

https://ei3lh.eu/2026/08/16/a-true-telnet-bbs-on-a-casio-calculator/
5•austinallegro•2h ago•0 comments

What I Learned Securing Sniffnet with the GitHub Secure Open Source Fund

https://sniffnet.app/news/github-secure-open-source-fund/
6•dmit•2d ago•0 comments

Falstad Math and Physics Simulations

https://www.falstad.com/mathphysics.html
39•pykello•10h ago•9 comments

AI in drug discovery – what it is, where we stand and the path forward

https://www.science.org/content/blog-post/so-how-ai-drug-discovery-doing-really
159•AnodicElegy•19h ago•84 comments

Show HN: Grafana agent observability for Hermes Agent

https://github.com/alexander-akhmetov/grafana-agento11y-hermes
15•eventuallyacat•5h ago•0 comments

RISC-V: They Should Have Known Better

https://dmitry.gr/?r=06.%20Thoughts&proj=12.%20RV
344•dmitrygr•2d ago•386 comments

Show HN: Mic Drop, a real-time multiplayer karaoke game

https://www.micdrop.gg/
71•johnsillings•13h ago•29 comments

A fortuitous decade as an indie software developer

https://lapcatsoftware.com/articles/2026/8/3.html
117•frizlab•5d ago•15 comments

What happens when an LLM never sees material beyond fifth grade?

https://littlelearner-ll.github.io/
197•porridgeraisin•6h ago•168 comments

Numba in the Browser: Unlocking a New Scientific Python Stack in JupyterLite

https://notebook.link/blog/numba-in-the-browser/
59•xalfotis•4d ago•11 comments

A spectre is haunting Unicode

https://www.dampfkraft.com/ghost-characters.html
249•sensanaty•23h ago•98 comments

Tracking down a Zsh history data loss bug

https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/
101•ingve•16h ago•38 comments