Demayl
Demayl

Reputation: 63

Is there a way to use only precompiled modules

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

Upvotes: 6

Views: 163

Answers (1)

Elizabeth Mattijsen
Elizabeth Mattijsen

Reputation: 26924

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).

Upvotes: 6

Related Questions