Lightweight scripting languages

I am looking for a lightweight scripting language that's easier to use than Bash.
It would be cool if I could call C library functions from it.
Would lua be adequate?

Attached: Top-10-Animes-that-Encourage-to-Coding-Skills.jpg (900x500, 80.72K)

Other urls found in this thread:

youtube.com/watch?v=bs8Pj13dW4g
github.com/giann/buzz
twitter.com/SFWRedditImages

Yes

How large is the lua runtime?

Apparently calling C functions from lua requires making a C module to register those functions, which is lame and defeats the point of dynamically calling C functions without having to recompile anything.

Python works great with C

python is too bloated

Tcl

youtube.com/watch?v=bs8Pj13dW4g

HolyC

this is true for all programming languages. I guess you could try using lola or buzz and then auto-generate the bindings using zig comptime capabilities
github.com/giann/buzz

>lightweight scripting language
Perl, at the end is always Perl

if the machine you're working with is actually too slow to run python then yeah try something low level but it's probably not and you probably fell for a meme

this has been replaced by php since around two decades, grandpa

>want to learn lua
>array indexes start at 1
>leave

>filtered by adding 1

>php
>to replace bash
>call c functions
perl or maybe python would be the best choice for OP's needs

i hate programmers so much, CS is the nigger science. 1-indexed > 0-indexed

>Would lua be adequate?
Too focused on being embedded into something else. Perl is nice choice for shell scripts, because it's not too different, it is very very stable - in terms of backwards compatibility and it is everywhere. But really, Perl is like vi of scripting languages. Pick any distro you like and there is very high chance Perl is already installed.

I like php for web too but your answer is just bonkers

perl is horrible, worse than shit do not listen to this retard

>perl is horrible
Yes yes, horrible write-only language indistinguishable from /dev/random noise.

Except you can take this 20+ years old Perl noise, run it unchanged today on modern hardware and pretty much any distro and it still works. Show me how your "modern" "safe" "replacements" can even compete.

I wonder how hard making a special lua library to dymanically link up c functions as theyre called would be