frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Google AI generating regular expressions = fail

1•prirun•18h ago
Prompt: what is the optimum python regular expression to match the words foo, fooxcale, and fooyscale

I meant to say fooxscale, but had a typo. Turned out to be interesting after all.

According to their AI:

"The optimum Python regular expression to match the words foo, fooxcale, and fooyscale as whole words is \bfoo(?:x|y)?cale\b|\bfoo\b"

That actually matches foocale (wrong), foo, fooxcale and fooycale (wrong), and doesn't match fooyscale as requested.

I have to give them credit though: their AI did give me good advice the other day about an SQLite GLOB query that was not using an index in my program but did use it when I typed the query in by hand. I worked on it for about 30 minutes, then asked. Turns out that if you use a ? parameter for GLOB, SQLite can't tell whether it starts with a wildcard or not, so never uses the index. To make it use the index, you have to string splice the parameter value (after SQL quoting of course) rather that use the ? for parameter substitution. I was pretty amazed it answered that exactly right and gave me the hint about doing the splice, and warning about injection attacks.

I also think it'd be a good idea if SQLite did this test inside the VM program it generates rather than at compile time, generating code to both use the index and not use it and choosing based on the runtime test of the first character. It confused me severely.

Are There Any Similar Sites Like Downdetector?

1•nomadfounder•24s ago•0 comments

The First 'Apple Silicon': The Aquarius Processor Project

https://thechipletter.substack.com/p/the-first-apple-silicon-the-aquarius-7cb
1•rbanffy•1m ago•0 comments

Show HN: Makers.page – A link-in-bio for founders with a "slot leasing" protocol

1•alexcloudstar•1m ago•0 comments

When_Sysadmins_Ruled_the_Earth

https://craphound.com/overclocked/Cory_Doctorow_-_Overclocked_-_When_Sysadmins_Ruled_the_Earth.html
1•b112•3m ago•0 comments

xByte, the Pay-per-Byte content-agnostic infra

https://github.com/Arvmor/xByte
2•Arvmor•5m ago•0 comments

Asimpy: Simple discrete event simulation framework in Python using async/await

https://third-bit.com/2026/01/10/introducing-asimpy/
2•ingve•8m ago•0 comments

This is the future: A Software Library with No Code

https://www.dbreunig.com/2026/01/08/a-software-library-with-no-code.html
1•ulrischa•8m ago•0 comments

Comma – Show the world who you are in just 5 minutes

https://www.comma.to/
1•alexgiann•10m ago•0 comments

Show HN: Night Core – A WASM execution firewall for AI agents and untrusted code

https://github.com/xnfinite/nightcoreapp
1•Xnfinite•10m ago•0 comments

Cisco switches hit by reboot loops due to DNS client bug

https://www.bleepingcomputer.com/news/security/cisco-switches-hit-by-reboot-loops-due-to-dns-clie...
1•0xbadf00d•10m ago•1 comments

From Word to Border

https://substack.com/inbox/post/184132494
1•GWBudenbauer•10m ago•0 comments

An Open Letter to Bigot Diners (2013)

https://sushiwhore.wordpress.com/2013/08/23/an-open-letter-to-bigot-diners/
2•Tomte•11m ago•0 comments

Ask HN: Would you pay for a privacy-first social platform?

1•sammiej•13m ago•2 comments

Ask HN: How do you pick side projects?

1•bayeslaw•13m ago•1 comments

Why overdose deaths are falling in America

https://www.economist.com/united-states/2026/01/08/why-overdose-deaths-are-falling-in-america
1•marojejian•15m ago•1 comments

MSBuildStructuredLog: A Logger for MSBuild

https://github.com/KirillOsenkov/MSBuildStructuredLog
1•tosh•20m ago•0 comments

Databases in 2025: A Year in Review

https://www.cs.cmu.edu/~pavlo/blog/2026/01/2025-databases-retrospective.html?&aid=recuHR8FpOOanMD...
2•Olshansky•20m ago•0 comments

[ANN] shadow-cljs-vite-plugin: Seamless integration for Vite and shadow-cljs

https://old.reddit.com/r/Clojure/comments/1q97dv6/ann_shadowcljsviteplugin_seamless_integration_for/
1•c4605•21m ago•0 comments

Code Is Clay

https://campedersen.com/code-is-clay
1•ecto•25m ago•0 comments

Show HN: FlowKitX – Fluent async workflows with lazy execution for Python

https://pypi.org/project/flowkitx/1.0.1/
1•dawitworku•29m ago•0 comments

Is Rust faster than C?

https://steveklabnik.com/writing/is-rust-faster-than-c/
1•vincentchau•32m ago•0 comments

How to Get Stronger

https://news.harvard.edu/gazette/story/2026/01/how-to-get-stronger/
2•gnabgib•33m ago•1 comments

Just launched DSA Quest – gamified approach to data structures/algorithms

https://dsaquest.com
1•ittebag•34m ago•1 comments

Show HN: An iOS reader that lets you translate words inline while reading

https://apps.apple.com/us/app/linguaread-read-in-original/id6752629153
1•yevgenii_•34m ago•0 comments

Ask HN: Is there any scope of building a non AI startup?

1•ghoshbishakh•36m ago•1 comments

Try out Apple's ML-sharp 2d photo to 3D converter on your own computer

https://github.com/boutell/ml-sharp-ez
1•boutell•36m ago•1 comments

Search is dead – long live curation (2024)

https://www.coryd.dev/posts/2024/search-is-dead-long-live-curation
1•cdrnsf•36m ago•0 comments

Show HN: Rewrote my most important util in Rust

https://github.com/amirkarimi/browser-hub
1•4m1rk•36m ago•1 comments

Filters to Freedom in Job Search

https://medium.com/@orasik/filters-to-freedom-in-job-search-0e97928213ad
1•Oras•38m ago•0 comments

Why some people turn off the lights – and others don't

https://www.rte.ie/brainstorm/2025/1013/1538211-attitude-behaviour-gap-climate-change-energy-cost...
2•austinallegro•38m ago•0 comments