Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use only precompiled modules

Tags:

raku

moarvm

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

like image 248
Demayl Avatar asked May 16 '21 19:05

Demayl


Video Answer


1 Answers

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

like image 144
Elizabeth Mattijsen Avatar answered Sep 23 '22 05:09

Elizabeth Mattijsen