Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
narimiran
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
narimiran
8y ago
> Have you ever had one of those notepads with the kind of paper that made you want to write something, anything, even though you had nothing to write about? That's exactly my experience with F# (not surprising, knowing how simila
62.
▲
Quirky exceptions
(nim-lang.org)
7 points
by
narimiran
8y ago
|
0 comments
63.
▲
by
narimiran
8y ago
> python was easily beating Nim in speed I'm just guessing here, but did you compile Nim in debug mode? (nim c filename.nim) From my experience, compiling files in release mode (nim c -d:release filename.nim) makes similar tasks r
64.
▲
by
narimiran
8y ago
Let writing an email reminder program be your Day 0 task for tomorrow ;)
65.
▲
by
narimiran
8y ago
> I have written code to traverse matrices in which I use indices `I` and `J` to iterate over submatrices and indices `i` and `j` to iterate over individual values in a submatrix. Please notice that the first letter in Nim is case-sens
66.
▲
by
narimiran
8y ago
> Does this mean the fastest developer (first to submit a solution?) Yes, it means the fastest player on Nim leaderboard , i.e. the one who will on the top of the leaderbord on December 25th. I guess the fastest program(s) could fal
67.
▲
by
narimiran
8y ago
> I personally found it to be a turn-off. I feel like this is mentioned (by the people who just glance over Nim) every time there is some discussion about Nim, and IMO it is blown way out of proportion. In my cca year and half of using
68.
▲
by
narimiran
8y ago
> I've gotten a good impression of nim. Anybody out there who has tested that can say if my hunch is right or not? I've started using Nim couple of months before last year's Advent of Code, after I've been reading a
69.
▲
by
narimiran
8y ago
> I've wanted to create a marketplace for "80% done" projects But you have stopped working on it when you were 80% done? :)
70.
▲
by
narimiran
8y ago
I'll mention another great library from the same author: https://github.com/yglukhov/nimpy A library which allows you to connect Python and Nim so you could, for example, use Nim (instead of Cython) for speeding u
71.
▲
by
narimiran
8y ago
> I'm looking for an opportunity to use it at work for something minor Recently I've been using Nim at my work as a Python+Numpy replacement for a numerical simulation of multi-body contacts. (Just two hours ago I had a small t
72.
▲
by
narimiran
8y ago
It depends on your background. If you would like to go from the very beginning (no or minimal programming experience): https://narimiran.github.io/nim-basics/ (disclamer: I'm the author of that tutorial) If you ar
73.
▲
by
narimiran
8y ago
> So excited for this addition! I've been using it for a while in the devel version (Nim v0.18.1), and it is great — I like it very much and I completely understand your excitement! Before I didn't bother with {.noSideEffect.}
74.
▲
by
narimiran
8y ago
>> a small change in parameters (for example, the initial conditions of a process) __can__ totally change the result. Say, for this reason a reliable long-term weather forecast is impossible and will remain impossible (emphasis mine
75.
▲
by
narimiran
8y ago
I saved the data in .csv and then used that, because not only did I need/want to just plot the results, but I also wanted to explore and further analyse the data in a Jupyter Notebook.
76.
▲
by
narimiran
8y ago
No, it isn't. `*` after a name means that the variable/function/type/etc. is public and can be seen/used when you import a module. So the whole expression just means "a public constant string (automatically inf
77.
▲
by
narimiran
8y ago
A year ago I've started experimenting with Nim as a "faster Python" — put some declarations, change some keywords and you're ready to go — your "compiled Python" is now ~30x faster. Recently I've used Nim
78.
▲
by
narimiran
8y ago
> No major Linux distro besides arch ships with 3 as it's base either. To add one more entry to sslalready's list: Don't know if you consider Manjaro just an Arch derivative, or not-major (despite being the most popular
79.
▲
by
narimiran
8y ago
> someone had their caplocks setup to be esc on click, or control on hold I have this setup, and it is great. After you switch capslock to be Ctrl, just run (at startup): xcape -e 'Control_L=Escape'
80.
▲
by
narimiran
8y ago
> I hope you'll find this inspirational if you decide to take a moment to rethink typography, typesetting and the overall design of the website and PDF. Thanks for the feedback! I would very much like to improve the looks of the w
81.
▲
by
narimiran
8y ago
> That is the clearest, most succinct explanation of variables, types and mutability I’ve ever read. Thank you very much! It means a lot to see this kind of feedback. > It’s difficult to break ‘obvious’ things down to those without
82.
▲
by
narimiran
8y ago
> this is a very well written tutorial. Might be a nice format to use in other basic language tutorials. Author of the tutorial here. Thank you very much for your kind words! > Significant whitespace and case- and underscore insens
83.
▲
by
narimiran
8y ago
Author of the tutorial here. I didn't expect that somebody else might post a link to it - it seems I might be too late for the party. If anybody has any questions regarding Nim or suggestions how to make the tutorial better - let me kn
84.
▲
by
narimiran
8y ago
> How does Nim compare with Haskell, including its maturity and community? Nim is not as mature nor battle-tested as Haskell. Haskell has more users and it is more widely spread, so it would be a safe(r) bet. I'm also coming from
85.
▲
by
narimiran
8y ago
> What about Numba? I'll copy-paste my Reddit comment: Like pypy, numba was also on my radar, but I couldn't make it work by just slapping `@jit` decorator to the original code, and I didn't want to go into figuring out
86.
▲
by
narimiran
8y ago
Author here. If you have any questions and/or comments about Nim, I'm ready to answer.
87.
▲
Python vs. NumPy vs. Nim
(narimiran.github.io)
18 points
by
narimiran
8y ago
|
6 comments
88.
▲
by
narimiran
8y ago
Speed in benchmarks [0] looks impressive. But they seem to be run on the old version of Arraymancer (Arraymancer 0.2.90). Were there any speed improvements/regressions in the newer version(s)? Is there any "production code" w
89.
▲
by
narimiran
8y ago
> Arch, though admittedly the installation process is much more elaborate than of Ubuntu If you want easier-to-install-Arch and a bit more cautious/safer rolling release cycles, take a look at Manjaro.
90.
▲
by
narimiran
8y ago
I'm a colemak user with no problems with shortcuts. Try putting in your settings: "keyboard.dispatch": "keyCode" and see if it helps.
More ›