News for hackers. Stuff that matters.
Re:NimConf 2022 – Nim Online Conference by ZoomZoomZoom on Friday October 21, 2022 @11:23AM (#33288990)
I suggest you think of Nim as a better Go - more ergonomic, easier to start being productive in, faster, giving more control if necessary (by descending into the unsafe territories of manual memory management, `emits` and such), more portable, suitable for workstations and embedded alike.

Zig is definitely not that. And I understand the description above misses the downsides of a small community and not the strongest ecosystem.

Re:NimConf 2022 – Nim Online Conference by 0cf8612b2e1e on Friday October 21, 2022 @12:21PM (#33289763)
I think it is a stretch to compare Nim and Go as anything other than statically compiled languages. Nim is the anti-Go with every possible programming paradigm inside the language.
Re:NimConf 2022 – Nim Online Conference by ZoomZoomZoom on Friday October 21, 2022 @12:39PM (#33290022)
The implementation details and the development ethos differ, but from the pragmatic point they compete, offering higher abstraction level over C. Moreover:

- Both took some inspiration from languages of Wirthian family.

- Both promise easy onboarding and high readability.

- Both rely on automatic memory management by default.

On the other hand, I agree that Nim feels and functions totally different while offering much more possibilities. You can definitely call Nim the anti-Go, but it doesn't negate the fact it could absolutely shine in the same domains, at least with a bit more love, attention and funding.

Re:NimConf 2022 – Nim Online Conference by Mikeb85 on Saturday October 22, 2022 @01:07AM (#33295788)
But they're both statically typed GC languages that compile to native binaries. Versus Zig which has no GC and is more akin to C, Rust, Ada, that sort of thing...
Re:NimConf 2022 – Nim Online Conference by goodpoint on Saturday October 22, 2022 @05:26AM (#33296755)
With ARC Nim is also very akin to Ada and Rust: https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc...
Re:NimConf 2022 – Nim Online Conference by Mikeb85 on Saturday October 22, 2022 @12:39PM (#33299826)
> ORC is Nim’s all-new cycle collector based on ARC. It can be considered a full-blown GC since it includes a local tracing phase (contrary to most other tracing GCs which do global tracing). ORC is what you should use when working with Nim’s async because it contains cycles that need to be dealt with.

From that blog post. Nim is great but it's more Go and less Rust...

Re:NimConf 2022 – Nim Online Conference by goodpoint on Sunday October 23, 2022 @05:55PM (#33310664)
> more Go and less Rust

Not at all, it does not have a runtime with a built-in thread pool and channels like Go.

Re:NimConf 2022 – Nim Online Conference by anta40 on Friday October 21, 2022 @11:34AM (#33289112)
I learnt a bit of Nim few years ago, but haven't continue it. My understanding so far is unlike Go, Nim doesn't have concurrency built into the language/runtime?
Re:NimConf 2022 – Nim Online Conference by auxym on Friday October 21, 2022 @11:43AM (#33289231)
Hopefully it should get better soon-ish, but concurrency (and even parallelism aka threads) unfortunately is probably Nim's weakest point at the moment.

On the good side, compared to go, Nim's interop with C is fully transparent (since Nim uses C as a backend). This means easy access to C libraries, but also makes it very appropriate for embedded targets like microcontrollers (especially with its ARC memory-management system, which is static/deterministic automatic reference counting).

Re:NimConf 2022 – Nim Online Conference by ilaksh on Sunday October 23, 2022 @06:21AM (#33305877)
Of course it does.