frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

We should be more ambitious with the software we build

https://danluu.com/ambitious/
386•ltratt•11h ago•335 comments

Cerebras Deploys Trillion-Parameter AI Models

https://www.cerebras.ai/blog/how-we-deploy-trillion-parameter-frontier-models-on-cerebras
143•gmays•7h ago•49 comments

How Japanese Dried Bonito Is Made

https://kottke.org/26/10/how-japanese-dried-bonito-is-made
30•bookofjoe•2d ago•5 comments

The Goose Programming Language

https://aardappel.github.io/goose/
371•bobbydigitales•13h ago•243 comments

SpeedCrunch 1.1

https://www.speedcrunch.org/
139•LordNibbler•13h ago•24 comments

Small Programs and Languages

https://ratfactor.com/cards/pl-small
101•andsoitis•11h ago•7 comments

Why Gopher in 2026?

https://gopher.muffinlabs.com/sdf.org/users/nervtoji/phlog/001.txt
73•andsoitis•9h ago•22 comments

America has lost 200k of jobs in media, film and the arts. How much is AI?

https://www.apricitas.io/p/ai-and-the-fall-of-the-creative-class
342•gnabgib•9h ago•337 comments

I Built a Stereo Vision Board for Hardware Hackers

https://rootkitlabs.com/2026/10/06/i-built-a-stereo-vision-board-for-hardware-hackers/
69•machinehum•4d ago•12 comments

I don't understand quantum physics (2018)

https://www.southampton.ac.uk/~doug/quantum_physics/index.html
314•rramadass•22h ago•249 comments

FreeDNS

https://freedns.afraid.org/
290•esher•17h ago•74 comments

Local Wikipedia: Wikipedia, but only for things a half hour walk from you

https://edjefferson.com/localwiki/
1583•sohkamyung•2d ago•246 comments

Node2Shell evolves to HTTP2Shell, blast radius affects many HTTP libs and apps

https://www.aikido.dev/blog/python-packages-vulnerable-node2shell-brotli-cve-2026-111497
307•theanonymousone•1d ago•152 comments

Social dynamics of toxic metal industry in medieval Europe

https://www.cambridge.org/core/journals/antiquity/article/social-dynamics-of-toxic-metal-industry...
43•XzetaU8•4d ago•15 comments

The Importance of Limitations for Creativity and Learning (2023)

https://ratfactor.com/cards/limitations
62•andsoitis•11h ago•17 comments

In Rainbows

https://hitogata.neocities.org/Rainbows
26•surprisetalk•2d ago•7 comments

A story of a Figma bug that wasn't a bug at all (2021)

https://aresluna.org/this-is-a-story-of-a-figma-bug/
27•jllyhill•3d ago•1 comments

The St. Helena 5 pence coin shows Jonathan, a roughly 190 year old tortoise

https://de.numista.com/9866
115•schleck8•16h ago•36 comments

Pragtical v3.14 Lua-based text editor adds menus, floating views, and sessions

https://pragtical.dev/blog/pragtical-v3140-release
13•rd07•4d ago•1 comments

GPU-unlock: FP/BF16 instruction issue rate on Nvidia 3000's cards

https://github.com/Zagitta/gpu-unlock
243•fragebogen•22h ago•71 comments

Neural chip decodes interactions between brain regions

https://actu.epfl.ch/news/neural-chip-decodes-interactions-between-brain-r-2/
105•giuliomagnifico•16h ago•37 comments

Show HN: Steal My Bitcoin

https://stealmybitcoin.com/
470•cloudlandsdev•12h ago•293 comments

Roku developer repositories moved from GitHub to GitLab

https://blog.roku.com/developer/gitlab-move
286•cxr•16h ago•197 comments

Rewriting a Commercial Engine in Jai

https://polygonjs.com/blog/why-i-rewrote-polygon-from-scratch
8•frading•2d ago•1 comments

Bbtree: Fastest Ordered Map

https://bbtree.xiangpeng.systems/post/
107•aoli-al•14h ago•11 comments

Physicists trap a single antimatter particle for a month

https://www.scientificamerican.com/article/physicists-trap-a-single-antimatter-particle-for-a-month/
304•mooreds•3d ago•86 comments

Five Qwen3.8-27B models match Fable 5 Using GVS5H Harness

https://github.com/slee-persis/GVS5H
156•rzk•4h ago•54 comments

How close can pure functional programming get to C?

https://rtfeldman.com/fp-vs-c
268•stmonty•1d ago•93 comments

A practical guide to AI image generation, from diffusion to agents

https://danielball.com/notes/ai_image_generation.html
263•westsmith•4d ago•84 comments

Why is AI generated language so hard to understand?

https://arxiv.org/abs/2610.29162
196•canjobear•14h ago•167 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.