sustrik/libmill
View on GitHub ↗ ★ 3,182 C
Go-style concurrency in C
15 mentions on Hacker News by 14 people: 2 stories, 13 comments · first 2015-05-01 · latest 2023-12-13
20082026
-
libmill ( https://github.com/sustrik/libmill ) and libdill ( https://github.com/sustrik/libdill ) should be similar and probably mentioned. As far as I understand the differences between CspChan and libmill might be that libmill also…
comment by Matthias247 · 2023-12-13 · in Show HN: A pure C89 implementation of Go channels, with blocking selects -
https://github.com/sustrik/libmill/blob/e8937e624757663f5379... They wrote a macro (or in this case a set of macros) to transform that into valid C code.
comment by Jtsummers · 2022-03-17 · in libmill - Go-style concurrency in C -
Libmill is stack-unsafe https://github.com/sustrik/libmill/issues/167
comment by FrozenVoid · 2018-07-14 · in Libaco: A fast and lightweight C asymmetric coroutine library -
…or so). It turns out that a coroutine is just a function that the compiler should not inline: https://github.com/sustrik/libmill/blob/master/libmill.h#L24...
comment by kaeluka · 2017-12-21 · in Libdill: Structured Concurrency for C (2016) -
I wasn't saying that either, I was saying libmill did not do it in (pure) C: https://github.com/sustrik/libmill/blob/master/libmill.h It only works with gcc and clang now, no longer with windows, and is sprinkled with asm()s. That doesn't…
comment by mzs · 2016-11-02 · in I don't understand Python's Asyncio -
…http://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html [4] https://github.com/tylertreat/chan [5] https://github.com/sustrik/libmill
comment by 0xmohit · 2016-07-19 · in Functional programming in C (2013) -
How is this different from https://github.com/sustrik/libmill ? It's from the same author.
comment by the_duke · 2016-06-04 · in Libdill: Structured concurrency in C -
Libmill could be worth a look. https://github.com/sustrik/libmill
comment by notduncansmith · 2016-05-27 · in Parallelizing the Naughty Dog Engine Using Fibers [video] -
…be some data races in the stack allocation code, though I could be mistaken. E.g. stack.c#L137 [1]: https://github.com/sustrik/libmill/blob/master/stack.c#L47
comment by infogulch · 2015-11-18 · in Go-style concurrency in C -
Sadly it doesn't have support for Windows MSVC yet: https://github.com/sustrik/libmill/issues/16
comment by xvilka · 2015-11-18 · in Go-style concurrency in C -
"choose" is a macro: https://github.com/sustrik/libmill/blob/8054d5024bf5824b8060...
comment by gtrubetskoy · 2015-11-18 · in Go-style concurrency in C -
Clever macro expansions: https://github.com/sustrik/mill/blob/c1c302f7edb3811d9098f7b...
comment by mikepurvis · 2015-05-01 · in Mill: Go-style concurrency in C -
You can check the project directly here: https://github.com/sustrik/mill
comment by rumcajz · 2015-05-01 · in Mill: Go-style concurrency in C