Live data from Hacker News

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

github.com

11–20 of 71 posts

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

#11
post #2

I use nvm currently. Can I ask how this compares to nvm, perhaps issues with nvm that it tackles? Is it performance? :o

The problem I have with nvm is speed (running it at shell startup introduces a very noticeable delay), and integration with other shells - it's always been a pain to get it running with fish.

I generally use only a single node version, and therefore don't use the nvm command much, so I've solved the slow shell init by not loading nvm at all, and instead, just set the PATH.

    export PATH=~/.nvm/versions/node/v11.6.0/bin:$PATH
Downside is that you have to bump the version occasionally but it's worth the fast shell startup.

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

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

Reason is merely a new syntax on OCaml. You can use BuckleScript (BS) to compile to JS, or not use BS to compile to native.

There exists a fast http server in native OCaml:

https://github.com/inhabitedtype/httpaf

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

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

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

#16

Great work, but you'd have to pry asdf out of my cold, dead hands. https://github.com/asdf-vm/asdf

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

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

#17
post #14
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.

Reason is merely a new syntax on OCaml. You can use BuckleScript (BS) to compile to JS, or not use BS to compile to native. There exists a fast http server in native OCaml: https://github.com/inhabitedtype/httpaf

httpaf is quite low level. We need more abstractions on top of that for daily server development

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

#18

Great work, but you'd have to pry asdf out of my cold, dead hands. https://github.com/asdf-vm/asdf

I hate how it bears the same name as the de-facto standard Common Lisp build tool, ASDF.

https://common-lisp.net/project/asdf/

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

#19
post #14
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.

Reason is merely a new syntax on OCaml. You can use BuckleScript (BS) to compile to JS, or not use BS to compile to native. There exists a fast http server in native OCaml: https://github.com/inhabitedtype/httpaf

Let's be a little more specific. "Reason Syntax" is merely a new syntax on OCaml, but ReasonML in general has a much larger scope - which includes every part of the toolchain/workflow up to and including package management, IDE integration, source formatting etc and more.

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

#20
post #14

Earlier quoted context omitted.

Reason is merely a new syntax on OCaml. You can use BuckleScript (BS) to compile to JS, or not use BS to compile to native. There exists a fast http server in native OCaml: https://github.com/inhabitedtype/httpaf

httpaf is quite low level. We need more abstractions on top of that for daily server development

One recent project which builds a usable layer on top: https://github.com/ostera/httpkit
Post reply on HN