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

Comments

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

Capital One to acquire Brex for $5.15B

https://www.reuters.com/legal/transactional/capital-one-buy-fintech-firm-brex-515-billion-deal-20...
220•personjerry•7h ago•163 comments

GPTZero finds 100 new hallucinations in NeurIPS 2025 accepted papers

https://gptzero.me/news/neurips/
754•segmenta•13h ago•404 comments

Show HN: isometric.nyc – giant isometric pixel art map of NYC

https://cannoneyed.com/isometric-nyc/
740•cannoneyed•11h ago•163 comments

Why does SSH send 100 packets per keystroke?

https://eieio.games/blog/ssh-sends-100-packets-per-keystroke/
352•eieio•9h ago•222 comments

I was banned from Claude for scaffolding a Claude.md file?

https://hugodaniel.com/posts/claude-code-banned-me/
422•hugodan•10h ago•316 comments

Turso is an in-process SQL database, compatible with SQLite

https://github.com/tursodatabase/turso
71•marklit•3d ago•34 comments

Qwen3-TTS family is now open sourced: Voice design, clone, and generation

https://qwen.ai/blog?id=qwen3tts-0115
506•Palmik•14h ago•161 comments

Bugs Apple Loves

https://www.bugsappleloves.com
304•nhod•2h ago•101 comments

The lost art of XML

https://marcosmagueta.com/blog/the-lost-art-of-xml/
25•Curiositry•56m ago•8 comments

What Is Control Flow Analysis for Lambda Calculus? – Iowa Type Theory Commute

https://rss.buzzsprout.com/728558.rss
12•matt_d•6d ago•0 comments

Improving the usability of C libraries in Swift

https://www.swift.org/blog/improving-usability-of-c-libraries-in-swift/
73•timsneath•5h ago•3 comments

Douglas Adams on the English–American cultural divide over "heroes"

https://shreevatsa.net/post/douglas-adams-cultural-divide/
370•speckx•14h ago•371 comments

Why medieval city-builder video games are historically inaccurate (2020)

https://www.leidenmedievalistsblog.nl/articles/why-medieval-city-builder-video-games-are-historic...
85•benbreen•4h ago•49 comments

The Cscript Style Guide – CScript is the standard C

https://github.com/domenukk/CScript
5•domenukk•1h ago•1 comments

Your app subscription is now my weekend project

https://rselbach.com/your-sub-is-now-my-weekend-project
269•robteix•4d ago•200 comments

Scaling PostgreSQL to power 800M ChatGPT users

https://openai.com/index/scaling-postgresql/
91•mustaphah•7h ago•30 comments

Launch HN: Constellation Space (YC W26) – AI for satellite mission assurance

33•kmajid•11h ago•14 comments

Captive Wi-Fi

https://en.wikipedia.org/wiki/Captive_portal
5•nomilk•4d ago•0 comments

My first year in sales as technical founder

https://www.fabiandietrich.com/blog/first-year-in-sales.html
96•f3b5•5d ago•42 comments

CSS Optical Illusions

https://alvaromontoro.com/blog/68091/css-optical-illusions
155•ulrischa•11h ago•13 comments

Show HN: Text-to-video model from scratch (2 brothers, 2 years, 2B params)

https://huggingface.co/collections/Linum-AI/linum-v2-2b-text-to-video
57•schopra909•12h ago•10 comments

Stunnel

https://www.stunnel.org/
41•firesteelrain•4h ago•9 comments

Recent discoveries on the acquisition of the highest levels of human performance

https://www.science.org/doi/abs/10.1126/science.adt7790
114•colincooke•10h ago•53 comments

'Active' sitting is better for brain health: review of studies

https://www.sciencealert.com/not-all-sitting-is-equal-one-type-was-just-linked-to-better-brain-he...
79•mikhael•9h ago•32 comments

Anthropic Economic Index economic primitives

https://www.anthropic.com/research/anthropic-economic-index-january-2026-report
74•malshe•6h ago•43 comments

Compiling Scheme to WebAssembly

https://eli.thegreenplace.net/2026/compiling-scheme-to-webassembly/
79•chmaynard•5d ago•11 comments

Composing APIs and CLIs in the LLM era

https://walters.app/blog/composing-apis-clis
44•zerf•11h ago•11 comments

Show HN: BrowserOS – "Claude Cowork" in the browser

https://github.com/browseros-ai/BrowserOS
45•felarof•12h ago•22 comments

AnswerThis (YC F25) Is Hiring

https://www.ycombinator.com/companies/answerthis/jobs/r5VHmSC-ai-agent-orchestration
1•ayush4921•11h ago

In Europe, wind and solar overtake fossil fuels

https://e360.yale.edu/digest/europe-wind-solar-fossil-fuels
522•speckx•14h ago•536 comments