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

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 420

  • @dreamsofcode
    @dreamsofcode  4 месяца назад +8

    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 4 месяца назад +191

    v1: script is toe
    v2: script is foot
    V3: script is leg

  • @TheIsraelMendoza
    @TheIsraelMendoza 4 месяца назад +415

    We like to resolve problems that don’t exist, don’t we?

    • @DevOpsLee
      @DevOpsLee 4 месяца назад +12

      I was thinking the same thing…

    • @CottidaeSEA
      @CottidaeSEA 4 месяца назад +19

      Yeah, I'd just use any of the available script languages instead, this just seems tedious

    • @PhthaloJohnson
      @PhthaloJohnson 4 месяца назад +22

      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 3 месяца назад +7

      programming is about solving problems
      so programmers are problems solvers
      they sometimes create problems too
      in order to (re)solve those problems

    • @Waffle4569
      @Waffle4569 3 месяца назад +26

      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 4 месяца назад +163

    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 4 месяца назад +13

      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 4 месяца назад +32

      @@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 3 месяца назад

      @@tiranito2834having everything in one file is great for ephemeral scripts.

    • @Waffle4569
      @Waffle4569 3 месяца назад +6

      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 3 месяца назад

      @@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.

  • @segsfault
    @segsfault 4 месяца назад +47

    8:03 Typo, It's called "ANSI Escape Code"

  • @THEMithrandir09
    @THEMithrandir09 4 месяца назад +11

    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.

  • @BrazenNL
    @BrazenNL 4 месяца назад +42

    Why not just compile it?

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +11

      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 4 месяца назад +3

      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 4 месяца назад +7

      `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 4 месяца назад +3

      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 3 месяца назад

      @@dreamsofcode You mean like Go? LOL

  • @IgorPetruk1989
    @IgorPetruk1989 2 месяца назад +1

    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

  • @Richard-ck7sr
    @Richard-ck7sr 3 месяца назад +2

    Very nice. TCC from Fabrice Bellard has this feature for C - see ex1.c ex2.c.

  • @KaiAbyss
    @KaiAbyss 3 месяца назад +4

    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?

  • @LunarLambda
    @LunarLambda 3 месяца назад +1

    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

  • @rafalg87
    @rafalg87 4 месяца назад +4

    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.

  • @oblivion_2852
    @oblivion_2852 3 месяца назад +1

    For single file scripts this is pretty great. It's like an inline makefile/build script

  • @secondary-smiles
    @secondary-smiles 3 месяца назад +2

    The nix-shell shebang is another powerful way to improve or even replace this tool.

  • @JasonMitchellofcompsci
    @JasonMitchellofcompsci 3 месяца назад

    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.

  • @konstantinsotov6251
    @konstantinsotov6251 3 месяца назад

    this gave me an idea to write a header-only library for C that will have tools to make scripting easier...

  • @Inyourface3445
    @Inyourface3445 3 месяца назад

    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)

  • @svaira
    @svaira 3 месяца назад +1

    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.

  • @solvecode
    @solvecode 3 месяца назад

    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!

  • @jackzugna5830
    @jackzugna5830 3 месяца назад

    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.

  • @trevorb5516
    @trevorb5516 3 месяца назад

    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.

  • @ryzechdev
    @ryzechdev 3 месяца назад

    Rust actually has a scripting feature built in! It’s in the nightly compiler but it works basically the same, and much easier

  • @sebas11tian
    @sebas11tian 3 месяца назад +2

    Scriptisto is an Esperantism I am sure.

  • @nickolaierlan8064
    @nickolaierlan8064 3 месяца назад +1

    BunJS shell feature is a charm, I use it as a bash alternative

  • @Denis-wf4bl
    @Denis-wf4bl 4 месяца назад +2

    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  4 месяца назад +3

      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!

  • @EliteTester
    @EliteTester 3 месяца назад +1

    tcc also has a -run flag to run C files

  • @roganl
    @roganl 4 месяца назад +1

    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  4 месяца назад

      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 3 месяца назад

      I also thought he is around prime's age

  • @TymexComputing
    @TymexComputing 3 месяца назад

    Dont get whats extra while writing and running the app as a script? enumerating the ENV?

  • @kevinmarques9334
    @kevinmarques9334 4 месяца назад

    Such a good video. As a Bash enthusiast my self, I can't wait for your future Bash related videos 👀

  • @AnthonyYouTube
    @AnthonyYouTube 4 месяца назад +46

    How am I supposed to enjoy this video? There's no catppuccin!

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +25

      Me and catppuccin have broken up 😭

    • @uncenter_
      @uncenter_ 4 месяца назад

      @@dreamsofcode :o whyyyy

    • @christopherwood6514
      @christopherwood6514 3 месяца назад

      @@dreamsofcodewhat's the new theme?

    • @dreamsofautonomy
      @dreamsofautonomy 3 месяца назад +6

      @@christopherwood6514 Tokyo night! I'm enjoying it a lot at the moment.

    • @dreamsofcode
      @dreamsofcode  3 месяца назад +5

      @@christopherwood6514 Lol replied from my other channel!

  • @ricky2629
    @ricky2629 4 месяца назад +1

    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.

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +2

      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.

    • @heroe1486
      @heroe1486 13 дней назад

      Making RUclips content, that's what most programing videos are about, showing unrealistic stuff just for the sake of getting engagement

  • @Lars-ce4rd
    @Lars-ce4rd 3 месяца назад +3

    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

    • @theairaccumulator7144
      @theairaccumulator7144 3 месяца назад

      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.

  • @lucascqueiroz97
    @lucascqueiroz97 3 месяца назад +1

    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?

  • @bananaman9869
    @bananaman9869 3 месяца назад

    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!

  • @hydra147147
    @hydra147147 4 месяца назад +7

    Once cargo script RFC lands there would be no need to do this in Rust with external tooling

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      I'm excited for #!/usr/bin/env cargo

  • @theangelofspace155
    @theangelofspace155 4 месяца назад +1

    6:00 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  4 месяца назад +1

      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_man
      @software_engineer_business_man 3 месяца назад

      Yeah, definitely better. The Rust example was terrible, better write the code and let cargo build or just use Go anyway.

  • @angeldude101
    @angeldude101 4 месяца назад

    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.)

  • @greensheen8759
    @greensheen8759 3 месяца назад

    I like awk cause it's both a command AND an entire programming language. It's great for processing CSV data too

  • @halavich9672
    @halavich9672 3 месяца назад

    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

  • @CyberSamuraiX
    @CyberSamuraiX 4 месяца назад

    And here I was trying to learn Go as a replacement for my automation with scripts/packages in Python :p

  • @akemrir
    @akemrir 3 месяца назад

    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.

  • @PS3PCDJ
    @PS3PCDJ 3 месяца назад

    "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.

  • @christophercarillo4784
    @christophercarillo4784 4 месяца назад

    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!

  • @dovh49
    @dovh49 4 месяца назад

    V is set up really nice for this type of scripting. That's my go to for complex scripting.

  • @hardas81
    @hardas81 4 месяца назад +2

    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?

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      I'm pretty sure I brought up similar points.

    • @Igor-zh9ds
      @Igor-zh9ds 4 месяца назад

      Anything is better than makefiles. Instead of a makefile you could use this to write your own build system

  • @thiagoassisfernandes
    @thiagoassisfernandes 3 месяца назад +2

    you have a face
    i feel betrayed...

  • @suchithsridhar
    @suchithsridhar 3 месяца назад

    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.

  • @jongeduard
    @jongeduard 4 месяца назад

    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.

  • @SlackwareNVM
    @SlackwareNVM 3 месяца назад

    I'd love to see some more bash content

  • @dejanduh2645
    @dejanduh2645 3 месяца назад

    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 🙂

  • @_liminor
    @_liminor 3 месяца назад

    was it an intentional pronunciation choice? i'b betting the akshual way was supposed to be akin to virtuoso "skrip-tee-sto"

  • @thejezzi5219
    @thejezzi5219 3 месяца назад

    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.

  • @Windeycastle
    @Windeycastle 4 месяца назад +1

    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  4 месяца назад +1

      I think I came to the same conclusion at the end of the video :)

  • @MXS77
    @MXS77 3 месяца назад

    Pls tell your alacrity window size

  • @DynamicalisBlue
    @DynamicalisBlue 3 месяца назад +1

    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.

  • @twenty-fifth420
    @twenty-fifth420 4 месяца назад +2

    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  4 месяца назад +2

      Which language did you choose? Maybe I can do a follow up 😁

    • @twenty-fifth420
      @twenty-fifth420 4 месяца назад

      @@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 4 месяца назад

      @@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 4 месяца назад

      I am not sure if my comment got filtered twice, so last try, I picked D and Nim (rdmd) and (nimscript)

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      @@twenty-fifth420 This one made it through! Nimscript is an interesting prospect to try out!

  • @Zmey5656
    @Zmey5656 3 месяца назад

    I thought this video would be about bash)))) It's very useful, but I think for a small project.

  • @Albertux
    @Albertux 3 месяца назад

    basically is automate the process of compiling

  • @ika_666
    @ika_666 13 дней назад

    is it a script if its compiled anyways?

  • @Mempler
    @Mempler 4 месяца назад +6

    I love to use Python for quick scripts. It generally performs better than bash while also being easier to use

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +4

      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 4 месяца назад +1

      @@dreamsofcode Agreed, dependencies are a nightmare in python lol

    • @boscovallejo-nagera6073
      @boscovallejo-nagera6073 4 месяца назад +1

      @@Mempler Not just dependencies, but also python versions

    • @05xpeter
      @05xpeter 4 месяца назад

      @@dreamsofcode will consider using Scriptisto to solve that problem for Python too. They have a python-pip template.

    • @dmitriidemenev5258
      @dmitriidemenev5258 3 месяца назад

      Doesn't poetry solve this problem?

  • @tonyg_nerd
    @tonyg_nerd 3 месяца назад

    We've been able to write scripts that run through a compiler or other preprocessor forever. Just point the shebang to a script that operates on the file. This is not new and doesn't require scriptisto or any other special purpose processor. I've been doing this for years and never thought it wasn't already common knowledge. Research it. Heck, try shebang that invokes a LLM and make your "scripts" natural language statements.

  • @sriramvelamur
    @sriramvelamur 3 месяца назад

    "is it worth it?"
    I once thought it is only a JS land thing that everything needs to be a useless wrapper on top of the builtins; even the simplest, like with rimraf. Looks like why should only JS junkies have all the fun!

  • @_a_x_s_
    @_a_x_s_ 3 месяца назад

    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.

  • @codedsprit
    @codedsprit 4 месяца назад +2

    Handsome though

  • @Otakutaru
    @Otakutaru Месяц назад

    Bash content!

  • @xavhow
    @xavhow 3 месяца назад

    I’m no expert but why not just run the binary to skip the compilation step?

  • @meowsqueak
    @meowsqueak 3 месяца назад

    “Script-is-toe”? It’s scrip-tee-stow… I’m 99% sure.
    “She-bang”? It’s shuh-bang… I’m 100% sure.

  • @RenderingUser
    @RenderingUser 4 месяца назад +1

    finally. i can now script with bfk

  • @hamed9327
    @hamed9327 3 месяца назад

    let's write another program to run scriptisto

  • @iCrimzon
    @iCrimzon 3 месяца назад

    To learn Go , i bruteforced making scripts that would take seconds in python just because

  • @Dyils
    @Dyils 4 месяца назад +1

    Why does he pronounce everything like that "She-bang", "Script-is-toe" wtf :D

  • @ninostephen
    @ninostephen 3 месяца назад

    Now let's try amber-lang. It's in early stages of development but it should be an interesting experiment

  • @hedwig7s
    @hedwig7s 3 месяца назад

    On my way to run scripts in x86 assembly

  • @fahimferdous1641
    @fahimferdous1641 3 месяца назад

    BASHH CONTENT LESSGOOOO

  • @pantium98
    @pantium98 3 месяца назад

    Well, if I want to use c or c++ for scripting, I can use cling for that.

  • @DerTim
    @DerTim 4 месяца назад +5

    Omg, I hate everything with this idea! This is awful and does not serve the purpose of a simple script anymore. This is a standalone application itself. Also, it requires the wanted language installed on the executing system. To get this stuff running with debugging, in the meantime, you can start a new service in Go or C to do the work.
    I personally prefer a solution like amber lang. It's a transpiler to make bash scripts maintainable with common syntax and transpiles and executed scripts, keeping it stupidly simple.
    I don't want to write complex software with bash or scripts, I just want to automate maybe 3 or 4 commands I would execute manually. Rest is a responsibility of my application

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +1

      I've not see amber lang before! It looks pretty interesting and could potentially solve the syntax issue of bash. Going to do some research and might do a future video on it!
      Thank you for the recommendation!

  • @hpsmash77
    @hpsmash77 3 месяца назад

    no not the "she bang" 😭

  • @ultimatetechcoding
    @ultimatetechcoding 4 месяца назад

    great now lets try it with zig build files

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      Even normal zig trips me up 😭

  • @darksinge
    @darksinge 4 месяца назад +1

    I write all my scripts in bash, and honestly kind of hate it.

  • @wondays654
    @wondays654 4 месяца назад

    I just use Nu(because my shell is Nushell) or nim for writing scripts. Bash is just so yucky.

  • @chrisalexthomas
    @chrisalexthomas 3 месяца назад

    This is actually pretty handy, great find man!

  • @zaneearldufour
    @zaneearldufour 3 месяца назад

    nutshell is OP for scripting

  • @wahffle6729
    @wahffle6729 4 месяца назад

    I don't know, this still seems a little unwieldy. I've personally been trying to get into kotlinscript as a scripting language, which is theoretically quite nice, but of course would require kotlin as a dependency, which would make it equally unwieldy for anything beyond personal use.

  • @v0m89jmv0
    @v0m89jmv0 4 месяца назад

    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  4 месяца назад

      Absolutely! I'm also doing some twitch streams as well

  • @samuelbarnes4637
    @samuelbarnes4637 3 месяца назад

    Might just be simpler to use make and run whatever language you want.

  • @AmirHosseinHonardust
    @AmirHosseinHonardust 4 месяца назад

    Does the LSP work though? If not, It might not be that ergonomics!

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      It's hit or miss depending on the language. For Go it worked pretty well, but for Rust it would break.

    • @AmirHosseinHonardust
      @AmirHosseinHonardust 4 месяца назад

      ​@@dreamsofcode I heard that there is an RFC rust script currently im its work. Hopefully that would make things really intresting

  • @JosDehaes
    @JosDehaes 3 месяца назад

    anything bigger than 10 lines, I write in ruby

  • @hamed9327
    @hamed9327 3 месяца назад

    writing a "one file script" in compiled languages is weird in the first place

  • @sportcodfb
    @sportcodfb 4 месяца назад

    I dont really see a usage for this tbh, as you concluded at that point just use bash/zsh for your scripts or python

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      Yah, agreed. It was still fun to play with though.

    • @sportcodfb
      @sportcodfb 3 месяца назад

      @@dreamsofcode oh yeah I could see it being fun to toy with

  • @julianpurse956
    @julianpurse956 3 месяца назад

    But have you ever heard of ansible?

  • @martinseal1987
    @martinseal1987 4 месяца назад

    Why are we making network requests in scripts?

  • @pin689
    @pin689 3 месяца назад

    This is just very complex makefile replacement. Which is totally unnecessary because make works great for a decades now already. Just use it. for Go and Java there is a go run and java commands also no need for additional tools at all

  • @mrdgh2821
    @mrdgh2821 4 месяца назад

    This is awesome!

  • @prashlovessamosa
    @prashlovessamosa 4 месяца назад

    Can you please make a video on Zellij how to use it with Nvim it would be tool helpful.`

    • @dreamsofcode
      @dreamsofcode  4 месяца назад +1

      Absolutely! That one sounds like it'll be perfect for my second channel: Dreams of Autonomy

    • @prashlovessamosa
      @prashlovessamosa 4 месяца назад

      @@dreamsofcode great will wait for it btw thanks for zoxide video

  • @JonitoFischer
    @JonitoFischer 3 месяца назад

    It's way easier to use python for scripting than C (or Rust, memory safety is pointless on a script), you have to reimplement the whole world just to do the simplest thing! (I love C, but in its intended use case, systems programming)

    • @IgorPetruk1989
      @IgorPetruk1989 2 месяца назад

      One cases would be long running scripts, you can save on memory use because you don't keep the interpreter all the time. I originally implemented scriptisto to feed custom scripts output to desktop status bars. I didn't want to have 10 Pythons hanging there

  • @gunstorm05
    @gunstorm05 4 месяца назад

    Great video as usual.
    The tool itself seems unnecessary to me... though I can see the desire it appeals to, I think. That said, I think the name is just the word for "scripter" in Esperanto, which means the name should be pronounced "scrip-TEES-to".

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      Thanks! I agree, I don't think this is the solution for writing scripts in compiled languages for myself.
      I knew I should have brushed up on my Esperanto!

  • @RenderingUser
    @RenderingUser 4 месяца назад +1

    personally, i think this is really cool
    but for now, imma stick to python and bash for scripting
    i already have a large enough collection of python and bash scripts

    • @dreamsofcode
      @dreamsofcode  4 месяца назад

      That's pretty much how I feel about it as well! It's def interesting but I think the portability of bash is hard to beat.

    • @RenderingUser
      @RenderingUser 4 месяца назад +1

      @@dreamsofcode tbh, i think python may be better suited as its easily available cross platform

  • @Tony-fv6zo
    @Tony-fv6zo 3 месяца назад

    Just build the damn script and use it, or maybe a makefile!

  • @CookieGod24
    @CookieGod24 3 месяца назад

    So, it’s a dumbed down make?
    If I need to use a compiled language as a script so much, I’d much rather have a precompiled binary and invoke it from an actual scripting language with actual support around it.

  • @RazoBeckett.
    @RazoBeckett. 4 месяца назад

    I love bash