Hacker GitHub

← All repos

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

Mentions per year 6 mentions · busiest year 2018 (1)
20082026
  1. …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
  2. …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
  3. "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…
  4. …function returns the yielded value and the next continuation as for my EffectHandeler example. https://github.com/gpderetta/libtask/blob/master/tests/conti...
  5. …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
  6. …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