So I’ve been a bit out these weeks, as free time got shorter and shorter. I was looking for some language as “easy” as Python on the eyes, that wouldn’t take me years to understand. Thought of Rust, but damn… that is for the pros not for an amateur wannabe like myself. So by accident I found Nim. To me it looks nice enough, at least on the eyes, with a clean sintax and whatever. So decided to give it a try on a test OS I have around.
Then I thought that it might be also possible to run it on Haiku, so what the heck, here it is:
This is the typical Hello World example. I built Nim from source with SUCCESS exit code and used the Nim compiler to run the helloworld.nim example which is a single line:
echo “hello world”
I still have to add the binary to the path and try other things, but at least, the first attempt worked. I’ll try to do something more serious and add the binary to the path, or move the binary to the /bin dir. Of course, it does not install to the Haiku /bin directory.