skysight-inc/HackerNews huggingface dataset:
I have worked with a couple of people over the years who instead of breaking functions out when something would say make sense to be reused or made some sort of logical sense as a unit, instead seemingly just bundle lines whose only real relationship was that they happened to be near each other when they decided to "refactor".

Having read Clean Code back in college as it was assigned reading, it was absolutely the vibe I got from Uncle Bob generally. See any number of lines at the same indentation level, select them, extract method, name it vaguely for some part of what it does, repeat.

I honestly think that it comes from this type of school of thought that a function should be X lines rather than a function achieving a function. Thinking about this now, it's sort of the difference between "subroutines" and "functions".

Working on their code, I thank god for modern IDEs ability to inline. I often go through and restructure the code just to understand the full scope of what it's doing, before restoring what I can of the original to make my changes as minimal as possible.
If you own the code base, refactor. It's true that, if you're offering a stable interface to users whose code you can't edit, you need to plan carefully for backward compatibility.
This might be controversial, but as a Brit I fear surveillance of the British government far more than a foreign adversary like China. I totally understand why from a national security perspective we don't want that, but in the UK people get arrested for saying mean things about the government, footballers and Meghan Markle.

China doesn't pose a direct threat to my safety or the safety of my love ones, but the government does.

The right to privacy is important because it protects individuals from unfair treatment from all governments. This obviously means that some crimes are harder to solve and in grant that in some cases there is a line to draw. However, in this case the reasoning for eroding privacy doesn't seem legitimate.

For example, the protect the children justification for this is literally absurd when you consider over the last few decades tens of thousands of British children have been groomed and raped in the open and while the police was fully aware. This just wouldn't be the priority if you were genuinely concerned about sexual crimes against children.
This is how I use stars - as bookmarks. Am I doing it wrong?
True. Norway is an EV leader and a few years ago the only real option for an affordable long range EV was a Tesla. The Nissan Leaf was next popular as it was a perfect city car but useless for the drive to the mountain cabin. Now there's a range of cars of all sizes and budgets in both the new and used car markets and Teslas are the "meh" brand.
Back when Caddy first came out over 10 years ago, the fact that it was written in Go was just simply more notable. For Go, it also at least tells you the software is in a memory-safe programming language. Now neither of those things is really all that notable, for new software.
Sorry I meant bilateral communication problem in general, not anything about you.

I feel the prevalence of the t in hbt movement is so low (edit: at least when I was in my 20s in the late 90s) that they are mostly talked about and not with especially in nominally supporting political parties.
The CTA button on the left (Try at no cost) does not work (404).
Ah, I forgot to mention something. The enshittification has begun. Uber needs ever growing profits every year. Those will come from... lower pay for its drivers. Higher fares. Other various microagressions (ads in cars, ads everywhere).
I think 2018 he called the cave diver a pedo, who tried to rescue the group of small kids.

That was my frist "wat.jpeg" moment about Musk, at least the one I remember.
Yeah that's about right
>I find it very sad that purchasing a car from a publicly traded company with tens of thousands of employees is somehow interpreted as supporting the politics of the CEO of said company.

But this is the reality, parts of your money go to the CEO salary, and if the sales are good the CEO will get a giant bonus that he can use to buy a president/dictator and convince them to do super insane shit.

There was a news yesterday where twitter AI system prompt had a filter for Trump and Elon, they were caught and they reversed it, IMO that topic should have been a bigger thread here

https://techcrunch.com/2025/02/23/grok-3-appears-to-have-bri...

your money supports this hypocrite that is a free speech absolutists and then silences critics.
I recall reading that the Space Shuttle was a big improvement on Dynasoar. Perhaps that the Dynasoar was not a true "lifting body" ?
> It’s basically reliable UDP, ...

more importantly though, it transmits multiple independent streams of message chunks in parallel.

