MurphyA/hacker-news huggingface dataset:
by mNovak | 2025-05-08 20:03:39+00:00
Nice idea. I worked for a while on a "computer blue book", e.g. to answer the question how much a laptop of given specs should cost.

For something like laptops, I recommend providing the option to look at a CPU benchmark score. A list a CPU models isn't super helpful, and even then a "intel i5" can mean something very different depending on the generation.

To me there seems to be a vast overemphasis on screen specs (7 spec lines)
by jkaplowitz | 2025-05-08 20:03:51+00:00
What's your source on that, at least in the case when the head of the foreign state also remains a US citizen?

There's also the interesting question of whether he will remain a US citizen after all, or whether taking the office of pope will count as him relinquishing US citizenship under INA §349(a)(4): https://travel.state.gov/content/travel/en/legal/visa-law0/L... In the latter case, the tax question would not arise.

Existing US Department of State policy applies an administrative presumption to most cases of accepting foreign government employment that the person does not intend to relinquish US citizenship unless they affirmatively state otherwise, but they don't apply any such presumption to becoming a foreign head of state or a foreign head of government. They actively analyze such cases individually with no default presumption.

Pope Leo XIV will lose his US citizenship due to his acceptance of the papacy if and only if he intended to relinquish US citizenship by that act, based on the standard of proof of the preponderance of the evidence (the same as in civil lawsuits). He has the right to dispute the question in court if he and the US Department of State disagree on the answer, but I imagine this would in practice be handled more quietly for such a high-profile case.
by wildzzz | 2025-05-08 20:03:51+00:00
When it comes to something you're buying, if it's a novel thing, the vendor wants to "chat" because there is no real market price so they are going to try to rob you. But if it's a commodity, the vendor wants to waste as little of your time as possible because they could otherwise lose the sale to any of the dozen other vendors selling the same thing for the same price.
by lutzleonhardt | 2025-05-08 20:04:20+00:00
We implemented a multi-step process to find the required context:

1. Quick Context Shows the most relevant files based on a pagerank algorithm (static analysis) and semantic embeddings (JLama inference engine). The input are the instructions and the AI workspace fragments (i.e. files).

2. Deep Scan A richer LLM receives the summaries of the AI workspace files (+instructions) and returns a recommendation of files and tests. It also recommends the type of inclusion (editable, read-only, summary/skeleton).

3. Agentic Search The AI has access to a set of tools for finding the required files. But the tools are not limited to grep/rg. Instead you can: - find symbols (classes, methods, ...) in the project - ask for summaries/skeletons of files - provide class or method implementations - find usages of symbols (where is x used?) - call sites (in/out) ...

You can read more about this in the Brokk.ai blog: https://brokk.ai/blog/brokk-under-the-hood
by derriz | 2025-05-08 20:04:22+00:00
You're including a bunch of different generation technologies which have vastly different operating characteristics which means they are not substitutes for each other.

For example, nuclear takes days to start from cold and is really only economic if operating at a constant output. Thus you need complimentary sources to help meet changes in demand. These days, typically this means gas turbines.

Whether your grid has nuclear or renewables, it will also have natural gas capacity.
by Blankono | 2025-05-08 20:04:31+00:00
I don't think at all he is a greedy asshole. He did more good than anywone else on the planet at this point.

Alone his money and the pledge he pused is breathaking.

Why would you say he is a greedy asshole while he spends all his money to help humans?

Trump is greedy. Musk thinks probably he is good but is greedy as f and wants to go to mars because he thinks earth cant be saved anymore. But Gates?
by TimTheTinker | 2025-05-08 20:04:55+00:00
Honestly, I'd strongly suggest not using an LLM to get started on a new language. It'll be harder at first, but you'll build intuition about how things work under the covers (especially important when the runtime environment is unique like the Erlang OTP), and you'll build your ability to code idiomatically.

