quote · 2026-04-07 16:20
ITT: scripting languages general
we discuss our favorite scripting languages, their usecases, post our syntactic sugar, and render cute anime girls stylized like high-level programming languages
i'll start by saying i'm most proficient using bash and I use it every single day! here's my .bash_aliases
alias updoot="sudo apt update && sudo apt upgrade"
alias sinstall="sudo apt install"
alias ytdl="yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
alias ytdla="yt-dlp -x --audio-format mp3 --audio-quality 0"
alias eza="eza --long --tree --level=10"
alias diff="diff --color=auto"
alias hd="hexdump -C"
alias grep="grep --color=auto"
alias egrep="grep -E --color=auto"
alias rigrep="grep --color=auto -Ri"
alias weather="curl wttr.in"
alias underscore="rename 's/ /_/g' * && rename 's/-/_/g' *"
alias python="python3"
alias ..="cd .."
alias ...="cd ../.."
alias s="sudo"
alias shutdown="shutdown now"
alias list_packages="apt list --installed"
Agent Jones · 2026-04-07 19:57
Ruby is bloat and no mention of Elixir?
I find bash abhorrent in its syntactical choices and the least I can use it the better and prefer to just uv a py env and use bash at best as a glue for CLI and OS integration.
But really I'm just looking forward to eventually get back to my prototype projects in js. Not ts, vanilla js. I can always rewrite it in Rust later once I have things verified to work.
But this week I unified my local LLM scripts to a single Local AI Networker so I can start up an interactive terminal via > lain
Fred Nurk · 2026-04-07 20:11
>>44082
ruby's standard libraries are the perfect size in my opinion and are the best in any popular language for handling mathematics and arithmetic expressions- bloat isn't the word i'd use- in fact that's exactly the word I would use for javascript and python especially in a webdev/frontend context.
and as far as using scripting to actually operate your computer bash can not be topped.
but ultimately I guess I use:
bash for syscalls/command line tools/package management
perl for handling text/strings/databases and for it's regular expressions
ruby for expressions and OOP- also for it's math libraries like ::Cypher
I have a distaste for python because it was created and is maintained with the idea that there is only one proper (and supported) way to do any specific thing- whereas in a language like perl- well there's more than one way to parse a cat- which suits the creative aspect of programming more closely and allows for those tasty sessions where ideas flow freely directly into usable code.
javascript I dislike because it's an ugly language in terms of syntax and dialect and it takes three or four times as many lines of code to accomplish the same exact task as ruby
Spike Spiegel · 2026-04-07 23:08
>>44083
Oh, I thought you math people use things like Scala, Fortran, Haskel, Mathlab and so on. to be honest I've not worked much with Ruby and was judging merely on its projects and user base and at a time where it wasn't as optimized yet. I agree that bloat might not have been the correct term but imo there's better OOP languages around like Kotlin. Maybe even C# depending on the task.
Many quirks of Python I don't like much either like missing a var keyword yet having global, making scoped usage needlessly more brittle. But I rather use that to write some logic or threaded scripts than trying the same in bash any day. The syntax to me just looks like it was designed by some sys admin on crack cocaine. And Python also got libraries for basically anything by now. Name any obscure file format and it will have a package to parse it.
And regarding js, you seem to misunderstand me. The bare language has its certain elegance. There's few other languages that allow to write fizzbuzz as a concise one liner without branching, due to how it's interpreted. Yes, it's bloat when webshitting where you tech stack like it's cake layers but for prototyping it's actually quite nice and fast.
There's probably still some public infrastructure running their build scripts in core js that's using all sorts of wrapped c bins underneath because it was simply quicker this way. I'm a pragmatic guy.
roll · 2026-04-08 16:44
>>44084
bash is honestly more of a CL operating system toolset (they use the term command language on wikipedia) than a scripting language, even though it has most of the hallmarks of one- and really it was created by sysadmins (possibly on crack- it was the late 80's)
fsociety · 2026-04-09 02:02
Why nobody talks about AWK? I genuinely think it deserves more love.
Turner · 2026-04-09 08:20
>>44088
people talk about awk and sed; just not in the context of a scripting language because they're word processing programs, and not as much today because their functions have totally been eclipsed by other software
>>44088
Dox · 2026-04-10 08:48
>>44080
I adore perl5- it's just so expressive and powerful. I know that the syntax has a lot of quirks that trip people up who are used to other languages- it's a bit non-conventional because it was, in essence, created by one man who had his own tastes and dreams.
I would say another language that has a similar backstory as a scripting language largely masterminded by a single person would be ruby. Matz and Larry Wall both had a dream to create a powerful interpreted high level language and the result ultimately was awesome in both cases.
queue · 2026-04-10 10:46
>>44084
Our maths used MAthematica and Mathlab. I used Maxima, Octave, scilab. But I am not mathematician. Also SciPy and Spider are perfect.
Cereal Killer · 2026-04-10 13:03
>>44101
I also absolutely love Perl, and it's so unfortunate that it gained so much bad fame just because people saw some one liners that were not intended as long-term code and deemed it "ugly." Perl code can be actually really expressive. Do you know about Raku? It's basically Larry Wall's vision for Perl 6 turned into a whole new language. Also, this one also seems interesting:
https://www.red-lang.org/
It's based on a former initiative called Rebol which purpose was data exchanging.
Faye Valentine · 2026-04-10 14:55
>>44104
interesting; I like the TUI backend they posted about in 2024
https://www.red-lang.org/2024/06/text-ui-view-backend.html
i'd like to steal this library and port it to a language i actually use/understand
>>44104