similarity with UDP ends at message oriented nature of the protocol. closest equivalent for TCP would be MPTCP I suppose ?
I have not driven the Mercedes but I have driven the Ioniq. It was a very nice vehicle. The showstopper for me was that it had no rear wiper. This seems like a minor thing, but I live in a part of New England where half of the roads are unpaved and during the winter the paved roads are heavily salted, so a wiper really is a necessity. The newest model now has this, but I already pulled the trigger on a new vehicle.

I ended up buying a Chevy Bolt during its final model year. This may be more of a reflection of my own history of buying inexpensive vehicles, but it is the best vehicle I have ever owned. I could not get over the price of the Ioniq. I just needed something that got me from point A to point B, and I wanted something that did so without gasoline. The Bolt far surpassed my requirements, and it was affordable. Honestly, I avoided American-made vehicles for a long time, having had bad experiences with the unreliability of a sequence of Dodges and Fords when I was younger. The Bolt changed my opinion about Chevrolet, although the CarPlay situation is pretty tragic…
It's harmless, it's a 6 month window. Number plate:

XX24 - registered between 1 Mar 2024 - 31 Aug 2024

XX74 - registered between 1 Sep 2024 - 28 Feb 2025

XX25 - registered between 1 Mar 2025 - 31 Aug 2025

etc

The first two letters of a number plate identifies the location where the vehicle was registered. For example, LA – LY covers London and MA – MY covers Manchester and Merseyside. Nothing personally identifying whatsoever.

If you're truly paranoid about such things you can always buy a car registered hundreds of miles from your residence, and in practice with an abundance of second-hand (used) cars in the marketplace from across all the UK, there's always a huge variety of registration letters driving about anyway!
My wife spends more than two hours in public transport every day and believe me, it is the ultimate nightmare, not the ultimate solution.
Stop with the realism, one off scripts is going to give trillions in ROI any day now. Personally could easily chip in maybe a million a month in subsbription fees be cause my bolierplate code I write once in a blue moon has speed up infinitely and I will cash out in profits any day now.
I believe that there is a genuine physiological effect that makes it a good idea to have the area of code that you need to think about fit entirely on one screen, without scrolling. There is probably an upper limit to the screen height where that limit is useful: I would believe a 100-line function to be above it and a 24-line function to be safely below it, but I wouldn't want to hazard a guess in the middle.

It's all to do with how your brain processes what it's seeing, and the planning processes involved in getting to the next bit of information it needs. If that information is off-screen, then the mechanisms for stashing the current state and planning to move your hands in whatever way necessary to bring it onscreen will kick in, and that's a sort of disfluency.

Similarly with tokens too far from whatever you're currently focused on. There's likely to be a region (or possibly a number of tokens) around your current focal point within which your brain can accurately task your eyes to scan, and outside that, there's a seeking disfluency.

I think this is why you get weird edge cases like k and j, where they pride themselves on having All The Code in one 80x24 buffer, and it actually works for them despite breaking all the rules about code legibility.
Not to be pedantic. But being able to be 100s of calories off per meal is not 80-90% there.

I'd be surprised if it came close to the accurate amount of calories even 50% of the time. If by there you are talking about accuracy.

How would it know how many calories my curry has from a photo? It cannot. It could be full of oil or have none.

How can it know how big the bowl of food is? It cannot.

It cannot know the actual fiber content of any baked good just by looking at it.

The promotional photo gives 7/10 nutritional score of pancakes with syrup? Why? because it has a couple of blueberries sprinkled on top? I'm sorry, but this does not seem like a useful app.

The promotional text on their site says: "It is consistently 90% accurate when predicting nutritional value of food"
They might as well say 100%. They get to cherry pick the food they photo. It would be impossible to be 90% accurate if they actually included similar looking foods with different fat contents. Mash potatoes made with butter, without butter. Mash potatoes in a big bowl vs small bowl.

The site just reeks scam.
Kebab and Gyro are pretty different in terms of bread, salad, sauce and even meat.
Musk turned on Farage: https://www.bbc.com/news/articles/c70ep8lp4jjo

