frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•10mo ago

Comments

yxhuvud•10mo ago
Eww, pretending to support utf8 matchers while not supporting them at all was not pretty to see.
gitroom•10mo ago
Honestly that part bugs me, fake support is worse than no support imo
kayodelycaon•10mo 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•10mo 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•10mo 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•9mo 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.

A better streams API is possible for JavaScript

https://blog.cloudflare.com/a-better-web-streams-api/
256•nnx•5h ago•93 comments

Allocating on the Stack

https://go.dev/blog/allocation-optimizations
45•spacey•2h ago•16 comments

We gave terabytes of CI logs to an LLM

https://www.mendral.com/blog/llms-are-good-at-sql
98•shad42•3h ago•65 comments

Modeling Cycles of Grift with Evolutionary Game Theory

https://www.oranlooney.com/post/grifters-skeptics-marks/
36•ibobev•3d ago•10 comments

Writing a Guide to SDF Fonts

https://www.redblobgames.com/blog/2026-02-26-writing-a-guide-to-sdf-fonts/
8•chunkles•56m ago•0 comments

Tenth Circuit: 4th Amendment Doesn't Support Broad Search of Protesters' Devices

https://www.eff.org/deeplinks/2026/02/victory-tenth-circuit-finds-fourth-amendment-doesnt-support...
286•hn_acker•4h ago•34 comments

Kyber (YC W23) Is Hiring an Enterprise Account Executive

https://www.ycombinator.com/companies/kyber/jobs/59yPaCs-enterprise-account-executive-ae
1•asontha•42m ago

Don't run OpenClaw on your main machine

https://blog.skypilot.co/openclaw-on-skypilot/
27•hopechong•1h ago•18 comments

Show HN: RetroTick – Run classic Windows EXEs in the browser

https://retrotick.com/
136•lqs_•6h ago•38 comments

Get free Claude max 20x for open-source maintainers

https://claude.com/contact-sales/claude-for-oss
252•zhisme•10h ago•136 comments

Dan Simmons, author of Hyperion, has died

https://en.wikipedia.org/wiki/Dan_Simmons
70•throw0101a•1h ago•24 comments

Show HN: Badge that shows how well your codebase fits in an LLM's context window

https://github.com/qwibitai/nanoclaw/tree/main/repo-tokens
65•jimminyx•4h ago•36 comments

Block spent $68M on a single party in September 2025

https://twitter.com/BullTheoryio/status/2027250361816486085
68•kappi•1h ago•35 comments

Sprites on the Web

https://www.joshwcomeau.com/animation/sprites/
65•vinhnx•3d ago•14 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
139•edent•8h ago•82 comments

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2736•qwertox•20h ago•1455 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
224•jsomers•2d ago•148 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
469•moultano•15h ago•170 comments

Debian Removes Free Pascal Compiler / Lazarus IDE

https://forum.lazarus.freepascal.org/index.php?topic=73405.0
46•mariuz•2d ago•20 comments

NASA announces major overhaul of Artemis program amid safety concerns, delays

https://www.cbsnews.com/news/nasa-artemis-moon-program-overhaul/
79•voxadam•2h ago•86 comments

An interactive intro to quadtrees

https://growingswe.com/blog/quadtrees
168•evakhoury•3d ago•20 comments

Breaking Free

https://www.forbrukerradet.no/breakingfree/
151•Aissen•9h ago•26 comments

Theory of Constraints: "Blue Light" creating capacity for nothing (2007)

http://theoryofconstraints.blogspot.com/2007/06/toc-stories-2-blue-light-creating.html
10•strongpigeon•1h ago•1 comments

Show HN: Unfudged – version every change between commits - local-first

https://www.unfudged.io/
16•cyrusradfar•21h ago•11 comments

Vibe coded Lovable-hosted app littered with basic flaws exposed 18K users

https://www.theregister.com/2026/02/27/lovable_app_vulnerabilities/
81•nottorp•2h ago•23 comments

What was the first life restoration of a sauropod?

https://svpow.com/2026/02/02/what-was-the-first-life-restoration-of-a-sauropod/
11•surprisetalk•2d ago•3 comments

Your Device Identity Is Probably a Liability

https://smallstep.com/blog/ncsc-zero-trust-device-identity/
9•eustoria•1h ago•1 comments

Experts sound alarm after ChatGPT Health fails to recognise medical emergencies

https://www.theguardian.com/technology/2026/feb/26/chatgpt-health-fails-recognise-medical-emergen...
128•simonebrunozzi•3h ago•104 comments

Open source calculator firmware DB48X forbids CA/CO use due to age verification

https://github.com/c3d/db48x/commit/7819972b641ac808d46c54d3f5d1df70d706d286
26•iamnothere•3h ago•16 comments

The quixotic team trying to build a world in a 20-year-old game

https://arstechnica.com/gaming/2026/02/inside-the-quixotic-team-trying-to-build-an-entire-world-i...
98•nxobject•2d ago•20 comments