Earlier quoted context omitted.
I am deeply hopeful that Oil Shell (now just Oils) will get embraced by a big distro as the standard shell at some point. The lowest friction migration I see available while still offering a bunch of improvements. https://oils.pub/
I was excited for this years ago, but when I tried it about 2 years ago, it felt awkward. Is it different now?
Rubish: A Unix shell written in pure Ruby
91–100 of 111 posts
Re: Rubish: A Unix shell written in pure Ruby
#92Earlier quoted context omitted.
ls | grep file.txt vs ls().grep("file.txt")
Your comparison is not quite optimised as you use () which is not necessary. But I understand the comparison you make. But, you can write an optimised pipe in ruby too. I actually did that, because I could not want to be bothered to be restricted via ruby's syntax for pipe-like operations. Even aside from that, the original claim was about pipes versus method chaining. To me these are not orthogonal to one another; t…
Re: Rubish: A Unix shell written in pure Ruby
#93Earlier quoted context omitted.
ls | grep file.txt vs ls().grep("file.txt")
Your comparison is not quite optimised as you use () which is not necessary. But I understand the comparison you make. But, you can write an optimised pipe in ruby too. I actually did that, because I could not want to be bothered to be restricted via ruby's syntax for pipe-like operations. Even aside from that, the original claim was about pipes versus method chaining. To me these are not orthogonal to one another; t…
although that line could move again, so here is a permalink: https://github.com/ruby/ruby/blob/6c6df00bbcefe/test/ruby/te...
Re: Rubish: A Unix shell written in pure Ruby
#94People think Ruby is a slow language, but little do they know Ruby is a slower language than Go. But ruby these days is faster than Python.
Re: Rubish: A Unix shell written in pure Ruby
#95Re: Rubish: A Unix shell written in pure Ruby
#96Earlier quoted context omitted.
ls | grep file.txt vs ls().grep("file.txt")
yeah but chaining is almost ubiquitous - found in js, ruby, python, rust, go, etc
Re: Rubish: A Unix shell written in pure Ruby
#97People think Ruby is a slow language, but little do they know Ruby is a slower language than Go. But ruby these days is faster than Python.
> little do they know Ruby is a slower language than Go Isn't it generally expected for a feature-packed interpreted language to be slower than a minimal compiled language?
Re: Rubish: A Unix shell written in pure Ruby
#98I'm recently seeing more and more Ruby projects that are at least partly vibe-coded, and I'm kind of torn. On the one hand I appreciate that this allows people to create stuff that they maybe wouldn't have the time to do otherwise. On the other, the code itself makes it harder for people to contribute, especially those, like me, who don't use coding agents. A random example: https://github.com/amatsuda/rubish/blob/ma…
> Where are the interface boundaries? Why are there methods that are 200 lines long?
LLM-backed code assistants have brought to languages that have been historically less "toolable" the same downsides that IDEs brought to e.g. Java.
Expectation: nominally, an IDE would do one thing, which is to make it faster and easier to do what you would have done without the IDE.
The reality: IDEs make their programmer slightly more productive and other programmers not using IDEs much less productive; instead of "producing programs, faster", what IDEs do is produce programmers who produce programs that aren't especially work-withable (e.g. navigable) without tooling.
Re: Rubish: A Unix shell written in pure Ruby
#99I'm simultaneously amazed and horrified (by the strange but amazing love child you've created between bash and ruby). I spent years (nearly a decade) trying to blend ruby and bash to make the perfect shell, and after never being quite satisfied, I eventually gave up and embraced bash. This does get closer/further than I ever could, and is a fascinating project. I'm going to give it a spin, though I can already imagin…
> I can already imagine the biggest obstacle I'll hit: rubish not being available in the remote environments I need it to The ubiquitousness of bash is among the few reasons why it continues to endure. It will be eternal if nobody tries to replace it.
and here I was thinking ubiquity was ubiquitous for this concept
>ubiquity of bash is among the few reasons...
I guess I'm getting older than I thought, I feel uneasy pangs every time I use a bashism because /bin/sh is the ubiquitous one.
Re: Rubish: A Unix shell written in pure Ruby
#100Earlier quoted context omitted.
Many, many people have tried...
Yeah. I will probably join their ranks at some point. Bash maintainer actually implemented the library feature I suggested and it's already dramatically cut down the amount of unsightly bash code I need to keep around and maintain. I'm getting pretty tired of coping with old stuff just because it's there though. Went through this phase with GNU make too.