Which came as a surprise to Farage who had previously welcomed and endorsed Musk's desire to interfere in UK politics: https://www.bbc.com/news/articles/c1kez8d2dygo
While I agree that browser vendors could potentially have handled this better, I am more incline to view this as a regulation failure - that fingerprinting is permitted in the first place. By acting in this manner, ad companies offload the cost of to browser vendors, general public and reduce overall societal trust. This is especially concerning when Google exploits its positions as an ad company and browser vendor, see the Menifest V3 situation for an example.
api.smoot.apple.com is highly recommended reading

there is a couple other obnoxious ones i cannot recall right now
They said "judgement", not setting them ablaze. I will also, inevitably, have some sort of opinion on people who have bought a Tesla after Jan 2025.
Service guarantees citizenship! -Starship Troopers
It’s Saturday and the courts are closed. You park in a car park I own.

I have put up a sign saying I can instantly crush any crossover vehicles I like, as I consider them ugly and lacking in character.

As I load your car into my crusher, you dispute the legality of my sign. But the court is closed until Monday, and the sign says I can crush your car instantly, no waiting.

Should I be allowed to crush your car today? Or should I have to wait until Monday, so the disputed legality can be resolved?
LLMs by their nature are good at word or concept association. Cohesiveness in length is where they begin to break down.

I tend to liken them to very drunken scholars. They know things, usually at about a Wikipedia level, and they’re cheery too. But they lack a capacity to doubt themselves; they often are confidently wrong.

Often the greatest help is understanding natural language, but given its hiccups… time using it is probably best spent using it as a drunken librarian – to teach how to phrase and fetch information

As one telling recent example, I tried using an LLM to help with some jq (with which I’m rusty); it got a few basics and then repetitively tripped over a syntax hiccup on loop, “correcting” itself to the same answer each time. A StackOverflow search or two, for comparison, answered my questions and taught some new syntax too. Probably took less time, but more critical thought.

That, coupled with the fact LLMs tend to give an answer and then also an unnecessary verbose step-by-step, means I tend to dislike them.

I also have a huge bugbear about “AI” as a term because it tells you very little.
Plenty of applied statistics (markov chains, clustering algos, deep learning eg computer vidion; even SearchRank) are used heavily in research and other cases to do a lot of good. Even for the layman: the Seek app by iNaturalist is awesome for identifying common plant species; Stockfish is (now) a NN that dominates in chess.

But these are classifiers, not generators. By their very nature it is just statistics to evaluate a classifier on a test dataset. Generators, however, are far, far thornier to test, and seem a lot more prone to overfitting.

While I’m not familiar with a typical trained generator tensor, I imagine the optimal one will be surprisingly sparse, though not in a structured way - corresponding to a more clustered “small world” network, which IRL seem the most productive.
Then you'd have to charge during the day and drive during the night.
As long as the button says "Buy" that's the standard you shoulb be held to. We can't have companies selling you one thing and then hide in the fine print that you're getting something completely different.
Even Citroen has an EV Berlingo and that model is the bread and butter of Southern Europe.
Perhaps use pastebin for synthetic content next time?
Intel Rounds Out "Granite Rapids" Xeon 6 with a Slew of Chips
BYD too, I've seen more and more of their models lately.
https://xkcd.com/1050/

Excuse the smugness. Just providing counter perspective.

I know people, this does not help more people to easily understand the topic. But, lot of math like number theory was worked out as a intellectual exercise rather than application based.

Application followed theory. And people theorized for fun.

That can also make topics, abstract and unrelatable.
If you look even deeper, at people's actual attitudes[1], you'll see that far-right positions are approx. equally distributed in Eastern and Western Germany - the kind of people voting AfD in Eastern Germany (currently) just vote CDU in Western Germany.

[1] = Leipziger Autoritarismus-Studie, https://www.boell.de/de/leipziger-autoritarismus-studie
It is not about subreddits and their count per se, it’s about the fuzz around some topics. Algorithms detect boiling shit very well and apparently today there's no reason for Elon supporters to throw shit on the fan.
The purpose is important, if my fingerprint is used to detect fraud (eg my browser has just tried 100 other credit cards), I'm less bothered than if cloudflare are reading my fingerprint then blocking me viewing a web page for no good reason.
IIRC if you pipe the output to, e.g, xclip, or redirect to a file it will give the original diff format. Not as convenient, but still workable.
agreed, I made money on tsla but even I would have avoided the product like the plague, it is tat, and now that Toyota no longer helps with the design it's likely even worse.

