frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Category Theory Illustrated – Orders

https://abuseofnotation.github.io/category-theory-illustrated/04_order/
33•boris_m•2h ago•8 comments

Amiga Graphics

https://amiga.lychesis.net/
30•sph•2h ago•0 comments

Show HN: I made a calculator that works over disjoint sets of intervals

https://victorpoughon.github.io/interval-calculator/
138•fouronnes3•7h ago•21 comments

Claude Design

https://www.anthropic.com/news/claude-design-anthropic-labs
1020•meetpateltech•17h ago•669 comments

The simple geometry behind any road

https://sandboxspirit.com/blog/simple-geometry-of-roads/
18•azhenley•2d ago•2 comments

Measuring Claude 4.7's tokenizer costs

https://www.claudecodecamp.com/p/i-measured-claude-4-7-s-new-tokenizer-here-s-what-it-costs-you
601•aray07•17h ago•427 comments

Towards trust in Emacs

https://eshelyaron.com/posts/2026-04-15-towards-trust-in-emacs.html
97•eshelyaron•2d ago•11 comments

All 12 moonwalkers had "lunar hay fever" from dust smelling like gunpowder (2018)

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
324•cybermango•14h ago•188 comments

Rewriting Every Syscall in a Linux Binary at Load Time

https://amitlimaye1.substack.com/p/rewriting-every-syscall-in-a-linux
38•riteshnoronha16•4d ago•11 comments

Spending 3 months coding by hand

https://miguelconner.substack.com/p/im-coding-by-hand
200•evakhoury•16h ago•197 comments

A simplified model of Fil-C

https://www.corsix.org/content/simplified-model-of-fil-c
171•aw1621107•11h ago•87 comments

It is incorrect to "normalize" // in HTTP URL paths

https://runxiyu.org/comp/doubleslash/
20•pabs3•2h ago•6 comments

Are the costs of AI agents also rising exponentially? (2025)

https://www.tobyord.com/writing/hourly-costs-for-ai-agents
194•louiereederson•2d ago•48 comments

Brunost: The Nynorsk Programming Language

https://lindbakk.com/blog/introducing-brunost
55•atomfinger•4d ago•22 comments

Show HN: Smol machines – subsecond coldstart, portable virtual machines

https://github.com/smol-machines/smolvm
325•binsquare•15h ago•99 comments

Slop Cop

https://awnist.com/slop-cop
171•ericHosick•17h ago•100 comments

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
186•seanieb•16h ago•78 comments

"cat readme.txt" is not safe if you use iTerm2

https://blog.calif.io/p/mad-bugs-even-cat-readmetxt-is-not
173•arkadiyt•13h ago•93 comments

Hyperscalers have already outspent most famous US megaprojects

https://twitter.com/finmoorhouse/status/2044933442236776794
188•nowflux•16h ago•147 comments

Middle schooler finds coin from Troy in Berlin

https://www.thehistoryblog.com/archives/75848
228•speckx•18h ago•102 comments

NASA Force

https://nasaforce.gov/
268•LorenDB•16h ago•266 comments

Landmark ancient-genome study shows surprise acceleration of human evolution

https://www.nature.com/articles/d41586-026-01204-5
74•unsuspecting•10h ago•61 comments

Making Wax Sealed Letters at Scale

https://waxletter.com/
16•hjconstas•2d ago•12 comments

NIST gives up enriching most CVEs

https://risky.biz/risky-bulletin-nist-gives-up-enriching-most-cves/
198•mooreds•17h ago•49 comments

Casus Belli Engineering

https://marcosmagueta.com/blog/casus-belli-engineering/
34•b-man•7h ago•7 comments

The Unix executable as a Smalltalk method (2025) [video]

https://www.youtube.com/watch?v=sZjPQ7vtLNA
52•surprisetalk•1d ago•3 comments

Arc Prize Foundation (YC W26) Is Hiring a Platform Engineer for ARC-AGI-4

https://www.ycombinator.com/companies/arc-prize-foundation/jobs/AKZRZDN-platform-engineer-benchma...
1•gkamradt_•11h ago

Introducing: ShaderPad

https://rileyjshaw.com/blog/introducing-shaderpad/
91•evakhoury•2d ago•18 comments

The GNU libc atanh is correctly rounded

https://inria.hal.science/hal-05591661
89•matt_d•3d ago•19 comments

Ban the sale of precise geolocation

https://www.lawfaremedia.org/article/it-is-time-to-ban-the-sale-of-precise-geolocation
692•hn_acker•18h ago•176 comments
Open in hackernews

Fast(er) regular expression engines in Ruby

https://serpapi.com/blog/faster-regular-expression-engines-in-ruby/
60•davidsojevic•11mo ago

Comments

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