frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

PGSimCity - How PostgreSQL Works

https://nikolays.github.io/PGSimCity/
411•jonbaer•6h ago•41 comments

Show HN: Physically accurate black hole you can put in your room

https://blackhole.plav.in
216•aplavin•3d ago•65 comments

Decker, a platform that builds on the legacy of Hypercard and classic macOS

https://beyondloom.com/decker/
282•tosh•12h ago•72 comments

Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

https://github.com/vercel-labs/scriptc
108•maxloh•7h ago•41 comments

French firefighters face 'pyrocumulonimbus' for first time

https://www.france24.com/en/live-news/20260726-french-firefighters-face-pyrocumulonimbus-for-firs...
288•saaaaaam•12h ago•173 comments

US citizen charged after GrapheneOS phone wipes during airport search

https://www.techspot.com/news/113236-us-prosecutors-charge-atlanta-man-after-grapheneos-phone.html
523•eecc•8h ago•365 comments

We have proof automation now

https://www.imperialviolet.org/2026/07/26/zstd-lean.html
139•zdw•9h ago•31 comments

I wanted a clock that never needed setting. Things escalated

https://arstechnica.com/gadgets/2026/07/i-wanted-a-clock-that-never-needed-setting-things-escalated/
75•lee_ars•3d ago•75 comments

Htmx 4.0, the first JavaScript library to release exclusively on the Game Boy

https://swag.htmx.org/en-cad/products/htmx-4-the-game
409•rcy•18h ago•141 comments

Introduction to Data-Oriented Design [pdf]

https://www.gamedevs.org/uploads/introduction-to-data-oriented-design.pdf
151•tosh•12h ago•40 comments

Simulate cassette tape audio profiles using FFmpeg

https://github.com/AARomanov1985/Audio-Cassette-Simulation
109•xterminal•10h ago•43 comments

Design is compromise

https://stephango.com/design-is-compromise
229•ankitg12•14h ago•78 comments

Fonts In Use – Find out where a font is used

https://fontsinuse.com/
41•open_•6h ago•3 comments

The Usefulness of Useless Knowledge (1939) [pdf]

https://faculty.lsu.edu/kharms/files/flexner_1939.pdf
53•jxmorris12•3d ago•3 comments

Show HN: CheapSecurity – Lightweight, Self-Hosted CCTV for Linux SBCs

https://github.com/gmrandazzo/CheapSecurity
123•zeldone•14h ago•26 comments

How to write English prose (2023)

https://thelampmagazine.com/blog/how-to-write-english-prose
110•geneticdrifts•13h ago•52 comments

Go Analysis Framework: modular static analysis by go team

https://pkg.go.dev/golang.org/x/tools/go/analysis
198•AbuAssar•18h ago•53 comments

Why care about programming languages

https://ebellani.github.io/blog/2026/why-care-about-programming-languages/
14•b-man•4d ago•7 comments

Show HN: Reverse Minesweeper

https://sunflowersgame.com/
190•pompomsheep•17h ago•57 comments

The Zen of Parallel Programming: The Posture of a Kernel

https://smolnero.com/posts/the-zen-of-parallel-programming-the-posture-of-a-kernel
3•edgar_ortega•4d ago•0 comments

The relay market powering token resellers and fraud

https://vectoral.com/blog/token-relay-market
182•mlenhard•15h ago•109 comments

Teaching Kids Forth

https://gracefulliberty.com/articles/teaching-kids-forth/
74•rbanffy•8h ago•22 comments

The New AI Superpowers: Focus and Followthrough

https://www.rickmanelius.com/p/the-new-ai-superpowers-focus-and
187•mooreds•17h ago•57 comments

History of John Backus's functional programming project (draft)

https://softwarepreservation.computerhistory.org/FP/
22•cwbuilds•2d ago•1 comments

Plasma Tunnels Reveal How Dying Satellites Fall to Earth

https://spectrum.ieee.org/space-debris-atmosphere-burn-up
54•marc__1•10h ago•32 comments

Kill The Cookie Banner

https://killthecookiebanner.eu/
921•rapnie•18h ago•443 comments

How to Block Some of the Bots

https://nochan.net/b/Internet-Crap/20260606-How-To-Block-Some-Of-The-Bots/
96•Bender•12h ago•113 comments

I learned PCB design, 3D printing and C just to listen to music

https://pentaton.app/blog/2026-07-12-introducing-pentaton-lp/
195•interfeco•3d ago•41 comments

Some more things about Django I've been enjoying

https://jvns.ca/blog/2026/07/21/more-nice-django-things/
148•surprisetalk•5d ago•92 comments

What's Under Your Feet in New York City?

https://practical.engineering/blog/2026/7/21/whats-under-your-feet-in-new-york-city
178•sohkamyung•4d ago•41 comments
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.