Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sp33der89
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
sp33der89
5y ago
My statement was mostly an exaggeration, than an absolute truth. REPLs are really nice, but it's story with Nim is less nice. There is: https://github.com/inim-repl/INim and the builtin `nim secret`. There is also
62.
▲
by
sp33der89
5y ago
The source code for the benchmarks is here: https://github.com/the-benchmarker/web-frameworks And the httpbeast code is here: https://github.com/the-benchmarker/web-frameworks/tree/maste.
63.
▲
by
sp33der89
5y ago
The proof is in the link! > Fast compile times: a full compiler rebuild takes ~12s (Rust: 15min, gcc: 30min+, clang: 1hr+, Go: 90s) [2]. The compiler is really big and self-hosted too. For large nim projects check out: https://
64.
▲
by
sp33der89
5y ago
Yes, this is something I should have mentioned as well, Nim does a lot of things just right and adds all the right things so it stays out of your way, is not too verbose but still has enough safety guards where you can just do what you want
65.
▲
by
sp33der89
5y ago
Well no language is perfect, but Nim can be used in almost every domain because of it's compilation targets(C, C++, JS) and it's fast compile times(who needs interpretation when compile times are that fast!): * Shell scripting, I
66.
▲
by
sp33der89
5y ago
* Goroutines are probably a lot more easier to use. Work is being done to make Nim even better in that area: https://github.com/nim-works/cps but don't expect it soonish. * I feel like Go has less 'edge cases
67.
▲
by
sp33der89
5y ago
Nim is the most readable language I've ever seen. I've dabbled with Go, but Nim is almost like pseudocodes+types. Highly recommend you take a look and try it out! You can use libraries like https://github.com/plane
68.
▲
by
sp33der89
5y ago
I would love to see languages like OCaml, D, Nim benchmarked here as well. They sit sortof in between Go and Rust, where I don't have to deal with manual memory management but get enough expressiveness to write a nice Lambda.
69.
▲
by
sp33der89
5y ago
I thought spec wasn't that great? Or was this some time ago and it has improved meanwhile? I also saw TypedClojure but not sure what to choose.
70.
▲
by
sp33der89
5y ago
Clojure looks like almost my ideal programming language, nice tooling, features that work well together, and not too hard to learn thanks to great beginner resources, awesome REPL, frontend support. But I do like my types, so basically I&#x
71.
▲
by
sp33der89
5y ago
I've read a lot online that Scala is complex, but I had an easier time with learning Scala than I had reading through the TypeScript docs. And I dived into TS after Scala. Except for implicits ha.
72.
▲
by
sp33der89
5y ago
You might be interested in https://nim-lang.org/ and it's new deterministic memory management method!
73.
▲
by
sp33der89
5y ago
Nim is first and foremost a procedural language like Go, if you use it as a better Go you'll have a great time, if you try to make Nim more OOP you can use libraries like: https://github.com/bluenote10/oop_utils t
74.
▲
Pixie – A full-featured Skia alternative in Nim
(github.com)
3 points
by
sp33der89
5y ago
|
0 comments
75.
▲
by
sp33der89
5y ago
"a better Go than Go", this is exactly how I use Nim currently, and I couldn't have said it better myself!
76.
▲
by
sp33der89
5y ago
I get what you're at with the multiple ways to do stuff, but in Nim it actually makes it more consistent (imo). If my codebase enforces camelCase and a library uses snake_case, then I can still use that library using camelCase, and Nim
77.
▲
by
sp33der89
5y ago
Even though it's not according to the styleguide, you can just use snake_case whenever and wherever you want, consumers of your libraries or other way around will never notice!
78.
▲
by
sp33der89
5y ago
Do you have examples of what you mean with unnecessarily noise? For me it's the JSON operators. `@[]` for sequences could also be a thing, but it's really minor(for me).
79.
▲
by
sp33der89
5y ago
Congratulations to the team!! Scala has been critiqued a lot online, from what I've seen atleast, and the Scala team took that feedback and are actively trying to solve it. From bettter tooling to simplifying language features, I want
80.
▲
by
sp33der89
6y ago
This! Nim has shown it has capable JS support and web support, but it can't do everything on it's own. There are web frameworks popping up but they need more contributors to them. But one can get far right now with Nim and web dev
81.
▲
by
sp33der89
6y ago
Why would one chose Pluto over say Weave or the other way around?
82.
▲
by
sp33der89
6y ago
Since Pony uses LLVM, it should be possible to compile to WASM. Not sure if it's on the immediate roadmap of the Pony team. But I don't think the effort is as big as Lumen. As far as graphics go, I'd say Pony is quite early s
83.
▲
by
sp33der89
6y ago
Yup! I hope it gets more love from the scientific community. https://forum.nim-lang.org/t/5242 Also worth mention would be F#: https://github.com/SciSharp
84.
▲
by
sp33der89
6y ago
How does Fable 3 stack up against ReScript or Scala.js? Is the only difference the ecosystem around the toolchains?
85.
▲
by
sp33der89
6y ago
Here are some handy links (for me) that might help you out too: https://nim-lang.org/blog/2020/10/15/introduction-to-arc-orc... https://www.youtube.com/watch?v=aUJcYTnPWCg https:/&
86.
▲
by
sp33der89
6y ago
Congratulations! And thanks for all the progress on ARC/ORC. But I must say, even though I'm excited about ARC/ORC, I'm even more happy to see the nice list of bugfixes and quality standard library additions!!
87.
▲
by
sp33der89
6y ago
But duties are being delegated and Araq isn't alone. For example multithreading has been delegated to the amazing mratsim: https://github.com/mratsim/weave . There are multiple people helping with the new move-se
88.
▲
by
sp33der89
7y ago
It really doesn't! It's GC story is pretty great, because you can choose out of several GC's, one of them being good for real-time systems: https://nim-lang.org/docs/gc.html Recent versions also use this
89.
▲
by
sp33der89
7y ago
As girvo mentioned, compile times are really fast. Might not be as fast if you're heavy user of metaprogramming but it's still really good. For example see: https://github.com/mratsim/Arraymancer in the READM
90.
▲
by
sp33der89
7y ago
What was your experience like using Nim for those projects?
More ›