|
|
Log in / Subscribe / Register

assignment-free garbage-collected data processing considered no substitute for cache locality

assignment-free garbage-collected data processing considered no substitute for cache locality

Posted Sep 27, 2009 13:46 UTC (Sun) by xoddam (subscriber, #2322)
In reply to: Writing kernel modules in Haskell by simlo
Parent article: Writing kernel modules in Haskell

Unfortunately one consequence of avoiding assignment in your language is that sane-looking code requires new locations for new data. The only way to say "I want this data updated in place" is to declare a monad for that data, and a multitude of monads is probably as problematic to debug as C code.

Otherwise you will end up doing *everything* as garbage-collected RCU. Great, in theory, for scalability on the grand scale but dreadful for performance on typical machines with only a few CPUs(!) and a few gigabytes (!) of RAM.

Perhaps best to implement the kernel of your kernel in well-audited C but begin to adopt the secure languages for peripheral components such as device drivers.

Writing kernel modules in Haskell, you might say.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds