Better HN
topnewbestaskshowjobs
Log inSign up

narimiran

807 karma · joined May 6, 2017 (9y ago) · 142 submissions

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

comment 1y ago · link · parent

> building on top of something

If you want that, try AoC 2019. Day 2, day 5, and then every odd day till the end: day 7, 9, 11, ... 23.

comment 1y ago · link · parent

> By the way, there are EV tyres - does anyone know why? Is it just marketing or do they have some special properties?

They have lower rolling resistance, in attempt to extract a bit larger range.

3.

NimConf 2024 – online Nim conference(conf.nim-lang.org ↗)

12 points · by narimiran · 2y ago · 2 comments

comment 2y ago · link · parent

> Opera was the first "not IE or Netscape" browser I used. It would be poetic to go back to it now.

If you want to go back to the "original Opera", that is now Vivaldi.

5.

Galaksija and Računari U Vašoj Kući: 40th Anniversary Celebration(blog.vladovince.com ↗)

2 points · by narimiran · 2y ago · discuss

comment 2y ago · link · parent

> Kia Rio 5 door

You missed a very important bit: 'old toyota-level reliability and longevity' ;)

comment 2y ago · link · parent

Clicking on the link received by email, I get:

> Your invitation to the test has been cancelled.Please contact Evaluator for further queries.

comment 3y ago · link · parent

WDYM?

comment 3y ago · link · parent

And if you like to watch a mechanic working on cars, here's a nice combination of educational and entertaining:

https://www.youtube.com/@M539Restorations/videos

I couldn't care less about BMWs, but I enjoy this content.

comment 4y ago · link · parent

> semi truck on my way back from Dalamatia to Istria

I can guess that was under Velebit, where bura is often very strong and at those times the road is closed for motorcycles, campers, double-deckers and vehicles with trailers.

But people regularly ignore those restrictions because they are not aware of the danger.

comment 4y ago · link · parent

> If Rimac makes a car with that name

There already exists Volkswagen Bora, which was a sedan version of Golf 4. (Basically, a renamed Jetta; just like Vento in the generation before)

comment 4y ago · link · parent

> Bora is strong wind

Fun fact: Jugo (another frequent wind on Adriatic coast) is even stronger wind, but what makes bora/bura special are strong sudden gusts.

comment 4y ago · link · parent

> Honda Fita

Stretching a bit to fit a narrative?

There was never Honda Fita. In USA, that's Honda Fit, and in Europe the same car is called Honda Jazz.

comment 4y ago · link · parent

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

Try searching for Ocaml :)

comment 4y ago · link · parent

But you can do composition, like this:

[Racket]

    (~> thing
        quux->baz
        baz->foo
        foo->bar)

comment 4y ago · link · parent

Make sure to check other projects by the same author, some real gems there IMO (and I'm not even including there his most popular project - Vim^3 [0] :D). This talk [1] from NimConf 2021 is a good place to start:

[0] https://github.com/oakes/vim_cubed

[1] https://www.youtube.com/watch?v=cBqBfPRWla8&list=PLxLdEZg8DR...

comment 4y ago · link · parent

> The Honda S2000 had a throttle cable until... the 2006 model year I believe.

Mazda Miata (MX-5) had it in the NB model (until 2005) too.

comment 4y ago · link · parent

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

19.

Nim 1.4(nim-lang.org ↗)

278 points · by narimiran · 6y ago · 140 comments

comment 6y ago · link · parent

> 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.

21.

Nim 1.2(nim-lang.org ↗)

358 points · by narimiran · 6y ago · 128 comments

comment 6y ago · link · parent

> 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.

comment 6y ago · link · parent

> 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?

comment 6y ago · link · parent

> 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.

25.

Nim Community Survey 2019(nim-lang.org ↗)

2 points · by narimiran · 6y ago · discuss

comment 6y ago · link · parent

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 :)

comment 7y ago · link · parent

> for example, it is very natural to name them "a,A,b,B"

And just to clarify once again, since I'm not sure who will read which reply: those are NOT the same identifiers in Nim!

    let
      a = 11
      b = 22
      A = 99
      B = 88

    echo a == A # false
    echo b == B # false
Run the code in the Nim Playground if you don't believe: https://play.nim-lang.org/#ix=20kr

comment 7y ago · link · parent

> In many languages, you might use one for a type name, the other for a variable.

And Nim is one of those languages too. This is perfectly valid and frequently used:

    type
      Person = object
        name: string
        age: int

    let person = Person(name: "you", age: 99)

    echo person

You can try it in Nim Playground: https://play.nim-lang.org/#ix=20jS

comment 7y ago · link · parent

...which also works perfectly fine in Nim.

comment 7y ago · link · parent

> `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.

12345