> Add the dependencies... Nope. The beauty of a decent systems scripting language is that it includes everything you need (and ideally is already installed everywhere).
Using Rust for 'Scripting'
31–40 of 126 posts
Re: Using Rust for 'Scripting'
#32 turtle is a reimplementation of the Unix command line
environment in Haskell so that you can use Haskell as both a
shell and a scripting language.
[0] https://www.haskell.org/[1] http://www.haskellforall.com/2015/01/use-haskell-for-shell-s...
Re: Using Rust for 'Scripting'
#33Earlier quoted context omitted.
> I'm wondering what part of the twelve step compilation process was found to be easier than simply installing Python on the target machine? That part is something that you can control. Giving instructions for someone non-technical to install Python and run a script with it, and then helping them figure out how to interpret those instructions, is a heck of a lot more complicated. And yeah, you can diddle around with…
Not inconveniencing non-technical users cannot be underlined enough. I'd rather write this in C++ which I haven't touched in ten years than explaining my parents over the phone how to install Python or even just a screen sharing solution so that I can do it. I'm still traumatized from trying to get my dad to visit 192.168.1.1 in his browser.
Re: Using Rust for 'Scripting'
#34Earlier quoted context omitted.
> I'm wondering what part of the twelve step compilation process was found to be easier than simply installing Python on the target machine? That part is something that you can control. Giving instructions for someone non-technical to install Python and run a script with it, and then helping them figure out how to interpret those instructions, is a heck of a lot more complicated. And yeah, you can diddle around with…
Not inconveniencing non-technical users cannot be underlined enough. I'd rather write this in C++ which I haven't touched in ten years than explaining my parents over the phone how to install Python or even just a screen sharing solution so that I can do it. I'm still traumatized from trying to get my dad to visit 192.168.1.1 in his browser.
Re: Using Rust for 'Scripting'
#35Re: Using Rust for 'Scripting'
#36>Writing it in Rust means I can compile it and hand it to him, and he can run it. And that’s it. As wonderful as they are, the fact that languages like Python, Perl, Ruby, JavaScript, etc. require having the runtime bundled up with them makes just shipping a tool a lot harder—especially on systems which aren’t a Unix derivative and don’t have them installed by default. I'm wondering what part of the twelve step compi…
for /r startdir %%i in (*.cha) do ECHO ren "%%i" "%%~ni.txt"Re: Using Rust for 'Scripting'
#37This is over engineering if I've ever seen it. For one this is a single line bash script that would allow you to even handle drag and drop. Best user experience. Second, if you're going to over engineering just look for someone who has already done that for you: http://www.den4b.com/products/renamer It's no use to engineer something that has been solved (unless you're learning) if there are already better solutions.…
Overcomplicating is more like it, for engineering implies a formal specification document which includes requirements, as well as documentation to go along with the product, not to mention complete integration with the target operating system substrate.
This quickly hacked-together Rust program is light years away from that.
Re: Using Rust for 'Scripting'
#38>Writing it in Rust means I can compile it and hand it to him, and he can run it. And that’s it. As wonderful as they are, the fact that languages like Python, Perl, Ruby, JavaScript, etc. require having the runtime bundled up with them makes just shipping a tool a lot harder—especially on systems which aren’t a Unix derivative and don’t have them installed by default. I'm wondering what part of the twelve step compi…
Python scripts can also be compiled to an exe file, although I think that the following batch one-liner is the best for this job: for /r startdir %%i in (*.cha) do ECHO ren "%%i" "%%~ni.txt"
Re: Using Rust for 'Scripting'
#39One could also use Haskell [0] for scripting [1] using the turtle [2] library. turtle is a reimplementation of the Unix command line environment in Haskell so that you can use Haskell as both a shell and a scripting language. [0] https://www.haskell.org/ [1] http://www.haskellforall.com/2015/01/use-haskell-for-shell-s... [2] http://hackage.haskell.org/package/turtle