News for hackers. Stuff that matters.
Re:Async-await on stable Rust by harikb on Thursday November 07, 2019 @01:43PM (#21476003)
> interactions with native libraries are really slow because of that

Can you explain a bit? What is the connection between concurrency implementation (which I am assuming you are talking about multiplexing multiple coroutines over the same OS thread) and say slowness in cgo? Having to save the stack? I don't get it.

Re:Async-await on stable Rust by yepguy on Thursday November 07, 2019 @02:49PM (#21476645)
FFI is slow because the main Go compiler uses a different calling convention than everything else. I couldn't tell you if or how that's related to its concurrency features.
Re:Async-await on stable Rust by bbatha on Thursday November 07, 2019 @03:01PM (#21476767)
Its an important optimization otherwise each go routine would use a lot of memory, but its not required. The stack allocation strategy has changed a couple times in main compiler, gccgo originally support it and CGo functions behave like normal go mod the stack.