Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nimmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
nimmer
7y ago
Same for many other languages... as far as memory safety goes because there are performance tradeoffs in a kernel.
92.
▲
by
nimmer
7y ago
The majority of stdlib modules does not depend on GC. Also, the new ARC memory manager replaces GC and can run in a kernel.
93.
▲
by
nimmer
7y ago
Indeed. A micro-benchmark on JSON parsing is a very misleading way to compare languages.
94.
▲
by
nimmer
7y ago
Please provide some examples of how Nim is not compatible with some coding standards.
95.
▲
by
nimmer
7y ago
> I think a language should help keeping the code consistent in the long term - and having this strange case insensitivity doesn't help there in my opinion. Not at all. Style insensitivity encourages good variable naming and there a
96.
▲
by
nimmer
7y ago
This is incorrect. Nim does not allow variables starting with underscore. Also, the compiler errors cannot if any of "useHTTP", "usehttp" or "use_http" is acceptable or unwanted, but it can error out with a cle
97.
▲
by
nimmer
7y ago
Nim's compilation is much faster than Go.
98.
▲
by
nimmer
7y ago
Yes, Nim is cross-platform. It also targets C, C++, Objective-C and Javascript, making it possible to run on platforms where using C is not the preferred choice.
99.
▲
by
nimmer
7y ago
It's shocking how people whine about case insensitivity without bothering to try using Nim for a while. Case insensitivity is a feature and it's meant to allow easy interfacing with C. And it also encourages clean code. With other
100.
▲
by
nimmer
7y ago
Nim generates C, C++, Objective-C and js - so yes, you can target Android and iOS
101.
▲
by
nimmer
7y ago
> allowing multiple different garbage collectors How's that a problem?
102.
▲
by
nimmer
7y ago
Nim is compiling to C. It also supports scripting.
103.
▲
by
nimmer
7y ago
> not really fair to say it's on par with C/Rust It is. The GC is inline, thread-local and can be run manually, disabled completely, or switched to the new owned reference.
104.
▲
by
nimmer
7y ago
> All GCs have eventually to stop the world Not at all. Nim is an example.
105.
▲
by
nimmer
7y ago
This is the owned reference memory management: https://nim-lang.org/araq/ownedrefs.html
106.
▲
by
nimmer
7y ago
Nim is already memory safe. If you want to run without GC, the new runtime is has an ownership model.
107.
▲
by
nimmer
7y ago
No: you can create system libraries in Nim, unlike Go. You can also entirely disable the GC or replace implementation. Nim can run without OS and on microcontrollers.
108.
▲
by
nimmer
7y ago
Yes, Nim can run on all sorts of architectures including AVR microcontrollers, MIPS, RISC-V.
109.
▲
by
nimmer
7y ago
There are many other benchmarks around where Nim is usually quite close to C. Perhaps Nim was not compiled in release mode.
110.
▲
by
nimmer
7y ago
> To make money? Not at all. Nim aims to achieve the expressiveness of Python , the speed of C, the programmability of LISP.
111.
▲
by
nimmer
7y ago
> appears to be yet another slightly different take on Rust or Go Nim is nowhere close to that. Most people describe it as a very fast statically typed Python.
112.
▲
by
nimmer
7y ago
Sometime people troll by sealioning: http://wondermark.com/c/2014-09-19-1062sea.png (I'm not accusing the granparent post)
113.
▲
by
nimmer
7y ago
Nim's syntax is very similar to Python simply because both are expressive, lean and have no braces. Naturally Python is dynamically typed and this, unfortunately, affects performance and maintainability.
114.
▲
by
nimmer
7y ago
Nim compiles to C, C++, Objective C as well.
115.
▲
by
nimmer
7y ago
Nim for sure. It's faster and can generate shared libraries.
116.
▲
by
nimmer
7y ago
I find Nim to be much closer to a statically typed Python - with the speed of C.
117.
▲
by
nimmer
7y ago
> C, D, C++, rust, and nim should all have comparable performance No, Nim is often among the fastests, sometimes surpassing C. This is because it targets C by default and uses data structures and code paths that GCC can optimize very wel
118.
▲
by
nimmer
7y ago
Nim is safe enough.
119.
▲
by
nimmer
7y ago
> but also has a GC, so it sits in that kind of performance ballpark No, Nim is way much faster. Also the GC is optional and in-line in each thread.
120.
▲
by
nimmer
7y ago
Wrong. A system language should at least build shared objects for other languages. Nim can, Go cannot.
More ›