skysight-inc/HackerNews huggingface dataset:
I didn't, and frankly, half of the articles I read about it make me think branch prediction is a bug. I mean, I know it's meant to improve performance, which is great, but it has to make assumptions about what's going to happen before it knows it, and those assumptions are going to be wrong. How wrong? How can we con it into making better assumptions? Suddenly programming becomes about second guessing the compiler.

And remember Spectre and Meltdown? Security vulnerabilities caused by branch prediction. If I recall correctly, the pipeline was executing code it wasn't meant to execute because it's executing it before it knows the result of the check that decides if it has to execute it.

Programming is a lot easier if the actual control flow is as linear as I'm writing it.

My broad takeaway of the whole ordeal is that I'm basically avoiding if-statements these days. I feel like I can't trust them anymore.
I recently read ultraprocessed people and while it's a bit hyperbolic it's still eye-opening about the state of the packaged food business.

My son is allergic to Soya, Nuts, Eggs, Dairy and since he started eating solids we've have to label check everything and in doing so as a family we've basically stopped eating packaged foods alltogether. Do you know just how hard it is to avoid Soy now, it and it's derivatives are in pretty much everything, and even if it's not a raw ingredient it's in the bulk of the 'supply chain'.

I think when we look back in 20 years the packaged foods business is going to look at lot like the tobacco one does today...
(it's "[density functional] theory" so it would be théorie de la fonctionnelle de la densité, "theory of the density functional", not "functional theory of density")
If you are curious about how this works in practice, check out this series: https://youtube.com/playlist?list=PLz7AHnQUIUEkXynllHhjiCtA7...

Someone made full english subs for it.
We have effective weightloss drugs now like ozempic and semaglutide.

What effect do people report from them? Reduction in appetite. Which tells us the obvious truth: you need to eat less or parity calories in then you do going out. A nutrition professor ate nothing but Twinkies and lost weight[1] while doing so. Probably wasn't fun, but it worked. Someone did the same with nothing but McDonald's[2].

Your entire list is just a list of your perception of "virtuous" activities, and has nothing at all to do with whether or not you'll gain or lose weight. It's lies, judgement and irrelevancy to push an agenda about how people should live, rather then sticking to the observable facts of the matter.

[1] https://edition.cnn.com/2010/HEALTH/11/08/twinkie.diet.profe...

[2] https://www.nbcnews.com/health/health-news/woman-says-mcdona...
I cannot for my life remember the argument order, so I write the manual code and let IntelliJ convert it.
The solution to ransomware? Backups. It's not more complicated than that. It's honestly puzzling that ransomware is the issue it is, crippling entire organizations. It just means they have inept IT teams.

Sucks this Danish cloud host provider didn't back stuff up properly.
I wonder about the numbers: are cash payments a major enabler in imoral activity?

I guess they can make it slightly more difficult for a drug dealer to buy a car or house, but my intuition is that corruption and money laundering deal with much higher numbers and can go around it.

Not that fighting 1 bad thing is wrong, but considering disadvantagedssuch as loss of privacy and (even) more reliance on banks, we must balance the pros and cons.
This is getting a huge issue. While more and more producers 'reduce' sugar the list of normal food items I simply can't eat is just growing.

I get stomach problems from nearly all common sweeteners, especially at the dosages they throw them in. Assumingly because I never really ate them before this all started.

There are now whole categories of items in the supermarket where no product is digestible for me.
Restating the same fact per days instead of per year doesn't change the facts. And the fact is it all adds up. The list of things that Twitter isn't paying is huge.
Or it might be that the person has used multiple programming languages, across which the order/meaning of copy arguments varies a lot, and thus prefer to not remember the decision of each language (if not for writing (at which point the IDE could help), then for reading). Whereas a loop is always easy to read and write equally in all languages, and it's really not unreasonable to expect it to perform well enough (if not as good as System.arraycopy, then at least good enough to be insignificant compared to the actual important logic in the code).
> 1) How much you think Bun's (super-appreciated!) fanatical OCD about optimizing everything "up to & outside of JSC" will translate to the post-boot performance of everyday backend apps

