Live data from Hacker News

Nim 1.4

nim-lang.org

101–110 of 144 posts

Re: Nim 1.4

#101
Web development.

I’ve said it before and I’ll say it again ... I wish more folks would use NIM for web development.

Re: Nim 1.4

#102
So one of the biggest improvements to my day-to-day life as a programmer was having compiler-checked nullability in Kotlin. It is the most significant feature that makes programs more reliable and code more readable compared to Java. I never want to miss it again.

Why did Nim decide to allow null pointers? They must have had a very good reason, given its young age?

Re: Nim 1.4

#103
post #65

Earlier quoted context omitted.

I've been using vscode+nim. Debugging was mostly just writing correct code in the first place! ;) The only gripe I have is sometimes nimsuggest hanging itself at 100% cpu use, and I have to kill it manually. Even with the rather oldschool approach of echo/logging.nim usage, things tend to turn around quickly. I have not felt the need to be able to attach a debugger to the process, mostly because our architecture is v…

What build system are you using if not MSBuild then?

I use the Nim and GCC compilers from Debian in order to have guaranteed stable build system for 5+ years.

Re: Nim 1.4

#104
post #100

I'm going to do a little bit of a shameless plug as a way to show off just what Nim is capable of. If you've ever played one of the many IO games, it might seem familiar to you. Basically I have used Nim to create a multiplayer game that can be played in the browser[1]. I'm planning to write up a more detailed post outlining the architecture of this. But suffice it to say, Stardust is written 100% in Nim. Both the se…

> Android client up and running too, it also is built from the same code

How does that work, and is it an alternative to dart/flutter?

Re: Nim 1.4

#105
post #100

I'm going to do a little bit of a shameless plug as a way to show off just what Nim is capable of. If you've ever played one of the many IO games, it might seem familiar to you. Basically I have used Nim to create a multiplayer game that can be played in the browser[1]. I'm planning to write up a more detailed post outlining the architecture of this. But suffice it to say, Stardust is written 100% in Nim. Both the se…

Not to disparage Nim, but I can think of a number of other languages where this is possible:

* JS, obviously

* Rust

* C/C++

* Anything else that can compile to WASM

Re: Nim 1.4

#106

So one of the biggest improvements to my day-to-day life as a programmer was having compiler-checked nullability in Kotlin. It is the most significant feature that makes programs more reliable and code more readable compared to Java. I never want to miss it again. Why did Nim decide to allow null pointers? They must have had a very good reason, given its young age?

Interop I imagine.

Re: Nim 1.4

#107

So one of the biggest improvements to my day-to-day life as a programmer was having compiler-checked nullability in Kotlin. It is the most significant feature that makes programs more reliable and code more readable compared to Java. I never want to miss it again. Why did Nim decide to allow null pointers? They must have had a very good reason, given its young age?

nil checking is being worked on : it might be a part of 1.6

Re: Nim 1.4

#108

So one of the biggest improvements to my day-to-day life as a programmer was having compiler-checked nullability in Kotlin. It is the most significant feature that makes programs more reliable and code more readable compared to Java. I never want to miss it again. Why did Nim decide to allow null pointers? They must have had a very good reason, given its young age?

Minor correction Re: "young age" - Nim dates back to 2006 with a first public release in 2008 and is older than Go and Go is older than Kotlin.

Re: Nim 1.4

#109
post #105
post #100

I'm going to do a little bit of a shameless plug as a way to show off just what Nim is capable of. If you've ever played one of the many IO games, it might seem familiar to you. Basically I have used Nim to create a multiplayer game that can be played in the browser[1]. I'm planning to write up a more detailed post outlining the architecture of this. But suffice it to say, Stardust is written 100% in Nim. Both the se…

Not to disparage Nim, but I can think of a number of other languages where this is possible: * JS, obviously * Rust * C/C++ * Anything else that can compile to WASM

Fair enough. I think then we get into how easy this is to do in these. For example, can you really target the web browser vs node from the same JS codebase by simply changing the compiler invokation?

Re: Nim 1.4

#110
post #100

I'm going to do a little bit of a shameless plug as a way to show off just what Nim is capable of. If you've ever played one of the many IO games, it might seem familiar to you. Basically I have used Nim to create a multiplayer game that can be played in the browser[1]. I'm planning to write up a more detailed post outlining the architecture of this. But suffice it to say, Stardust is written 100% in Nim. Both the se…

> Android client up and running too, it also is built from the same code How does that work, and is it an alternative to dart/flutter?

I wouldn't say so. Since my game mostly just needs a canvas I make use of SDL2 to target Android (and plan to use it for iOS/desktop as well). I created a thin library which targets either HTML5 canvas (JS) or SDL2 (everything else): https://github.com/dom96/gamelight
Post reply on HN