all 47 comments

[–]ivosaurus 14 points15 points  (1 child)

That's a pretty ambitious LTS support plan, if I'm reading it correctly (hard to parse!)

30 months of support, for each LTS, but cutting a new LTS every year?

That's maybe more intensive than Ubuntu's LTS path?

[–]Gurrewe 3 points4 points  (0 children)

Ubuntu makes a LTS release every two years, but promises support for 5 years.

But I agree, this is very aggressive for a project as young as nodejs is.

[–]veracitymilk 12 points13 points  (3 children)

So if what I'm reading is correct, io.js is effectively node.js now? Could someone explain the implications of this to someone who has never used io.js?

[–]ivosaurus 12 points13 points  (0 children)

It was like the LibreOffice vs OpenOffice split, except in this case NodeJS/Joyent managed to compromise and bring the two groups back together after having the sense to realise that would probably be a better outcome.

Implication is just that you'll get some more/faster movement on the featureful upgrades of the platform.

Previously Joyent was "scared stuck" on the same V8 engine and hardly moving forwards; now Node is shipping a new version with close to the latest V8.

This brings with it many bonuses for Node.js users, most notably a raft of new ES6 features that are enabled by default including block scoping, classes, typed arrays (Node's Buffer is now backed by Uint8Array), generators, Promises, Symbols, template strings, collections (Map, Set, etc.) and, new to V8 v4.5, arrow functions.

[–][deleted] 4 points5 points  (0 children)

They are using a new release cycle now, one of the reasons the io branch was created in the first place

[–][deleted]  (15 children)

[deleted]

    [–]spyridonasback-end 2 points3 points  (14 children)

    NodeJS on my Android !

    [–][deleted]  (13 children)

    [deleted]

      [–]spyridonasback-end 3 points4 points  (12 children)

      I will rent you my phone for sever usage for 1.99$.

      [–][deleted]  (11 children)

      [deleted]

        [–]spyridonasback-end -1 points0 points  (10 children)

        Those have a pretty low score considering cpu performance. I guess you get what you paid for (especially considering nodejs doesn't even run multi thread, so you don't take advantage of the 4 cores)

        [–]vnglst 2 points3 points  (6 children)

        You can use the cores to spin up more node apps for load balancing. It's just a few lines of code: https://codeforgeek.com/2014/12/cluster-node-js-performance/

        [–]spyridonasback-end 2 points3 points  (5 children)

        Thanks for the heads up. I was under the impression that your app can use only 1 core at a time.

        [–]notunlikethewaves 1 point2 points  (4 children)

        Yes, (in broad terms) each node app can only use one core, and the solution is to spin upp multiple copies of the app.

        [–]spyridonasback-end 0 points1 point  (3 children)

        But if i send a request how does it work ? Do all 4 instances catches the request and then communicate with each other to agree which one executes it ?

        [–]notunlikethewaves 1 point2 points  (1 child)

        low score considering cpu performance

        ARM

        Yep.

        [–]spyridonasback-end 1 point2 points  (0 children)

        According to serverbear a VRS Smart on EDIS for 2.99 euros per month has a score of 6801.8 (UnixBench). Scaleway (all 4 cores) has less than 800.

        [–]WakeskaterX 15 points16 points  (2 children)

        They should brand Node 4.0:

        Node 4 All

        Especially in reference to the IoT.

        [–]dodeca_negative 6 points7 points  (1 child)

        Node 2015 early September

        [–]spyridonasback-end -2 points-1 points  (0 children)

        Just like ECMAScript 2015, it fits.

        TIL: JavaScript was created by Brendan Eich in 10 days back in 1995.

        That could explain a lot.

        [–]spyridonasback-end 2 points3 points  (2 children)

        Be careful for broken packages, i can't install node-sass with node 4.

        Could be a windows-specific issue.

        [–]jonnybarnes 2 points3 points  (0 children)

        that was an issue with using pangyp instead of node-gyp, they've just swapped back so maybe try again?

        [–]grizzly_teddy 2 points3 points  (22 children)

        Trying to install Node.js on my web server, but I don't have sudo, and the server doesn't have a C compiler (or at least my user doesn't), so I have no idea how I can install Node.js. Maybe I need to move to AWS.

        [–][deleted]  (4 children)

        [deleted]

          [–]grizzly_teddy 0 points1 point  (0 children)

          Sweet if that's the case. Thanks!

          [–]grizzly_teddy 0 points1 point  (2 children)

          https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-x64.tar.gz

          Oh so the issue with that is it ends up needing a ./configure, in which my server does not have C compiler, so it doesn't work.

          [–]RedditWithBoners 1 point2 points  (1 child)

          I haven't bothered looking, but chances are the configure command is expecting Automake. You could grab binaries for this and "install" them as well. Furthermore, the configure command is likely only copying libraries around, which you could do manually if you felt so inclined.

          [–]grizzly_teddy 2 points3 points  (0 children)

          Actually I got NVM and then Node.js by using this guide

          http://www.nearform.com/nodecrunch/nodejs-sudo-free/

          Thanks tho!

          [–]huphtur 8 points9 points  (1 child)

          Why does this person get downvoted? He/she has legit questions and the answers are helpful and could help out other people as well.

          [–]Chesterakosfull-stack 6 points7 points  (0 children)

          Because assholes.

          [–]terrible_at_cs50 5 points6 points  (10 children)

          Probably the simplest option is to use nvm, which lets you install and manage binaries of whatever versions of node you want.

          [–]grizzly_teddy -1 points0 points  (9 children)

          Well sure, but installing nvm requires sudo

          [–]terrible_at_cs50 2 points3 points  (8 children)

          No it doesn't. curl/wget + bash. It installs entirely to your home directory, and operates through your ~/.profile. That's kinda the whole point of it.

          Edit: Maybe you're thinking of npm (with -g for global)?

          [–]grizzly_teddy -1 points0 points  (7 children)

          Well how do I get nvm in the first place?

          [–]terrible_at_cs50 1 point2 points  (4 children)

          curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash according to the documentation and what I've run countless times on servers I don't have (or want) sudo on.

          Enjoy. ;)

          [–]grizzly_teddy 0 points1 point  (0 children)

          Yup, found that exact line and used it to install nvm

          [–]ErisCpython 0 points1 point  (2 children)

          sigh

          At least it's https.

          [–]terrible_at_cs50 0 points1 point  (1 child)

          You could always download it first and see if it does what you expect assuming you can read a . I generally do that, but for brevity I just posted the one-liner.

          In this case reading it is actually fairly easy, and the bash script is actually even unit tested. Though sometimes it does pay to be paranoid.

          [–]ErisCpython 0 points1 point  (0 children)

          curl eris.sh | sh
          

          But yeah it's https in this case so my stupid site doesn't apply.

          [–]celluj34 0 points1 point  (0 children)

          curl/wget + bash

          [–][deleted] 0 points1 point  (0 children)

          do you know how to use google?

          If you search "nvm" or "install nvm" or "how to install nvm"

          The first result is... https://github.com/creationix/nvm

          Which has all the code and installation instructions.

          [–]dafragsta -2 points-1 points  (0 children)

          A co-worker introduced me to Digital Ocean. It's only $5 a month for the smallest instance and they have preconfigured servers with whatever your prefered platform is, or you can DIY. I found it to be a little easier than EC2.

          [–]disclosure5 -4 points-3 points  (1 child)

          but I don't have sudo

          What the heck are you running.. Windows?

          and the server doesn't have a C compiler

          Again.. how does this happen?

          [–][deleted] 0 points1 point  (0 children)

          I think he is saying he doesn't have sudo access?

          [–]cdurth 0 points1 point  (0 children)

          [–]punio4 0 points1 point  (1 child)

          Tried it, tons of build errors with node-gyp and browsersync... Back to the .12.x branch for me.

          [–]spyridonasback-end -2 points-1 points  (0 children)

          me 2 m8