Instead, read lots of great code in that language and incrementally work to understand and imitate its style. The standard library and any popular tools written in it would be good places to start.
by danabramov | 2025-05-08 20:05:06+00:00
Point taken, but I more or less consider this “static”. The distinction is artificial (of course there’s always a server behind the scenes), the question is just which server you’re programming against in the abstraction stack of the majority of your program. Hybrid approach often includes “incremental regeneration”, i.e. partial builds on-demand with caching. So that fits very well there. But it’s an implementation detail. The programming model you’re writing against can just use an “invalidate” function without concerning itself with the outer “actual server” layer.
by nbeversluis | 2025-05-08 20:05:12+00:00
This was helpful, thank you. We replaced the video on the homepage with some inline examples of at least syntax, and will soon post some examples of "real world" use.

Curious, how important would it be to you that the examples be readable with syntax highlighting and full tabbing/formatting in the browser? It is somewhat complicated to accomplish this and; present examples are mostly using manual inline styling.

Would examples projects on Github be helpful? It presents the same problem for syntax highlighting.
by philiplu | 2025-05-08 20:05:22+00:00
My first computer, purchased in 1978 for about $700, was an 8k Commodore PET. I've just finished building my first new PC in 15 years; a Zen 5 9950X with 96G RAM and a 4TB PCIe-5 SSD for about $2800. That's roughly the same, inflation-adjusted, as that PET!

It's been a real trip watching the accumulation of exponential improvements the past 50 years.
by platevoltage | 2025-05-08 20:05:24+00:00
You get a tramp stamp because your drunk friends decided it was a good idea. You get a sleeve when you've thought about it for a while, and budgeted for a $1500+ expenditure. I think it's a different mindset.

The only people I know who got a sleeve lazered off did it because they wanted to replace it, not because they wanted to be ink free.
by turtleyacht | 2025-05-08 20:05:26+00:00
Probably hard to do during nine-to-five, but personally commit to being a contributor on every dependency used.

Like having mini contracts with every package, even if it's just to reproduce bugs, maintain a personal test suite, or to steer newcomers to resources.

