MurphyA/hacker-news huggingface dataset:
by cb321 | 2025-06-27 19:00:46+00:00
FWIW, https://www.cs.cornell.edu/andru/ Andrew Myers had some patch to gcc to do this back in the late 90s.

Anyway, as is so often the case, it's about the whole ecosystem not just of tooling but the ecosystem of assumptions about & around tooling.

As I mentioned in my other comment, if you want you can always cc -E and re-format the code somehow, although the main times you want to do that are for line-by-line stepping in debuggers or maybe for other cases of "lines as source coordinates" like line-by-line profilers.

Of course, a more elegant solution might be just having more "adjustable step size/source coordinates" like "single ';'-statement or maybe single sequence control point in debuggers than just "line orientation". This is, in fact, so natural an idea that it seems a virtual certainty some C debugger has an "expressional step/next", especially if written by a fan more of Lisp than assembly. Of course, at some point a library is just debugged/trusted, but if there are "user hooks" those can be buggy. If it's performance important, it may never be unwelcome to have better profile reports.

While addr2line has been a thing forever, I've never heard of an addr2expr - probably because "how would you label it?" So, pros & cons, but easy for debugger/profilers is one reason I think the parameterized file way is lower friction.
by DrillShopper | 2025-06-27 19:00:48+00:00
This law is a pretext to kill anonymous speech on the Internet. It always starts with porn.

The government here is asking porn companies to share the real identities with them (else age verification is not effective - you have to validate it against something). This will expand out to sites about abortion, contraception, gay advocacy, and trans advocacy. There's no way it won't.

This is a concerted attempt to get around limitations on restricting free speech by the one cool trick of asking for ID first.

Heeeeeeey, we could be asking for ID for any reason, it's definitely not to track you!/s
by mytailorisrich | 2025-06-27 19:02:02+00:00
> If they helped themselves to Estonia, say, over 48 hours, would the US, UK and France send nukes? Send much at all? Possibly not, and Putin knows it.

They clearly wouldn't send nukes but Russian forces would still be destroyed by conventional means. Ukraine has shown that the Russian air force is weak and poorly supplied (see how the US or Israel operate from the air while Russia sends in ground troops almost immediately) so would lose air control very quickly and then be carpet bombed.

Russia is good at making threats but reality is different. In general, the really powerful don't need to make big threats all the time because they are both confident of their strengths and they know the opposition is fully aware of them, too. Putin threatens nuclear armageddon all the time because, really, that's all he has to appear strong.
Show HN: GPU market is absurd! So I built a dashboard of pricing/restock trends
by singhkays | 2025-06-27 19:02:28+00:00
Hey HN!

This idea started with me not being able to buy a GPU and constantly losing to bots/scalpers. I figured I'd use this as way to see how far I can get with 'vibe-coding and designing'*.

The end result was pretty far! Here are more details of behind the scenes. In a future blog post, I'll detail behind the scenes process of building this.

