We can now write scripts using these languages, but is it worth it?

  Рет қаралды 58,968

Dreams of Code

Dreams of Code

Күн бұрын

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.
Bash is often my go to for writing shell scripts, and by doing so, it allows me to easily automate a lot of my workflow.
However, the syntax of bash is kinda weird at times, and I often wonder if it'd just be quicker to use a compiled language.
Fortunately, thanks to scriptisto, we're able to use other programming languages such as C, Go, & Rust for writing scripts. But is it any better?
Video Links:
Scripisto: github.com/igor-petruk/script...
Twitch: / dreamsofcode_dev
Become a better developer in 4 minutes: bit.ly/45C7a29 👈
Join this channel to get access to perks:
/ @dreamsofcode
Join Discord: / discord
Join Twitter: / dreamsofcode_io
00:00:00 - Intro
00:01:17 - C
00:04:04 - Sponsor
00:05:08 - Go
00:06:02 - Rust

Пікірлер: 402
@dreamsofcode
@dreamsofcode 28 күн бұрын
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.
@mcbot6291
@mcbot6291 27 күн бұрын
v1: script is toe v2: script is foot V3: script is leg
@TheIsraelMendoza
@TheIsraelMendoza 27 күн бұрын
We like to resolve problems that don’t exist, don’t we?
@DevOpsLee
@DevOpsLee 27 күн бұрын
I was thinking the same thing…
@CottidaeSEA
@CottidaeSEA 27 күн бұрын
Yeah, I'd just use any of the available script languages instead, this just seems tedious
@user-uf4rx5ih3v
@user-uf4rx5ih3v 27 күн бұрын
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.
@phatboislym
@phatboislym 27 күн бұрын
programming is about solving problems so programmers are problems solvers they sometimes create problems too in order to (re)solve those problems
@Waffle4569
@Waffle4569 27 күн бұрын
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 🤣
@kyuthefox
@kyuthefox 27 күн бұрын
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
@grifferz
@grifferz 27 күн бұрын
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.
@tiranito2834
@tiranito2834 27 күн бұрын
@@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.
@Avbanks23
@Avbanks23 27 күн бұрын
@@tiranito2834having everything in one file is great for ephemeral scripts.
@Waffle4569
@Waffle4569 27 күн бұрын
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.mungus9819
@hughesd.mungus9819 26 күн бұрын
@@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.
@rosiepone
@rosiepone 27 күн бұрын
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
@segsfault
@segsfault 27 күн бұрын
<a href="#" class="seekto" data-time="483">8:03</a> Typo, It's called "ANSI Escape Code"
@debajyatidey9468
@debajyatidey9468 26 күн бұрын
Exactly
@anasouardini
@anasouardini 27 күн бұрын
"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.
@plutack
@plutack 27 күн бұрын
That sentence rubbed off on me as weird. I thought the major reason to like a scripting language would be its syntax
@dreamsofcode
@dreamsofcode 27 күн бұрын
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!
@SkyyySi
@SkyyySi 27 күн бұрын
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.
@boccobadz
@boccobadz 27 күн бұрын
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.
@anasouardini
@anasouardini 27 күн бұрын
@@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.
@bastianwegge
@bastianwegge 27 күн бұрын
Looking forward to hearing about bash & how you‘re doing automation 🙌🏻. Keep up the good work!
@dreamsofcode
@dreamsofcode 27 күн бұрын
Bash content incoming soon!
@user-uf4rx5ih3v
@user-uf4rx5ih3v 27 күн бұрын
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.
@josephbrandenburg4373
@josephbrandenburg4373 25 күн бұрын
Have you tried dash?
@harleyspeedthrust4013
@harleyspeedthrust4013 22 күн бұрын
try perl bro. perl is a great scripting language
@trevorb5516
@trevorb5516 21 күн бұрын
@@harleyspeedthrust4013 oh god no
@harleyspeedthrust4013
@harleyspeedthrust4013 21 күн бұрын
@@trevorb5516 hey man don't listen to the rumors. perl is awesome
@reinhold1616
@reinhold1616 14 күн бұрын
@@harleyspeedthrust4013 are you kidding me
@taquanminhlong
@taquanminhlong 27 күн бұрын
I'm using nushell, it's really a rust version of bash script, it's built with rust as well 😂
@EpKjelltzer
@EpKjelltzer 26 күн бұрын
Nushell is great. All of the power and interactivity of the CLI, none of the strangeness of bash.
@RealYethal
@RealYethal 25 күн бұрын
Nushell is love, nushell is life
@NexusGamingRadical
@NexusGamingRadical 27 күн бұрын
Man pls no bash, save me from string orienated programming i beg
@dreamsofcode
@dreamsofcode 27 күн бұрын
😭 I actually may have found another solution!
@flamendless
@flamendless 27 күн бұрын
There is this new language that compiles to bash so maybe give it a look
@jordanlowell688
@jordanlowell688 27 күн бұрын
@@flamendless I think it's called Amber Lang.
@microsuxx
@microsuxx 27 күн бұрын
the wrong .. code wrong ..
@j-r-hill
@j-r-hill 27 күн бұрын
Ever try Tcl? The language where everything is a string?
@THEMithrandir09
@THEMithrandir09 27 күн бұрын
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.
@HoussamElbadissi
@HoussamElbadissi 27 күн бұрын
Heyy it's great to see your face! Love your content, keep it up!
@dreamsofcode
@dreamsofcode 27 күн бұрын
Thank you! Will do!
@saperelearns2077
@saperelearns2077 26 күн бұрын
@@dreamsofcode Talented, Funny AND Handsome?! You really are the trifecta- amazing work, mate!
@kevinmarques9334
@kevinmarques9334 27 күн бұрын
Such a good video. As a Bash enthusiast my self, I can't wait for your future Bash related videos 👀
@solvecode
@solvecode 11 күн бұрын
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!
@antoniocs8873
@antoniocs8873 27 күн бұрын
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_nl
@ovidiu_nl 27 күн бұрын
Yeah, and if you use cargo as intended you get other benefits like rust-analyzer understanding your dependencies.
@tiranito2834
@tiranito2834 27 күн бұрын
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...
@NetherFX
@NetherFX 26 күн бұрын
I partly agree, but why not learn makefile instead of another scripting language that injects itself into your code?
@Richard-ck7sr
@Richard-ck7sr 24 күн бұрын
Very nice. TCC from Fabrice Bellard has this feature for C - see ex1.c ex2.c.
@KaiAbyss
@KaiAbyss 26 күн бұрын
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?
@oblivion_2852
@oblivion_2852 26 күн бұрын
For single file scripts this is pretty great. It's like an inline makefile/build script
@sebas11tian
@sebas11tian 27 күн бұрын
Scriptisto is an Esperantism I am sure.
@lucascqueiroz97
@lucascqueiroz97 27 күн бұрын
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?
@LunarLambda
@LunarLambda 26 күн бұрын
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
@BrazenNL
@BrazenNL 27 күн бұрын
Why not just compile it?
@dreamsofcode
@dreamsofcode 27 күн бұрын
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.
@mysterry2000
@mysterry2000 27 күн бұрын
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
@BrazenNL
@BrazenNL 27 күн бұрын
`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?
@Rozenmorte
@Rozenmorte 27 күн бұрын
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.
@synen
@synen 27 күн бұрын
@@dreamsofcode You mean like Go? LOL
@SlackwareNVM
@SlackwareNVM 26 күн бұрын
I'd love to see some more bash content
@secondary-smiles
@secondary-smiles 27 күн бұрын
The nix-shell shebang is another powerful way to improve or even replace this tool.
@vikingthedude
@vikingthedude 27 күн бұрын
Do the go/rust LSPs work with these scripts? I imagine the lsps wouldn’t know where the dependencies are stored
@dreamsofcode
@dreamsofcode 27 күн бұрын
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.
@Fudmottin
@Fudmottin 26 күн бұрын
The next step down the rabbit hole is to set Emacs as your $SHELL and do scripting in Emacs Lisp.
@halavich9672
@halavich9672 26 күн бұрын
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
@ddanier23
@ddanier23 27 күн бұрын
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. 😉
@konstantinsotov6251
@konstantinsotov6251 9 күн бұрын
this gave me an idea to write a header-only library for C that will have tools to make scripting easier...
@ashikurrahman2247
@ashikurrahman2247 26 күн бұрын
I would love to see some bash content
@conaticus
@conaticus 26 күн бұрын
Great vid as always
@dmitriidemenev5258
@dmitriidemenev5258 26 күн бұрын
Look who's there!
@dreamsofcode
@dreamsofcode 25 күн бұрын
Thanks dude!
@rafalg87
@rafalg87 27 күн бұрын
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 <a href="#" class="seekto" data-time="69">1:09</a>.
@CyberSamuraiX
@CyberSamuraiX 27 күн бұрын
And here I was trying to learn Go as a replacement for my automation with scripts/packages in Python :p
@1ups_15
@1ups_15 14 күн бұрын
I'd definitely use this to make cpp scripts if it didn't take ages to compile
@JasonMitchellofcompsci
@JasonMitchellofcompsci 21 күн бұрын
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.
@angeldude101
@angeldude101 27 күн бұрын
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.)
@theangelofspace155
@theangelofspace155 27 күн бұрын
<a href="#" class="seekto" data-time="360">6:00</a> why is mot 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?
@dreamsofcode
@dreamsofcode 27 күн бұрын
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`
@mateushesed
@mateushesed 26 күн бұрын
Yeah, definitely better. The Rust example was terrible, better write the code and let cargo build or just use Go anyway.
@dovh49
@dovh49 27 күн бұрын
V is set up really nice for this type of scripting. That's my go to for complex scripting.
@svaira
@svaira 26 күн бұрын
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.
@EliteTester
@EliteTester 26 күн бұрын
tcc also has a -run flag to run C files
@nickolaierlan8064
@nickolaierlan8064 24 күн бұрын
BunJS shell feature is a charm, I use it as a bash alternative
@_Verac
@_Verac 27 күн бұрын
I use quickjs + bash. Js for complex data structures, and bash as a wrapper for the js script.
@psmit29
@psmit29 27 күн бұрын
@dreamsofcode nice tmux config!! Is there a way we can this Tokyo night tmux config?
@gosnooky
@gosnooky 25 күн бұрын
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.
@roganl
@roganl 27 күн бұрын
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.
@dreamsofcode
@dreamsofcode 27 күн бұрын
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!
@daphenomenalz4100
@daphenomenalz4100 26 күн бұрын
I also thought he is around prime's age
@ryzechdev
@ryzechdev 25 күн бұрын
Rust actually has a scripting feature built in! It’s in the nightly compiler but it works basically the same, and much easier
@Inyourface3445
@Inyourface3445 13 күн бұрын
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)
@TymexComputing
@TymexComputing 10 күн бұрын
Dont get whats extra while writing and running the app as a script? enumerating the ENV?
@trevorb5516
@trevorb5516 21 күн бұрын
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.
@AnthonyYouTube
@AnthonyYouTube 27 күн бұрын
How am I supposed to enjoy this video? There's no catppuccin!
@dreamsofcode
@dreamsofcode 27 күн бұрын
Me and catppuccin have broken up 😭
@uncenter_
@uncenter_ 27 күн бұрын
@@dreamsofcode :o whyyyy
@christopherwood6514
@christopherwood6514 27 күн бұрын
@@dreamsofcodewhat's the new theme?
@dreamsofautonomy
@dreamsofautonomy 27 күн бұрын
@@christopherwood6514 Tokyo night! I'm enjoying it a lot at the moment.
@dreamsofcode
@dreamsofcode 27 күн бұрын
@@christopherwood6514 Lol replied from my other channel!
@dezly-macauley
@dezly-macauley 26 күн бұрын
😮 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. 😂
@greensheen8759
@greensheen8759 26 күн бұрын
I like awk cause it's both a command AND an entire programming language. It's great for processing CSV data too
@jackzugna5830
@jackzugna5830 16 күн бұрын
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.
@mrdgh2821
@mrdgh2821 27 күн бұрын
This is awesome!
@fahimferdous1641
@fahimferdous1641 26 күн бұрын
BASHH CONTENT LESSGOOOO
@christophercarillo4784
@christophercarillo4784 27 күн бұрын
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!
@dipi71
@dipi71 26 күн бұрын
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.
@jongeduard
@jongeduard 27 күн бұрын
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.
@PouriyaJamshidi
@PouriyaJamshidi 25 күн бұрын
You could use Nim, a compiled language with Python-like syntax, which comes with Nimscript.
@bananaman9869
@bananaman9869 5 күн бұрын
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!
@opposite342
@opposite342 25 күн бұрын
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)
@coyo_t
@coyo_t 26 күн бұрын
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
@dejanduh2645
@dejanduh2645 26 күн бұрын
Hey. I really enjoy your videos. Very good content, high value explanation of things. Would you be interested in making a go api with the new router? Didn't find any good videos. Would enjoy your way of making them in golang 🙂
@TristanSmith
@TristanSmith 26 күн бұрын
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.
@Zmey5656
@Zmey5656 26 күн бұрын
I thought this video would be about bash)))) It's very useful, but I think for a small project.
@timseguine2
@timseguine2 18 күн бұрын
I've never tried it by why wouldn't writing "go run" in the shebang work for golang? Something similar works for python
@bastiana3611
@bastiana3611 15 күн бұрын
<a href="#" class="seekto" data-time="397">6:37</a> How come it uses Rust edition 2018 instead of 2021?
@destiny_02
@destiny_02 20 күн бұрын
for C and C++, cling interpreter has been there as long as clang.
@hydra147147
@hydra147147 27 күн бұрын
Once cargo script RFC lands there would be no need to do this in Rust with external tooling
@dreamsofcode
@dreamsofcode 27 күн бұрын
I'm excited for #!/usr/bin/env cargo
@NetherFX
@NetherFX 26 күн бұрын
The only difference now is that you don't need to compile/build a program. So what does this solve exactly?
@_a_x_s_
@_a_x_s_ 23 күн бұрын
For C, we have cling. For Rust, we have irust. For python, we can just use it as is. I am not a go programmer so not sure about this.
@suchithsridhar8460
@suchithsridhar8460 26 күн бұрын
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.
@superkorki98
@superkorki98 26 күн бұрын
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
@thejezzi5219
@thejezzi5219 26 күн бұрын
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.
@PS3PCDJ
@PS3PCDJ 18 күн бұрын
"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.
@ultimatetechcoding
@ultimatetechcoding 27 күн бұрын
great now lets try it with zig build files
@dreamsofcode
@dreamsofcode 27 күн бұрын
Even normal zig trips me up 😭
@RenderingUser
@RenderingUser 27 күн бұрын
finally. i can now script with bfk
@ACium.
@ACium. 27 күн бұрын
At <a href="#" class="seekto" data-time="148">2:28</a> , add what? I didnt hear properly. Yamokey value?
@jasiek1309
@jasiek1309 20 күн бұрын
"YAML key values"
@ACium.
@ACium. 20 күн бұрын
@@jasiek1309 Thank you!
@hansdampf2284
@hansdampf2284 12 күн бұрын
Am I missing something? How is that better than compiling a program and running it? I could do this with a simple make target
@thiagoassisfernandes
@thiagoassisfernandes 24 күн бұрын
you have a face i feel betrayed...
@Albertux
@Albertux 25 күн бұрын
basically is automate the process of compiling
@Denis-wf4bl
@Denis-wf4bl 27 күн бұрын
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 👍
@dreamsofcode
@dreamsofcode 27 күн бұрын
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!
@iCrimzon
@iCrimzon 20 күн бұрын
To learn Go , i bruteforced making scripts that would take seconds in python just because
@MXS77
@MXS77 20 күн бұрын
Pls tell your alacrity window size
@chrisalexthomas
@chrisalexthomas 25 күн бұрын
This is actually pretty handy, great find man!
@Mempler
@Mempler 27 күн бұрын
I love to use Python for quick scripts. It generally performs better than bash while also being easier to use
@dreamsofcode
@dreamsofcode 27 күн бұрын
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.
@Mempler
@Mempler 27 күн бұрын
@@dreamsofcode Agreed, dependencies are a nightmare in python lol
@boscovallejo-nagera6073
@boscovallejo-nagera6073 27 күн бұрын
@@Mempler Not just dependencies, but also python versions
@05xpeter
@05xpeter 27 күн бұрын
@@dreamsofcode will consider using Scriptisto to solve that problem for Python too. They have a python-pip template.
@dmitriidemenev5258
@dmitriidemenev5258 26 күн бұрын
Doesn't poetry solve this problem?
@codedsprit
@codedsprit 27 күн бұрын
Handsome though
@akemrir
@akemrir 13 күн бұрын
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.
@pyromancerforhire
@pyromancerforhire 17 күн бұрын
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
@Windeycastle
@Windeycastle 27 күн бұрын
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.
@dreamsofcode
@dreamsofcode 27 күн бұрын
I think I came to the same conclusion at the end of the video :)
@twenty-fifth420
@twenty-fifth420 27 күн бұрын
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. 🔔
@dreamsofcode
@dreamsofcode 27 күн бұрын
Which language did you choose? Maybe I can do a follow up 😁
@twenty-fifth420
@twenty-fifth420 27 күн бұрын
@@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-fifth420
@twenty-fifth420 27 күн бұрын
@@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-fifth420
@twenty-fifth420 27 күн бұрын
I am not sure if my comment got filtered twice, so last try, I picked D and Nim (rdmd) and (nimscript)
@dreamsofcode
@dreamsofcode 27 күн бұрын
@@twenty-fifth420 This one made it through! Nimscript is an interesting prospect to try out!
@black-backdoor
@black-backdoor 27 күн бұрын
I love your videos! Could you do a video about your setup? I'd love to know which OS you're using and what PC hardware you have.
@dreamsofcode
@dreamsofcode 27 күн бұрын
Absolutely! I'm also doing some twitch streams as well
@pantium98
@pantium98 27 күн бұрын
Well, if I want to use c or c++ for scripting, I can use cling for that.
@hamed9327
@hamed9327 16 күн бұрын
let's write another program to run scriptisto
@_liminor
@_liminor 14 күн бұрын
was it an intentional pronunciation choice? i'b betting the akshual way was supposed to be akin to virtuoso "skrip-tee-sto"
@AmirHosseinHonardust
@AmirHosseinHonardust 27 күн бұрын
Does the LSP work though? If not, It might not be that ergonomics!
@dreamsofcode
@dreamsofcode 27 күн бұрын
It's hit or miss depending on the language. For Go it worked pretty well, but for Rust it would break.
@AmirHosseinHonardust
@AmirHosseinHonardust 27 күн бұрын
​@@dreamsofcode I heard that there is an RFC rust script currently im its work. Hopefully that would make things really intresting
@SirJagerYT
@SirJagerYT 24 күн бұрын
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.
@tswdev
@tswdev 22 күн бұрын
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.
@dreamsofcode
@dreamsofcode 22 күн бұрын
I think I may have found just the language 🤞
@tswdev
@tswdev 22 күн бұрын
@@dreamsofcode Please, do share. Lemme have a look :D
@paddingbox9845
@paddingbox9845 27 күн бұрын
nice studio
@dreamsofcode
@dreamsofcode 27 күн бұрын
Thank you!
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 408 М.
zig is the future of programming. here's why.
9:34
Low Level Learning
Рет қаралды 223 М.
I’m just a kid 🥹🥰 LeoNata family #shorts
00:12
LeoNata Family
Рет қаралды 17 МЛН
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 3,6 МЛН
Универ. 10 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:04:59
Комедии 2023
Рет қаралды 2,7 МЛН
Are headphones destroying our hearing?
6:49
Vox
Рет қаралды 379 М.
The 3 Laws of Writing Readable Code
5:28
Kantan Coding
Рет қаралды 291 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 180 М.
Cool Tools I’ve Been Using Lately
23:11
Theo - t3․gg
Рет қаралды 183 М.
Programming with Math | The Lambda Calculus
21:48
Eyesomorphic
Рет қаралды 107 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 121 М.
From C ➡️ C++ ➡️  Rust
14:06
code_report
Рет қаралды 166 М.
Can I Run Youtube Entirely From My Terminal? (No Browser)
15:31
Compiler-Driven Development in Rust
13:11
No Boilerplate
Рет қаралды 44 М.
SSD с кулером и скоростью 1 ГБ/с
0:47
Rozetked
Рет қаралды 260 М.
Main filter..
0:15
CikoYt
Рет қаралды 11 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 3,9 МЛН