Live data from Hacker News

Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

github.com

31–40 of 71 posts

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#31
post #9

Wait, I assumed this will be a js-app, but it actually is a executable binary? Is that the courtesy of https://github.com/jordwalke/pesy ? For some time I wanted to try ReasonML for server-side development, but for some reason I assumed, that most of the ecosystem would be node.js based.

I feel you - it seems that most ReasonML blogposts are around JavaScript usage, but this is completely native and therefore faster (no VM necessary)

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#32
post #9

Wait, I assumed this will be a js-app, but it actually is a executable binary? Is that the courtesy of https://github.com/jordwalke/pesy ? For some time I wanted to try ReasonML for server-side development, but for some reason I assumed, that most of the ecosystem would be node.js based.

The ReasonML ecosystem is quite confusing for newcomers. ReasonML could be compiled to a binary out of the box thanks to the OCaml toolchain. Pesy is a tool for making native development easier. Regardings Javascript compilation backend, you only hear about that because it's what the ReasonML team selling.

And I get that, I think I heard somebody from Reason community to say on some podcast once "We want to get the frontend stuff right first", or something along those lines :-)

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#35
post #29

Earlier quoted context omitted.

Hi I'm Jordan and I work on Reason. pesy is just a utility I made to help people create new native Reason projects (like fnm) quickly and easily. It's fun. fnm is a native Reason app. We haven't advertised much of Reason's (OCaml's) native capabilities because we wanted to make sure we've built out a lot of the tooling that makes native development easy - for example https://esy.sh . Now that a lot of this native too…

Awesome! I looked at Reason several months ago and my impression was, that if you want to do frontend stuff with bucklescript, you are one git-pull and npm install from a working scaffold, but if you want Reason with ocaml for native stuff, you would mostly be scaffolding yourself. I am really glad I was mistaken :)

Several months ago that was probably correct. Recently, we've released new tools like esy that make it... easy, especially if you come from a JS background or are familiar with JS tooling. There's still a lot to solve, and native is just inherently harder than targeting JS, but a lot of progress has been made recently, and there's more to come.

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#36
post #26

Earlier quoted context omitted.

I have to read the README twice to see what is it about. What is extensible version manager? Managing what exactly. So I guess it's the reason asdf is not popular

It replaces gvm/rbenv/pyenv/nvm/etc. with a single CLI. Saves you from having to use multiple shell completion scripts, bashrc entries and CLIs. Useful if you work with multiple dev languages on your computer.

And nowhere in the README tells me about that. Your first sentence immediately makes it clear

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#37
Maybe I'm completely out of the loop, but what's the deal with running multiple versions of Node?

What particular problems or projects do you have where this is a pressing necessity?

I just install latest LTS and keep that up to date, and I've yet to find a single thing not working.

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#39

Maybe I'm completely out of the loop, but what's the deal with running multiple versions of Node? What particular problems or projects do you have where this is a pressing necessity? I just install latest LTS and keep that up to date, and I've yet to find a single thing not working.

When I write lambda code for my job, our code currently only supports the node 6 for it's runtime (our system automatically deploys it). I use nvm to help test my code all the time while still having the ability to switch to a more current node for other projects

Re: Show HN: Fnm – Fast and simple Node.js version manager built in ReasonML

#40

Maybe I'm completely out of the loop, but what's the deal with running multiple versions of Node? What particular problems or projects do you have where this is a pressing necessity? I just install latest LTS and keep that up to date, and I've yet to find a single thing not working.

It's nice to have this when you need to debug issues which only occur on certain versions. A good example would be the recent change of the c++ addon api, which caused my code to crash on some installations while it worked fine on others.
Post reply on HN