Hacker GitHub

← All repos

nim-works/cps

View on GitHub ↗ ★ 218 Nim

Continuation-Passing Style for Nim 🔗

9 mentions on Hacker News by 8 people: 2 stories, 7 comments · first 2021-10-19 · latest 2026-07-29

Mentions per year 9 mentions · busiest year 2023 (3)
20082026
  1. …Java got its virtual threads very recently); you can just[1] implement a CPS transform as a macro: https://github.com/nim-works/cps/blob/master/docs/cps.svg [1] Yeah, I know, this word is extremely overworked in that sentence. Sorry,…
    comment by klibertp · 2026-07-29 · in Lisp moving Forth moving Lisp
  2. ▲ 7
    Nim CPS: compile-time continuations
    story by disruptek · 2024-02-14 · 3 comments
  3. This'll get you closer: https://github.com/nim-works/cps Sorry, I was in a hurry.
    comment by disruptek · 2024-02-14 · in Nim CPS: compile-time continuations
  4. …compile-time) You can also implement Continuation-Passing-Style transformation at compile-time: - https://github.com/nim-works/cps Or a neural network DSL or for a self-contained example, einsum: - https://github.com/mratsim/Arraymancer/blo…
    comment by mratsim · 2023-12-04 · in D Programming Language
  5. There has been a more-or-less working CPS implementation for Nim for a few years now: https://github.com/nim-works/cps https://github.com/nim-works/cps/tree/master/docs Nobody seems to care though, as it has gained no traction at all and…
    comment by zevv · 2023-10-01 · in NIR: Nim Intermediate Representation
  6. …- cps allows arbitrary procedure rewriting in continuation passing style: https://github.com/nim-works/cps A longer list can be found at https://github.com/ringabout/awesome-nim .
    comment by j-james · 2023-08-01 · in Nim 2.0
  7. ▲ 22
    CPS – Also Known as Continuation-Passing Style – For Nim
    story by auxym · 2022-02-05 · 0 comments
  8. I think the CPS attempt in Nim could do this https://github.com/nim-works/cps
  9. …are probably a lot more easier to use. Work is being done to make Nim even better in that area: https://github.com/nim-works/cps but don't expect it soonish. * I feel like Go has less 'edge cases', but the Nim compiler is steadily getting…
    comment by sp33der89 · 2021-10-19 · in Nim 1.6