gpderetta/libtask
View on GitHub ↗ ★ 13 C++
6 mentions on Hacker News by 1 person: 0 stories, 6 comments · first 2018-06-06 · latest 2025-02-11
20082026
-
…it as some sort of art and not really something that should be anywhere close to production. [1] https://github.com/gpderetta/libtask/blob/a5e6e16ddc4e00d9f7...
comment by gpderetta · 2025-02-11 · in Fun with C++26 reflection: Keyword Arguments -
…to make the $(x, y)(x*y) syntax work a few years ago when trying to emulate constexpr lambdas: https://github.com/gpderetta/libtask/blob/master/lambda.cpp
comment by gpderetta · 2023-10-11 · in Numbered block parameters in Ruby -
"Easy" to do if you are willing to put up with macros: https://github.com/gpderetta/libtask/blob/master/tests/q_test.cpp#L160 Note the macro is $, tup is just a C++ function. It doesn't handle your .bar case, but would be very easy to…
comment by gpderetta · 2022-05-12 · in Ballerina: A Data-Oriented Programming Language -
…function returns the yielded value and the next continuation as for my EffectHandeler example. https://github.com/gpderetta/libtask/blob/master/tests/conti...
comment by gpderetta · 2021-10-12 · in Effective Concurrency with Algebraic Effects in Multicore OCaml -
…Also note how the queue node is stack allocated directly on the suspended coroutine stack. [1] https://github.com/gpderetta/libtask/blob/master/task.cpp#L1... ; note that here 'swap_context_ex' is called 'callcc' as is conceptually very…
comment by gpderetta · 2020-10-05 · in Fibers, Oh My -
…is kind of my hobby, so I have actually multiple ones: // A more canonical implementation: https://github.com/gpderetta/libtask/blob/master/continuatio... // Aggressively optimized: https://github.com/gpderetta/delimited/blob/master/delimit…
comment by gpderetta · 2018-06-06 · in Improving Ruby Fibers