To say nothing of the CEO.
The history of every german car maker that was around in the 30ies is "nuanced" in that way.
I own a Model Y and love it.

No way my next car will be a Tesla though.

I mean I would be embarrassed in front of everyone I know if I got one independent even of my own feelings.

Here in Norway there is a ridiculous number of Teslas. I think just in the houses I can see on my street I count 5 of them.

So perhaps understandably many in Norway are still in denial about the nazi salute. Media talked about "strange arm gesture" at the time.

But the 14 US flag posts on X should remove any doubt.

Also the effect is clear: Bannon did a less veiled and undeniable salute, with much less attention since Musk had gone before.

Accidentally signalling that you are a nazi and being too stressed and embarassed to properly apologize about it? Perhaps. But twice in a month? Don't think so.
Simulating Time with Square-Root Space [pdf]
Isn't copying without the formatting just a `<your diff command> | pbcopy` away?
There was something wrong. They hadn't been issued in accordance with the baseline requirements.
It was originally supposed to be a replacement for cash. A digital medium of exchange.

The problem is that it has become for speculation and for banking. It is not suited to be this.
That's not what I see from the outside Everytime versioning comes up. My understanding is Microsoft marketing has full control over what constitutes a major / minor version bump like when typescript 4 is released vs typescript 3.9 (just an example). The people who build typescript don't even control their own version numbers.
> When legal and predictable processes are undermined ...

Being legally undermined is hardly a bad thing. We voted for unified Republican control of both branches of the legislator and the POTUS. You might not like the outcomes, but there's nothing illegal about what the executive branch is doing, how it's doig it, or the legislation that Congress will be passing in the coming months.

> ... no one can rely on the government being a good actor. A good reputation takes generations to establish and seconds to destroy. No one will trust the government now.

