frontpage.
newsnewestaskshowjobs

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

Apple reveals new AI architecture built around Google Gemini models

https://www.macrumors.com/2026/06/08/apple-reveals-new-ai-architecture/
473•unclefuzzy•10h ago•376 comments

Job: Head of Stonehenge

https://www.english-heritage.org.uk/about/our-people/careers-with-us/job-search/default-job-page/...
111•mooreds•2h ago•65 comments

Old'aVista – The most powerful guide to the old Internet

https://oldavista.com/
42•abnercoimbre•13h ago•5 comments

Siri AI

https://www.apple.com/apple-intelligence/
505•0xedb•11h ago•437 comments

xAI is looking more like a datacentre REIT than a frontier lab

https://martinalderson.com/posts/xais-new-rental-business/
494•martinald•14h ago•379 comments

Show HN: Performative-UI – A react component library of design tropes

https://vorpus.github.io/performativeUI/
873•lizhang•15h ago•162 comments

MiMo-v2.5-Pro-UltraSpeed: 1T model with 1000 tokens per second

https://mimo.xiaomi.com/blog/mimo-tilert-1000tps
528•gainsurier•14h ago•382 comments

EU-banned pesticides found in rice, tea and spices

https://www.foodwatch.org/en/eu-banned-pesticides-found-in-rice-tea-and-spices
307•john-titor•13h ago•114 comments

Looking Forward to Postgres 19: Query Hints

https://www.pgedge.com/blog/looking-forward-to-postgres-19-query-hints
106•jjgreen•3d ago•16 comments

GoGoGrandparent (YC S16) is hiring Back end Engineers

https://www.ycombinator.com/companies/gogograndparent/jobs/2vbzAw8-backend-engineer
1•davidchl•2h ago

Apple Core AI Framework

https://developer.apple.com/documentation/coreai/
244•hmokiguess•10h ago•59 comments

Passing DBs through continuations

https://remy.wang/blog/cps.html
26•remywang•2d ago•4 comments

Show HN: Gitdot – a better GitHub. Open-source, written in Rust

https://gitdot.io/
205•baepaul•12h ago•161 comments

How much do amd64 microarchitecture levels help in Go?

https://lemire.me/blog/2026/06/06/how-much-do-amd64-microarchitecture-levels-help-in-go/
29•zdw•1d ago•4 comments

Ask HN: What are tools you have made for yourself since the advent of AI?

221•aryamaan•11h ago•373 comments

Why are cells small?

https://burrito.bio/essays/what-limits-a-cells-size
128•mailyk•10h ago•58 comments

FrontierCode

https://cognition.ai/blog/frontier-code
138•streamer45•8h ago•25 comments

Surveillance is not safety: A statement on the UK's latest threat to privacy [pdf]

https://signal.org/blog/pdfs/2026-06-08-uk-surveillance-is-not-safety.pdf
483•g0xA52A2A•9h ago•180 comments

Ask HN: Why hasn't there been a real competitor to Ticketmaster yet?

123•mdni007•12h ago•104 comments

I'm building a parallel internet, and it's called The Thinnernet

https://inavoyage.blogspot.com/2026/06/im-building-parallel-internet-and-its.html
63•initramfs•9h ago•62 comments

Launch HN: Intuned (YC S22) – Build and run reliable browser automations as code

https://intunedhq.com
104•fkilaiwi•16h ago•45 comments

AI is slowing down

https://www.wheresyoured.at/ai-is-slowing-down/
470•crescit_eundo•13h ago•498 comments

Porting the ThinkPad X61 to Coreboot

https://blog.aheymans.xyz/post/thinkpad_x61/
5•walterbell•1h ago•0 comments

Apple bets cheaper AI will woo small developers

https://techcrunch.com/2026/06/08/apple-bets-cheaper-ai-will-woo-small-developers/
43•jbernardo95•8h ago•21 comments

Confidential submission of draft S-1 to the SEC

https://openai.com/index/openai-submits-confidential-s-1/
325•hackerBanana•8h ago•249 comments

Anti-social: It's fads, not friends, which now dominate social media feeds

https://www.bbc.com/worklife/article/20260520-how-social-media-ceased-to-be-social
604•1vuio0pswjnm7•17h ago•428 comments

OCaml Onboarding: Introduction to the Dune build system

https://ocamlpro.com/blog/2025_07_29_ocaml_onboarding_introduction_to_dune/
151•andrewstetsenko•4d ago•21 comments

Federal judge blocks H1B visa $100K fee

https://www.alaskasnewssource.com/2026/06/08/federal-judge-blocks-h1-b-visa-100k-fee/
126•naturalmovement•5h ago•228 comments

Games Between Programs: The Ruliology of Competition

https://writings.stephenwolfram.com/2026/06/games-between-programs-the-ruliology-of-competition/
19•andromaton•3d ago•1 comments

A Survey of Inlining Heuristics

https://bernsteinbear.com/blog/inlining-heuristics/
17•ibobev•4d ago•0 comments