MurphyA/hacker-news huggingface dataset:
by tolciho | 2026-02-17 16:07:33+00:00
Such as the base OpenBSD vi, which only supports a single-level undo, which I am using at this moment (and still learning how to use, after a few decades). vim got curb-canned a while ago due to various "that's nice, but how do I turn it off?" additions, in addition to having more code in header files than vi has in total. vi meanwhile is pretty bloated though has ex filters which are a huge step up from the standard editor. Multi-level undo? Don't really need it.
by TheBuc | 2026-02-17 16:07:44+00:00
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/
by MattTheRealOne | 2026-02-17 16:08:22+00:00
I use and appreciate GrapheneOS due to it being one of, if not the best, option we currently have.

That said, I do not like how much the project depends on Google.

- GrapheneOS is based on Android, which is solely developed by Google.

- GrapheneOS only supports Google Pixel devices. Thankfully, they are working on partnering with a different manufacturer, but details are still very limited.

- They recommend using the Google Play Store (requires a Google account) to get apps and recommend against using F-Droid.

- Their Vanadium web browser is based on Chromium, which is controlled by Google. It also does not have an ad blocker or support extensions. They recommend against using Firefox. Firefox, and Safari to a more limited extent, are the only web browsers keeping Google from having complete control over web standards and the way we can access the internet.

This is not a criticism of the GrapheneOS project or developers. I understand that security is the biggest priority of GrapheneOS and I understand that Google is often good at security. They are following the goals of the project. It is more directed towards the GrapheneOS community that often blindly recommends GrapheneOS as the only option and treats any alternative as inferior and not to be considered. Most users do not need security at all costs. Especially among the free and open source enthusiast community, freedom and user control are often prioritized. There should be more awareness and discussion about what the user wants and whether that actually aligns with the security-first goals of GrapheneOS.
by rkangel | 2026-02-17 16:08:24+00:00
Possibly to do with how the jet streams were at that time.

For longer flights, large passenger aircraft will generally aim for something like 30k feet - the thinner air means less air resistance so more fuel efficiency (the cost is the fuel required to get there, which is why I said "for longer flights").

However, at that altitude the "jet stream" can cause winds of 100+ mph. This can be helpful with your direction of travel, or it can slow you down. If the jet stream was strong and trying to blow you backwards, it may have been more efficient to travel at a lower altitude where the jet stream wasn't present.
by globular-toast | 2026-02-17 16:08:40+00:00
> It's more like being hooked on a slot machine which pays out 95% of the time because you know how to trick it.

I think you are mistaken on what the "payout" is. There's only one reason someone is working all hours and during a party and whatnot: it's to become rich and powerful. The payout is not "more code", it's a big house, fast cars, beautiful women etc. Nobody can trick it into paying out even 1% of the time, let alone 95%.
by Zak | 2026-02-17 16:09:12+00:00
It is possible, but many people still buy them from their provider with financing or subsidies. That means people shopping for used Pixels who want to unlock the bootloader need to avoid the special Verizon variant which forbids unlocking the bootloader.

This is separate from SIM locking, which forbids use with another carrier. US carriers still do that, but are required to remove the lock after a while if the customer doesn't owe them money.

It's not clear why Verizon insists on permanently locked bootloaders or why Google agrees to it for Verizon when they don't do it on Pixels sold anywhere else.
by ecshafer | 2026-02-17 16:09:13+00:00
You mudt have gotten lucky with your coworkers. Ive worked with people who claimed to be “experts” in a domain that didnt have basic skills. I would say 5% were excellent, 5% good. 90% worthless. Coupled with weird insular cultural dynamics, poor english and communication skills, poor throw it over the wall mentality. Its overalll a huge net negative for a company. Perhaps its different in FAANG. But in enterprise companies its very bad.
by jackwilliams19 | 2026-02-17 16:09:18+00:00
Hygiene is a major factor in shared bedrooms. A triple sleeper bunk bed finished with a smooth, child-friendly coating is significantly easier to maintain than raw or stained wood. Dust and fingerprints can be wiped away with a damp cloth, which is essential when you have three children in and out of the same space. Furthermore, the light-reflective properties of a clean, modern paint job help the room feel more organised and less cluttered, despite the substantial size of the furniture.
by NoSalt | 2026-02-17 16:10:03+00:00
> "The standard response to privacy concerns is usually 'nothing to hide, nothing to fear.'"

> "But here’s the thing: even if you have nothing to hide, you’re still giving away information you probably don’t intend to."

Whenever I see talk like this, I always like to post this quote that not only still rings true, but rings even louder today.

> "If you give me six lines written by the hand of the most honest of men, I will find something in them which will hang him."