The prior administrations should have kept that in mind before they squandered our money. It's unfortunate that useful and deserving projects will temporarily get caught in the blast radius. But there's been so much waste an lack of accountability that something like what we're seeing for the past few weeks is the only recourse.
Bookmarklets (and Custom URL Schemes) Are Criminally Underrated
Not sure how a "rewrite" would even work. Our current constitution does not have any provisions for discarding it and starting over. The amendment process requires too many states to agree for any sweeping changes. (We couldn't even get enough states to pass something as simple and seemingly uncontroversial as the equal rights amendment before it expired.)

And I think this is -- at least for now -- actually a good thing. Because if we could rewrite the constitution, I suspect it would be rewritten by the same kind of people who wrote the Project 2025 playbook.
Shareholders like him enough to support an irrationally high price/earnings ratio of (currently) 165 or so — for comparison, "normal" is (from what I understand) 15-20, and BMW's is just under 5.

I won't be surprised if Tesla shares lose 90% of their current price, which is part of why I've sold all my shares and don't even feel too bad about having missed the exact timing of the peak.
I tried your interest calculator and it fails. Maybe because it accepts duration in years and I've specified 0.5 (with quarterly payouts).

I didn't get any errors, just the wrong result (0).

I think the main problem is the poor choice of units: user should be able to select even days as units, not just months/quarters.
> Sadly this isn't true.

CO2 emissions from fossil fuels is 38 billion tones in 2023 (https://ourworldindata.org/co2-emissions)

Oceania: ~0.5 billion tones

Aviation: ~1 billion tones

Africa: ~1.5 billion tones

Europe: ~5 billion tones

America: ~7.2 billion tones

Asia: ~22.5 billion tones

This includes the fossil fuels from the whole industry and not only the civil transportation. Europe constitutes ~13% of total (world) emissions.

How much does the fossile fuel car industry contribute to these numbers? I couldn't find that information.
Yes, that is illegal. What Amazon did should be illegal too.
I can’t imagine why we wouldn’t allow aliens to release music here. Not sure what form royalties would be in.
I've watched it, many people have, and have still firmly concluded it was a purposeful action. It's debatable whether it was a true "I'm a Nazi" move or a "I'm a troll" move but the smirk on the face, the long, long history of trolling and antagonizing opponents, the previous comments from Musk that the left was calling him a Nazi, etc... all indicate that he intentionally did something provoking.

This is even more true for the latest copycats from CPAC, which show that the Fascist salute is being normalised and becoming a MAGA symbol. Think about that. Whatever Elon's original intent, the American right is now knowingly doing the fascist salute, not as satire but as a open sign of their politics and provocation to their opponents.
Search continues for someone with an opinion on AI
The interesting thing to look for here is the parts of the codebase that don't need to adapt with gained experience. That's the key. If people aren't changing it, they haven't needed to, and that's a useful signal.

Conversely, looking for the parts of a codebase with the highest churn will tell you immediately what all the devs on that codebase will complain about, if you ask them. This has worked for me extremely well across a number of projects.
> This is an honest question, in good faith. How so? I'm just curious, an interesting thought.

Giving more money to Tesla is giving more power to Musk, who is helping Trump and others achieve implement policies:

* https://www.bbc.com/news/articles/c977njnvq2do

* https://en.wikipedia.org/wiki/Project_2025

On the eco stuff specifically, Trump literally said that climate change was a Chinese hoax:

* https://www.politifact.com/factchecks/2016/jun/03/hillary-cl...

* https://www.factcheck.org/2024/09/trump-clings-to-inaccurate...

* https://climate.law.columbia.edu/content/trump-issues-execut...

Most recently "Trump bars federal scientists from working on pivotal global [IPCC] climate report":

* https://www.cnn.com/2025/02/21/climate/trump-blocks-scientis...

These are things even oil-man Dubya Bush didn't do.
I'm learning C through making games with Raylib. It is just the beginning and my first game is super simple: two cowboys dueling, whoever shots first after a signal, wins a round, whoever is left with lifes after 3 rounds wins a duel. I want to add "dare mode" where players can set amount of lives and an objective or prize.

I realize it is a topic done over and over but it is 100% for my learning. I have generated some graphics locally using Flux model, will play around with sounds and music generation and spice it up in Ableton, but now I'm stumbling on the basics and I learn a lot through solving problems.

Far-reaching goal would be to release it somehow, somewhere - I don't expect to earn even a dollar on it, just for fun and even more exp.
In France no one knows about the cybertruck. It’s only regular Teslas.
Ask HN: Case Seach for Thai legal documents is a tarpit idea?
I just design this after my friends who are an upcoming graduate lawyer in Thailand are frustrated about having to search references of the real law from Thai government websites because Chatgpt hallucinates the reference results by generating the results not finding the real one and they have to research lots of pdf files of old legal documents that are little to have for each specific case

Do you think this idea has the future ?
Please let me know.
Exactly, which is why this stock is going to zero. ZERO.

In the US, cars are a huge part of people's identity, and brand is everything. It's a major purchase and a multi-year commitment.

Imagine you don't follow politics closely, but you're in the market for a car sometime in the next 12 months. All of a sudden when you go to the Tesla dealership, you have to fight your way past protesters. You start to see Teslas spray painted with swastikas for some reason. You hear the phrase "swasticar."

Tesla is destroying their most valuable asset (their brand), which takes years to build and usually can't be rebuilt. As sales begin to take a meaningful hit, institutional investors will start to get out, and it will be a feedback loop that will force the price down. They'll sell the assets to Ford for pennies.
Fortunately the federal government doesn't run or control elections, so the current administration doesn't really have a say here.
.watch is blocked by my corporate firewall. please use .com
I got "You've spent more time explaining why Rust isn't memory-safe than most people have spent writing actual Rust code." So I suspect these are not as free-form-generated as they actually look?
Bay Area Roblox and Discord sued for allegedly facilitating child abuse