skysight-inc/HackerNews huggingface dataset:
This avfork implementation is poor. You don't want to make your single threaded programs multi-threaded. I don't really get the big benefit of afork over other existing mechanisms other than handwaving about things being evil.

Also,

> Linux should have had a thread creation system call -- it would have then saved itself the pain of the first pthread implementation for Linux. Linux should have learned from Solaris/SVR4, where emulation of BSD sockets via libsocket on top of STREAMS proved to be a very long and costly mistake. Emulating one API from another API with impedance mismatches is difficult at best.

Linux does have a thread creation system call. It's clone(2). It literally creates new threads of execution with various properties. It does not "emulate" threads, it is threads.
They should still have radar to see through fog/rain but they abandoned it, as Green said: https://twitter.com/greentheonly/status/1496575861822267403

now is a terrible time to buy a new Tesla car.

But I do realize not everybody can wait it out
You have no idea what does it mean to be in opposition to government in Russia or Belarus. You have apparently no idea how long and how hard people fought there for the change. How often do you take control of your own country? Do you do it before breakfast or after it? Do you have any advice?
> What stack modifications? Sure, the child can scribble over the stack frame, or worse, the child could do things like return -- but you're the author of the code calling vfork() and you know not to do that

Within a sentence you described the stack modification. 'It's not a footgun, just don't make mistakes' doesn't hold a lot of water with me.

> No, really, what you say about vfork() is lore, and very very wrong.

Like I've said elsewhere in the comments, I've literally had to fix awful bugs, some security related, from how much vfork() is a preloaded foot gun with the safety off. Not everyone who has a bad impression of it is just following the "lore".

> afork()/avfork() is not meant to be as general as clone() but to be more performant than vfork() by not blocking a thread on the parent side.

Ok, but I'm not going to hold it against clone for being a more general solution.

> clone() needs some improvements. It should be possible to create a container additively. See elsewhere in the comments on this post.

I agree with this, but there's practical reasons why this isn't the case, mainly around how asking user space for every little thing is expensive, and large sparse structs to copy into kernel space covering basically everything in struct task sounds like a special kind of security hell I would not want to be a part of.

A flag to clone to create an empty process and something like a bunch of io_uring calls or a box program to hydrate the new task state would be really neat, and has been kicked around a bunch. There's just a ton corner cases that haven't been ironed out.
If you live in your father’s home while he is murdering your neighbors for their land, you do have a responsibility to stop him or share in his fate.
The videos of Ukrainian Bayraktar TB2 attacks that have been allowed to the public show Ukraine concentrating on Russia's Buk anti-air systems. These are large missile carriers with 4 big missile tubes. No way to tell if these are S-300 or S-400.

There are supposed to be larger two missile carriers as well, but I haven't spotted any of those; seems like Russia either can't spare those or didn't think they'd need them.

Anyhow, the fact that Ukraine can still employ these UAVs means that Russian air superiority is still not complete. Drones are easy targets for Russian warplanes.
Hi HN! Syrus here, from the Wasmer team.

We have been working hard on this release that adds support for ARM64 and Apple M1 chipsets in Singlepass (our compiler, mostly used in Web3/Blockchain environments).
In Wasmer we aim to make software universally available (regardless programming languages, operating systems or chipset used), by leveraging on WebAssembly.

Let me know if you have any questions, I'd be very happy to answer them!
gives "dilute! dilute! ok!" an entirely new meaning
> Which is why it's hilarious that Russian state propaganda says that Ukraine is a dictatorship and that they are there to liberate them. LOL

It stopped being "hilarious" when that propaganda became the justification for a literal invasion, and now good people have to do this: https://www.nytimes.com/video/world/europe/100000008230025/u..., https://www.nytimes.com/article/russia-invades-ukraine-photo....
Note: Belgium hasn't played an "active" role. My example was hypothethical to illustrate my point.

NATO is a defensive measure against ( as it is proven now) a valid threat. I'm reiterating my statement of 2 years ago: https://news.ycombinator.com/item?id=23679110 - Which was flagged, but unfortunately seems to be already proven right (partially, since it's not over at all) in hindsight. Since the latest threats of Russia are now also against the EU ( and as such, NATO)

