Hacker News new | ask | show | jobs
by teo_zero 701 days ago
Just to be clear, the input must be written in a subset of C, because many constructs are not recognized, like unsigned types, static variables, [] arrays, etc.

Is there a plan to remove such limitations?

1 comments

These are restrictions of the target language and there isn't much pnut can do about this.
Surely unsigned (aka modulo) arithmetic and arrays are expressible in shell script?

edit: For reference, someone's take on building out better bash-like array functionality in posix shell: https://github.com/friendly-bits/POSIX-arrays (there's only very rudimentary array support built-in to posix sh, basically working with stuff in $@ using set -- arg1 arg2..)

Shell is Turing complete, you could implement anything there with enough effort.