111 points · by Immortalin · 11y ago · 12 comments
This is basically a line by line rewrite of http://wiki.osdev.org/Bare_Bones
I loved the Erlang on Xen concept, by way of example. But could you imagine in the future if you had a full Common Lisp or OCaml or Python or Ruby OS that could leverage a liblinux.so of sorts and control a webcam or wireless card with your language of choice thanks to pluggable OS driver backends? I know this requires work in each language, but it would be crazy if this is the future.
Do the OS as a language VM on Xen packages handle anything more than basic user input and/or network? Are peolpe working on these Xen stuff taking it further like what I want?
Sorry for the questions. It is a lot to ask at once but this idea has been in the back of my head while reading similar HN articles for a few months now.
And fiddling with pointers which is typical for C is generally a bad programming style (imho).
Nim translates to C, so you get plain C source code without fear of the dangers which can happen by direct coding in C.
Probably for all the myriad of reasons that don't have to do with safety, and in which Nim is arguably better than Rust, C++, Python, or whatever language is most relevant to compare to.
https://andreaferretti.github.io/on-rust-and-nim/
https://arthurtw.github.io/2015/01/12/quick-comparison-nim-v...