Hacker GitHub

← All repos

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

Mentions per year 15 mentions · busiest year 2015 (7)
20082026
  1. 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…
  2. 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
  3. Libmill is stack-unsafe https://github.com/sustrik/libmill/issues/167
  4. …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...
  5. 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
  6. …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)
  7. 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
  8. Libmill could be worth a look. https://github.com/sustrik/libmill
  9. …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
  10. 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
  11. "choose" is a macro: https://github.com/sustrik/libmill/blob/8054d5024bf5824b8060...
    comment by gtrubetskoy · 2015-11-18 · in Go-style concurrency in C
  12. Clever macro expansions: https://github.com/sustrik/mill/blob/c1c302f7edb3811d9098f7b...
    comment by mikepurvis · 2015-05-01 · in Mill: Go-style concurrency in C
  13. 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