skysight-inc/HackerNews huggingface dataset:
There is a problem here - it's verbose and prone to silent-ish breakage if the surrounding context changes e.g. due to refactors (well, probably not with this tiny example, but I hope you know what I mean). Thankfully, there is also a solution to this problem: https://github.com/rust-lang/rust/issues/90091

split_array will eventually allow something like the following, which avoids any explicit indexing and will fail to compile if the sizes don't match up:

struct IVec2(i32, i32);

impl IVec2 {
fn parse(b: [u8; 8]) -> Self {
let (first, second) = b.split_array();
IVec2(i32::from_le_bytes(first),
i32::from_le_bytes(second))
}
}
Use Explorer.
I guess Terra/Luna was mostly a DeFi algorithmic stablecoin. Which wasn't a very good idea.
Genocide has a specific definition, and Russian actions meet that definition. This is genocide, and it is immoral for you to avoid accepting that.

The accepted definition is in Article 2 of

https://www.un.org/en/genocideprevention/documents/atrocity-...

Russian propaganda amply demonstrates their intent. The physical part is also well-established. For example Russian filtration camps have been use to "process" then relocate over a million Ukrainians. Including over 250,000 children who will be raised with propaganda about not being Ukrainian.

You may prefer mealymouthed substitutes for calling a spade a spade. But I condemn you for normalizing genocide by refusing to use its proper name.
As someone who exercises a lot, the body ends up being extremely hungry all the time similar as to when I hit puberty as a child. `
I disagree with your interpretation of OP's comment. Sure you can argue that playing a video game can be addictive to some people. But game developers are not getting addicted to playing the games they make.

Creating a video game is probably as close as you can get in the software space to art. It's the culmination of hundreds of different skills into a single package that has the off chance to shift and affect culture across the globe. Its exciting, and has the potential to fill someone who works on it with an intense amount of pride. That, in my opinion is not addiction.

Unless you consider artists, musicians, designers, actors and hundreds of others who work in purely creative mediums, addicts.

There is a lot to be proud of by shipping something that is used by hundreds of thousands if not millions of people and especially more so if it makes people happy. It's that intangible feeling of creating and seeing it successful that keeps people working in the video game industry despite the very obvious downsides.

For a lot of people, it's attempting to create something for players that fills them with as much emotion as they once experienced playing another game.
I've just woken up at 03:00, which just seems to be something I do.

And it's occurred to me it's possible to paste a path in to the filename field.

Why has that not occurred to me before.
I've been consistently underweight for the last 20 years of my life (BMI 17.9) and this describes my experience. I tend to be on the warm side, am not particularly active, generally have two or three meals a day and experience no urge to snack. Now that I'm getting towards 40 my "setpoint" weight seems to be creeping up and I may soon cross the line to be consistently on the low-end of "normal." I am still deciding how much energy (if any) I want to devote to keeping where I am now.
> Why should Putin’s regime collapse?

Historically—not universally, of course, but frequently enough to be noteworthy—people have been observed to be displeased with leadership that unproductively transforms large numbers of their youth into corpses.
I agree that a salmon filet is tasty. I don't often eat a pound of strawberries though. Both of those are too expensive to eat regularly, and like you said a salmon filet is a lot of effort compared to a burger.

> I'll have the cheesecake if I really feel like it.

That tells me the writing on the wall, and let me be clear about this, the writing is what needs to be written and what people need to read - you're making the decision to NOT have cheesecake when you only kind of feel like it. It's a game of weighing the pros and cons and learning to be satisfied with what you know you should have instead of turning around one day and loving the healthy food more than the unhealthy.

Just as an aside:
> I assert most people will enjoy a baked potato with a bit of butter (~1 cal/gram) about as much as garlic bread (~3 to 4 cal/gram).

You're discounting the calories / gram of butter in your first calculation and including it in the second.
The "fix" would be to return a Result. Which is a sum of an error and the type you want to return.
Hard agree. I really don't think TravisCI is very good or reliable.
Owl: Distributing Content at Meta Scale
Depends on who they replace him with. If they replace him with another pure political appointment, will it make any difference? And, is there any reason to think that they won't replace him with a purely political appointment?
Tell them the best thing we can do is prevent it from happening again by auditing systems and adding safeguards.
"beats any arms supplies possible"

Very observably not. Russia seems to be actually incapable of buying any modern weapons for the billions of euros it receives from Germany. Even China considers such cooperation too risky.

The technical level of Russian equipment deployed in the battles in Ukraine has gone downhill since February. Now they are pulling really old stuff (designed or even manufactured in the 1950s-1960s) from storage. And some of their auxiliaries from the separatist republics literally use WWI and WWII small arms.

Money matters in war, but it cannot substitute for a missing/inadequate supply chain. You can't bury the enemy in an avalanche of euros, you actually need to procure the necessary equipment.
Anyone curious to find out their browser wants to talk to russia via 91.192.149.121 UDP port 3478?
When covid hit, governments across Germany realized wait, we need videoconferencing for students!. For the prime ministers and their ministers of education, this meant they could either shine in comparison to the others, or the opposition would rip them apart in the next election.

Suddenly: money everywhere, zero red tape, worry about compliance later, get it done now.

So, if the political will is there, things are possible, and I can easily imagine our country going a lot harder than that if the danger was imminent enough.
When I was younger I thought it is cool to be admin and have access to stuff, run things on my own being like Neo in Matrix.

Then I had admin access to wi-fi router in dorm, it stopped being funny when people shitty laptops could not connect and they would blame you or for any kind of connection issue for that matter :)

Then I had a job with support duty, 1 A.M. calls because you need to check logs are not cool.

Now I don't want to have any privileges unless I really cannot do my work. If I don't have to run some application and someone else is getting called for outage or I can say that is our provider can't do much - I am definitely making company I work for - pay to another company and stay out of equation.

If I run some software for myself by myself I am not going to pay for that - but as soon as other people are involved I would tell them to go and buy that service. If it is work related even more so.
> Seattle is, overall, pedestrian-hostile

Seattle looooves to pat itself on the back for being pedestrian/bike/commuter-friendly … but it has a VERY low standard for "friendly."
That seems even more verbose, for a simple function that is already very verbose to begin with, given how little the function does.
Probably a testament to performance and reliability of the hosted offering (we all remember the multi day outage not long ago).
The Russians pretty much killed a lot of the population of the occupied territories, which hadn't fled in time. A lot of the rest has been abducted to Russia, possibly Siberia.
China imports food from the US.

China does not have to import food from the US.

In all honesty, China and the US are unique nations in that they don't have to import anything from anyone. It's politically and financially convenient for them to import the things they import, so they do. But they are both perfectly capable of meeting their own needs with domestic production if the issue is pressed. Even where they don't currently manufacture a thing, they're both able to ramp up manufacturing of that thing in a timeframe unthinkable for other nations.
SpaceX and Dish’s Super-Shady War for the World
As someone generally outspoken against the class of drug, but has required it for short term due to imbalances caused by health issues: listen to this comment.

Watch yourself closely, and have your smarter and less judgey friends and family do the same, because the doctors sure as hell don't have enough time with you to do so.

But, listen to this comment.
This is my favorite limitation:
https://jira.atlassian.com/browse/JRACLOUD-21372
In this case at least it seems like one solution is just compile-time function evaluation?

Due to the literal, hypothetically that Regex::new's result can be pre-computed and the result encoded in the output binary, not the initialization.
I broadly disagree, but others here have covered all the points I would have made around that, so instead I'll mention an interesting thought this did bring up for me:

> Most of the time I see it, ? would be better and could be used instead with minimal hassle

I don't agree that you should just bring in a library, as a default strategy, to make it easy to use ? in all cases without thought

But. For the subset of cases where you could do this without any type changes - where the unwrapped error already has the right type for the containing function - I wonder if it would make sense to have a Clippy rule and/or IDE autofix?
But again, the function cannot fail. It could return a Result<Vec2, Infallible>, I guess, but then you're just pushing the unwrap to caller without any need to.
You didn't get a key prompt, because it's probably baked into the BIOS, or your system signature was verified against the activation servers. They have been doing this since Windows 8 came out. It's always allowed a local account, since the day it came out. It's just that they clearly prioritize a Microsoft account, and try to push you into it.
Oh, big +1 on Freedom, excellent book (weird fun fact, in the book the author thanks Rick Klau who until very recently was California's Chief Technology Innovation Officer- so there are some people with wild ideas who are in government too) https://www.linkedin.com/in/rickklau/
Ctrl+l in the file save dialog, maybe?
Contextomy, happens all the time
https://journals.sagepub.com/doi/abs/10.1177/016344370505397...
Although I can't recall them off the top of my head, several guests on the Rustacean Station podcast have suggested exactly that when one is getting their feet wet with Rust (put .clone() everywhere, put Arc<Mutex<..>> everywhere, ..etc).

The idea is that once you are familiar with other aspects of the language (syntax, sum types, traits, modules), you can go back and try to master the borrow checker.
Rationally, this war wouldn't even start.

We are too rational here on HN to try to emulate/parse/analyze the decision making involved. There is a big dollop of madness there.
History suggests that isn't so. The crypto winters last a couple of years then folks are back.
They're actually quite explicit in what the goal is, at least in propaganda towards the internal audience[0]. If one does equate a Ukrainian to a "nazi" that must be exterminated, burns this into the minds for years, builds a chauvinistic version of history to frame it into then the rest comes out naturally — don't even need an order.

The behaviour of the Russian army towards the non-combatants so far has been aligned to what you could expect of this concept — mass murder, rape as a weapon, "filtration" camps, forced deportations, burnt ground tactics. These are not singular cases, it's the pattern everywhere the Russian army is or has been active.

It's not even the first attempt in the history — the last one was less than a century ago.

[0]: https://twitter.com/sumlenny/status/1510910740261134338
I'll remember that in the future, apologies
I thought it recently got some land in Malta again too?
Mounjaro (tirzepatide) and Wegovy (semaglutide) are the new class of weight loss drugs.

And their results, crush anything before them.

Once the price point of these medications come down, you're going to see a massive movement towards these solutions for long term weight loss.

It's clear that motivation, accountability, peer pressure simply aren't enough for long term success in keeping weight off.

By long term success, I mean decades of keeping the weight off.

The abysmal dieting numbers prove this.

The Neuroscience of Obesity | Peter Attia, M.D. & Stephan Guyenet, Ph.D.

https://www.youtube.com/watch?v=9G3iLbQCIHI&t=7646s
I love seeing pragmatic posts like this. Of course YMMV and people have different tastes in tools so take what you like and leave the rest. It’s fun to see what others are doing and how they’re thinking about stuff.
> What is slavery if not systematically, grossly under compensating someone for their work?

No, it's the notion that you have second-class citizens or even non-citizens with limited legal rights enforced by the state, said limitations usually being in the realm of property rights, personal freedoms, etc. At least that is fairly easy to define, whereas "grossly under compensating someone" is a vastly more nebulous term (who decides what is and isn't "under-compensating"?)
Not necessarily, you can extract the inner type by using the match as an expression, e.g.:

```
let val = match res {
Err(e) => {
...
return ...;
}
Ok(v) => v,
};
// Use val without unwrapping here.
```

That said, even though I'd avoid unwrap in this particular case in my code, I generally disagree with the author.

Taking out unwrap and leaving in expect would simply lead to a bunch of code that goes `let val = result.expect("!");`, which is equivalently bad when held up against the criticisms the author makes of unwrap.

Unwrap isn't really harmful so much as a symptom and an escape valve around the fact that our type systems really aren't powerful enough to derive all the invariants the programmer can about their code.
>Your question sounds odd to me,

Really? GameStop and other extinct companies made an entire business model of selling your used games to them and then selling those at cheaper prices to new customers. That sounds odd to you?
Books and tapes can be insanely helpful with cognitive pattern adjustments.

So can others prodding us. We've forgotten the value of both of these.

It explains why "we" don't seek these things — and simultaneously let others take their place (ads, behavioural suggestions in media, etc).
Russia can't build its own most advanced weapon designs, tank production lines are stopped and they're down to using non g-tolerant consumer chips in missiles, greatly degrading their reliability (you might note how their random long range terror bombing of civilian targets is doing absolutely nothing to win them the war, while their supply depots are blowing up).
You've been breaking the site guidelines repeatedly in your comments, including by calling names, personal attacks, and flamewar. This is not ok, and we ban accounts that do it. It's not what this site is for, and it destroys what it is for.

Being on the right side of a war, or feeling that you are, is not a reason to post like this to HN—it's a reason to err in the opposite direction, as the site guidelines say: "Comments should get more thoughtful and substantive, not less, as a topic gets more divisive."

You've been posting like this on lots of other topics too, and in fact your account's commenting history is so flamewarrish that I think we have to ban this account until we get some indication that you want to use HN as intended. If you don't want to be banned, you're welcome to email hn@ycombinator.com and give us reason to believe that you'll follow the rules in the future. They're here: https://news.ycombinator.com/newsguidelines.html.
Do you mean the T200? There is no S200 per se.
European LNG spot market prices went up by much more than an order of magnitude between Summer 2020 and Spring 2022. They also went up for other regions while Russia has no problems selling gas outside of Europe, even with steep mark-ups. It pains me to write this, but Russia is coming out on top because of Europe cutting itself off from her gas.
Sounds very similar to annoying Java checked exceptions for stuff like 'new URL("http://example.com")' -- it can't fail, but you have to catch it.

The industry dealt with that by using your own utility functions like "create an Url and convert exceptions to runtime ones" (Java folks don't focus that much on quick pet projects, so don't mind extra work).
Sure but Norway is the only EU state that has a decent amount of gas or oil, and at least Turkey is on the NATO side. Politically it's messy, but at least militarily it's fine.
or, maybe some should have, and it wasn't, and there should have been, and they should not have been

the important thing is that you got share your personal opinion, whether or not it is shared by a consensus of public health professionals OR of americans (it is not, by either)
Calipers are not the proper medical standard of care for measuring body composition. They don't produce accurate, repeatable results. The current best practice for most patients is a DXA scan.
Ahh, looks nice, here's hoping it gets stabilized
He said that he eats fewer _stereotypically_ high-reward foods because he eats other high-reward foods. How do you interpret that as equivalent to "continually decreasing comfort"?

The pt is that the reward function isn't static, and you can move yourself to an equilibrium with as much utility/comfort that is much healthier.

This has been my experience too. Eg, I'm almost a little grossed out by the proportion of refined carbs on the plates of some of my friends: not only is it unhealthy, it's the most boring part of the meal (to my palate)! And my habituation to sugar has gotten low enough that things taste much sweeter to me than they do to most people.

If anything, this has _increased_ the reward I get from eating, since their unfettered preferences need to be consciously constrained by awareness of their health, while mine line up pretty well.
>By 2030, the world is expected to be short of around 82.5 million coders — already, 87% of organizations struggle to find the coding staff they require.

GitHub Copilot to the rescue! jk but you know the usual economy; invest more into education and motivating young people to go into "coding". And invest into improving the efficiency of programmers who are already working.
'impossible, by design', unless you implement multi-signature keys for account recovery
There are mainly two "levels" or "approaches" to recovery, file system based and file based.

Let's put aside for a moment encryption.

What you want to recover (normally) is the contents of a disk, i.e. the files on it, a file in itself, if contiguous[0] is written to an "extent" on disk, i.e. it starts at a given sector and ends on another given sector, in the case of a fragmented file the file is scattered over several extents.

The file system structure are essentially an index or address table to these extents, you look for the file in it and you get its address.

If these structures are corrupted, you can still recover easily the contiguous files by "carving" the disk, the process for fragmented files is difficult, lengthy, prone to errors and usually works only for a fraction of the files.

With encrypted files this carving is simply impossible.

About encryption as said it depends on the exact type of encryption, full disk encryption (hardware or software) encrypts everything, file system encryption usually also encrypts the file system structures, but it could also not, as an example NTFS EFS:

https://en.wikipedia.org/wiki/Encrypting_File_System

encrypts the files but not the structures (your "encryption done on the individual files"), while (say) FreeOTFE or Truecrypt/Veracrypt:

https://en.wikipedia.org/wiki/VeraCrypt

encrypts as well "everything" (your " the whole partition is one giant encrypted blob").

It depends.

There is also hardware full disk encryption (as an example there are USB disks that include encryption) that is even worse as the decryption depends on the specific hardware controller in the USB disk case, which may (or may not) be tied to the connected disk without a (known) way to re-couple the disk to an identical controller, so that if the controller fails the data is lost.

https://en.wikipedia.org/wiki/Hardware-based_full_disk_encry...

But still, if you have a non-encrypted JPEG file, changing as little as 1 (one) single byte in it, you can often make it invalid/unviewable anymore, loosely any kind of compressed file may already be harder or impossible to recover.

[0] this is the single most important feature for file based recovery, unlesss the extent(s) where the file resides are unreadable you can recover fully the file, losing only the file system metadata (filename, date, etc.)
So you pay 700€/year for electricity and twenty times more for rent. I think energy is still inexpensive compared to rent prices.
> In the US, you can get one shipped to you in 1-2 days right now:

Sure. Can you get millions, though?
Are you referring to the April outage?

Technically 14 days is multi day, but when it can be measured in weeks, you might as well.
Big Ten Blame (Stratechery)
It reminds me of Doctorow's Eastern Standard Tribe.
I actually thought Math.max was faster in modern Chrome than a ternary.
I do appreciate that Rust tends to have the mentality that they will, after careful consideration, add something like split_array to solve X ugly problem.

But it leads to just a TON of features and approaches to learn.
https://news.ycombinator.com/item?id=32110743
Sure. But pedophilia is probably comorbid with psychological problems which lead people to believe they are in some kind of battle with the CIA, so one might expect it to appear a bit more commonly. No one's ever accused Jeffrey Sterling of being a pedo or rapist.
Sex hormones and stimulus need to make it to the brain to orgasm "right".

Receptor inhibitors will obviously inhibit receptors from receiving more than only "depression or anxiety related" signals.

Do the studies, but...seems like an easy win.
It’s crazy. My wife and I don’t have kids so we have limited interaction with them (mostly nieces and nephews), but there’s just seemingly no interest in how things work. They look at computers and phones as media devices and occasionally tools. Not things to understand, just use.
Practically nobody had empathy when the West bombed the Middle East for decades. I guess we all are angry monkeys. ;)
WSJ is a rag
It's also something you can do static analysis for with tools, and I imagine the compiler can be adjusted to warn or disallow its use in modules and dependencies.
Worth listening particularly if you think you'd like to buy a sailboat and gadabout the world. Engaging, geeky, and informative.
The industry is in a really weird place right now. The metro station in my city for a long time now has been filled with ads from coding bootcamps that saying things "we will teach you javascript in two weeks and hire you on the spot for {very large amount of money}!" and I don't even think it's clickbait. The quality of software worldwide has been going down so much as companies lower their hiring bar more and more as a desperate attempt to fill their positions that I can't imagine this will end well.
I think it was an equity investment so it's more that the manager thought it would be a good idea to profit from said ponzi scheme.