I think you could in theory do this now with a custom Module loader/reader in a similar fashion of the zip prefix hack. Of course that would require all libraries be a module.
Basically you would have a script in the front that like head or tails the file and then have the module reader read some offset. I admit it is non trivial but I think it is possible.
I’ve seen some other people do it by having a script that extracts the vm and jar from the blob and writes it to the file system, but that’s less than ideal.
I think one of the challenges they’ve faced with the hermetic work is that libjvm.so couldn’t be statically linked. It’s all a bit over my head tbh.
View all comments
Show parent comment
2
u/agentoutlier Jan 02 '25
I think you could in theory do this now with a custom Module loader/reader in a similar fashion of the zip prefix hack. Of course that would require all libraries be a module.
Basically you would have a script in the front that like head or tails the file and then have the module reader read some offset. I admit it is non trivial but I think it is possible.