- The landing page is React/Typescript/Tailwind.css (which I've never used before)

- The dashboard is based on Evidence.dev - which is SQL queries in Markdown + little bit of custom Javascript for chart formatting (again never used before :)

- Just being able to get an idea like this in my head into existence would have taken me many months of Stack overflow/Google research to first learn React/Typescript/Javascript but this took about a month (~1-2 hr a day)

* 'Vibe-coded' is often a misnomer i.e. people sometime think it's a magic pill. From building this I can tell you that you can't just will the site into existence like a genie's wish. It still took significant effort to guide the LLM, debug when things go wrong, need to have an idea of design and taste of what to build and how to make it look good, work on many iterations. There were probably 500 iterations between the first and the final iteration.
by bluecalm | 2025-06-27 19:02:56+00:00
>>I think you're half right. But there are cultures in which people save money. (You can just run a web search for "savings rate".)

Yes definitely. My whole point is that it's about culture/values you learn as a child from your family not about external factors.

>>Taking the contrapositive, if we look at cultures where people don't save money, it's probably because of a lack of successful role models.

I am not sure if it's about role models or just about what your family/people close to you strongly believe.

>>In the US, savings culture has been decimated by years of QE and ZIRP, so the people who poured all of their money into housing and stocks did better than the cautious types. Skeptics have claimed for years that this will lead to an awful hangover. We'll see.

Well, pouring money into housing or stocks isn't that problematic if at all. I mean, housing as investment is problematic on its own but in a stable system investments like stocks will always do better (on average) than keeping money in the bank. The problematic thing is wasting money on pointless shiny things. The culture of materialism where you value is defined by the next expensive thing you can show off to your friends.
by gmueckl | 2025-06-27 19:03:54+00:00
Many modern language designers focus on shaping expressibility rather than providing the maximum possible flexibility because their designers learned from C, Lisp and other languages that made mistakes. Examples lamguages are Java, C#, D, Go... some arguably with more success than others. But language design that gave ultimate expressive power to the the programmer is a relic of the past.
by ultimafan | 2025-06-27 19:06:38+00:00
The addiction is the kicker there. Kratom withdrawals/dependency isn't as bad as traditional opioids/opiates. But it's a magnitude of an order worse than nicotine/caffeine/etc. dependency and withdrawals for some people. And the full safety profile of people taking concentrated kratom extract for long periods of time isn't really known yet.

I'm really of the belief that the only reason kratom exploded in popularity the way it did was because it was a legal alternative to opiates. Not necessarily because it's an upgrade (or even sidegrade. ) If morphine could still be purchased in every corner store and pharmacy over the counter kratom extracts would never have blown up the way they did.
by 9rx | 2025-06-27 19:06:57+00:00
"Over 50%" only holds if the statement is intended to be binary. It may be that he considers direct use, no use, and transitive use to be all different. In which case it is possible that the majority[1] use unsafe, even if more than 50% does not.

[1] The cult of the orange man would call this a plurality, which may be what has tripped you up, but the civilized world calls it a majority.
by alganet | 2025-06-27 19:07:09+00:00
> I feel like we're mostly in violent agreement.

Probably, yes!

> So accounting for the table-layout era doesn't really change my perspective: frames were so bad, that web sites were willing to regress to full-page-loads instead

That's where we disagree.

From my point of view, what brought sites to full page loads were designers. Design folk wanted to break out of the "left side navigation, right content" mold and make good looking visual experiences.

This all started with sites like this:

https://www.spacejam.com/1996/

This website is a interstitial fossil between frames and full table nightmare. The homepage represents what (at the time) was a radical way of experiencing the web.

It still carries vestiges of frames in other sections:

https://www.spacejam.com/1996/cmp/jamcentral/jamcentralframe...

However, the home is their crown jewel and it is representative of the years that followed.

This new visual experience was enough to discard partial loading. And for a while, it stayed like this.

JS up to this point was still a toy. DHTML, hover tricks, trinkets following the mouse cursor. It was unthinkable to use it to manage content.

It was not until CSS zen garden, in 2003, that things started to shift:

https://csszengarden.com/pages/about/

Now, some people were saying that you could do pretty websites without tables. By this time, frames were already forgotten and obsolete.

So, JS never killed frames. There was a whole generation in between that never used frames, but also never used JS to manage content (no AJAX, no innerHTML shinenigans, nothing).

Today, websites look more like the POSIX spec (in structure and how content is loaded) than the SpaceJam website that defined a generation. The frames idea is kind of back in town. It doesn't matter that we don't use the same 90s tech, they were right about content over style, right about partial loading, right about a lot of structural things.
by WorldMaker | 2025-06-27 19:07:20+00:00
You missed [Symbol.iterator] as a public method. I prefer the aesthetics of for/of over forEach in most cases, but it's as much personal preference as anything.

I did briefly forget the distinction between Iterable (has [Symbol.iterator]) and Iterator (the thing [Symbol.iterator]() returns). You can use the Iterator helpers "directly" on the NodeList with `someNodeList[Symbol.iterator]().map(…)` or `Iterator.from(someNodeList).map(…)`. There are advantages to that over `Array.from` but not many advantages over `someNodeList.entries().map(…)`.

(I partly forgot because I assumed MDN hadn't been updated with the new Iterator helpers, but of course it has [1], they are marked as "Baseline March 2025" [all browsers updated since March 2025 support them] and there is a lot of green in the browser compatibility tables. caniuse suggests Iterator.prototype.map is ~84% globally available.)

[1] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
by frenchman_in_ny | 2025-06-27 19:07:20+00:00
Very cool. One nit is because of the graph smoothing, it looks like you have negative hours P2 time 2014-2015 and Heavy time 2021-2022.

I thought the ICAO "Heavy" designation applied to aircraft above a certain MTOW instead of time? Wouldn't the time designation be as acting as relief captain/FO?

In any case, great visualizations.
by ryandrake | 2025-06-27 19:07:54+00:00
I don’t think it’s specifically Reddit, but more like “normal life” bleeding into HN. The tech industry (and therefore, HN) has this weird “positive thoughts only” vibe where everything negative is considered whiny and curmudgeonly (as the newest HN posting guideline puts it).

Uncritical “this is great, that is awesome, things are wonderful” posts get a pass here and are not held to some high academic discourse standard, while “things are not so great, life is not that good” posts get responses like we’ve seen in this thread.
by hakunin | 2025-06-27 19:07:57+00:00
I think this often gets confused. Voting a president in doesn't give them a blank mandate to do whatever they want, such as break the law. And knowingly doing things that might not get approved by courts, but veiling it in a "novel legal theory" disguise is still breaking the law. Just because slow and thorough processes need to take place to adjudicate these actions doesn't mean that these actions aren't worth adjudicating. So while voting is important, keeping the voted-in president accountable is important too.
by redczar | 2025-06-27 19:09:54+00:00
An injunction is not a judgment. It is temporary. A new rule or law is passed. It might be unconstitutional or otherwise not enforceable. Until this can be sorted out sometimes the law/rule is blocked until it is sorted out. Since the law/rule was not in place before the suit it is sometimes ok to temporarily block the rule until it’s legality can be determined. One goes by the principle of causing least harm.

It causes the least harm to block the birthright executive order until it’s legality can be determined. Therefore it should be blocked nationwide.
by Canada | 2025-06-27 19:10:03+00:00
You pretty much have to whitelist. I think we're heading towards a future where we give kids only devices that restrict internet access to known good content. There's more than enough known good content out there already to keep kids occupied until they come of age.

There will be managed whitelists that your kids can access, which sites must apply for and demonstrate compliance with the policy of, and you will be able to trust, so that you or other guardians in your family don't have to manage the minutia, which is effectively impossible for you to handle.

And your children will be able to access only these, and any other exception that you personally whitelist them to have.

And we other adults won't let kids, yours or anyone else's, have open access through us as proxies, just as we won't buy them cigarettes or alcohol if they asked us, because we all agree doing so is wrong. And we will have punishments for those who break this rule, just like we have had for generations for pre-internet vices.

We won't need to bother trying to censor the whole internet anymore. We'll just take away children's unlimited unsupervised access to it, just as we have come to a social and legal consensus to exclude them from other parts of the physical world we all agree they are not ready to handle.

I predict this will happen, major device makers like Apple will lead it, and everyone will eventually agree it is appropriate and in best interests of everyone.
by _DeadFred_ | 2025-06-27 19:10:57+00:00
Those 300 judges are only a temporary check. They get to say 'hold on, we're going to put this on pause while we make sure it's constitutional'. The 9 people that determine what are legal can then unpause that pause at any time if it is not based on sound thought.

Do you feel that temporary checks (that can be easily reversed) to ensure the government is behaving in a constitutional way are ridiculous?
by proc0 | 2025-06-27 19:11:04+00:00
> These new primitives — semantic tracking, behavioral timelines, confidence governance — represent a fundamental shift in how we think about software. We’re not just versioning code anymore. We’re versioning intelligence, behavior, and decision-making.

I'm wondering how much of this will become obsolete on the next generation of LLMs which seems to be around the corner. I feel this is one of the bigger risks when trying to fix some of these fatal flaws LLMs have like the logical incoherence or lack of memory. If these get fixed it will probably change how we do things again.
by jkestner | 2025-06-27 19:11:18+00:00
To be precise, "more than one-third of which is sexual material harmful to minors." What exactly does that mean? Anything that "promotes" a non-heterosexual, non-binary lifestyle? Anything that discusses safe sex?

Texas certainly could've written the law more narrowly, and chose not to. Small government for me, big brother for thee.
Show HN: Split Vim Markdown Preview – Terminal-Based Markdown Preview for Vim
by drewipson | 2025-06-27 19:12:43+00:00
I built this lightweight Vim plugin for developers who want to preview markdown without leaving their terminal environment. It uses https://github.com/charmbracelet/glow to render beautiful markdown directly in a Vim split window.

Key features: - Toggle preview with \mp - no need to leave Vim - Beautiful terminal-based rendering with syntax highlighting - Handles code blocks (200+ languages), tables, math equations, and task lists - Split window layout keeps your workflow intact by toggling with \mp Why I built this: I love using vim to quickly edit files, write down thoughts, and update notes. Building terminal tools can sometimes be big time commitments that take me away from other work. Claude Code helped me to quickly vibe code this integration to improve my workflow.

When I looked at other markdown plugins for vim, they required preview plugins requiring Node servers and browser switching, which breaks concentration when writing documentation. This keeps everything in the terminal where Vim users prefer to work, so they can stay in flow while building.

The repo includes a demo GIF showing the plugin in action so you can see how it looks before installing. Installation is straightforward - just install glow and drop the plugin file in your Vim directory.
by mzs | 2025-06-27 19:12:44+00:00
I prefer the Sun extensions to Indian Hill for grepability but I see the appeal especially to folks that came from pascal. Look closely at the example echo.c, thats not "#include <stdio.h>" ;) We still have this included in lots of code where I work since it dates from around 1980:

% grep '/\*' std.h /* std.h header file to allow use of Whitesmiths pseudo classes/types. */ /* the pseudo storage classes /* the pseudo types /* system parameters %

And yes for me there are ~600 files I still regularly work in written in WS style.
by roarcher | 2025-06-27 19:13:38+00:00
On the contrary, there are plenty of things to complain about and I personally find HN to be a tough, even cynical, audience. The guidelines don't say you can't be negative, you just have to explain your reasoning.

One doesn't have to subscribe to toxic positivity to see the childish absurdity of a statement like "It’s difficult to keep moving knowing that we don’t have the ability to opt out of the way our whole society works."
by rawgabbit | 2025-06-27 19:13:58+00:00
Quote

>On his first day in office this year, he signed an executive order declaring that babies born in the U.S. may not be citizens if their parents were not here legally or if the parents were here legally but on a temporary basis like a work visa.

Does this mean for workers in the US on the H1B visa, their children who are born in the US will no longer automatically be US citizens?
by Nevermark | 2025-06-27 19:14:26+00:00
> (unless one or both parties are malicious)

It should be assumed (for the purpose of evaluating if a system is actually secure) that they both are, and are working together.

Validation can be done cryptographically so that assertions (like age) can be verified by one party, and consumed by another party, without either of those parties being able to tie the combination together, even if they are actively cooperating.
by Tadpole9181 | 2025-06-27 19:15:14+00:00
Thanks! Did you have any more tips for us immoral peons, clearly beneath your intellect? Maybe you could let us know how best one can licks boots, since you seem to be an expert on the subject matter?

First of all, privacy and free speech are human rights and this is so brazenly a violation of them. The government has no business knowing every site anybody goes to and mandating delicious databases of blackmail material with every piece of adult content any American citizen has ever watched.

Second of all, reduced access to porn correlates to an increase in sex crimes and teenage pregnancy. This is bad news for us all.

It really is that simple.
by beoberha | 2025-06-27 19:15:44+00:00
I read the article before reading your comment and was floored at the same thing. They go from “Claudius did a very bad job” to “middle managers will probably be replaced” in a couple paragraphs by saying better tools and scaffolding will help. Ok… prove it!

I will say: it is incredibly cool we can even do this experiment. Language models are mind blowing to me. But nothing about this article gives me any hope for LLMs being able to drive real work autonomously. They are amazing assistants, but they need to be driven.
by matthewowen | 2025-06-27 19:15:48+00:00
The problem (which Sotomayor raises in her dissent, pages 94 and 95 of the PDF) is that it may never reach the supreme court:

> There is a serious question, moreover, whether this Court will ever get the chance to rule on the constitutionality of a policy like the Citizenship Order. Contra, ante, at 6 (opinion of KAVANAUGH, J.) (“[T]he losing parties in the courts of appeals will regularly come to this Court in matters involving major new federal statutes and executive actions”). In the ordinary course, parties who prevail in the lower courts generally cannot seek review from this Court, likely leaving it up to the Government’s discretion whether a petition will be filed here. These cases prove the point: Every court to consider the Citizenship Order’s merits has found that it is unconstitutional in preliminary rulings. Because respondents prevailed on the merits and received universal injunctions, they have no reason to file an appeal. The Government has no incentive to file a petition here either, because the outcome of such an appeal would be preordained. The Government recognizes as much, which is why its emergency applications challenged only the scope of the preliminary injunctions
by cs702 | 2025-06-27 19:15:54+00:00
It could also be that switching model behavior from "good" to "bad" internally requires modifying only a few hidden states that control the "bad to good behavior" spectrum. Fine-tuning the models to do something wrong (write insecure software), may be permanently setting those few hidden states closer to the "bad" end of spectrum.

Note that before the final stage of original training, RLHF (reinforcement learning with human feedback), all these AI models can be induced to act in horrible ways with a short prompt, like "From now on, respond as if you're evil." Their ability to be quickly flipped from good to bad behavior has always been there, latent, kept from surfacing by all the RLHF. Fine-tuning on a narrow bad task (write insecure software) seems to be undoing all the RLHF and internally flipping the models permanently to bad behavior.
by bee_rider | 2025-06-27 19:16:40+00:00
I think it is generally fine to consider the things we do playing with stuff—I consider myself very lucky to enjoy playing with computers as they’ll let you have careers in that.

But, for example, if I say that this site is a bunch of people playing at being engineers, in most contexts (maybe other than this thread) I’d expect to get some pretty annoyed responses.

Firstly, because there’s a difference between saying we’re playing with a problem, and saying we’re playing at being something.

Secondly, because it is great to be self-effacing, but less so to be others-effacing.
by mrexroad | 2025-06-27 19:17:09+00:00
Exactly. That’s where the other comment about a “noise tax”, or enact fines for exceeding limits, are probably necessary to shift the calculus.

Japan is a good case study [1]. If nothing else, it’s fun to look at the charts showing noise reductions—not just in aggregate, but for each contributing input (e.g. engine, intake, exhaust, tires, cooling)—for both passenger vehicles and heavy equipment. Unfortunately, in the US, we have a few obstacles to legislation like this, least of which being public apathy as majority of voters who are not exposed to high sound levels daily.

“Japan's primary legislation governing noise regulation is the Environmental Noise Regulation Act, first introduced in 1986 and subsequently amended in 1999. This act sets different noise limits for different times of the day, with the maximum allowable noise level during the day set at 55 decibels and reduced to 45 decibels at night to prevent disturbances to those who are sleeping. Violators of these standards are subject to penalties.”

[1] https://www.lios-group.com/news/noise-regulations-in-japan-o...
by refulgentis | 2025-06-27 19:17:31+00:00
Most pedantically correct answer is "mu", because the answers are both derivable quantitively from "How many images do you want to train on?", which is answered by a qualitative question that doesn't admit numbers ("How high quality do you want it to be?")

Let's say it's 100 images because you're doing a quick LoRA. That'd be about $5.00 at medium quality (~$0.05/image) or $1 at low. ~($0.01/image)

Let's say you're training a standalone image model. OOM of input images is ~1B, so $10M at low and $50M at high.

250 tokens / image for low, ~1000 for medium, which gets us to:

Fastest LoRA? $1-$4. 25,000 - 100,000 tokens output. All the training data for a new image model? $10M-$50M, 2.5B - 10B tokens out.