Bun is extremely fast at data processing tasks. Shuffling data from one place to another (disk, network, APIs, etc). We use SIMD, minimize allocations/copies and pay lots of attention to what system calls are used and how often and where. A naively implemented script in Bun that moves data using Bun’s APIs will often outperform a naively implemented program written in Rust or Go. Bun’s APIs try really hard to make the obvious & default way also the fast way.

That, and Bun’s builtin build tooling are where Bun’s performance shines.

> “Mojo of TypeScript”

I’ve thought a little about this. I think it’s a project that’d take 5+ years and crazy hard to hire the right people to do it. I think it’s mostly unnecessary though. JITs are really good. The API design is usually the reason why things aren’t as fast as they could be.
They're not the same thing. A flat array is fixed in dimension (modulo sum each size = total size). An array of arrays can have its sub-arrays replaced.

long[][] foo = new long[2][];
foo[0] = new long[5];
foo[1] = new long[3];
// ...
foo[0] = new long[7];

Although I think as a developer you probably almost always want to index a single flat flat array if the dimensions are fixed. This is much faster.
eBPF journey by examples: eBPF tracepoints with Falco
I made a comment a couple days ago (which has since been flagged, go figure) about how the MeToo movement was and still is a disaster that just made interacting with women more problematic and far too much of a liability than it has to be.

I thank you for reaffirming my thoughts on it more eloquently than I ever could.
Big HN, Dark HN, No HN: Tiny userscripts to customise apperance of Hacker News
Look at the US military budget

https://cdn.cfr.org/sites/default/files/image/2020/12/002_mi...

versus education

https://i0.wp.com/cef.org/wp-content/uploads/slide2-1.jpg

As a human I think you should arrest Elon Musk immediately for misleading advertising and fraudulent claims.

As a human I think the US should open its borders for immigrants from Asia.

As a human I think the US should scrap the petrodollar and licence as much nuclear tech as possible.
Slower relative to the low density universe average today, which is pretty close to the time we experience on Earth.
Was 1,000EUR in 2022 I keep forgetting as they keep changing it almost every year
Those pop-ups are annoying and distracting.
I think the Jansen linkage is an awesome way to get very life-like walking motion with minimal complexity
Call it sitedoxxing then or urldoxxing.

It's the same attack, to deanonymize, to hunt people down from the internet because you don't like what they say or do.

Germany is the only country in the world with that Impresseum policy because of it's highly leagalistic Prussian background, and you would find that many in the hacking community (e.g. CCC) take huge issue with it
Why do you think people will build houses with no street space? Anyways it’s not like street space will suddenly be turned over from the govt to private builders, but even if it was private land why wouldn’t they build land with enough space in it?

Zero parking space would be a good thing because it would indicate public transport is good enough that people don’t need their own private cars for most trips. But in practice if that’s not the case a builder is gonna be unable to sell an apartment without parking space, so they aren’t gonna build apartments like those.

And what’s wrong with 20 storey apartment buildings? And why does that preclude greenery?
Unfortunate turn of events.

I find it really hard to have empathy for serious businesses who don’t have backups and are dependent on a single cloud.

Like for example if you are all in on AWS and do all your backups of your AWS systems to AWS then lose your account. Meh… your fault.

If you run a business then you have an absolute obligation to be able to instantly bring your business back up outside your primary hosting provider.

And if you’ve built all your infrastructure in a way that cannot be replicated outside that hosting provider then frankly that’s negligent.

All those AWS Lambda functions that talk to DynamoDB? Guess what…. none of that can be brought up elsewhere when you lose your AWS account.

If you are a CTO then this is your primary responsibility and priority above everything else. If you are a CTO who has failed to ensure your business can survive losing your cloud then you are a failed CTO.
> Isn't all of this explained by the fact that we have a supermassive black hole at the middle of the galaxy?

> We perceive distant time to run slow because we're falling into a black hole.

