this post was submitted on 21 May 2024
201 points (96.3% liked)

Programming

17313 readers
331 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
 

New favorite tool ๐Ÿ˜

you are viewing a single comment's thread
view the rest of the comments
[โ€“] eager_eagle 7 points 6 months ago (1 children)

with no support for associative arrays (dicts / hashmaps) or custom data structs this looks very limited to me

[โ€“] [email protected] 3 points 6 months ago (2 children)

Does Bash support those? I think the idea is that it's basically Bash, as if written by a sane person. So it supports the same features as Bash but without the army of footguns.

[โ€“] [email protected] 5 points 6 months ago (1 children)

A language being compiled should be able to support higher-level language concepts than what the target supports natively. That's how compiling works in the first place.

[โ€“] [email protected] 2 points 6 months ago (1 children)

That depends on how readable you want the output to be. It's already pretty bad on that front. If you start supporting arbitrary features it's going to end up as a bytecode interpreter. Which would be pretty cool too tbf! Has anyone written a WASM runtime in bash? ๐Ÿ˜„

[โ€“] [email protected] 2 points 6 months ago (1 children)

Honestly, wouldn't it be great if POSIX eventually specified a WASM runtime?

[โ€“] [email protected] 1 points 6 months ago

Yeah definitely! I wouldn't hold your breath though. Especially as that's pretty much an escape route from POSIX. I doubt they'd be too keen to lose power.

[โ€“] eager_eagle 3 points 6 months ago* (last edited 6 months ago)

it does, well at least associative arrays