To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/DreamsofCode . You’ll also get 20% off an annual premium subscription.
@mcbot62917 ай бұрын
v1: script is toe v2: script is foot V3: script is leg
@TheIsraelMendoza7 ай бұрын
We like to resolve problems that don’t exist, don’t we?
@DevOpsLee7 ай бұрын
I was thinking the same thing…
@CottidaeSEA7 ай бұрын
Yeah, I'd just use any of the available script languages instead, this just seems tedious
@PhthaloJohnson7 ай бұрын
If bash wasn't a problem, we wouldn't have developed a billion scripting languages. Small bash files probably have more bugs then a large C project.
@phatboislym7 ай бұрын
programming is about solving problems so programmers are problems solvers they sometimes create problems too in order to (re)solve those problems
@Waffle45697 ай бұрын
What if we made a scripting language none of the things good about a scripting language. If you want to write scripts in C, compile a fucking executable 🤣
@kyuthefox7 ай бұрын
honestly how is this different from writing a program and compiling it. scriptistoe just takes the file and compiles it for you when you run the file with it. which is nice for fast debugging but its just an compile on execution thing. you could just have a program or nvim macro to compile on file save. and then just run the executable
@grifferz7 ай бұрын
I haven't used it myself but as far as I can see it: - Only recompiles it if the source code has changed (keeps hashes of source content) - Allows for extraneous build artifacts such as Cargo.toml to be included in the metadata to retain the one file nature of a script - Allows you to just give someone that opne script file and as long as they have scriptisto installed it should work for them too Still not sure it is for me. I'm too used to bash and Perl and see development in C and Rust to be completely different mindset.
@tiranito28347 ай бұрын
@@grifferz so it's like Cmake or any other build tool, but it forces your files to stop being language compliant by forcing you to add the # at the top of the code. Cool. Useless.
@Avbanks237 ай бұрын
@@tiranito2834having everything in one file is great for ephemeral scripts.
@Waffle45697 ай бұрын
Not to mention a compiled exe will work on more than one person's machine. Isn't half the point of scripts that other people can easily run them?
@hughesd.mungus98197 ай бұрын
@@Waffle4569 Yes, but what if you wanted something that the user could make changes to for configuration purposes. Storing everything in json or similar files isn't enough for all configuration needs.
@whisperpone7 ай бұрын
honestly this is why I just pick a scripting language and learn it more thoroughly, then when I need scripts, I already know exactly what to reach for, and I don't have to futz with a bunch of config stuff
@NexusGamingRadical7 ай бұрын
Man pls no bash, save me from string orienated programming i beg
@dreamsofcode7 ай бұрын
😭 I actually may have found another solution!
@flamendless7 ай бұрын
There is this new language that compiles to bash so maybe give it a look
@jordanlowell6887 ай бұрын
@@flamendless I think it's called Amber Lang.
@microsuxx7 ай бұрын
the wrong .. code wrong ..
@j-r-hill7 ай бұрын
Ever try Tcl? The language where everything is a string?
@anasouardini7 ай бұрын
"I like bash, but the syntax is strange", I'm curious as to why do you like it, since it doesn't have anything special about it, I personally hate it because of the weird and unintuitive syntax.
@plutack7 ай бұрын
That sentence rubbed off on me as weird. I thought the major reason to like a scripting language would be its syntax
@dreamsofcode7 ай бұрын
The main reason is it's portability and conforming to the POSIX standard. Apologies if my statement was unclear. Syntax is usually only one of many considerations when it comes to my preferences!
@SkyyySi7 ай бұрын
You probably think that way because you compare it to the wrong thing. It all starts to make sense once you realize that `echo "Hello, $USER"` is not Bash's way of saying `print(f"Hello {user}")`, but rather `subprocess.run(["echo", f"Hello, {os.getenv('USER')}"])`. The whole language is build around interactive use first and foremost, to quickly invoke programms on a system. Scripting is more of an afterthought that had to be made to work around it.
@boccobadz7 ай бұрын
It's just syntax. Bash is everywhere and that's why you have to know it if you call yourself a real engineer instead of "react dev". Just like awk, sed and other linux cli tools.
@anasouardini7 ай бұрын
@@SkyyySi It's not only me who finds Bash's syntax so ugly, and also your code starts to smell as soon as you start introducing functions to it. My Linux's post-installation script is written in TS and Bash for the same reason.
@segsfault7 ай бұрын
8:03 Typo, It's called "ANSI Escape Code"
@debajyatidey94687 ай бұрын
Exactly
@JohnDoe-n7l6 ай бұрын
That "Lets give it a and C how it works, was a spot on intro!😂 I would've added "im a bit rusty" at the beggining. Cheers
@rafalg877 ай бұрын
Shouldn't it be pronounced as a single word with the accent on the 2nd syllable? I was confused when you pronounced it as 3 separate words at 1:09.
@PhthaloJohnson7 ай бұрын
The whole point of bash is that you can use it in the interactive console and the scripts you make in it are run-able across Linux machines. That being said, I would actually use C or Rust for a larger script because bash is awful. It's one of the slowest languages in modern time, its syntax is awful and it's untyped.
@josephbrandenburg43737 ай бұрын
Have you tried dash?
@harleyspeedthrust40137 ай бұрын
try perl bro. perl is a great scripting language
@borogove-n6e7 ай бұрын
@@harleyspeedthrust4013 oh god no
@harleyspeedthrust40137 ай бұрын
@@borogove-n6e hey man don't listen to the rumors. perl is awesome
@reinhold16166 ай бұрын
@@harleyspeedthrust4013 are you kidding me
@taquanminhlong7 ай бұрын
I'm using nushell, it's really a rust version of bash script, it's built with rust as well 😂
@EpKjelltzer7 ай бұрын
Nushell is great. All of the power and interactivity of the CLI, none of the strangeness of bash.
@RealYethal7 ай бұрын
Nushell is love, nushell is life
@THEMithrandir097 ай бұрын
Honestly, I hate bash as much as the next person but I don't see much value in this tool. I mostly only use scripts for work and there I have a folder in my dotfiles called scripts that's a collection of makefiles that clone the repo for a script, set it up(compile/make venv, etc) in the repos folder and then add an entry to the path in a script_paths.bash file that's sourced from my bashrc. Makefiles also have a clean option that remove a tools folder and path entry. This way you're more modular, get git tracking for each script individually which makes it easier to share and you can decide on a tool by tool basis what it is you want.
@antoniocs88737 ай бұрын
This thing looks nice but as you mentioned in the video it's a lot simpler to do go run or cargo run to compile and run code in go and rust. For C, if you only have one file, it might be simpler indeed to use scriptisto and not create a makefile
@ovidiu_nl7 ай бұрын
Yeah, and if you use cargo as intended you get other benefits like rust-analyzer understanding your dependencies.
@tiranito28347 ай бұрын
how is scriptisto faster than writing "gcc script.c -o script" ? on another note: how is scriptisto faster than writing a 1 line makefile with the exact same compilation command? if you're going to be making some small scripts, it's orders of magnitude faster to do any of those 2 things than using scriptisto, lmao...
@NetherFX7 ай бұрын
I partly agree, but why not learn makefile instead of another scripting language that injects itself into your code?
@BrazenNL7 ай бұрын
Why not just compile it?
@dreamsofcode7 ай бұрын
I guess the idea is to keep it similar to the benefits of a script, such that you're able to contain everything you need in a single file.
@mysterry20007 ай бұрын
I also prefer to compile things when i can for scripts that require thoughtful planning - but for repetitive things where a single file is good enough, running feels faster than build + run even if not compiled
@BrazenNL7 ай бұрын
`cargo r` Runs it, compiles it. Copy the binary at will. I really don't see the point. Now, if we're talking a language that can actually do more with a couple of lines of code, like Python or Ruby, sure. But for Rust?
@Rozenmorte7 ай бұрын
It might be nice for a small script you make small tweaks every so often, since the code is visible in the same place that you run it from. Also I'm to lazy to right docs so I often `cat` out the script to make sure I'm running the right one or what args it needs. It is a skill issue but whatever.
@synen7 ай бұрын
@@dreamsofcode You mean like Go? LOL
@KaiAbyss7 ай бұрын
All the language listed are all good for scripting, I don't really get the reason for saying that it's not suitable? If 'go run' command is already good enough, doesn't it only mean an external library like (scriptisto) is just adding unnessary dependencies / libraries to your project?
@HoussamElbadissi7 ай бұрын
Heyy it's great to see your face! Love your content, keep it up!
@dreamsofcode7 ай бұрын
Thank you! Will do!
@saperelearns20777 ай бұрын
@@dreamsofcode Talented, Funny AND Handsome?! You really are the trifecta- amazing work, mate!
@IgorPetruk19895 ай бұрын
Omg lol, that's my tool. Thanks for making this video! My inspiration for writing this was a desire to write block scripts for i3bar in rust. So I can fetch deps transparently to access various data sources, Internet libraries. It is not packaged to Debian. And another tip is to use built in templates via `scriptisto new` so you don't have to write the build comments from scratch
@joshuarobert71923 ай бұрын
Thanks for the good work man!
@DynamicalisBlue6 ай бұрын
I’m not the biggest fan of bash and do prefer C but that is just too much boilerplate for a script. Surely Python would be preferred.
@bastiana36116 ай бұрын
6:37 How come it uses Rust edition 2018 instead of 2021?
@Richard-ck7sr7 ай бұрын
Very nice. TCC from Fabrice Bellard has this feature for C - see ex1.c ex2.c.
@LunarLambda7 ай бұрын
I wrote my own C-script shebang tool in bash. it's fun Rust is getting `cargo script` maybe sometime this year, which will allow single file packages that can use dependencies and stuff
@Inyourface34456 ай бұрын
if you pan on using a script you made for a long time, and using a compiled lang, just compile it once and move the bin file to the /bin directory in linux (or another dir that is in the path)
@fabricehategekimana535011 күн бұрын
Tbh, I use nushell as my shell and scripting language. This is the first language in my life that make building CLI tools easy. With the GUM CLI, the interface is next level
@svaira7 ай бұрын
This seems rather complicated tho. TCC works fine for C scripts since forever and has the benefit of not having to add configs etc. Obviously it only works for C, and there only for C90 and a subset of C99 (although honestly I don't use VLAs anyway, which I think is what they didn't implement, so it's fine for me), but for that it seems like a better alternative if you don't rely on some specific gcc or clang-specific intrinsics.
@JasonMitchellofcompsci7 ай бұрын
As a side effect this is going to put build information inside of source files. THANK YOU!!!! Imagine a future with no build files because the source code has the information needed to build in it. And all build systems know how to leverage it. Also, your speech is very good. Solid elocution.
@oblivion_28527 ай бұрын
For single file scripts this is pretty great. It's like an inline makefile/build script
@solvecode6 ай бұрын
You're an inspiration. I use almost all the tools youve suggested. And You're one of those who inspired me into making my first video myself. Man ypu must spend a lot of time editing. Thanks!
@nickolaierlan80647 ай бұрын
BunJS shell feature is a charm, I use it as a bash alternative
@bastianwegge7 ай бұрын
Looking forward to hearing about bash & how you‘re doing automation 🙌🏻. Keep up the good work!
@dreamsofcode7 ай бұрын
Bash content incoming soon!
@secondary-smiles7 ай бұрын
The nix-shell shebang is another powerful way to improve or even replace this tool.
@ryzechdev7 ай бұрын
Rust actually has a scripting feature built in! It’s in the nightly compiler but it works basically the same, and much easier
@_Verac7 ай бұрын
I use quickjs + bash. Js for complex data structures, and bash as a wrapper for the js script.
@theangelofspace1557 ай бұрын
6:00 why is not the best? Can we just run the script with go run, and called with a bash script only run `go run my_script`? Or just add a alias to the shell for it?
@dreamsofcode7 ай бұрын
Sorry if that line wasn't clear. Using Go with scriptisto I don't think is the best, instead I much prefer to just use `go run`
@software_engineer_business_man7 ай бұрын
Yeah, definitely better. The Rust example was terrible, better write the code and let cargo build or just use Go anyway.
@TymexComputing6 ай бұрын
Dont get whats extra while writing and running the app as a script? enumerating the ENV?
@konstantinsotov62516 ай бұрын
this gave me an idea to write a header-only library for C that will have tools to make scripting easier...
@timseguine26 ай бұрын
I've never tried it by why wouldn't writing "go run" in the shebang work for golang? Something similar works for python
@ricky26297 ай бұрын
I don't understand the usecase for this at all, but it's neat that it exists i guess. I'm gonna stick to either just use bash or compile beforehand and use the binary when needed.
@dreamsofcode7 ай бұрын
Yeah I agree, it's certainly not for me. That being said, having strong types in a script does feel nice, but I don't think this is the best way to achieve it.
@heroe14863 ай бұрын
Making KZbin content, that's what most programing videos are about, showing unrealistic stuff just for the sake of getting engagement
@hansdampf22846 ай бұрын
Am I missing something? How is that better than compiling a program and running it? I could do this with a simple make target
@PS3PCDJ6 ай бұрын
"Entr" can monitor changes and run specified commands once a change is detected like a makefile, which itself will know what to recompile based on what changed, rendering this entire program pointless.
@ACium.7 ай бұрын
At 2:28 , add what? I didnt hear properly. Yamokey value?
@jasiek13096 ай бұрын
"YAML key values"
@ACium.6 ай бұрын
@@jasiek1309 Thank you!
@NetherFX7 ай бұрын
The only difference now is that you don't need to compile/build a program. So what does this solve exactly?
@ddanier7 ай бұрын
For writing well structured shell scripts I can only recommend using nu shell. This is a completely new shell which has typing, scopes, modules and many more modern features. No need to stick to bash or similar. As with bash you don’t need to change your default shell, just use a shebang at the beginning of your scripts. I can highly recommend trying this instead of fiddling with c/rust/go for scripting. 😉
@conaticus7 ай бұрын
Great vid as always
@dmitriidemenev52587 ай бұрын
Look who's there!
@dreamsofcode7 ай бұрын
Thanks dude!
@jackzugna58306 ай бұрын
Maybe for some situations you can use C+Lua or C++ with Sol (Lua lib). You can create a set of specific functions in C and call them from Lua, compile the whole thing once, and only edit the Lua file according to the project. I think this is the best way to get scripting speed and natively compiled code performance.
@Fudmottin7 ай бұрын
The next step down the rabbit hole is to set Emacs as your $SHELL and do scripting in Emacs Lisp.
@pyromancerforhire6 ай бұрын
What's the difference betweeen using this, and simply compiling and adding the executable to your enviroment? When I built a silly wannabe git to learn Rust I had a makefile copy the compiled executable into my local bin for execution from anywhere in any terminal. I'm genuinely curious
@Lars-ce4rd7 ай бұрын
This seems totally unnecessary. Also, I'm assuming it has to recompile your code on every init or implements a cache for the compiled binaries. Anyway, it seems like basically the same as compiling your own code, you even have to write the build command anyways. So yeah, I don't see the value, I'll probably just stay away from this
@theairaccumulator71446 ай бұрын
He says it caches the binaries and uses a hash to know when to recompile. Otherwise the rust example would take half an hour each time he invoked it. Imo it's pretty useful since you don't need a whole build setup for 1 file.
@borogove-n6e7 ай бұрын
I use javascript and node, and have found myself reaching to it for scripting as well. I find it a bit hilarious that it actually works more seamlessly than go for this purpose.
@vikingthedude7 ай бұрын
Do the go/rust LSPs work with these scripts? I imagine the lsps wouldn’t know where the dependencies are stored
@dreamsofcode7 ай бұрын
They're hit or miss depending on the language. For Go, it kinda works due to the $GOPATH, although the actual shebang causes a constant error. For Rust + C, then it's not good.
@lucascqueiroz977 ай бұрын
Can you share your tmux config to set the window number to that symbol? Tried to find in your GitHub but the config there looks outdated?
@sebas11tian7 ай бұрын
Scriptisto is an Esperantism I am sure.
@hydra1471477 ай бұрын
Once cargo script RFC lands there would be no need to do this in Rust with external tooling
@dreamsofcode7 ай бұрын
I'm excited for #!/usr/bin/env cargo
@dipi717 ай бұрын
Ruby with its gems (Paint for coloured output, for example) is clearly the best and most fun option. So it's been in my case for over 20 years anyways.
@suchithsridhar7 ай бұрын
It seems like a complex solution to a simple problem. Bash works for a simple sequence of command calls and python for anything more complex. Languages like C, Go, and Rust aren't designed for scripting and will lead to more problems. You can install python packages globally using your package manager. If not create an environment called global and install packages there.
@akemrir6 ай бұрын
Hi, video is quite nice, but it lacks consistency. Every presented language with different example? And only last was used with template from scriptisto? Go template also has colouring dependency put into go.mod. In general this is overkill. They can be compiled easily to binary which can be shared. These scripts need specific compiler and scriptisto on the machine, so you cannot give them to everyone.
@1ups_156 ай бұрын
I'd definitely use this to make cpp scripts if it didn't take ages to compile
@IgorPetruk19895 ай бұрын
It will compile and cache the result. The second run if you haven't changed the file will jump straight to the binary with barely any delay
@dirty-kebab7 ай бұрын
I wanna say, I'm not a fan of seeing people. Like the content should speak for itself, and yours does! Like Fireship
@dreamsofcode7 ай бұрын
Haha thank you.I've moved towards a bit of face footage in order to speed up my production. I'm still a solo video creator and I have so many video ideas that I've gotta figure out how to speed it up a little.
@dirty-kebab7 ай бұрын
Speeding up production? Oh that's a great reason, I hadn't even considered it!? 🧠
@opposite3427 ай бұрын
use anything tbh I went from python to some nim and bash for small little scripts to help setup my environment (for me I'd only use bash for really really not complicated scripts, and then for whatever else that's around medium size it's probably nim)
@halavich96727 ай бұрын
Hey! Very much in time, yesterday I just started multibin project of rewriting some of my scripts to rust. Quickly I realised I need to have it go with dynamic library, as bins are kinda large otherwise
@PouriyaJamshidi7 ай бұрын
You could use Nim, a compiled language with Python-like syntax, which comes with Nimscript.
@Windeycastle7 ай бұрын
What is the reason to use this? To me, it feels more complicated then just writing pure C/Go/Rust and compiling it yourself. Bash often does the trick, and if speed is an issue, well, you're not really scripting anymore at that point, and a compiled program shouldn't be too hard to make then.
@dreamsofcode7 ай бұрын
I think I came to the same conclusion at the end of the video :)
@roganl7 ай бұрын
A tool is a tool is a tool, to abuse Gertrude Stein. So many technologies are tools in search of use cases. I am glad to hear you want to produce some bash content. I was flabbergasted to see your face on a video - from your voice I had imagined you being at least 40 - you come across as very well seasoned. Excellent content - as per usual.
@dreamsofcode7 ай бұрын
Thank you! I'm definitely older than I look tbf! I think bash is one of those skills that I personally should know better, if you asked me to write a for loop without any reference, I don't think I could achieve it!
@daphenomenalz41007 ай бұрын
I also thought he is around prime's age
@gosnooky7 ай бұрын
I feel this is the best use case for Python. I use it all the time for certain tasks and use as few external dependencies as possible.
@hardas817 ай бұрын
Am I missing something? What was the point of all this? You're wrapping the compilation & execution of a perfectly working source file in a script? What do you stand to gain against having a Makefile or running cargo build/run?
@dreamsofcode7 ай бұрын
I'm pretty sure I brought up similar points.
@Igor-zh9ds7 ай бұрын
Anything is better than makefiles. Instead of a makefile you could use this to write your own build system
@greensheen87597 ай бұрын
I like awk cause it's both a command AND an entire programming language. It's great for processing CSV data too
@ed223-p5g7 ай бұрын
when i want to run a script this is the last thing i want, with python i just create the virtual environment, install dependencies and i'm done while you're still configuring this tool
@angeldude1017 ай бұрын
Compiled scripts are nice for speed, but they can easily be _much_ larger than an equivalent bash script without some pretty extreme measures. For actual scripts, I'll probably be using nushell for the most part for the foreseeable future. Also considering that my user and system environments are themselves effectively "compiled", there's really no overhead to just writing what would be a script in Rust or C and then just compiling when when rebuilding the environment. There are even standard functions specifically from making compiled scripts. I thought I remembered there being one for C, but I was only able to find one for Haskell, and a function to generate these script compilers. (Edit: found the C script function.)
@_liminor6 ай бұрын
was it an intentional pronunciation choice? i'b betting the akshual way was supposed to be akin to virtuoso "skrip-tee-sto"
@Dyils7 ай бұрын
Why does he pronounce everything like that "She-bang", "Script-is-toe" wtf :D
@MXS776 ай бұрын
Pls tell your alacrity window size
@coyo_t7 ай бұрын
i love how they have a template for java even though java 22 has made it pretty easy to run a directory with just the java command now v_v
@EliteTester7 ай бұрын
tcc also has a -run flag to run C files
@ika_6663 ай бұрын
is it a script if its compiled anyways?
@jongeduard7 ай бұрын
Really cool project, people make amazing things. But for me I still doubt if it has a practical use case. You still need to install the whole thing as a dependency, scriptisto. And one reason why I also use a lot of Shell or Bash scripts is that it's far more standard on every Linux distro. Bash is installed by default, nothing more is needed. Shell scripts are also much simpler for actual system tasks, I mean when executing external commands is actually my primary goal. Good to mention is that Python is also pretty standard on Linux (maybe not on a fresh base Arch linux install, but tons of additional packages have it as a dependency), so I have used that for some system related scripts too, as it is very simple and also stored as a text file that does not require compilation. But for most actual system tasks it is still often more code to write, and shell scripts stay a simpler default in many cases. So real programming languages do I use for actual software development, both at work and personally, when actually building things.
@thejezzi52197 ай бұрын
I'd use python as it is already installed on most linux distros and on macos (not sure about windows though). It has everything you need out of the box and scripting feels more natural.
@kevinmarques93347 ай бұрын
Such a good video. As a Bash enthusiast my self, I can't wait for your future Bash related videos 👀
@DNFINST7 ай бұрын
I had been using fedora for years and never had an issue with pip. Then I got bored one day and installed Debian and it yelled at me about virtual environments. I read more about what's happening in fedora and just went back to it to never have to deal with that out of the box again.
@CyberSamuraiX7 ай бұрын
And here I was trying to learn Go as a replacement for my automation with scripts/packages in Python :p
@mohamed12087 ай бұрын
I never expected to see the face of the ephemeral/dreamy voice I've been hearing for a whole year. Edit: I actually use fish scripts and find them easier than bash scripts, scriptisto is pretty cool tho
@AnthonyYouTube7 ай бұрын
How am I supposed to enjoy this video? There's no catppuccin!
@dreamsofcode7 ай бұрын
Me and catppuccin have broken up 😭
@uncenter_7 ай бұрын
@@dreamsofcode :o whyyyy
@christopherwood65147 ай бұрын
@@dreamsofcodewhat's the new theme?
@dreamsofautonomy7 ай бұрын
@@christopherwood6514 Tokyo night! I'm enjoying it a lot at the moment.
@dreamsofcode7 ай бұрын
@@christopherwood6514 Lol replied from my other channel!
@christophercarillo47847 ай бұрын
Honestly, I can see this being useful for C/C++ codebases as an alternate to using using make files. Or CMake... I really hope that clang and gcc try and add scriptisto or something similar to their infrastructure!
@AmirHosseinHonardust7 ай бұрын
Does the LSP work though? If not, It might not be that ergonomics!
@dreamsofcode7 ай бұрын
It's hit or miss depending on the language. For Go it worked pretty well, but for Rust it would break.
@AmirHosseinHonardust7 ай бұрын
@@dreamsofcode I heard that there is an RFC rust script currently im its work. Hopefully that would make things really intresting
@psmit297 ай бұрын
@dreamsofcode nice tmux config!! Is there a way we can this Tokyo night tmux config?
@thiagoassisfernandes7 ай бұрын
you have a face i feel betrayed...
@dezly-macauley7 ай бұрын
😮 Whoa. Haven't been online in a while so this is the first time I've seen this man's face. Ngl, it feels like Batman casually showing up to fight crime with no mask on. 😂
@TehGettinq7 ай бұрын
enjoyed the video but that tool is literally a shell script, only difference is it adds noise via the comment preprocessing thing. Just having a sh script that takes in the name of the script you want to run, to make it somewhat portable you just have a dir where the source code for the actual scripts are, that way it knows the path, based on the extension it runs cargo run or go run.. add the top level script in */bin and youre set.
@dovh497 ай бұрын
V is set up really nice for this type of scripting. That's my go to for complex scripting.
@twenty-fifth4207 ай бұрын
Me, wanting to write scripts for fun and automation but don't wanna use bash. 😭 Me picking the most personal and practical language that has maybe 1/10th the size of 'popular choices' 😁 Bell ringer by the way. 🔔
@dreamsofcode7 ай бұрын
Which language did you choose? Maybe I can do a follow up 😁
@twenty-fifth4207 ай бұрын
@@dreamsofcode *Takes a deep breath* So note this on a Nobara/Fedora machine and likely will be used as an automation server when put out to pasture when I update my machine, so for my use cases, I expect frequent changes, but it can be local over a network. And when I get my gaming machine, I will likely stay with this family of distros. I chose Nim and D. I like nimscript and rdmd. I like Nim for the python-like syntax and the powerful out of the box FFI. I like D for getting me out of my fear of curly bracketed C languages (maybe rust is next, **shiver** ); but more seriously for the speed and general use standard library. It has basically everything I need including edge cases for complex numbers, I/O, networking and HTTP, as well as being designed to be very 'generic and flexible'. I even compiled CPython recently and it wasn't particularly slow. For a command and with a spotty connection after all, one it was all on my machine, it works out of the box lol. So yeah, good videos man! Keep it up, and be sure to spread good technical and personable knowledge you can. 💜 Edit: Oh and I compiled MRI Ruby, which has a C based and it was much faster and smaller and I love Ruby! It was my scripting language of choice when I got here, and I owe it alot.
@twenty-fifth4207 ай бұрын
@@dreamsofcode I chose Nim (nimscript) and rdmd (D) for any scripting job in near and long term. I like Nim's python like syntax and since I expect to be doing alot of tinkering with CPython and MRI Ruby source (both of which I just compiled), it's C FFI interop is kind of smooth. I like D's huge standard library for out of the box functions and jobs you can do. Really, and since rdmd exists as a companion to the compiler, anything you can do with the standard library can be piped to your shebang shell. It is also got me over my fear of curly bracketed languages like C and Rust lol.
@twenty-fifth4207 ай бұрын
I am not sure if my comment got filtered twice, so last try, I picked D and Nim (rdmd) and (nimscript)
@dreamsofcode7 ай бұрын
@@twenty-fifth420 This one made it through! Nimscript is an interesting prospect to try out!
@bananaman98696 ай бұрын
Can’t wait to use my c shell to launch my interpreted vim to write my interpreted kernel to run on my interpreted version of qemu!
@destiny_026 ай бұрын
for C and C++, cling interpreter has been there as long as clang.
@SlackwareNVM7 ай бұрын
I'd love to see some more bash content
@Mempler7 ай бұрын
I love to use Python for quick scripts. It generally performs better than bash while also being easier to use
@dreamsofcode7 ай бұрын
Agreed. Python is pretty good. I find it becomes a bit heavier once you need to use dependencies, but until that point it's a great choice for scripting.
@Mempler7 ай бұрын
@@dreamsofcode Agreed, dependencies are a nightmare in python lol
@boscovallejo-nagera60737 ай бұрын
@@Mempler Not just dependencies, but also python versions
@05xpeter7 ай бұрын
@@dreamsofcode will consider using Scriptisto to solve that problem for Python too. They have a python-pip template.
@dmitriidemenev52587 ай бұрын
Doesn't poetry solve this problem?
@Denis-wf4bl7 ай бұрын
I was wondering a week ago how I could use compiled languages for scripting. Bash is good for a lot of use cases, but when it comes to error handling, I struggle a lot. In that case I like to use compiled languages. Thanks for this video. It is a nice inspiration for me 👍
@dreamsofcode7 ай бұрын
It's definitely a fun project, and worthwhile of a try in my opinion. I'd be interested to know what you build with it!
@xavhow7 ай бұрын
I’m no expert but why not just run the binary to skip the compilation step?
@martinseal19877 ай бұрын
Why are we making network requests in scripts?
@SirJagerYT7 ай бұрын
I actually prefer bash, for scripting. jq, sed, psql. created few scripts like: search bookmarks across browsers, chromium based and Firefox open or copy links. password manager using rbw, using rofi, bitwarden. And i need more control i simply use js.
@japadkman7 ай бұрын
I dont see a reason to use this, because when i write scripts its not just for myself but to share with coworkers, and them having to install scriptisto plus the language compiler just to run a script that could be done with bash and whatever other cli tool that unix provides just out of the box, its less of a hassle to deal with bashs weird syntax.
@ashikurrahman22477 ай бұрын
I would love to see some bash content
@tswdev7 ай бұрын
To be fair, none of those languages beats Python for an alternative to bash. But bash is still king, it simply is way more integrated. I wish there was a language that was like Bash but without the wierd, impossible to remember, syntax.
@dreamsofcode7 ай бұрын
I think I may have found just the language 🤞
@tswdev7 ай бұрын
@@dreamsofcode Please, do share. Lemme have a look :D