Is there a way to use only precompiled modules

159 views Asked by At

I wonder if is possible to have only precompiled modules or some sort of MoarVM bytecode. The idea is to protect the source code at some grade - at least i don't want to be in plain text

1

There are 1 answers

5
Elizabeth Mattijsen On BEST ANSWER

Not at the moment. But the design of how CompUnit repositories work, makes that entirely possible. It's just that nobody has been willing to put in the work to make that happen. And it is on my (very long) todo list.

Apart from protecting source code (which may actually be a little more futile when the RakuAST branch lands), I was more thinking of the situation of running Raku on a very small processor with little memory (think RaspBerry and the like), which would make it nice if it would be able to load (binary) modules on demand over the network (without the source).