Live data from Hacker News

Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

victorbjelkholm.github.io

31–40 of 69 posts

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#31

This is why I hate ES6. JavaScript used to be a write once, run anywhere language. We sacrificed that for syntactic sugar.

JavaScript was never 'write once, run anywhere'. There were quite a few differences between the Netscape and MSIE implementations during the first few years of its existence and things didn't stabilise until the IE5 era.

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#32

Dumb question, from someone who doesn't work with Node.js: Why are there 32 versions of it?

There are actually 303 versions of node (including iojs, according to the Node Version Manager): $ nvm ls-remote | wc -l 303 Most of those are patch releases. There are 47 minor releases and 6 major releases: $ nvm ls-remote | grep -oE 'v\d+\.\d+' | uniq | wc -l 47 $ nvm ls-remote | grep -oE 'v\d+' | uniq | wc -l 6 Most language implementations probably have similar number of releases.

That is absolutely true, 32 versions is not all versions of node, but it's the number of tags from the mhart/alpine-node[1] docker images that autochecker is using for the testing.

[1] - https://hub.docker.com/r/mhart/alpine-node/tags/

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#34
Awesome job! Can't wait to try it.

An aside - over the last few months I began running my containers on two popular CI services and have had some serious pain. I have a slight feeling you will regret the words: "works well with CI as well!"

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#35

Dumb question, from someone who doesn't work with Node.js: Why are there 32 versions of it?

There are actually 303 versions of node (including iojs, according to the Node Version Manager): $ nvm ls-remote | wc -l 303 Most of those are patch releases. There are 47 minor releases and 6 major releases: $ nvm ls-remote | grep -oE 'v\d+\.\d+' | uniq | wc -l 47 $ nvm ls-remote | grep -oE 'v\d+' | uniq | wc -l 6 Most language implementations probably have similar number of releases.

yeah -- perhaps there's a lot of negative things to be said about node, but the fact that they've released multiple versions? really?

https://clojure.org/community/downloads_older http://www.scala-lang.org/download/all.html https://www.python.org/downloads/

etc...

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#36

This is why I hate ES6. JavaScript used to be a write once, run anywhere language. We sacrificed that for syntactic sugar.

Then just write es5. It'll still run everywhere forever.

That's my plan. But it means I can't use other people's modules anymore.

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#37

Dumb question, from someone who doesn't work with Node.js: Why are there 32 versions of it?

I would think the more fundamental question is -- are these 32 (or 303) different versions so non-backward-compatible that the need to test on all of them is just an accepted thing out in Node.js-land? That everyone just kind of shrugs and puts up with (the way MS Windows used to crash on a near daily-basis for nearly everyone, not too many years ago)?

I know that other languages also have issues in this regard -- but for more mature languages it seems to be more an exception than than the rule (restricted to certain platforms of subsystems, say).

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#38
post #7

Earlier quoted context omitted.

What do you recommend for how we could do it better?

Take a look outside of the node.js micro cosmos.

The same situation applies in all language ecosystems, there is nothing exceptional about Node in this regard.

Re: Show HN: Test your JavaScript modules simultaneously in 32 different versions of Node.js

#40

This is why I hate ES6. JavaScript used to be a write once, run anywhere language. We sacrificed that for syntactic sugar.

Then just write es5. It'll still run everywhere forever.

Except The problem with nostalgia is that the past we so fondly remember never existed.
Post reply on HN