~ Cardinal Richelieu (Cardinal and former Secretary of State for Foreign Affairs of France)
by toomuchtodo | 2026-02-17 16:10:15+00:00
Longbets: “Over a ten-year period commencing on January 1, 2008, and ending on December 31, 2017, the S&P 500 will outperform a portfolio of funds of hedge funds, when performance is measured on a basis net of fees, costs and expenses.” - https://longbets.org/362/ (won by Warren Buffett)

Should New York’s $270B pension fund abandon Wall Street? - https://www.semafor.com/article/08/07/2025/new-york-comptrol... - August 7th, 2025 ("Drew Warshaw is running for New York state comptroller, a job most voters would struggle to define but one that includes oversight of the state’s pension fund. If he unseats 18-year incumbent Thomas DiNapoli, Warshaw’s plan is to move much of its nearly $300 billion of investments into ultra-cheap, passive index funds. The New York State and Local Retirement System has more than $90 billion invested in private equity, private credit, real estate, and other complex assets. All promise high returns — catnip for pension managers facing future payouts to retirees — but charge high fees, too. The question facing New York and hundreds of other state and local pension funds, charitable endowments, universities, and government funds around the world: Are these high-priced managers worth the fees they’re charging?")

What Does Nevada’s $35 Billion Fund Manager Do All Day? Nothing - https://www.wsj.com/articles/what-does-nevadas-35-billion-fu... | https://archive.today/ywTFd - October 19th, 2016

The management fees are, broadly speaking, a grift/rake of capital flows and economically inefficient, based on the evidence and the data. The issue at play is that the capital market ecosystem has become a bureaucracy that demands to continue to grow, versus cannibalizing itself in the name of economically efficient capital allocation.

Tangentially, the markets are moving to more trading (24/7/5) versus less because when trades are made, money is made in a Parable of the Broken Window sort of way.
by vunderba | 2026-02-17 16:10:57+00:00
Good job. Couple things - it seems to struggle with 7th chord inversions, and doesn't appear to handle 9ths at all.

There's an old online tool called ChordDisplay that handles these a bit better and also uses web midi as well. I think it's also open-source so you could probably take a look at the logic it uses as a reference point.

https://chord-display.rednet.io

My first exposure to realtime chord detection was actually on a old Yamaha arranger keyboard from the early 90s. When you are designating the chord for the instruments to follow using your left hand, the LCD display will show the chord in the progression.

EDIT: My bad, 7ths are working - I'm just used to inversions being expressed as slash chords!
by lokar | 2026-02-17 16:10:58+00:00
There has been a lot of discussion about how the basic setup of banks (borrow short, lend long, collect the spread) is probably not a great idea, and we should just separate these two activities (see Money Stuff). People who want to lend long should do that with their own money, and people who just want to save should be able to do that.

But, at least in the US, regulators keep blocking the 1st step: narrow banking. Let banks offer savings accounts that just stick the money in the Fed, zero risk.
by weirdmantis69 | 2026-02-17 16:11:29+00:00
One anecdote about Bill Gates is he was in the Bahamas perhaps to purchase some real estate and he was dressed very down to the point where he looked like a bum. He went into a local real estate office where the lady was dressed in a suit and to the 9's despite it being 40 degrees outside. And she went and told him that real estate was expensive in the Bahamas and he needed a lot of money to buy to which he replied "I might be able to work something out you never know". So ya the super rich don't need to sound good or look good they simply have money.
Show HN: My 16MB vibe-coded voice cloning app
by yoav | 2026-02-17 16:11:35+00:00
I vibe coded this text to speech app in an hour last weekend. It uses the new open weight Qwen models so it's fully local. Supports both instruct and voice cloning.

And since it's built with Electrobun it's only 16MB and uses typescript for the main and browser views.
by cableshaft | 2026-02-17 16:11:45+00:00
Flipping burgers really isn't that difficult. It was my first job, and I even have nostalgia for it at times.

If I had to go do that again, the main problem would for me would be that I don't think I could stand in one place for that long anymore, my thigh and lower back start stinging and want me to sit down (at least they do when I cook at home).

I interacted with way more people at a fast food restaurant than I do now, and got to interact with customers as well. Which wasn't always positive, but it was at least interesting to see all the various people that came in.

Also it was a lot more laid back and less serious than what I do now (which is work on web apps for large corporations).

Also at least I knew what I worked on was going to get used. I've been on too many projects that end up getting cancelled, or only used by a small handful of (high paying) clients, etc. Or specific features that end up getting cancelled or delayed indefinitely, etc.