We’re not falling into it

The mass of Sagittarius A* is 4.1 million solar masses while the mass of the galaxy is 1.5 trillion solar masses.

Our orbital velocity easily exceeds the necessary velocity to orbit Sagittarius A* at our current distance.

You feel more gravity from a paperclip a meter away than you do from Sag A*
> some sort of "TypeScript-ish" language that, if a TS programmer plays by a stricter set of rules

This is basically just rust, no? As a TS developer, I've found picking up rust to be really neat.
Do people actually pay attention to the "daily allowance" numbers? I never do, they have to be way too broad anyway to cover all adults.
Use use the "Auto Dark Mode For WebContent" that is available on all chromium based browsers. Go to: about://flags and search for darkmode and select enabled
The hell you talking about.
https://support.vanmoof.com/en/support/solutions/articles/20...

https://support.vanmoof.com/en/support/solutions/articles/44...

I think it's worth adding to this the official statement from Vanmoof, as overall I think it does have most of the information that owners would like.

Kind of a shame that the so many Dutch people are getting screwed here, but the repair shop owners/workers from the article describe a very locked-down bike seemingly designed to be a lock-in device, not a useful bike.†

I've been in Rotterdam for a good amount of time (and Amsterdam naturally) and even knowing that everyone in these cities bikes doesn't prepare you for how much the Dutch have integrated biking into their cities. It's very impressive and enviable, and plenty of options for persons who do need other transport options.

From my perspective, trying to do vendor lock-in on a bicycle is a bad idea; transport needs to be treated like a utility, and purposefully making a device that requires a company to exist to give you permission/parts to use this utility while there are dozens if not hundreds of non-locked-down options just seems like an awful business idea, especially when the model has been "open" for almost 200 years and bicycle engineering is already extremely efficient and user friendly without the vendor lock-in. Whether it's locked in by code or by non-open hardware, trying to capture what is basically a utility (transportation) is a dumb.

† I understand that many users liked the bike design, but in my opinion, if repair shops are having to crack open the bike frame or can't use normal bike parts to fix it, it's a bad bike.
So does Hashi! They have closed-source products like Terraform Cloud, and nobody's crying foul here. There's nothing wrong IMO with starting a project with a commercial license if you intend to build a business. The community outrage is mainly directed at the bait-and-switch scheme from a company that was praising the FOSS model left, right and center even earlier this year until they've suddenly changed their mind entirely
I fully agree. But I'm often flabbergasted at how unfathomable large something like "throw out the TV altogether" or "start walking/cycling to places" is for many.

I guess it's part herd behaviour and part natural resistance to change, but what has made "us", the human species so entrenched, that we think we need cars, TVs, premade meals? Humans "never¹" had them, yet now, within one or two generations somehow believe we cannot do without it? All while the rational evidence is clear that it's hurting both individuals², all of humanity and in some cases all of nature?

¹ statistically seen, if we take the entire history of the human kind
² to clarify the difference with something like "health care" that the human kind also statistically "never" had.
> it can be terrifically difficult to line up multiple simultaneous offers

I've found that too. It seems like even if you apply at the same time, companies move at a variety of speeds. But there are things you can do to help align the offers temporally, at least a bit.

- At the start of each process, ask how long the process will take (how many interviews, number of weeks from start to offer). They'll generally tell you. If you do this for every company, you have an idea of which companies are fast and which companies are slow.

- The fast companies can be slowed down, a least a bit. It's Thursday and they want to schedule an interview for Monday? Say "Unfortunately I'm not available Monday to Wednesday next week, would Thursday next week work for you?" Answer emails the next day, or if they sent you one in the morning answer in the evening "after work".

- The slow companies can be sped up a bit. Firstly, ask for interviews sooner, they might go for it, who knows. If you get an offer from one company, send an email to all the other companies that you have an offer but you'd like to get their offer as well, that might speed them up.

None of this is guaranteed to work but it's worth trying.
For light weight API testing I used the Chrome extension "Talend API Tester". Was good enough for my modest needs.
My guess is that they do not.

