HN user

narimiran

807 karma

https://narimiran.github.io/about/

Posts15
Comments127
View on HN
Why Lisp? 4 years ago

Maybe this language has a bad name but I can not find anything about it on HN.

Try searching for Ocaml :)

Nim 1.6.2 5 years ago

`player` and `Player` are different in Nim. Ditto for `date` and `Date`.

Nim 1.2 6 years ago

would you say "always use gc:arc" is a safe bet?

This is the first release to offer `--gc:arc` so there are still some rough edges, but I would follow @treeform's and @rayman22201's advice from sibling comments: give it a try, it might work for you without any problems, and if not - report it.

The long-term plan is to make it the default.

Yes the best way is to use voice control. You can tell the tesla to "set fan speed to 2" and it will do it. Voice commands are the safest imho.

...if you are from English-speaking country or you know English.

Does Tesla understand every language in the world?

Or: how would my father change settings in Tesla? Would he need to learn one English phrase ("Tesla/Alexa/Siri/Whatever, open Google translate"), then speak in his native language, then somehow speak the translated text to Tesla's system?

Currently in his car, he does that by pressing a button. Done.

Was reading and thinking "oh boy this looks so good, I wish it was written in Rust..."

Can I ask... why?

What is the difference between a program that makes you feel "oh boy this looks so good" written is some XY language, and the same program with the same functionality written in Rust?

I can recommend "Practical Vim" which is a great book.

I've read it only recently, after I was already familiar with Vim, and I cannot recommend it enough!

I had lots of "oh, I had no idea this was possible" moments and it took my Vim knowledge to the next level where I'm now (even) more productive than before.

Having said that, I'm not sure it is a good introductory resource for somebody making their first steps in Vim.

Thank you very much for this!

I was aware of Norvig's 2016 AoC solutions, but I thought he never did any of the newer editions. I know what I'll be reading today :)

`array = Array()` ...which would break in Nim.

This is NOT true.

The first character is case-sensitive in Nim, so examples like yours are not only possible, but frequently used even in Nim compiler and standard library.

Nim 1.0 7 years ago

In fairness, Python is the first language the Nim team compares itself to in the first paragraph of their homepage.

Probably because most people are more familiar with Python than Ada and Modula (combined) ;)

I guess it depends on your previous experience. Some people will only see Python, others might think of Nim and its syntax as "Pascal for 21st century" (fun fact: the original Nim compiler was written in Pascal).

Nim 1.0 7 years ago

Have you seen Nimpy[0]?

It allows for a nice integration between Nim and Python. At least for the examples I have tried, it could be used in place of Cython, when there's a need for extra speed in some hot loops and similar situations.

[0] https://github.com/yglukhov/nimpy

Nim 1.0 7 years ago

I didn't want to work with a language that wasn't stable yet.

IME, the language was quite stable since version 0.19, which was released one year ago.

But I know that people don't trust some random bloke on the internet, they want to see 1.0 before they dive in. I had the same concern when I first heard about Nim (I think at that time Nim was at v0.17).