4 ms·
Fibers were implemented by Microsoft in Win32 API in 1996: https://devblogs.microsoft.com/oldnewthing/20191011-00/?p=102989 https://devblogs.microsoft.com/oldn
by scythe 3y ago
Fibers were implemented by Microsoft in Win32 API in 1996:
https://devblogs.microsoft.com/oldnewthing/20191011-00/?p=102989 https://devblogs.microsoft.com/oldnewthing/20191011-00/?p=10...
As the review Chen links discusses, it turns out that M:N threading (i.e. goroutines) and good C compatibility are mutually exclusive. Go went one way, every other language went the other way. The most common alternative is stackless coroutines, which are much more widely implemented than the Go model.
- zozbot234 3y agoThat review is by Gor Nishanov: http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p1364r0.pdf http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2018/p136... The most relevant quote: > DO NOT USE FIBERS!
- tomp 3y agoEven stackless coroutines aren't very popular. No other popular language specification has them (except maybe Haskell/GHC, but it's not that popular).
- iainmerrick 3y agoJavaScript?
- magicalhippo 3y agoAnd COM interfaces. They could be clunky in C/C++ but Delphi implemented interfaces quite nicely[1] back in 1999[2]. And being for Windows, Delphi had full access to Win32 API. [1]: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_Interfaces_Across_the_Hierarchy https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_In... [2]: https://en.wikipedia.org/wiki/History_of_Delphi_(software)#Borland_Delphi_5 https://en.wikipedia.org/wiki/History_of_Delphi_(software)#B...