Routing these packets around the planet would be a huge waste of their limited electrical and transmission resources.
it is undeniably pretty slick to just have everything inside the frame of the bike. But as with phones, to some extent elegance is at odds with repairability. I'd rather have something that lasts a long time.
How Modern SQL Databases Are Changing Web Development: Part 1
Congrats on the launch. One piece of feedback, please remove all the "target="_blank" from the links in the toolbar. Its quite annoying to have a bunch of tabs created navigating your landing page. It might also confuse any analytic tools that you have installed on the site.
> I don't think the motivation of Google and Meta was datacenter costs, though I could be wrong about that.

Have you forgotten that these are profit-maximizing companies? Why do you think they do anything? To maximize profits. That is always the answer. If it doesn't maximize profits it's a mistake and they will back away from it.

So for example Facebook either thought that React would increase sales, or reduce costs, otherwise they wouldn't have created it. React hasn't moved the sales needle for them (why would it - they are an advertising company - React has precious little to do with selling more advertising). Ergo it was created to reduce costs. The cost benefit of moving all that compute out to the client is easy to demonstrate and significant for a company of that size.
A 3-2-1 backup strategy involves keeping three copies of your data, stored on two different types of media, with one copy kept offsite for disaster recovery.

you are still supposed to have multiple backups =)
I've tried maintaining a diary and a sketch book and can't usually last more than 6 months before they are lost and totally forgotten. It's still nice to find them in all fairness.

I've never found any personal benefit in the moment using them, I'm not sure if 6 months is not enough or for whatever reason they don't work for me.
One thing I find wild in EU is that apparently adding alcohol to a drink obviates the need for a nutrition label. A can of coke needs to declare its sugar content but no need for the precanned Jack&Coke from the same supermarket fridge.
It's just Llama 2 w/ rotary encoding fine tuned to 32k. It should work fine.
It's also sad that Bun is written in Zig, which has not had a proper review of the stdlib since it's not v1 yet, where Andrew has already stated publicly that Zig should not be used in production until v1 due to security vulnerabilities in the standard lib.

But here we are.
Well written article and a good cautionary tale.
I guess that depends if you want to do 11% more work, and probably the tedious stuff.
Which is why we have the 3-2-1 rule, not only for business but also for personal data: https://www.veeam.com/blog/321-backup-rule.html Otherwise I agree, they are not "backups", just maybe a glorified copy.
Because it's most likely using a conditional move.
Companies are suing Mexico: if the justice system is as fast as my country, I'd make them go through the normal process, and have a verdict in 5 or 10 years.
Ask HN: Are you don’t like AI and why?
What reservations or criticisms do you have regarding the use of contemporary AI tools, such as ChatGPT and open-source language models?
Elegant tools indeed. I own a (non-electric) bike that I bought 15 years ago. When I bought it I opted out of all the features, I saw them as 'parts that can break'. It was 300 euros. It gets around 10-20km of cycling everyday. I always leave it outside and lock it with the most simple lock (nobody steals such a simple bike). I carry groceries and my child on it. Twice it got a flat tire which is an easy fix, that is all the maintenance it ever got. It still works perfectly and I see no reason to replace it.
Nonsense. There is a clear and proven correlation and causation between those "virtuous activities" and health.

From my country, where "everyone" cycles to work, two random papers:

https://www.uu.nl/en/news/dutch-bikers-live-six-months-longe...

https://www.kimnet.nl/binaries/kimnet/documenten/rapporten/2...
> five times slower than what, where

Slower than the time we measure here on Earth, or outside Earth/solar system/galaxy. They are very minor time dilation differences between those cases.

> In particularly, how can you say time ran slower before such and such a time, compared to after, because those periods do not overlap; no meaningful comparison can be made.

Of course you can compare different time periods. When the twin from twin paradox returns younger to Earth, you can say time ran slower for him in the past.

We are actually seeing the past (of those quasars) unfold in slower time right now.
People often buy e-scooters here in France because they cost less than an e-bike, take up less space, interoperate better with the public transit network and can be folded up into a manageable size. You can take them with you in busses, trams and trains. You can put them in a trunk easily too if you're still using a car for some trips.

The disadvantage is the smaller wheels and being lower to the ground, it forces you to keep your hands on the handle all the time as it's not self-balancing like a bicycle, makes going up curbs trickier (you have to take them face-on, you'll tip over approaching them with too steep of an angle), and scraping the ground if you're going down a tight slope/leaving the ramp of a flight of stairs (the platform isn't that much higher than the wheels)
Salesforce's introduction of Slack Sales Elevate marks a significant step towards enhancing cross-team collaboration. This integration of Sales Cloud with Slack fosters seamless communication and data sharing, streamlining workflows for optimized sales processes. Teams can now leverage real-time updates and synchronized information for improved efficiency.
Over what time period, though? Did they assume the hackers had only been there since obviously bad things started happening?
but bait and switch would entail that its a) either no longer open source or b) no longer usable

you simply should not be able to make money of it without giving back to the original source owners.

It makes me wonder how many FOS projects might still be in full swing if we actually gave some of the value back we generated too
> It just means they have inept IT teams.

More often than not in my experience is that the IT team wants proper backups but management baulk at the price and never authorize it. Until something bad happens of course.
> In the EU, serving sizes make sense

Like 1 child hand full of muesli, totally typical serving size for a breakfast. Totally legit to label the sugar with A or B then.

I just get EU labels on Import products but so far I don't get it. They all have A or B and are full of sugars, sweeteners and aroma products.
> Your bike can still be unlocked via the app, and via the PIN set when setting up the bike.

** For now. Also Cowboy's app does not (cannot?) support all models.
> I take a dim view of people trying to frame researchers as criminals. We’re not. We want to further science. That’s all

Criminality and perusing science not only aren't exclusive, they aren't even related. Would you try that same argument if you were stealing physical goods for your experiments?

We have tons of example of unethical and illegal things being done in the name of science. IRBs didn't come into existence because being a scientist wanting to further science automatically makes you moral or justified. I trust I don't need to list the various experiments.

Meanwhile, to return to what King said. That something doesn't worry someone worth more than half a billion dollars with a 5 decade career at the top of their game and iconic name recognition is not an indication that the thing is irrelevant, especially to people in the same line of work.

You can say you don't like copyright, but that's not what you are focusing on.
I use mdiscs privately as part of the 3-2-1 strategy, also keeping two writer units around and testing (mostly the writers) them like once a year. No issues so far, but the oldest are only about 5 years old...
The frame tubes do have open ends. Especially on Van Moof bikes [1]. So I assume the components slide through the ends. Gear components from the bottom. Electronics from the front and back. So I don't see fundamental physical issues? Maybe this style will be more standardized by some companies at some point.

1: https://s.yimg.com/os/creatr-uploaded-images/2020-05/c54c62b...
New windows calling convention for x86_64 APX proposal
I would agree, but it's hard to argue with a factor 2 performance boost.

But these kind of tricks feel like we need to con the compiler into optimising this correctly, which is of course ridiculous. What we probably need instead is if-statements that we can tell what's most likely the correct prediction.

Something like:

if v > maxV predict true
maxV = v
continue
While the absence of 3-2-1 seems like a big oversight, i enjoyed the straight-forward communication.
Python is supposed to be whatever you want it to be. It's free software. Who cares what people do in the "professional world"? This is Pytudes and it's quite fun. Learning to program in different paradigms helps your mind to grow, even if you won't use them yourself.

I see quite a lot of higher-order functions in "real" Python anyway. I'm not sure what other FP concepts there are in Pytudes.
Threads API
I don't know why you are being downvoted, maybe people don't like the form, but the fact that device manufacturers are removing useful features such as the ability to expand the storage of your device is infuriating.
The sarcasm is how I cope with some of the views in this thread.