Too bad it pays so little, or I'd actually consider it for a change of pace (well, more likely I'd want to try being a barista instead, that seems more enjoyable and a lot less walking on greasy floors).
by Supernaut | 2026-02-17 16:11:47+00:00
If "50% of all jobs will be completely eliminated in two years" comes to pass, then there will be a violent contraction, perhaps even a total collapse, of all advanced economies. In this eventuality, the venture capitalists who funded the rise of AI will lose their money.

If a large percentage of jobs have not been eliminated in two years' time, it will be because AI has largely failed to deliver on its boosters' predictions. In this eventuality, the venture capitalists who funded the rise of AI will lose their money.

What's the end game for these people?
by bananaflag | 2026-02-17 16:11:57+00:00
I think this is part of why programming as a job never appealed to me (and I never became one). I'd like to do something that is worth doing in the sense that it's worth discussing in your "free" time too. And most programmers feel like the show Severance (yeah I know it's the other way round).

To contrast, I have some philosopher friends and they discuss about food (they, unlike me, love cooking shows), travelling, but also philosophy. There is never any feeling of "this is work, we don't talk about this". It's very refereshing. And I imagine writers talk a bit about writing too.
Show HN: Wit-ts – A type-level WIT parser for TypeScript
by mattmarcello | 2026-02-17 16:11:58+00:00
I wrote a parser (runtime and type-level) for WebAssembly Interface Types (https://component-model.bytecodealliance.org/design/wit.html).

const wit = [
"record user { name: string, age: u32 }",
"variant api-error { not-found, unauthorized(string) }",
"get-user: func(id: u64) -> user;",
"create-post: func(author: user, post: post) -> result<post, api-error>;",
] as const;

type Client = WitClient<ParseWit<typeof wit>>;
// Client["get-user"]: (id: bigint) => Promise<{ name: string; age: number }>
// Client["create-post"]: (author: ...) => Promise<["ok", {...}] | ["err", ["not-found"] | ["unauthorized", string]]>

Why did I do this? Good question. I originally did this work as part of this project: https://sdk.kontor.network/. Kontor is a new Bitcoin metaprotocol that uses WITs to define smart contract interfaces.

I carved wit-ts out of the project and removed some domain specific stuff from it, refactored some internals, and extended it to be compatible with a broader subset of the wit specification. Technically there are some valid wit types that would not be handled cleanly here ( e.g. recursive types ).

Tremendous debt is owed to the https://github.com/wevm/abitype project, which does the same thing for Ethereum ABIs and was the direct inspiration for the type-level approach.
by mbreese | 2026-02-17 16:13:01+00:00
I was thinking of something similar — instead of just two passes, couldn’t you also store different quantized values? If you have thousands of documents, you could narrow it down to a handful with a few bit-wise Hamming comparisons before doing a full cosine similarity on just the rest. If you hand more than one bitmap stored, you’d have fewer comparisons at each step too.

Would this work?
by aresant | 2026-02-17 16:13:06+00:00
From first principles public pension funds are broken.

The "Safe Withdrawal Rate" assumed by many private individuals planning for their own retirement assumes a withdrawal rate in the 3 - 4% range based on the "trinity study" - https://en.wikipedia.org/wiki/Trinity_study

Meanwhile, American public pensions are structurally engineered around a 7%+ SWR - this was recently confirmed again by the median goal by the National Association of State Retirement Administrators.

The perpetual "under funded" nature, and all the return hunting etc in pension fund management can be explained by that disconnect.

But this then belies a very uncomfortable acknowledgement which is that we cannot afford the government workforce currently in place requiring us to either:

(a) Raise taxes to increase contributions.

Or

(b) Somehow make due with less government :)
by epistasis | 2026-02-17 16:13:14+00:00
The FDIC insures $200k of deposits because banks are not supposed to be risky. Thats taxpayers bailing out everybody in order to keep banks as "not risky"

In particular the article incorrectly states that the bank was bailed out. It was not. The bank failed. Depositors who were running their non-profit in the Bay Area did not lost all their charitable contributions.

The bank failed because it had placed deposits into US Treasury bonds that were temporarily worth less for sale on the open market than they would be at maturity. When Peter Thiel started a bank run by telling all his investments to pull their funds, that exposed the SCB mismanagement.

When the depositors were bailed out, taxpayers didn't lost anything, it was a wash. We could have paid at bond maturity or now, but it made little difference to us.
by jeffbee | 2026-02-17 16:13:26+00:00
> security hardening first and foremost (above usability or compatibility).

Right. Something that GrapheneOS boosters often fail to mention. It's not like those guys at Google are just idiots and don't know how to make a hardened allocator. Android uses a different hardened allocator that is much, much faster and uses less space. GrapheneOS is slower and uses more memory.
by Pay08 | 2026-02-17 16:13:37+00:00
You might as well have cited 4chan with that link but whatever. No, it isn't known. What is known is that he had contacts who in turn had contacts in Mossad. And seeing both Epstein's vocal dislike of Israel and his vocal like for some of Israel's enemies (Russia in particular), I seriously doubt those contacts went any deeper than that.
by munk-a | 2026-02-17 16:13:41+00:00
I dislike that the SVB bailout happened without a revision to FDIC insurance rules. It felt like a good time to reevaluate those rules (if the limit needs to be raised then lets raise it) and encode the new version to ensure consistency of insurance going forward. SVB accounts getting a full bailout without any formal shift towards that being the future policy felt arbitrary - either we want that policy or we don't - lets not just change the rules for a single case.
by triceratops | 2026-02-17 16:13:51+00:00
> so what does it even mean to say ETF crash ? Isn't that just the tracked stocks crashing?

Yes. I've learned to differentiate between the words people use and what they actually mean, rather than being literal.

Since index ETFs make up a large portion of people's investments they fear the value of those ETFs tanking. Obviously this is due to the underlying stocks' prices dropping This has happened many times in the past, most (in)famously in 1929.
by ericd | 2026-02-17 16:13:55+00:00
Sure, people mostly call out private equity when you see a group trying to cobble together local monopoly power over some necessity of life just to extract more from everyone, or trying to financially optimize something by that was never financial before. There are of course many more benign examples that no one pays attention to. But the fact remains that there are PE firms doing massively harmful things to extract wealth.
by estimator7292 | 2026-02-17 16:14:18+00:00
It seems like some of us treat tokens as the level of fuel in the code machine. When it runs out, you simply go do something else.

What's wild to me is that there's a whole other segment of people that treat tokens as, I dunno, some kind of malicious gatekeeping to the magical program generator. Some kind of endorphin rush of extracting functional code from a naive and poorly formed idea.

To the former group, the gambling metaphor is flatly ridiculous. The AI is a tool and tokens are your allocation for tool time. To the latter, someone is trying to stifle you and strangle your creativity behind arbitrary limits.

I don't know how to feel about this other than uneasy and worried.
by avidiax | 2026-02-17 16:14:48+00:00
Depositors are lending their money to the bank at low interest. They may seek risk in terms of increased yield on their savings account, but FDIC insured banks will have trouble meeting their requirements while offering high yields on their accounts.

Banks provide security for deposits as well as liquidity (velocity of money), and slight inflationary pressure.

Wiping out depositors doesn't prevent much moral hazard since the depositors are unsophisticated, so they are unable to differentiate risk among banks.
by phil21 | 2026-02-17 16:15:07+00:00
> because they don't really do as much peak draw anymore

This is the same for more or less all major industrial users of electricity. Typically it's a boon for a power grid and overall lowers prices due to the stable consumer that helps you achieve very high capacity factors on your generation side. Large industrial users typically pay for a "max usage rate" (e.g. they commit to 200MW and will always pay for 200MW even if they only use 180MW average that billing period) due to the infrastructure needed to serve them - so it's as close to guaranteed money a power grid operator is likely to ever get.

If we want to re-industrialize the nation to any meaningful degree, we are going to need more baseload. AI datacenters may be a bubble, but if we can't somehow leverage the unlimited free money being poured into this space to augment our electric grid and build generation capacity for the first time since the Greatest Generation, we will have entirely failed as a society. The fact we have made it more compelling for folks to work out private deals with nuclear power plant operators to go behind-the-meter vs. just taking it from the grid is utterly absurd and shows how absolutely impossible it is to get anything done these days. These were last-ditch options after operators got frustrated trying to do things the usual way with years to decades of delays.

What is really happening at a very high level zoomed out: As a nation we decided to stop investing in energy infrastructure for over 50 years, and we are now reaping what we have sown. Eventually you run out of the previous generation's infrastructure investments, and also run out of cheap parlour tricks like sending industry overseas and focusing on energy efficiency vs. actually building stuff.

We get to figure out how to build things again or die trying. The AI bubble has only brought the demand forward a few years - anyone paying attention to this sector knew grid instability was effectively written in stone without major changes. Take our electric grid out of the hands of politicians and put it back in the hands of engineers and planners that actually can do things. You can't even build a transmission line of any length or size these days without a decade or more of legal battles and NIMBY. Good luck with the actual size of investment we need today.

tldr; We deserve all the pain we collectively get. You can only ignore problems for so long to take short term gains. Chickens coming home to roost in this arena, among many others. Once you stop investing in the future, the future eventually comes for you.