skysight-inc/HackerNews huggingface dataset:
Low-meat and meat-free diets associated with lower overall cancer risk
I mentioned this somewhere else but I thought Erlang does NOT share memory.

Doesn’t that make Erlang a bit unique. It was the ability to spawn a new process extremely fast AND also have memory isolation. This combination is what the OP was wanting to achieve.
Nah - the only pain would be in loading/saving. The idea would be that all this information would be in memory and updated live. So when you use node based APIs, it doesn't need to do any parsing. It would have a node object, and the body would be an attribute, and subnodes would be links to other nodes, etc. Only when saving/loading would it then need to convert (serialize) to a text representation.

This is how the Leo editor does it - it's in Python and it can handle a fairly large number of nodes before any slowdown is noticeable.
I'd worked with "serious" embedded systems when the Pi first came out so I was skeptical. Fast forward to today and I have multiple Pis doing various things for lab experiment automation and so do many others around me. I think the main contribution, similar to what Arduino has done, is giving us a mass market standard that seriously drove down prices.
Missing your flight is one of those things where while it's a rare event for you it's a common event for the airline. For them people missing their flight for a lame reason is just noise compared to people missing flights for other reasons.

Think about it. A flight to Atlanta is delayed due to weather or a mechanical issue? That's 100 people that just missed their connection. Vs random people missing flights is very predictable.
> I thought green threads share memory but Erlang processes do NOT share memory, which is what makes Erlang so unique.

Erlang processes don’t share memory because the language and vm don’t give primitives which let you do it. They all exist within the same address space (e.g. large binaries are reference-counted and stored on a shared heap, excluding clustering obviously).

> Did Erlang create a so called “green process”?

Yes.

> If so, why can’t this model be implemented in the kernel?

Because erlang processes are not an antagonistic model, and the language restricts the ability to attack the VM (kinda, I’m sure you could write NIFs to fuck up everything, you just don’t have any reason to as an application developer).
It seems that one proper solution could be:

1 - Don't associate the commit to an account if the email is unverified, obviously

2 - If someone tries to "forge" ownership by pushing a commit with an e-mail that doesn't belong to the GitHub account being used to push, a "unverified" warning should be added to the commit and manually claimed by the account owning said e-mail for its status to change.
You may also want to look at “chord” keyboards. Main reason is that they are designed to be held in the hand without visual cues
Does it do parallel requests with custom parameters? Postman also today suffer at that point.
The upcoming Keyboardio Model 100 is also a contender in this niche. It does have sculpted keycaps.
For gaming the work of Chris Sawyer on Rollercoaster Tycoon is pretty interesting - entirely coded by him in Assembly. As far as I remember all of the art was also done by one guy (not Mr Sawyer). Extremely optimized programming.

https://www.pcgamesn.com/rollercoaster-tycoon/code-chris-saw...
Yeah, this. Why not mkprocess/exec instead of fork/exec?
I have a strong desire to refactor code as I read it. I tend to avoid this behavior because (a) most codebases are in need of so much cleanup, and (b) I like to keep commits small and topical. Perhaps I should re-evaluate how I weight these factors.
Powershell will autocomplete forward-slash paths and convert them to back slashes.
Honestly, if you think Reach's Live sites are bad, you should see the Gannett/Newsquest ones (www.oxfordmail.co.uk is our nearest). They're a whole league worse.
I’m still confused.

> You probably have noticed that you often buy your flight from a different company than the airline itself.

What? No, never. I figured out long ago that one carrier always has the best rates for my city, middlemen rarely/never cost less, and I've got the frequent flier card and the points. I thought everyone who flew domestically more than twice a year did that.

I thought the check-in was just to confirm "yes I'm really really going to fly tomorrow" so they can try to fill any unclaimed seats.
Yes missing flights is surprisingly not too big a deal, even if it is your own fault. Most airlines will do their best to rebook you.

