News for hackers. Stuff that matters.

disruptek

Re:Nim CPS: compile-time continuations on Wednesday February 14, 2024 @12:43PM (#39372706)
Resubmit because I typo'd the link. XD
Re:Nim CPS: compile-time continuations on Wednesday February 14, 2024 @12:41PM (#39372673)
This'll get you closer: https://github.com/nim-works/cps

Sorry, I was in a hurry.

Re:Nim CPS: compile-time continuations on Wednesday February 14, 2024 @12:35PM (#39372598)
Another in the continuing discussion... CPS as a library using nothing more than Nim's meta-programming.
Re:ORC – Nim's new memory managment on Tuesday December 08, 2020 @02:37PM (#25350246)
You can read about the reasoning behind subgraph ownership here: https://github.com/nim-lang/RFCs/issues/244
Re:ORC – Nim's new memory managment on Tuesday December 08, 2020 @11:58AM (#25347942)
Also, we don't scan "live" memory, which matches your intuition -- why would we?
Re:Nim 1.4 on Friday October 16, 2020 @05:46PM (#24805364)
Nim doesn't require that you use a gc; one of its many gc options is `none`, which is, as it sounds, no garbage collector at all.
Re:Introduction to ARC/ORC in Nim on Thursday October 15, 2020 @10:42AM (#24789108)
I want to remove a couple misunderstandings that I see in the comments.

Nim is "not done" and I hope it never will be. Watch Guy Steele's "Growing a Language" talk for my rationale. We want a language that can continue to evolve and introduce or research new programming language technology.

ARC is scope-based memory management computed at compile-time. It is deterministic and not stop-the-world. If you want to influence the memory management for performance reasons, it's quite trivial to do so by manipulating scopes. There are also knobs and levers if you need direct control of individual allocations.

ORC is ARC but with the tiny addition of a cycle-breaker.

ORC will be the default because it's more convenient than ARC while capturing all of the benefit. It simply adds calls to the cycle-breaker that you may be uninterested in typing in yourself.

Re:Nim – Python-like statically-typed compiled language on Monday August 17, 2020 @10:21AM (#24187501)
Please open an issue if you want to change the semantics; it's trivial to use the hash instead.
Re:Nim – Python-like statically-typed compiled language on Sunday August 16, 2020 @04:06PM (#24180774)
Nimph has had lockfiles for months.

https://github.com/disruptek/nimph