site  contact  subhomenews

Considering adopting Nim language

August 11, 2022 — BarryK

I posted earlier today about synchronizing apt with ppm:

https://bkhome.org/news/202208/plan-to-sync-pkgget-and-apt-dpkg.html

For which will need to write some utility applications. Yes, could write them in ash/bash shell script, but we often resort to a compiled language when speed is required. EasyOS has some utilities written in C, and up until a few days ago, some written in BaCon:

https://bkhome.org/news/202208/picscale-package-removed.html

https://bkhome.org/news/202208/bacon-dependency-removed-from-oe.html

I like BaCon, it has very nice high-level features that make coding easy. My particular problem though, has been the OE cross-compile environment, that BaCon doesn't like.

I would still like a compiled "systems" language that is higher-level than C. Recently, I read a post, don't recall where, someone very highly praised Nim as a systems language.

Wikipedia:

https://en.wikipedia.org/wiki/Nim_(programming_language)

Then I discovered that there is a recipe for building it in OpenEmbedded|Yocto:

https://github.com/aguspiza/meta-nim

Oh wow, will give that a go tonight.

The other requirement, is although it is a systems-programming language, want to be able to create GUI apps. Discovered heaps of GUI toolkits. Here are some found in a 5-minute google:

https://github.com/StefanSalewski/gintro

https://github.com/nim-lang/ui

https://github.com/yglukhov/nimx

https://github.com/simonkrauter/NiGui

Here is the Nim homepage:

https://nim-lang.org/

Looks good!      

Tags: easy