Russia ( as in Putin's Russia) is destroying everything possible. The West ( as in democratic countries) tried for a long time that trade will improve democracy, this is even the underlying 'raison d'être' of the EU.

There is ( i believe) a big shift coming away of that thinking. Where other countries like Hungary ( as in Orban's Hungary) should be aware that the EU is toughening their stance with the latest events unfolding.
Russia has hoarded cash, Europe has not hoarded gas. There’s the issue.
Damasio bases his conclusions on his own patients, not Phineas Gage, who is provided as a famous example for historical context. The only reason I'm mentioning only him by name is I remember his name and I do not remember the names of Damasio's patients. I actually think he doesn't even give their real names since they're patients and subject to confidentiality laws.
Shells haven't been the primary interface between the user and the OS for decades.
I think it was a good question, seeing all the various answers people gave trying to explain and clarify. I enjoyed the discussion, and it helped deepen my understanding.

As you said in another comment, what's confusing is that "await" actually means "Don't wait for the result, continue running other instructions, then come back to resume when the result is ready."

> Async operations like promises are put into an event queue, which runs after the main thread has finished processing so that they do not block subsequent JavaScript code from running. The queued operations will complete as soon as possible then return their results to the JavaScript environment.

From: General asynchronous programming concepts - https://developer.mozilla.org/en-US/docs/Learn/JavaScript/As...

---

About how async functions can be "paused and continued", it relates to the general concept of "continuations", which are:

> ..constructs that give a programming language the ability to save the execution state at any point and return to that point at a later point in the program, possibly multiple times.

> ..In C#, async and await "sign up the rest of method as the continuation, and then return to your caller immediately; the task will invoke the continuation when it completes."

https://en.wikipedia.org/wiki/Continuation
And the only way Russian people may get information and organise is online. So let’s disrupt operations of whatever Russian web remains accessible. Watching more propaganda TV should help.

Everyone should respect government imposed sanctions and laws. Infrastructure services should not discriminate beyond that. Denying service based on nationality of the client is akin to discriminating by gender, race, or faith.

Also it’s ok to pull from any market for whatever reason, and not renewing contracts, but kicking paying customers before the term of the (prepaid) service is over is just not cool.
Almost $30 mil in crypto donations to Ukraine so far
Most of people here has no any experience of fighting against even a soft authoritarian regime. You just don't have a clue how it looks like where the police officers beat you in the chamber in the night and you are screaming and nobody help you, they torture you putting a bottle in your anus and smashing your teeth. It's completely immoral to blame people they are fighting not enough, you don't know NOTHING about it.
Well, it's fun!

Also, surprisingly, it flushes out the people who would have supported Turing's ultimately fatal prosecution because OMG he's such a weirdo, before their support is required for anything important. It makes super clear the distinction between who's here to have interesting discussions and who's here to attack other users.
Russia is a fantastic supplier of gas and petroleum. What's your point here.
My guess is that it's a portmanteau of Frankenstein and Zuckerberg. At least I hope it is.

Either way, it's unfortunate wording
> You don't want to make your single threaded programs multi-threaded.

Correct. I want to spawn processes faster from already-multi-threaded programs.
Your Favorite Color Is Orange
If anyone from fly.io is watching, I think it would be smart for fly.io to acquire this new company and integrate the concept, and maybe some of the implementation, into the Fly platform.
But countries that constantly drop non-nuclear bombs on other countries and murder civilians and children are still cool, right? USA only averages 46 strikes per day for the past 20 years. So maybe the cutoff is at 50.
> Someone should probably start a bright home lighting company

I would totally support a crowd-funding of a company for making such an arrangement accessible to people around the world, using flat-packaged parts and installable by mere mortals.

... preferably with the blue-scattering effect as well :-)
This is disgusting. You are punishing innocent people for the decisions of their government. Do you even realize that your behavior does not help your own cause? Do you realize that innocent Russian people banned from your platform will be encouraged to further hate the United States and support their government's war effort?
The importance of having a personal domain name
> "has already used"

This is assumptive language accompanied by a random video that has not been confirmed (as far as anyone reading this board would know). With all the disinfo/misinfo that's been flowing through social networks, I don't think we can say that this is a thermobaric blast with any sort of confidence.
Even if they did not do this, how would you pay for Namecheap considering all the banking related blocking? How can Namecheap comply with the new sanctions?
> Yeah, if you run this function, you will notice that the result is in the reverse order of what they should be ([ 3, 2, 1 ] instead of [ 1, 2, 3 ] for instance). And that’s because the last x will be at the very start of the accumulator, and inversely the first x will be at the very end.

> So… we’ll just add a small List.reverse on the accumulator at the very end… It will hurt performance quite a bit but correctness is more important.

> Surely we can do better than this, right?! Let’s take a look at how List.map is implemented in the core library.

> That’s surprisingly simple. The order is right because the list is being visited in reverse order (that’s what foldr does, in contrast to foldl). But we need to look at the implementation of List.foldr to see if we can reuse the same idea for our custom functioOH GOD CLOSE THE TAB!

> Ugh… if you’ve opened the link, you know that we have gone far from the elegant solution described at the beginning.

But List.foldr is using almost exactly the same strategy that is considered and rejected in the early draft of mapHelper. Visit the list in reverse order and then reverse the result. (Technically, reverse the input list and then visit it in reverse order, instead of visiting the input list in reverse order and then reversing the output. foldr's output isn't a list.)

The only difference is that List.foldr will visit the first ~2000 elements of the list in correct order, just in case, and if the list is still going it will give up and reverse it at that point.

How far is that from the solution described at the beginning?
oh thanks for the reminder to move off all my domains.. this proves my intuition right namecheap smells exactly like godaddy or w/e. Glad I do this cause who knows maybe our leaders will invade somebody and all of the sudden I'll be having another headache on top of everything else. Talking about human rights while you're abusing them by denying service to people that have absolutely no ties to their goverment but gods rnd dice rolled them into a certain country which happens to go in war with another.. pardon me but that's just stupid
Let me prefix this by saying I'm not Russian, I have no ties to Russia whatsoever and I strongly oppose Putin's actions in Ukraine.

That said, I wonder about the legal ramifications of this move. Namecheap is essentially unilaterally terminating a (probably yearly) contract without the other party being at fault per se. There's no legal cause.

Will they be refunding the customers they are kicking out? Or will they be keeping the money for services not rendered?

Additionally, giving people only 4 working days to move out, especially in a situation as volatile as this, seems like a bad move. Anyone hosting their life on one of the domains affected (whether they are actually in Russia or mistakenly flagged as it seems happens a lot going by this thread) might not read the message in time. They might be in hospital, jail, without internet or otherwise unable to transfer in the very short time allotted. Again, not just the people Namecheap hopes to target, but also all the people they mistakenly flagged.

(And you can bet some disgruntled Russian customer will flood the support system with whitelist requests for all .ru domains currently pointing at Namecheap NS, overloading the support system for the remaining 4 working days until the deadline)

I understand that the Namecheap CEO and many of his employees are probably having a strong emotional reaction to the current war in Ukraine which is completely understandable. I fear this will not accomplish what they really desire though. And I don't think I'll be cheering them on.
Absolutely. I know this is Putin's War, but imagine asking your staff to be professional and respond to your Russian customers when they can hear Russian fighter jets overhead.

On one hand we ask large companies to show more heart and humanity, and on the other hand we rail against them when they take a principled stand.

How anyone can expect a company to honour any corporate agreement in such an environment boggles my mind. Let alone company that sells domains and prides itself on being 'cheap'.

People and principles should come first, and money second. This is exactly the world we want to live in, right? Not some capitalist dystopia.

FWIW, I do not begrudge affected customers being angry, that seems very fair. I just also think this is a very reasonable course of action by Namecheap.
I really don't think Putin (or oligarchs) care about Russians at all. Russians should organize and seize Kremlin from the traitors willing to destroy the lives of their own citizens.
“Reynolds: Do you really think he’ll use a nuclear weapon?

Hill: The thing about Putin is, if he has an instrument, he wants to use it. Why have it if you can’t? He’s already used a nuclear weapon in some respects. Russian operatives poisoned Alexander Litvinenko with radioactive polonium and turned him into a human dirty bomb and polonium was spread all around London at every spot that poor man visited. He died a horrible death as a result.”
To all the Russians who think they are being inconvenienced now: Just wait.
AFAICT they can only claim it because you haven't claimed it so

>which can directly relate to employment opportunities.

doesn't seem right.

Agreed on the copyright part of the equation, but I don't think many people take the commit author on GitHub as the copyright owner.
Indeed. The world may have lost an enormous opportunity to bring the russian population on its side. The following days will be crucial in revealing whether the russian people will resort to an us vs then mindset or them vs putin.
One barrel per year per reactor for geological time periods.

So greedy, selfish, and irresponsible.

There is no place on the planet that we can be confidant nuclear waste can be stored for 200,000 years with no monitoring.
China is certainly watching very closely the Ukraine situation and will factor it into a attack/not attack decision.
In mathematical terms, there's no well-ordering of restaurants despite what reviewers and the food journalism industry would have us believe. So actually different can have value.
If Russian people chose to live under dictatorship, I suppose Ukrainian people chose to live under invasion.
Fun fact: z/OS is now emulated on Red Hat Linux nowadays for "new" deployments.
The core principle of a research paper is to extend knowledge in a very specific field. Basically a paper reviews what has been done, is known to date; then a description of your contribution; and a comparison / evaluation wrt to what is already accepted knowledge / practice.

Research papers published in peer-reviewed journals are rarely written by one individual. There generally are collaborators, principal investigators. i.e. co-authors. However, unpublished research papers might be written as part of some course requirement, especially as part of a capstone project. From your question it is unclear as to what level you are contemplating.
And macOS, and Java, and Qt, and ...

It's almost as if it was universally seen as a good idea at the time. ~
yikes, and by the looks of it seems like a "refactor" at best
They're pretty clearly asking if the email thing is a joke.
Hey I saw a post on a local FB group today from an Aussie company who worked with a Russian dev years ago and had their contact details on one of 50 domains, and they're being asked to move everything.

They said support is not responsive, any way you can be more discriminating about the level of Russian involvement that will trigger a suspension? I will post a link to your statement here for them.
Putin receives not only more money, it also makes censorship easier.
I for one welcome this kind of development and hope to see more of it. Corporations shouldn't just be held to the standard of how much profit can they make. It's crazy to me that there's a whole separate "B corp" designation when in my mind we should have a by-default expectation that organizations consider their impact on social & environmental issues.
Dude, other countries also have nukes. Other countries are buying russian gas and oil. Other countries can just easily wake up one day and stop buying russian gas. Other countries can also send their troops to ukraine to help. There are a lot of things other countries can do to get rid of the dictator. So why don’t they?
So, you are trying to make Russian people’s life even worse nevertheless you understand that they have nothing to do with the situation? How are you better than Russian government?
Not sure what you're talking about, it was the same when I worked in the UK - unless you switch to self-employment, your employer pays taxes for you and you just get the net salary.
This kind of reaction is exactly why more businesses need to take this approach. It's painfully inconvenient for a Russian who has an interest in being able to use the service, and the more this occurs, the less anyone is happy to just sit by.
article went up on 26th. Invasion started on 24th. There is a good chance that it was actually supposed to start at 22nd but got delayed (all putin speeches were recorded at 21st).
Also there is political "clown" called Zhirinovsky, who somehow always says stuff that happens later. In speech that he gave in december he said that on February 22 at 4am Russia will become great again and world will change forever.

When i saw this speach two weeks ago i knew that shit will hit the fan.
These people have already pre-paid namecheap services.
Are they following a law or just arbitrarily and unilaterally deciding to do this? I am not Russian myself but I expect a domain name provider to be extremely neutral, unopinionated, and stable. Namecheap is showing to be neither so it can’t be trusted for important domains.
The CEO came here to justify his actions by referring to specific violations of his personal values - a spurious claim in my opinion. Values are applied consistently, and you can bet there will be no action taken against western governments that are guilty of the same things that allegedly motivated Namecheap to do this. Instead the motivation is emotional and political, and it is unreasonable to remove services from paying customers because you're upset. I will never rely on a company that behaves like this.
> 'It's not a footgun, just don't make mistakes.'

fork() -> fork bombs -> fork() is a footgun!

You have to know how to use it. Yes. So what?

> Like I've said elsewhere in the comments, I've literally had to fix awful bugs, some security related, from how much vfork() is a preloaded foot gun with the safety off. Not everyone who has a bad impression of it is just following the "lore".

Links or it didn't happen :)
German backslash is very easy.
> To everyone complaining, have you first tried to contact support and explained your situation?

Spending hours writing emails back and forth in my non-native language is not exactly my top priority at the moment, as you may guess because of recent events.

The email is very clear: I have to move regardless of my views or opinions, or else. ToS is very standard as well: service may be interrupted at any moment with no guarantees, all discussion is to happen in US courts.

I see no basis for a support ticket.
Check the colours of links, if they're blue, they're new, if they're purple, they've been visited. It works the same way for anyone looking at the page, not just the user's eyes.
David Boggs, Co-Inventor of Ethernet, Dies at 71
Physicists look at cold fusion scientists like archaeologists do at ancient alien theorists?
I think the mission in Afghanistan was meaningless, or impossible, alternately. I dont think what happened there is a military failure but a failure to restrain ourselves and not go there in large numbers in the first place.
"They should stay neutral in all this!!" – people sitting comfortably in a first world country opining about a company whose 1700 employees in Ukraine – including in Kharkiv – (https://www.namecheap.com/careers/ukraine/) are literally getting murdered as we speak. What should they do? Keep taking support calls from Russia while their missiles rain from above?
It's nice to know that you're certain Putin wouldn't ever use nuclear weapons against is own people, or that if he launched at another country the retaliation wouldn't hit any Russians who are against him.
Are you following a law or just arbitrarily and unilaterally deciding to do this? I am not Russian myself but I expect a domain name provider to be extremely neutral, unopinionated, and stable. Namecheap is showing to be neither so it can’t be trusted for important domains.
Refugees with Rolling Luggage
I know right? All they've done is just put a huge amount of people in concentration camps and silenced dissidents, while consolidating power in a one party state ruled by a dictator.
I think that Carnation Revolution also benefitted from the fact that dictator Salazar, who ruled the country for 37 years, had already been dead for 3 years when it happened.
Cool. When will you ban US customers for their government's continual war crimes? https://truthout.org/articles/the-us-drops-an-average-of-46-...

Or are you just disenfranchising a population in order to gain virtue points?