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

Rob Pike's 5 Rules of Programming

https://www.cs.unc.edu/~stotts/COMP590-059-f24/robsrules.html
215•vismit2000•2h ago•100 comments

Measuring progress toward AGI: A cognitive framework

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/measuring-agi-cognitive...
31•surprisetalk•1h ago•23 comments

JPEG Compression

https://www.sophielwang.com/blog/jpeg
267•vinhnx•4d ago•62 comments

Nightingale – open-source karaoke app that works with any song on your computer

https://nightingale.cafe/
123•rzzzzru•4h ago•18 comments

Pandas Exercises for Data Analysis (Interactive)

https://machinelearningplus.com/python/101-pandas-exercises-python-interactive/
12•selva86•4d ago•1 comments

Write up of my homebrew CPU build

https://willwarren.com/2026/03/12/building-my-own-cpu-part-3-from-simulation-to-hardware/
105•wwarren•2d ago•17 comments

Mistral AI Releases Forge

https://mistral.ai/news/forge
556•pember•15h ago•130 comments

How the Eon Team Produced a Virtual Embodied Fly

https://eon.systems/updates/embodied-brain-emulation
37•LopRabbit•2d ago•9 comments

A Decade of Slug

https://terathon.com/blog/decade-slug.html
648•mwkaufma•17h ago•64 comments

Microsoft's 'unhackable' Xbox One has been hacked by 'Bliss'

https://www.tomshardware.com/video-games/console-gaming/microsofts-unhackable-xbox-one-has-been-h...
713•crtasm•21h ago•262 comments

Celebrating Tony Hoare's mark on computer science

https://bertrandmeyer.com/2026/03/16/celebrating-tony-hoares-mark-on-computer-science/
53•benhoyt•6h ago•9 comments

Python 3.15's JIT is now back on track

https://fidget-spinner.github.io/posts/jit-on-track.html
409•guidoiaquinti•18h ago•227 comments

Show HN: Pgit – A Git-like CLI backed by PostgreSQL

https://oseifert.ch/blog/building-pgit
65•ImGajeed76•1d ago•24 comments

More than 135 open hardware devices flashable with your own firmware

https://openhardware.directory
259•iosifnicolae2•4d ago•30 comments

The pleasures of poor product design

https://www.inconspicuous.info/p/the-pleasures-of-poor-product-design
149•NaOH•11h ago•52 comments

Ndea (YC W26) is hiring a symbolic RL search guidance lead

https://ndea.com/jobs/search-guidance
1•mikeknoop•5h ago

Get Shit Done: A meta-prompting, context engineering and spec-driven dev system

https://github.com/gsd-build/get-shit-done
363•stefankuehnel•16h ago•183 comments

(Media over QUIC) on a Boat

https://moq.dev/blog/on-a-boat/
34•mmcclure•4d ago•3 comments

Show HN: Sub-millisecond VM sandboxes using CoW memory forking

https://github.com/adammiribyan/zeroboot
198•adammiribyan•23h ago•49 comments

Have a fucking website

https://www.otherstrangeness.com/2026/03/14/have-a-fucking-website/
535•asukachikaru•8h ago•289 comments

Judge orders restoration of Voice of America

https://apnews.com/article/voice-of-america-kari-lake-trump-cd6d1ef05272f842705da0ed38d3de24
55•geox•1h ago•22 comments

Animation 10k Starlink Satellites

https://spaceweather.com/archive.php?view=1&day=18&month=03&year=2026
22•MeteorMarc•5h ago•25 comments

Why AI systems don't learn – On autonomous learning from cognitive science

https://arxiv.org/abs/2603.15381
140•aanet•15h ago•76 comments

Unsloth Studio

https://unsloth.ai/docs/new/studio
316•brainless•21h ago•59 comments

A tale about fixing eBPF spinlock issues in the Linux kernel

https://rovarma.com/articles/a-tale-about-fixing-ebpf-spinlock-issues-in-the-linux-kernel/
115•y1n0•11h ago•10 comments

It Took Me 30 Years to Solve This VFX Problem – Green Screen Problem [video]

https://www.youtube.com/watch?v=3Ploi723hg4
260•yincrash•4d ago•102 comments

Leviathan (1651)

https://www.gutenberg.org/files/3207/3207-h/3207-h.htm
93•mrwh•3d ago•35 comments

Electron microscopy shows ‘mouse bite’ defects in semiconductors

https://news.cornell.edu/stories/2026/03/electron-microscopy-shows-mouse-bite-defects-semiconductors
86•hhs•4d ago•25 comments

Ryugu asteroid samples contain all DNA and RNA building blocks

https://phys.org/news/2026-03-ryugu-asteroid-samples-dna-rna.html
265•bookofjoe•1d ago•140 comments

Launch an autonomous AI agent with sandboxed execution in 2 lines of code

https://amaiya.github.io/onprem/examples_agent.html
45•wiseprobe•11h ago•18 comments