HNHacker News
TopNewBestAskShowJobs

antrion

14 karma · joined January 9, 2016

submissionscomments
antrion··on Show HN: Insect – a high-precision scientific calculator with physical units
Really great tool! Thanks for the hard work. It would also be really nice to specify custom units, such as

    ≫ U = 1e-6/60 * kat
    
      U = 1.66667e-8 kat
Because now it does this

    ≫ 1 kat -> U
    
      1 kat -> U
    
       = 1 kat
antrion··on Ask HN: What do you want to learn in 2017?
I don't know what your knowledge of quantum computing is, but I'm a complete beginner and I found this article [0] a very good read to begin with.

[0]: http://twistedoakstudios.com/blog/Post2644_grovers-quantum-s...

antrion··on Visual Studio Code 1.7 overloaded npmjs.org, release reverted
This is a really cool feature! Is there a similar extension for Atom / Sublime?
antrion··on Ask HN: JS's for-of loop conceptually flawed, or is it just me?
How would you copy it then? I have tried the npm deep-copy library, but that didn't work (Symbol.Iterator isn't enumerable for example)

edit: I just thought, I could make a function, bind that to a variable and regen the generator again and again

antrion··on Ask HN: JS's for-of loop conceptually flawed, or is it just me?
My specific use case was working with 'infinite lists', so the first options is ruled out.

The second option could be a solution, but the specific case was reusing a variable `const nums = iu.iterate(x => x+1, 1)`, and quite extensively. (It's just a helper function to make a list of all natural numbers)

It would be so much nicer if I could just reuse this variable throughout my code

antrion··on Ask HN: JS's for-of loop conceptually flawed, or is it just me?
And is it also that hard to loop twice in said languages?
antrion··on Ask HN: JS's for-of loop conceptually flawed, or is it just me?
I know that as per the iterator spec this is normal behaviour. It just seems to me that the behaviour that follows from this is really quite strange. When I want to be able to loop over the contents twice, how am I supposed to to that?
antrion··on TrendMicro Node.js HTTP server listening on localhost can execute commands
Well this is scary. How am I to trust a password manager if something as obvious as this is allowed to be shipped to the end user?
antrion··on Show HN: I just made my first JavaScript library
Brudgers, I took your advice to heart: I have opened a Github repo and made a readme file.

Thank you for your constructive comment!

antrion··on Show HN: I just made my first JavaScript library
When me and my friends were participating in a contest, half of the program's chrashes were because of wrongly passing arguments to another function. Reversing their order for example. I know, that's just plain stupid, but it has happend multiple times ;)

So I set out to make a library that makes type checking just a little bit easier. I hope that next time we take part in that competition, this will save us some time

What do you think of it?