Go doesn't use the C calling convention, but has its own growable stack system and goroutine scheduler that maps to goroutines to threads. So a goroutine can't just call a C function directly.
In order to interface with C code safely, Go's runtime has to jump to the system stack and do some additional setup, make the call, and then switch back. (Adding to that, if the call takes too long, this prevents other goroutines on the same OS thread from running, so the scheduler must jump in and move those goroutines to a different thread.)
All of this is expensive, though we are talking about nanoseconds, not milliseconds. Performance is mostly a problem when doing lots of very quick calls (e.g. you're writing a game engine interacting with something like OpenGL) or lots of slow calls (causing scheduler trashing).
No, my understanding is that Rust uses normal stacks, and it uses a classic threading model, so aside from async, calling C doesn't need to any runtime stuff.
> As of January 19, the Protecting Americans from Foreign
Adversary Controlled Applications Act will make it unlaw-
ful for companies in the United States to provide services to
distribute, maintain, or update the social media platform
TikTok
That is simply a topical remark within the judgement denying the injunction. It isn't relevant to what is enforceable or being enforced. The Act in question doesn't contain wording that implies that TikTok would have been required to be taken immediately offline, as the act requires enforcement by the FTC, which hasn't yet moved on the matter.
“It is a stunt, and we see no reason for TikTok or other companies to take actions in the next few days before the Trump Administration takes office on Monday. We have laid out our position clearly and straightforwardly: actions to implement this law will fall to the next administration. So TikTok and other companies should take up any concerns with them.”
Please do some research next time before accusing people of spreading lies.
> the only time there's something bipartisan is when it's to do Israel's bidding
The gay marriage bill was at Israel’s bidding?
I worked on the TikTok bill. I really don’t care about Israel. While it’s tempting to see everything through the lens of your pet issue, it’s myopic to believe everything is motivated by a single cause, particularly a foreign-policy line.
Since you worked on the bill, can you clarify if the driving force behind it was national security concerns which have not been revealed to the public?
Right, but what's the actual demonstration of this? I keep hearing "TikTok can do bad thing" but it's not shown to actually happen and we don't seem interested in making them not do that.
> We all know you don't care about Palestine, you care about Israel
Not sure who "we" are, but they're wrong.
It's not a war I have strong views nor knowledge about. I've never visited either place and while I respect people who have strong views on both sides of the debate, my pet war over the last few years has been Ukraine. (Though even there I'm aware enough not to paint everything through the lens of Russian meddling.)
Nope, just worked on it as a private citizen. (Don't have an account with any Meta service.)
In an ideal world, we'd regulate social media. I've tried and failed advocating for privacy legislation--the people who are passionate about privacy in America, unofortunately, also tend towards political nihilism, which makes the cause a political nonstarter. I'm also concerned about Chinese influence over American society, and care about Taiwan's security, so TikTok sort of aligned between my views on privacy, teen mental health and national security.
No it's not. Literally from the study that the article was based on:
> the earliest ice-free conditions (the first single occurrence of an ice-free Arctic) *could* occur in 2020–2030s under all emission trajectories and are *likely* to occur by 2050
This stuff is also what breeds hate against US world wide. People are tired of foreign government mendling in their country.