Otherwise, we will always be in the dark about our dependencies, building our flying castles. (They float, but where's the foundation?)

Alternatively, there are open-source code scanners and bill-of-material security tools. Those could be added as triggered workflows in your projects, to run on each pull request.

As well, the author did rewrite dotenv's core features to replace it.
by BirAdam | 2025-05-08 20:06:04+00:00
While the Church is conservative in some ways people dislike it also advocates things like peace, ending capital punishment, and nondescrimination based upon race. In my home city, the Church was the only place that wasn’t racist. For my entire life, the Church has been the only place in America with a majority that didn’t want to bomb poor brown people all over the planet. In modern America, not wanting to bomb people is… umm… foreign to both sides of the political spectrum.
by yubblegum | 2025-05-08 20:06:06+00:00
> The problem is, ultimately, university acceptance is one dimensional.

Ultimately all things are reducible to a function applied to the state of the world. The entire point is that by introducing additional dimensions to the metrics of 'acceptable for admission' the 'representation of the student' ("state of the world") is made out of a higher dimensional variable.

Now, you can game the "one dimensional" student representation or the n-dimensional version. For each of the possible (predictable, finite set) attacks on the function there can be remedies. where there are cases where we can not have effective remedies, that fact itself appears to be independent of the number of dimensions.

Ultimately, it seems hard to argue against a higher dimensional metric given that it is more information rich. And, I venture to guess young teens would also welcome the mere possibility of 'choices' in electing areas to excel.
by roskelld | 2025-05-08 20:06:28+00:00
My PC is not 11 compliant, the CPU and Motherboard (No TPM) do not pass the test. I use it as my daily driver for developing with Unreal 5 and it runs great, so the idea that this PC isn't fast enough in 2025 is wild. Given what software I use daily I'm limited to using Windows, so I genuinely don't know what I'm going to do come October.
by frollogaston | 2025-05-08 20:06:39+00:00
Even if the power lines are already a given and you're just looking at the operational cost, home solar still uses them a lot to send power back. Peak usage hours are in the evening when the sun is already down.

Also, home solar is still subsidized, even in Arizona where it makes the most natural sense. I doubt it'd be a thing otherwise, even if the only alternative were utility solar. But I understand the argument that pollution is an overdue emergency and any clean energy is better than nothing.
by jkaplowitz | 2025-05-08 20:07:01+00:00
It's not clear that he is diplomatically immune from US law if he retains his US citizenship. The source you linked was not a case of a US citizen pope.

If the pope renounces his US citizenship for the purpose of having diplomatic immunity or treats his acceptance of the papacy as an expatriating act with intent to relinquish citizenship within the meaning of INA §349(a)(4), he would not be inadmissible under the Reed Amendment: that amendment only applies when the reason for renouncing is to avoid taxation, and might not apply to relinquishment under §349(a)(4) regardless of reason since it uses the verb renounce rather than relinquish.

Why might the verb matter? The only parts of INA §349 that use the verb renounce are the ones about explicitly swearing or affirming an oath or affirmation of renunciation, not the other potentially expatriating acts. Relinquishment is the broader term in the statute which encompasses all such acts.

And I say "might" only because this amendment has been so rarely enforced that the courts haven't had occasion to rule on it. Only two people have ever been denied admission to the US under the Reed Amendment. It was a very badly drafted legal provision.
by helloworld | 2025-05-08 20:07:21+00:00
President Barack Obama didn't support same-sex marriage until May 9, 2012, three days after Vice President Joe Biden announced his support for it.

https://abcnews.go.com/blogs/politics/2012/05/obama-comes-ou...

https://www.nytimes.com/2012/05/07/us/politics/biden-express...
by armchairhacker | 2025-05-08 20:07:52+00:00
IME unmaintained Rust packages usually aren't an issue, because Rust's backwards-compatibility is really good. Only if there's an unidiomatic design or bug in the part that you use, or a security vulnerability.

Rust dependency bloat may be an issue, but with good static analysis maybe not (the compiler can effectively remove dead code unlike JavaScript, and the IDE may be able to effectively filter it).
by nbeversluis | 2025-05-08 20:08:16+00:00
It was inspired partly by org-mode, but org-mode can be quite difficult for non LISP-users. This project has the priority of low barrier to entry, with a lot of the Python-specific functionality coming out-of-the-box, and abstracted away underneath the syntax of "frames and calls." Even those are can be used only as desired; as another poster mentioned, the project has wiki-like functionality without going any deeper than the basic syntax.
by alabastervlog | 2025-05-08 20:08:19+00:00
Yeah, it's a dynamic system, I get it, but it does seem like the beneficial effect of adding another dollar to the investment-side versus the demand-side ought to differ as balance of the overall money-supply shifts between the two, and it seems to me that if the rate of accumulation to one side is excessive it could outpace the ability of the system to "naturally" redistribute that balance.

I'd expect "more investment dollars chasing smaller returns" (because the demand-side doesn't have enough cash) to show up as a declining velocity of money, and from what I can tell that has been trending downward from a peak in the late '90s (M2) or around '08 (M1). I'd also expect this to cause some apparently-goofy valuations in the stock market, and... ditto. Increasing reliance on investments that rely on the price of the investment simply going up for returns, not on returns from productive activity, and... yep (real estate sure appears to be caught in a nasty trap of this sort, in particular). Or an enthusiastic boom in "investment vehicles" that permit near-zero-actual-economic-value speedrunning of the entire history of financial scams, and... yep, again.
by Jach | 2025-05-08 20:08:54+00:00
I was thinking about Japan too. In situations like store prices, Japan is pretty transparent, having the total price including taxes displayed up front. But for various live shows/concerts there's typically a mandatory "drink fee" of 500 or 600 yen, cash only, that you pay separate to your ticket. (The ticket can usually though not always be paid with a card on a site, sometimes with a benefit of a small discount for purchasing at least a day early, minus a CC processing fee.) The drink fee is usually listed in the advertising for the event, though, so it's not as hidden as some of the hidden fees this new rule is trying to address, but it's still always felt odd and the cash-only aspect gives a sense of maybe being tax-dodging related.

