Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by javajosh on Tuesday April 05, 2022 @08:14AM
(#30918008)
Eventually someone will implement Nix in Javascript, and then it will explode.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by sleepydog on Tuesday April 05, 2022 @09:18AM
(#30918578)
The Guile compiler has a JavaScript frontend. You can write guix packages in JavaScript:
https://lists.gnu.org/archive/html/guix-devel/2022-03/msg001...
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by marius_k on Tuesday April 05, 2022 @05:49PM
(#30925489)
js code example still looks schemish to me.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by rgoulter on Tuesday April 05, 2022 @08:27AM
(#30918122)
The code in nixpkgs does contain some code that uses relatively sophisticated programming language constructs, such as lazy evaluation, partial function application, or fixpoints. -- So I'll say there's at least some friction to Nix from the language being pure/functional.
Mostly I think Nix would be just as hard if packages were expressed in any language.
Stuff like "this program compiled by nix is using a different glibc than this library" is going to be confusing regardless of whether Nix expressions can be written with JavaScript; or stuff like some program assumes it can write to $HOME in its build script not playing nicely with Nix.
A lot of why Nix is hard is because it's weird, and that even as an end user when things go wrong it may require understanding more about what's going on than what other solutions require.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by Arubis on Tuesday April 05, 2022 @09:08AM
(#30918477)
In both senses of the word "explode", I expect.
(Tongue-in-cheek, but I'd actually like to see this happen: Nix is a fantastic concept obscured by space-alien syntax.)
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by SkyMarshal on Tuesday April 05, 2022 @02:11PM
(#30922696)
Nix is mostly already Javascript. Just JSON with some addon functionality.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by deepsun on Tuesday April 05, 2022 @08:30AM
(#30918152)
All languages get eventually implemented in Java and Javascript.
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by zeec123 on Tuesday April 05, 2022 @01:31PM
(#30922061)
Not exactly, but PureNix
Re:Switching from pyenv, rbenv, goenv and nvm to asdf
by recuter on Tuesday April 05, 2022 @09:29AM
(#30918711)
Figuratively?
[0] https://guix.gnu.org/