Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nimmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
nimmer
6y ago
While the lottery factor is concerning, also many corporate-driven languages have a similar risk: the company can drop the language or bend it out of shape to satisfy business needs. It happened many times.
62.
▲
by
nimmer
6y ago
Among other things, Nim is programmable using templates and macros and very powerful at that. Also it's faster than Go on most benchmarks.
63.
▲
by
nimmer
6y ago
> small things like syntax This is no small thing. The expressiveness of a language makes the difference between happy productivity and tedious typing and swearing. Nim is in the same ballpark as Python here, while many other languages r
64.
▲
by
nimmer
6y ago
The garbage collector is optional and Nim is memory safe. Just like Rust, you can unsafe structures when using libraries in C/C++.
65.
▲
by
nimmer
6y ago
> eventually we will ditch JS in favor of something more "isomorphic" with whatever the back-end is using. I think you are looking for Nim. It compiles to assembly (through C), javascript, wasm and more.
66.
▲
by
nimmer
6y ago
Yes, Nim uses C and GCC and this gave it very fast compile times and similar performance. It also runs on most devices supported by GCC.
67.
▲
by
nimmer
6y ago
I had no idea Parallella had its own architecture.
68.
▲
Nim on Parallella
(mkaczanowski.com)
2 points
by
nimmer
6y ago
|
1 comments
69.
▲
by
nimmer
7y ago
Nim would have been a better choice. It's often as fast as C, similar to a static typed Python and completely programmable.
70.
▲
by
nimmer
7y ago
> nobody big is behind it Being a grassroot, community-driven project is a feature, not a bug.
71.
▲
by
nimmer
7y ago
It does.
72.
▲
by
nimmer
7y ago
Nim string templating is very powerful. What is your unmet need, precisely?
73.
▲
by
nimmer
7y ago
The new ARC memory manager will replace GC.
74.
▲
by
nimmer
7y ago
Nim is very close to a statically typed Python.
75.
▲
by
nimmer
7y ago
You can use tuples in Nim and it would be almost identical.
76.
▲
by
nimmer
7y ago
While all you say is true, "on order of magnitude" mean 10x and "several orders of magnitude" mean 1000x or more.
77.
▲
by
nimmer
7y ago
...or let automated tools like c2nim do the job.
78.
▲
by
nimmer
7y ago
You don't need to modify the code, just add a wrapper. Nothing prevents generating a wrapper automatically but 99% of the time that is not very useful. The large majority of Python extension contain Python-specific code to access or re
79.
▲
by
nimmer
7y ago
Spot on! > HN upvote system has nothing to do with right or wrong or constructing a good discussion Spot on again. You are probably getting a hundred downvotes :(
80.
▲
by
nimmer
7y ago
"compiled Mypy with Nim-like speed" is Nim, essentially.
81.
▲
by
nimmer
7y ago
https://www.manning.com/books/nim-in-action - from one of the core developers.
82.
▲
by
nimmer
7y ago
Nim has an automated generator for C/C++ wrappers or translating from C. Also there are very easy ways to create Python modules in Nim: https://robert-mcdermott.gitlab.io/posts/speeding-up-python-... https:/
83.
▲
Nim vs. Rust on IoT Devices
(forum.nim-lang.org)
5 points
by
nimmer
7y ago
|
0 comments
84.
▲
by
nimmer
7y ago
The only two that I can think of are due to static typing: You cannot enforce types only where you want, like mypy. Yet, type inference and automated conversions help quite a bit. There's an unofficial REPL in the compiler but you cann
85.
▲
by
nimmer
7y ago
Nim is the closest language to Python. Translating to Python is a breeze and you get speeds comparable with pure C.
86.
▲
by
nimmer
7y ago
This is incorrect. Nim has 5 default GC methods and the upcoming automated reference counting. It runs even on the smallest microcontrollers.
87.
▲
by
nimmer
7y ago
You can use Nim in games using deterministic, real-time GC. Also, the new ARC memory management will replace GC https://forum.nim-lang.org/t/5734
88.
▲
by
nimmer
7y ago
> good-enough macros, Nim That's an understatement. Nim's macros and templates are one of its best features.
89.
▲
by
nimmer
7y ago
Quite a bit of work is happening around https://nim-lang.org/ and perhaps Status.im is still hiring.
90.
▲
by
nimmer
7y ago
I used various modules with gc:none I meant that new ARC GC, that will replace the current one, can be used for the kernel. It's still a GC, technically, but, quoting Araq on ARC: Nim is getting the "one GC to rule them all".
More ›