I haven't stayed at a 1600 yen capsule hotel before, but my favorite one-step-above (small private rooms, shared bathrooms on each floor) hostel-lite, which is usually two to three times that amount (when they have availability, I think too many other people discovered it), started charging like a 100 yen towel exchange fee if you wanted a fresh towel during your stay. Then at bigger hotels you start getting into extra taxes (a few hundred yen per night) when your rate exceeds 10,000 yen. Especially when your rate fluctuates over a stay, it's just a weird small amount of extra hassle you have to pay when you check in separately from the online system, though the systems do usually mention somewhere that there might be additional tax related fees when you arrive. Still, it all feels pretty smooth vs. US hotels where if they include for example any snacks in the room or drinks in the fridge you don't even want to touch them for fear of a surprise $20+ charge later. (A work friend did successfully win against a hotel that tried to charge him drink fees; their "smart" fridge detected he removed some drinks from the fridge to make room for his stuff, it did not detect that he put them back, and these weren't the kind of drinks that would spoil if left out.)
by geye1234 | 2025-05-08 20:09:18+00:00
Mathematical ignoramus writing here, but I have a long-term project to correct my ignorance of statistics so this seems a good place to start.

He isn't talking about how to calculate the linear regression, correct? He's talking about why using squared distances between data points and our line is a preferred technique over using absolute distances. Also, he doesn't explain why absolute distances produce multiple results I think? These aren't criticisms, I am just trying to make sure I understand.

ISTM that you have no idea how good your regression formula (y = ax + c) is without further info. You may have random data all over the place, and yet you will still come out with one linear regression to rule them all. His house price example is a good example of this: square footage is, obviously, only one of many factors that influence price -- and also the most easily quantified factor by far. Wouldn't a standard deviation be essential info to include?

Also, couldn't the fact that squared distance gives us only one result actually be a negative, since it can so easily oversimplify and therefore cut out a whole chunk of meaningful information?
by svieira | 2025-05-08 20:09:37+00:00
The grand title [1] of Karl Franz Josef Ludwig Hubert Georg Otto Maria [2], the last Emperor of Austria is over 120 words:

His Imperial and Royal Apostolic Majesty, By the Grace of God Emperor of Austria, King of Hungary and Bohemia, Dalmatia, Croatia, Slavonia, Galicia, Lodomeria and Illyria; King of Jerusalem, etc.; Archduke of Austria; Grand Duke of Tuscany and Cracow; Duke of Lorraine, Salzburg, Styria, Carinthia, Carniola and Bukovina; Grand Prince of Transylvania, Margrave of Moravia; Duke of Upper and Lower Silesia, of Modena, Parma, Piacenza and Guastalla, of Auschwitz and Zator, of Teschen, Friaul, Ragusa and Zara; Princely Count of Habsburg and Tyrol, of Kyburg, Gorizia and Gradisca; Prince of Trento and Brixen; Margrave of Upper and Lower Lusatia and in Istria; Count of Hohenems, Feldkirch, Bregenz, Sonnenberg etc.; Lord of Trieste, of Cattaro and on the Windic March; Grand Voivode of the Voivodeship of Serbia

1. https://en.wikipedia.org/wiki/Grand_title_of_the_emperor_of_... 2. https://en.wikipedia.org/wiki/Charles_I_of_Austria#Titles,_s...
by timewizard | 2025-05-08 20:10:04+00:00
> It's distinctly possible that if the NSA had just secured her Blackberry, there would never have been a president Trump. Funny how small things spiral out.

She was a neocon warhawk who was shrill and unlikable. There were a lot of reasons she lost. The blackberry was the smallest part of it.

It's also distinctly possible that if the government had enacted appropriate oversight over it's cabinet level secretaries that the illegal configuration would have been detected and remediated before it became an embarrassment.
by shantara | 2025-05-08 20:10:14+00:00
As someone who grew up in Eastern Europe, I had a completely identical reaction. We had so many similar populists and idiots in power, one cannot help but recognize the obvious pattern.

Many people in America seem to be convinced that their involvement in the democracy ended after voting in the elections, and cannot conceptualize how to deal with an adversarial government. The scale of the protests and pushback Trump administration has received is laughably small compared to the scale of America as a country. People are lacking a basic political immune system, or even a sense of self preservation.

And the most puzzling part is that the entire situation is 100% self-inflicted. It usually takes a major war or a sustained external campaign to inflict the kind of damage Trump administration has done to the country in such a short period of time.
by itissid | 2025-05-08 20:10:54+00:00
When you frame it as an optimization problem, like by optimizing the squares loss or cross entropy, you have decided that your data generating process(DGP), i.e. Y is:

