Tsoding - How Not to Market Your Language Features

Derek Fawcus dfawcus+dlang at employees.org
Fri Mar 28 18:36:04 UTC 2025


On Friday, 28 March 2025 at 17:36:00 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
>
> You need that migration to take advantage of the advanced event 
> loops like IOCP.

Actually, I had in mind trying to do something based on linux 
io_uring, though that would obviously be Linux specific...

> "The gccgo compiler implements goroutines using a technique 
> called segmented stacks, supported by recent modifications to 
> the gold linker. Gollvm similarly is built on the corresponding 
> LLVM infrastructure."
>
> https://go.dev/doc/faq
>
> Is this out of date?

Apparently...

https://gcc.gnu.org/onlinedocs/gccgo/

I've managed to run out of memory with gccgo, simply because each 
created goroutine uses a native thread.

I've manually called C routines from gccgo directly, without 
using cgo, making use of the techniques in the above manual, and 
had it call in to C very quickly, at native speed, and apparently 
on a native thread stack.

DF


More information about the Digitalmars-d mailing list