The main reason for that is that there was never really a seat booked with your name on it. If you don't make it, it simply goes to someone else who was on standby.

Of course the flip side of it is that in rare cases you won't get your seat even if you do make it in time, as was the subject of some famous incidents.
It really does help.

Just don't keep working into the night under them, because whoa boy - talk about sleep disruption. Those nice bright lights make it surprisingly easy to work until 6am and not even realize it.
I actually got to go into this plane when I was 7 years old when it came to the US to pickup emergency medical supplies during the fall of the USSR. I remember the pilots bought a ton of shoes and very particular other things (I can't recall exactly) while they were here.
Five Short Videos on Couchbase
You dont end a war by adding to it.
The math mistake actually doesn’t surprise me. The lack of critical thinking to say, wait, is that right? Is a complete whiff.
It's all about timing. Ask too soon, or too frequently, and you're being a jerk.

But after 2-3 weeks of silence? A slight prod is okay, even if the answer will turn out to be, "This isn't a priority and I don't know when I'll get to it."
Thank you for these. It instinctively _feels_ a good form of exercise.
But good to know there's some science out there and I'm not just a
maladapted masochist with a broken thermostat.
> it would make so many use cases economical.

If exploiting desperate people is the measure an economical use case, no wonder business has a bad reputation
I've seen a decent number of really sad-looking folks at Michelin restaurants, usually older couples, just kind of picking at their food and not talking to each other, looking around longingly. I remember a couple quite vividly when my wife and I were having dinner at Pacific’s Edge in Carmel ( https://goo.gl/maps/Bmj5jFPmYGgVfNCJ9 ) and there was a 40-something couple who had just ordered a $500ish bottle of wine, and they both looked as if they couldn't be less interested while trying it. They barely spoke to each other the entire meal, and I just felt kinda bad for them in the same way that I feel for people in dance clubs obviously not enjoying themselves at a literal party.

I've seen many many more people having an absolute blast at fancy restaurants, so that's great. For example, last time we were at Press ( https://g.page/pressnapavalley?share ), we had an amazing meal next to a group of seniors celebrating one of their birthdays and reminiscing about all their adventures together. They were curious about one of our dishes and chatted with us for a few minutes, and we helped them take a photo together.

Life and experiences like these are what you make of them.
In that sense it’s fast in the same way e.g. coroutines(/goroutines) are fast: it’s just the erlang scheduler performing some allocation (possibly from a freelist) and initialisation. Avoiding the kernel having to set things up and the related context switches makes for much better performances.
Ukraine’s volunteer ‘IT Army’ is hacking in uncharted territory
The European Commission has recently announced mandatory salary transparency in a similar vein: https://ec.europa.eu/info/policies/justice-and-fundamental-r...
Like any rpg, but not for character creation, but for whatever?
I do see a point in it working like it does, though. I'm one of the lead developers on a free software project with over 20 years of history. Even though the project has used multiple version control systems (and hosting providers) over time, we have imported our entire project's history going back to the very first commit into git and GitHub.

Not every contributor has kept their email address for over 20 years. Some don't have access to the old addresses they once used for commits. Still they want the commits to be associated with their current GitHub account; even if it's just for statistics and "bragging rights".

If GitHub required email address verification, how would this be done?

EDIT: To be clear: With "working like it does" I'm referring to the possibility to add unverified email addresses to your account and have commits attributed to you.
You should take D3 with vitamin K2 (talk with your doctor first if you're on blood-thinning medications) to avoid calcium being dumped into soft tissues (K2 ensures it preferentially goes into bones).

It's a good idea to get your vitamin D status tested yearly and aim to be at least 50 ng/ml (120 nmol/l), but not more than 80 ng/ml (200 nmol/l).

As an example for dosages: I take about 7000 IU of vitamin D3 and 180 mcg of vitamin K2 daily. My levels test at about 180 nmol/l and my blood calcium is normal.
Don't be ridiculous. The world knows, Russia included, what the consequence of any use of nuclear weapons by Russia.

Russia will be deleted from existence.
> Space heaters are currently not feasible in Germany due to high electricity cost (which could be fixed by reducing taxes on electricity used just for heating). Nevertheless, the way forward are heat pumps anyway.

But you've got to have both tactical and strategic responses, and the tactical solution may entail taking a hit from higher prices (though if that hit can be mitigated by other policy changes, like temporarily reducing taxes, that should be pursued as part of the tactical solution).

Tactical/short term: massively reducing gas use and trying to mitigate the short-term consequences by keeping nuclear online to power electric space heaters:

Strategic/long term: Switching all the buildings over to heat pumps powered by green energy.
> "The measures we are introducing, that large parts of the world are introducing, are to bring down the Putin regime," the spokesman, who speaks on condition of anonymity, told reporters.

> "We have introduced widespread sanctions, we aim to inflict financial pain on Putin and his regime to stymie the Russian war machine as it attempts to subjugate a democratic European country," he said.

> But pressed on the wider goals of the sanctions drive, the spokesman added: "We're not seeking anything in terms of regime change."

So, trying to bring down the Putin government is not "regime change."
A long time ago, you somehow needed to reconfirm the flight 48 hours before. Not sure what that function was.
A lot of people have the unfortunate experience of being pressed for estimates and guesses only to be held to them as though they were 100% certain, and possibly punished for being wrong.
If the number you are calculating will be used as a lower bound, then rounding all the items up to the nearest 10s place and then using a little factoring can get one to the go/nogo solution.

"can't be more than X"

or

"can't be less than Y"

are powerful devices that allow one to keep thinking, rather than making tasks to be done later. But like the article mentions in the comments, if precision is warranted, then one needs to slow down and double check their work.

As mentioned in the preface to Street Fighting Mathematics, "How to Solve It" by George Polya is another very approachable book. This tl;dr is pretty good [1] (aside, this book should be in the public domain by now)

[1] https://math.ucr.edu/~res/math138A-2012/polya.pdf

There are other books that train folks on how to do mental mathematics like

* The Trachtenberg Speed System of Basic Mathematics https://www.abebooks.com/products/isbn/9780285629165/3011837...

* Secrets of Mental Math https://www.abebooks.com/products/isbn/9780307338402

I found this neat publication from the American Mathematical Society on Back of the Envelope calculation.

https://www.ams.org/publications/TEXT-33-chap-1.pdf
You really need to ask the waiter before hand. Often times at fancier restaurants you aren't expected to just order and entree and be full, and yet that's what some patrons expect.

An example is high end Italian places will often have a pasta section at say 20-40/item and entree's 30-100's, and you think you can just order a pasta and have a good meal. Except you're really intended to order a couple appetizers, a pasta meal each and an entree. It's not them trying to take all your money, but it's what the normal clientele expect. It's also often what the food quality/prices demand.

If it's a truly good restaurant (and not just an expensive one), you shouldn't be coming away hungry.
How We Search for EC2 Instances in a Multi-account AWS Infrastructure
Last week I was overcharged for a large takeout order at a restaurant. They had billed me twice for one of the items, and when the total came up I asked for an itemized receipt. If I weren't at least somewhat confident in my ability to do mental math, I might have just let it go and figured their prices had gone up (as so many have recently.
> I’ve been to many places with inferior levels of validation that were much more pretentious, like the Italian places all over America where nothing is in English but you have to pretend you’re cultured enough to just know what everything is - there’s more English on menus in actual Italy! Even in the middle of nowhere!

IMO these are the worst restaurants; wanna-be "fine dining" which simply isn't..
Yes, it is interesting how sensitive many of the elite players are. not just this one - many elite players in public are dismissive of each other's skills. Doesn't seem objectively rational.
Apple Pay and Google Pay no longer work on Moscow's metro system
I was worried early on about availability. They started with the goal of getting into classrooms, being cheap so kids or low-income schools can afford them, but then you also had for-profit businesses buying hundreds of these to power kiosks and digital signage. I'd almost describe it as "taking advantage" but perhaps that's too harsh. I was a little put off at first that these educational tools were being snatched up by businesses trying to save money.
You want to reduce risk? Stop letting people gamble with 20x leverage.
Archaeologists discover Roman mosaic floor at South London construction site
I wish there was an authoritative guide about eating healthy, there seems to be too much contradicting information in this space.
By that argument, stocks, especially penny stocks, are a scam.
Arpad, your site looks like this - https://i.imgur.com/jj9Uxbl.png

Not just the linked page, the homepage too. All but illegible. That's in a recent Firefox on Windows. Just FYI.
> Unix tends to favour "easy and simple for the OS to implement"

Well, yeah, but the whole problem here, it seems to me, is that fork is not simple to implement precisely because it combines the creation of the kernel data structures required for a process with the actual initiation of the process. Why not mkprocess, which creates a suspended process that has to be started with a separate call to exec? That way you never have to worry about all the hairy issues that arise from having to copy the parent's process memory state.
Probably everything Nikola Tesla did !
In Aotearoa we no longer have a (local) coastal shipping industry.

Look at a map. How did that happen?

Slave labour imported by ruthless business operators on foreign flagged vessels.

Now COVID has hit, we have very little coastal shipping of any sort.

Put the Jones Act in that context
You could cut them off from the Western part of the internet, but not all of the internet. The world is much bigger than just Western powers. It would be impossible, and even if it were possible, it would be easily circumvented.
The Russian invasion touches outer space
> it is based on cash savings of a person to incur the expense with out using debt

When you use debt every day, it doesn't matter very much whether you put an unexpected expense on debt. What matters is how fast you'd pay that off. If it will be gone in a couple months, that's afforded. And that's a lot of people when it comes to sudden hundreds-of-dollars expenses.

> No lender is going to give you a loan to replace the battery.

You can get a loan to buy a car, why not a battery for a car? I expect it to become possible as these things become more common.

> it is unlikely anyone will finance that expense has it would exceed the cars resell value.

Once you put in a new battery pack, won't the value go up a lot?

And basically every new car becomes worth significantly less than the loan value in the first week. This isn't a new problem.

> the car is typically about 9-10 years old at that point. Someone Buys this from me or the dealer then 2 years later is hit with a $16,000-$20,000 bill

If they've only had the car for 2 years then they've barely lost any capacity. Would they even need to replace it so soon?

But if we look at it in simple terms and say the battery is 80% dead, then shouldn't the part of the car's value represented by the battery be reduced by $14k when they buy it? Either way the answer is to consider 80% of a battery as part of the price, just like any other worn out parts a used car might have.
> In current political situation buying anything from Russia is more like making a donation to terrorist organisation.

I don't agree with that statement.

(a) Russian stocks have crashed hard already, and if you believe war is already priced in, you could buy in low, sell high at a later date, and donate proceeds to Ukraine rebuilding efforts, effectively creating a Russia->Ukraine money funnel

(b) Putin might be a terrorist, but most Russian civilian businesses are most certainly not. Many of them don't support attacking Ukraine, as evidenced by the numerous protests in Russia, and likely a whole lot of other people that would protest but are afraid to. The way I see it, "Russia" isn't attacking Ukraine, a corrupt leader of Russia is.
HTTPie for Web & Desktop is in private beta. Subscribe to the newsletter below to be notified when it’s ready and receive your early access invite.

Not particularly available right now.
`fork` is a classic example, as others have mentioned, as something that was implemented because it was [at the time] easy rather than because it was a good design. In the decades since, we've found there are issues that are caused by the semantics of fork, especially if the most common subsequent system call is `exec`.

If you're designing an OS from scratch, support for `fork` and `exec` as separate system calls is not what you want. Instead, you'd be likely to describe something in terms of a process creation system call, which will have eleventy billion parameters governing all of the attributes of the spawned process.

POSIX specifies a fork+exec combo called posix_spawn. This is actually used a fair amount, but the reason it isn't used more is because it doesn't support all of the eleventy-billion parameters governing all of the attributes of the spawned process. Instead, these parameters are usually set by calling system calls that change these parameters between fork and exec. These system calls might, for example, change the root directory of a process or attach a debugger. Neither of these are supported by posix_spawn, which only allows the common operations of changing the file descriptors or resetting the signal mask in the list of actions to do.

And this suggests why you might want vfork: vfork allows you write something that looks like posix_spawn: you get to fork, do your new-process-attribute-setting-flags, and then exec to the new process image, all while being able to report errors in the same memory space.
> Jones Act itself is a problem, and a blessing. It ensures a US maritime industry but has due to lack of competition left it so far behind the world standard that the minute it is removed the entire sector will go bankrupt from international competition.

It's too bad we didn't have something like this for manufacturing, too. If we'd kept key component assembly in the US, we could've adapted to supply chain disruptions or unfavorable trading partnerships.

Our nation should be able to sustain itself as a hedge against a multitude of geopolitical risks as well as lay sandbags against the erosion of economic power.
Windows solves this by adding a bunch of optional parameters to CreateProcess, as well as having two more variants (CreateProcessAsUser and CreateProcessWithLogon). Some of the arguments are complicated enough that they have helper functions to construct them.

I like the more composable fork()->modify->exec() approach of unix, but I wouldn't call either of them really elegant.
It turns out that EVs are not much heavier when compared to the similar priced luxury market. Model 3's are 3,648 to 4,250 lbs where as BMW M3's are 3,840 to 3,990 lbs. Model S is 4,561 to 4,766 lbs and BMW m7 is 4,244 to 4,855 lbs.
Even at such top-tier restaurants, you probably still need to bring your own dental floss.
> Despite the terminology, all Erlang processes are green threads in a single OS process.

The main Erlang runtime uses an M:N Erlang:native process model, not an N:1. So Erlang processes are like green threads (they are called processes instead of threads because they are shared-nothing), but not in a single process.
Keep in mind that there is an intelligent cut-out in the system: the judiciary. They exist because the law is not a computer program and because loopholes are not like security flaws. In this case, the DoJ (officially) noticed the situation in August 2021, meaning the judiciary has not had time to work its magic. When they do so, they will evaluate a stack of arguments about the meaning and results of the law (in a non-computation sense of "evaluate" and "stack"); what they will not do is interpret the law like a series of if-then statements.

At that point, legislators can then "patch" the law if they feel it necessary. (Do you realize exactly how bad "a quick security update to zero-day loopholes as they are found" would be?)

(Knowing only the facts in the article, I would be willing to bet that some judge is going to say, "haha, yeah, good try, but no." But then I don't know all of the facts of the case.)
> But in that 5% there’s some really promising awesome projects.

This is exactly how I feel. Its very likely someone will someday create something uniquely awesome with the tech that really is transforming. I just don't think we've seen it yet
This is just a fact of how attribution works in Git. It's not GitHub's responsibility to figure out exactly who should be given credit for which commit, they're just a viewer on top of Git commits.

Imagine you did some work at some workplace years ago, and you want credit for it. You don't have access to that email anymore, but you'd still like to have the credit and have it link to your account. That's the usecase.
Just noting that GDPR is an EU law, not an international one.
Mental math is useful (vital) when playing poker or other odds based skill games! You'd be thrown out of any casino if you broke out your phone every hand :D

And, this sort of goes with the article, it's really useful for negotiations/haggling where you may not want to use a calculator.
More importantly, all syscalls also take a target process as an argument, making the Windows version both simpler and more powerful than can be done with fork. Spawn is also a lot slower on Windows, but that is an implementation issue.