Minor tangent, but plucked from that article, why is ‘rimraf’ downloaded 60m+ time a week?! Why is that a thing that need a library? (Asking as a systems guy, not a programmer)
The Bun Shell
121–130 of 239 posts
Re: The Bun Shell
#122Re: The Bun Shell
#123Using Windows for development feels like using Linux for anything but server-side work or Macos for gaming, it'll probably work if you have light requirements and don't use the shell that often, but when I think about the last time I tried it, it almost makes me feel fine paying $500 for a ram upgrade on my next mac
If you want bash like syntax, you can always run msys2 / Cygwin / WSL on Windows. But 99% of the time I just need to run basic commands like git and maybe pipe them to ripgrep or fzf, and frankly the PowerShell is fine for that. For anything more complicated, I'll write a script in Python or maybe JavaScript anyway, so I don't really care what shell I use as long as I can customize it and it can run basic commands. A…
Re: The Bun Shell
#124Earlier quoted context omitted.
I think Bun is written in Zig. Is Zig stable as in 1.0.0, LTS?
Nope. Zig is still changing. In my understanding bun is generally quick to adapt to these changes, and one of the projects zig is keeping an eye on when breaking changes are introduced.
Re: The Bun Shell
#125"JavaScript is the world's most popular scripting language." Perhaps, based on usage. But shell must be the world's most ubiquitous scripting language. Not every computer has a Javascript engine but most have a shell. Many, many computers have no browser, let alone a GUI. Some small form factor computers might have embedded Javascript engine but that's a minority. No browser on the router.
Even macOS has issues with those who assume Linux is the only Unix, Apple's bash is very old and does not run many scripts.
Unfortunately Javascript does get installed everywhere,
Re: The Bun Shell
#126Earlier quoted context omitted.
These are called "tagged templates": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Tagged templates are really cool. They are a reasonably simple extension of template strings, which allow constructing strings very easily by allowing arbitrary code to be put inside a ${} block inside of template strings (ones that begin and end with backticks ` instead of single or double quotes). So if you think about it template strings are like a tagged template who's function just calls .toString() and concaten…
Re: The Bun Shell
#127js is the new perl
Re: The Bun Shell
#128"JavaScript is the world's most popular scripting language." Perhaps, based on usage. But shell must be the world's most ubiquitous scripting language. Not every computer has a Javascript engine but most have a shell. Many, many computers have no browser, let alone a GUI. Some small form factor computers might have embedded Javascript engine but that's a minority. No browser on the router.
I assume you are actually talking about Bash or maybe POSIX shell? That's only available on ~20% of desktop computers.
Re: The Bun Shell
#129Minor tangent, but plucked from that article, why is ‘rimraf’ downloaded 60m+ time a week?! Why is that a thing that need a library? (Asking as a systems guy, not a programmer)
Re: The Bun Shell
#130I work on Bun - happy to answer any questions/feedback