Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nimmer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
nimmer
8y ago
> Apart from some syntactic commonalities and expressiveness, Nim doesn't have a lot in common with Python. > The idiomatic approach to solving problems in Python and Nim are different On a practical level, they are close enough
152.
▲
by
nimmer
8y ago
> if you had a typo, and wrote "camelcase" instead of "camelCase" in just one place out of a hundred There are already formatter tools that check for that. Also, any editor with completion will suggest the right form
153.
▲
by
nimmer
8y ago
Nim competes very well with Python, Go and Rust in the sysadmin / system library / daemons space.
154.
▲
by
nimmer
8y ago
> I know that those types of benchmarks are flawed in a lot of ways If the speed of an HTTP framework impacts your application you have an architecture problem. Nim CPU, memory and compile time performance are excellent in most benchmark
155.
▲
by
nimmer
8y ago
> Births below replacement rate This is the opposite of a problem. Overpopulation is a huge global issue. > Vast prison population and byzantine court system > Systemic Unemployment and Age Discrimination You forgot discrimination
156.
▲
by
nimmer
8y ago
Yes. Bonus: you can reuse plenty of existing applications.
157.
▲
by
nimmer
8y ago
It works on microcontrollers just fine using the new GC or by disabling it.
158.
▲
by
nimmer
9y ago
Nim does that with JS. Wasm generation requires someone to write a compiler backend for it but it can be done.
159.
▲
by
nimmer
9y ago
I use Nim a lot and I've never seen libraries that mix different styles. I use grep without issues. Style insensitivity is useful when wrapping C libraries.
160.
▲
by
nimmer
9y ago
Nim https://nim-lang.org is programmable as well, more mature, and multiple memory management models are coming out.
161.
▲
by
nimmer
9y ago
> Nim seems like a language that is never truly finished True for every language. "1.0" will freeze the spec and it's not like the current versions are unstable or unusable.
162.
▲
by
nimmer
9y ago
Would you kindly share you experience on using Nim for that project?
163.
▲
by
nimmer
9y ago
> what the ecosystem for Python looked like in ~1999 Very small. The language was not popular and many people claimed a community project could not overtake languages backed by companies. Same for the Linux kernel.
164.
▲
by
nimmer
9y ago
Nim and Python. Having used many languages Nim is by far the most enjoyable to use.
165.
▲
by
nimmer
9y ago
Nim is among the fastest, more high level and people seem to like the Python-like syntax.
166.
▲
by
nimmer
9y ago
Nim runs even on microcontrollers and produces tiny executables (few kilobytes).
167.
▲
by
nimmer
9y ago
Nim can run on bare metal natively and even on microcontrollers like arduino. The GC is deterministic, the GC algorithm is pluggable and can be also turned off.
168.
▲
by
nimmer
9y ago
> great way to ensure that a language will have long-term support If anything, community-driven projects can keep on track longer: Linux, Python, non-commercial distributions, while corporate-driven one can change direction or be dropped
169.
▲
by
nimmer
9y ago
> lacks [...] community backing People keep complaining about the small community. Please join and help. > lacks corporate [...] backing Is that a bug or a feature? ...
170.
▲
by
nimmer
9y ago
Speed is not the problem. Amongst many other issues, php has a terrible security track record compared to other languages VMs/compilers.
171.
▲
by
nimmer
9y ago
Progressively writing parts of the kernel in Nim sounds more practical. Perhaps Nim can be used to write kernel modules already.
172.
▲
by
nimmer
9y ago
How's Java giving user more control than Nim? The latter allows for hardware access like C/C++
173.
▲
by
nimmer
9y ago
A code formatter/linter (similar to gofmt) would do the trick and prevent ambiguity.
174.
▲
by
nimmer
9y ago
> Does it hinder when you need to do refactoring? It has almost never been an issue for me and I don't use any case-insensitive refactoring tool. Just write variables in a consistent style and let completion help you stay consistent
175.
▲
by
nimmer
9y ago
> Go is simple and simplicity is elegance Can we please let go of this meme? Many polyglot developers complain about the lack of generics, and how Go code ends up being more verbose and less expressive than languages like Python. Things
176.
▲
by
nimmer
9y ago
> exception is just a type of return value No, they are part of the syntax. The compiler (in Nim and other languages) can track which exceptions are allowed to be raised in a procedure and which aren't at compile time: https:/
177.
▲
by
nimmer
9y ago
> How has your experience been compared to your previous tech? Having used Python, Go, C, Perl, Java, Nim is a breeze to code in. Occasionally the compiler glitches and you have to delete nimcache. Very rarely it fails to compile somethi
178.
▲
by
nimmer
9y ago
Various languages can generate server-side code and javascript. Since you asked, Nim generates C, JS and more: https://nim-lang.org/
179.
▲
by
nimmer
9y ago
Sorry about that. These annoying posts led to a discussion on the language forum. The Nim community, generally speaking, does not seem to support this militant attitude.
180.
▲
by
nimmer
9y ago
Nim is programmable with macros and templates and very flexible. Go is not at all.
More ›