by diffuse_l · 3y ago · 0 comments
[0] https://devblogs.microsoft.com/oldnewthing/20191011-00/?p=10...
[0] http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p136...
Apparently the 2018 paper table only covered top 10 languages in the TIOBE index, I wished it can be updated and extended further to top 50 languages.
Another popular compiled language with GC (by default) namely D language (TIOBE ranked 37 as of Sept 2023) does support fiber and it's implemented in its vibe.d web framework [1],[2].
Gor also mentioned about significant 160 ns overhead for stackful fiber in Go (goroutine) to interact with a C library i.e. cost of switching between Go's goroutines and C threads (as of 2018). It will be interesting to know the fiber overhead in D language since C compilation is now natively supported by D compiler [3].
[1] Fibers in Programming in D:
https://ddili.org/ders/d.en/fibers.html
[2] Fibers, what for:
https://forum.dlang.org/thread/eowfajvnzqnncmfnjhnf@forum.dl...
[3] Adding ANSI C11 C compiler to D so it can import and compile C files directly: