frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Boolean-query-parser – From a 4-hour hack to 3k downloads

https://github.com/Piergiuseppe/boolean-query-parser
1•TheBuc•1h ago

Comments

TheBuc•1h ago
Hi HN,

I built boolean-query-parser in about half a day because I was tired of hardcoding filtering logic for a project. I didn’t set out to write the "ultimate" parser; I just needed something lightweight to handle queries like (error AND /critical/i) OR NOT "debug" without pulling in heavy dependencies.

I open-sourced it, put it on PyPI, and honestly... I forgot about it.

A few days ago, I checked the stats: 3,000 organic downloads without a single tweet or blog post. It turns out that having a zero-dependency, pure-Python logic engine is a more common need than I thought.

Why it’s resonating (I think):

Zero Overhead: No Lark, no Pyparsing. Just a clean recursive descent parser in a single file.

Universal Logic: I use "log filtering" as an example because it's intuitive, but it's really a generic engine for user-defined segments, search bars, or alerting rules.

Wasm Playground: Since it’s so lean, I put together a Playground using WebAssembly. It loads instantly and lets you see the AST generation in real-time.

The Pivot to C: Seeing that people are actually using this in production has motivated me to take it seriously. Python is great for the "half-day hack," but for high-throughput applications, it hits a ceiling.

I’m now working on a full rewrite in C (CPython extension). The goals are:

Pure Efficiency: Zero-allocation matching using string views.

True Parallelism: Releasing the GIL so you can process massive datasets across all cores.

Robustness: Moving from recursion to a stack-based approach to handle even the most insane nested queries.

I’d love to hear your thoughts on the current AST structure or any advice from those who have transitioned a Python tool to a C extension!

Repo: https://github.com/Piergiuseppe/boolean-query-parser Playground: https://piergiuseppe.github.io/boolean-query-parser/

Show HN: TurtleNoir – Logic-Grounded AI Host for Lateral Thinking Puzzles

https://turtlenoir.com/
1•kuboshiori•1m ago•0 comments

Climbing Mount Fuji visualized through milestone stamps

https://fuji.halfof8.com/
1•gessha•2m ago•0 comments

Show HN: AIP – An open protocol for verifying what AI agents are allowed to do

https://github.com/theaniketgiri/aip
1•theaniketgiri•2m ago•0 comments

Students Are Being Treated Like Guinea Pigs: Inside an AI-Powered Private School

https://www.404media.co/students-are-being-treated-like-guinea-pigs-inside-an-ai-powered-private-...
2•trinsic2•2m ago•0 comments

Dreamer lets you create and run personalized AI agents

https://dreamer.com
1•rfonseca•2m ago•0 comments

Graph Theory Using Modern CSS

https://css-tip.com/graph-theory/
1•duck•2m ago•0 comments

Show HN: Burla – Scale any Python program using one simple function

https://docs.burla.dev
1•pancakeguy•2m ago•0 comments

Can a Computer Science Student Be Taught to Design Hardware?

https://semiengineering.com/can-a-computer-science-student-be-taught-to-design-hardware/
2•stn8188•2m ago•0 comments

The myth and reality of Mac OS X Snow Leopard revisited

https://lapcatsoftware.com/articles/2026/2/5.html
1•zdw•3m ago•0 comments

PlaceboBench: An LLM hallucination benchmark for pharma

https://www.blueguardrails.com/en
1•mathis-l•3m ago•0 comments

Amazon has lost $450B in value during this historic losing streak

https://www.cnbc.com/2026/02/17/amazon-stock-losing-streak.html
1•randycupertino•3m ago•0 comments

Show HN: Layerd – Layered system architecture diagrams with 3D visualization

https://layerd.cloud
1•hexploits•4m ago•1 comments

Show HN: I built a tool that helps YC companies figure out what to build next

https://www.mimir.build/analysis
1•schreibertuc•4m ago•0 comments

Show HN: IsMichaelBurryRight – Live Index Tracking AI Bubble Stress Signals

https://www.ismichaelburryright.com
1•antonionduarte•5m ago•0 comments

99% of adults over 40 have shoulder "abnormalities" on an MRI, study finds

https://arstechnica.com/health/2026/02/99-of-adults-over-40-have-shoulder-abnormalities-on-an-mri...
1•taeric•5m ago•1 comments

The Complicated Legacy of Mind Controlled Toys

https://hackaday.com/2026/02/17/the-complicated-legacy-of-mind-controlled-toys/
1•zdw•5m ago•0 comments

Claude Code leaked me someone else's response

https://old.reddit.com/r/ClaudeCode/comments/1r767f1/claude_code_leaked_me_someone_elses_response_i/
1•joshuawright11•6m ago•0 comments

Orbital hodograph – Plotting velocity of Keplerian orbit

https://www.johndcook.com/blog/2026/02/16/hodograph/
1•ibobev•6m ago•0 comments

AI: Why We Can’t Stop (But Must Steer)

https://nationalinterest.org/blog/techland/ai-why-we-cant-stop-but-must-steer
1•geox•6m ago•0 comments

Why do so many jobs do nothing? [video]

https://www.youtube.com/watch?v=_j6biVnzTdw
1•joe_mamba•6m ago•0 comments

Instruction decoding in the Intel 8087 floating-point chip

https://www.righto.com/2026/02/8087-instruction-decoding.html
1•ibobev•7m ago•0 comments

Memories: Doing my PhD at Stanford, under John L Hennessy

https://lawrencecpaulson.github.io//2026/02/13/John_Hennessy.html
1•ibobev•7m ago•0 comments

The great computer science exodus (and where students are going instead)

https://techcrunch.com/2026/02/15/the-great-computer-science-exodus-and-where-students-are-going-...
1•sylvainkalache•8m ago•0 comments

Dimensional novel Validation protocol DAM Elara project

https://github.com/navigatorbuilds/elara-protocol
1•NenadVasic•8m ago•0 comments

TinyFish Accelerator: 9 Weeks Virtual Agent Accelerator, $2M Seed Pool

https://www.tinyfish.ai/accelerator
3•gargi_tinyfish•9m ago•2 comments

The One Woman Anthropic Trusts to Teach AI Morals

https://www.wsj.com/tech/ai/anthropic-amanda-askell-philosopher-ai-3c031883
1•judah•9m ago•0 comments

Heydawy DNS Changer v1 x64

https://github.com/davoo233/HeyDawy-DNS-Changer
1•HeyDawy•9m ago•0 comments

Amplified.dev: Developers amplified, not automated

https://amplified.dev
1•tydunn•10m ago•0 comments

Feed the AI Beast

https://brettcvz.com/posts/171-feed-the-ai-beast
1•brettcvz•10m ago•0 comments

Gentoo on Codeberg

https://www.gentoo.org/news/2026/02/16/codeberg.html
3•todsacerdoti•11m ago•0 comments