Elvish – Scripting language and interactive shell
1–10 of 62 posts
Re: Elvish – Scripting language and interactive shell
#2Re: Elvish – Scripting language and interactive shell
#3Anyone have any experience of both?
Re: Elvish – Scripting language and interactive shell
#4Anyone here using elvish on the regular? Anecdotes please!
I don't care much for the Elvish shell experience, rather I like the Elvish scripting language. The documentation is top notch and the language evolves slowly and feels stable.
Re: Elvish – Scripting language and interactive shell
#5Anyone here using elvish on the regular? Anecdotes please!
I don't use Elvish daily (I use fish) but writing scripts in Elvish is a great experience. The elvish executable can serve as an LSP server and that makes writing Elvish scripts a bit easier. I don't care much for the Elvish shell experience, rather I like the Elvish scripting language. The documentation is top notch and the language evolves slowly and feels stable.
It's a shell, aren't those two things supposed to be the same basically? Or - do you mean the interaction with the terminal/command-line?
Re: Elvish – Scripting language and interactive shell
#6Re: Elvish – Scripting language and interactive shell
#7Looks nice. Obviously way better than Bash, but there are a few options that are way better than Bash, so I feel like it should spend some time convincing me why I should use this over e.g. Nushell. Anyone have any experience of both?
The Nushell and Elvish scripting languages are similar in many ways. I personally find the "shell" experience better in Nushell than Elvish.
Nushell
- Bigger community and more contributors
- Bigger feature set than Elvish
- Built in Rust (Yay :-)! )
Elvish
- Mostly developed by one person
- Built in golang
- Amazing documentation and general attention to detail
- Less features than Nushell
- Feels more stable, polished, complete than Nushell. Your script written today more likely to work unaltered in Elvish a year down the line. However this is an impression. Nushell must have settled down since I last looked at it.
For "one off" scripts I prefer Elvish.
I would recommend both projects. They are excellent. Elvish feels less ambitious which is precisely why I like it to write scripts. It does fewer things and I think does them better.
Nushell feels like what a future scripting language and shell might be. It feels more futuristic than Elvish. But as mentioned earlier both languages have a lot of similarities.
Re: Elvish – Scripting language and interactive shell
#8Earlier quoted context omitted.
I don't use Elvish daily (I use fish) but writing scripts in Elvish is a great experience. The elvish executable can serve as an LSP server and that makes writing Elvish scripts a bit easier. I don't care much for the Elvish shell experience, rather I like the Elvish scripting language. The documentation is top notch and the language evolves slowly and feels stable.
> I don't care much for the Elvish shell experience, rather I like the Elvish scripting language. It's a shell, aren't those two things supposed to be the same basically? Or - do you mean the interaction with the terminal/command-line?
The language is what you write in an $EDITOR. Here Elvish scripts can be nice, succinct and powerful. I like how I don't have to worry about strange "bashisms" like argument quoting etc. Everything feels consistent.
Re: Elvish – Scripting language and interactive shell
#9Looks nice. Obviously way better than Bash, but there are a few options that are way better than Bash, so I feel like it should spend some time convincing me why I should use this over e.g. Nushell. Anyone have any experience of both?
There's a few obvious features missing in fish like backgrounding an alias or an equivalent to set -e, other than that I have no complaints.
The first thing I do on any machine is install fish.
Re: Elvish – Scripting language and interactive shell
#10Looks nice. Obviously way better than Bash, but there are a few options that are way better than Bash, so I feel like it should spend some time convincing me why I should use this over e.g. Nushell. Anyone have any experience of both?
What about fish? I've enjoyed using it for years. There's a few obvious features missing in fish like backgrounding an alias or an equivalent to set -e, other than that I have no complaints. The first thing I do on any machine is install fish.
But for writing scripts I would reach for Elvish/Nushell. More powerful.