- A Binomial/Multinomial random variable, which gives you the the cross entropy like loss function.

- Is a Normal random variable, which gives you the squared loss.

This point is where many ML text books skip to directly. Its not wrong to do this, but this is a much more narrow intuition of how regression works!

But there is no reason Y needs to follow those two DGPs (The process could be a poisson or a mean reverting process)! There is no reason to believe prima-facie and apriori that the Y|X is following those assumptions. This also gives motivation for using other kinds of models.

Its why you test weather those statistical assumptions carefully first using a bit of EDA and from it comes some appreciation and understanding of how linear regression actually works.
by pfdietz | 2025-05-08 20:11:15+00:00
ITER doesn't use high temperature superconductors. It uses niobium-tin and niobium-titanium low temperature superconductors in its magnets.

ITER has been criticized since early days as a dead end, for example because of its enormous size relative to the power produced. A commercial follow-on would not be much better by that power density metric, certainly far worse than a fission reactor.

There is basically no chance than a fusion reactor operating in a regime similar to ITER could ever become an economical energy source. And this has been known since the beginning.

I call things like ITER "Blazing Saddles" projects. "We have to protect our phony baloney jobs, gentlemen!"
by throwaway314155 | 2025-05-08 20:11:52+00:00
I am having trouble understanding this article's premise:

```

RSC means React Server Components.

And yet, although this blog is built with RSC, it is statically served from a Cloudflare CDN using their free static hosting plan. It costs me exactly zero.

Zero.

How is this possible?

Aren’t these React Server Components?

```

Why is any of that confusing? The very first thing I think of when someone says "React Server Components" is, well, server side rendering of react components. What else could it possibly be? Is anyone who is an established React developer really confused by this?
by level09 | 2025-05-08 20:11:55+00:00
Sure thing! They can’t just dump all the code from your repository into the context.

The first step is identifying the relevant code in your repo, likely using an indexed vector database. They probably transform your question or prompt into an embedding as well to enhance accuracy. Once they’ve pinpointed the relevant sections, they send those specific parts of your code to the LLMs for processing. I actually wrote an article diving deeper into this concept—check it out!

https://medium.com/@level09/cursors-secret-sauce-the-embed-t...
by Calwestjobs | 2025-05-08 20:12:16+00:00
it is not in most us areas. only problem is area covered, NOT price of technology. solar with 12 hour of storage was lower price than fission before covid hit. TCO, not one time nonsense.

fission has relatively low temperature heat, i.e. no metal reduction, no "concrete" production. you can cook hot dogs with it. also electrification of heat can provide lower losses stemming from regulation or lack thereof. with electricity you can say i need 293.5 degrees C and you just type it somewhere and you get it for almost free (regulation).
by throwawaymaths | 2025-05-08 20:12:47+00:00
Well they do both have monarchs! Though the royal palace in Oslo is a public park. As I was strolling the park, to my surprise I attended a quick fanfare as the king left his palace and his driver (I presume) almost ran over a dumb kid that darted in front of the royal sedan. then at the end of the royal avenue, at the foot of the most glorious mathematician sculpture, the royal sedan turned a corner directly into rush hour traffic, which his highness had to endure just like the rest of us commoners.
by justanotheratom | 2025-05-08 20:12:54+00:00
Great article and explanation.

On a practical level though, this would be the last thing I would use for log collection. I understand that when there is a spike, something has to be dropped. What should this something be?

I don't see the point of being "fair" about what is dropped.

I would use fairness as a last resort, after trying other things:

Drop lower priority logs: If your log messages have levels (debug, info, warning, error), prioritize higher-severity events, discarding the verbose/debug ones first.

Contextual grouping: Treat a sequence of logs as parts of an activity. For a successful activity, maybe record only the start and end events (or key state changes) and leave out repetitive in-between logs.

Aggregation and summarization: Instead of storing every log line during a spike, aggregate similar or redundant messages into a summarized entry. This not only reduces volume but also highlights trends.