running the vm from within a dll
Hi all, i know this topic was discussed from time to time but I'm not sure if there is a simple answer. Can the VM be compiled to a windows dll, so pharo could get started from another dll and would exchange events? It is probably a similar approach to the one Andreas Raab did for the android/ squeak port back in 2010. He compiled squeak as a shared library and started it on Android via a Java wrapper. I had a short conversation on that with Andreas on this years ago and it sounded very easy. I had the impression that he did this on one evening and it just worked. The code looked simple too. But maybe it was that easy because Andreas was a super-smart guy ... Anyway - would this architecture fit with a dll-scario (having a dll that starts pharo, which itself runs in a dll)? Regards Stefan
Hello, In short this is possible but there are several things to do before we are able to compile the VM as a dynamic library. No one is currently working on it right now because there are limited resources in the VM development and the focus is on other topics (x86_64 and ARM port as well as JIT optimizations). The android VM is working and it may be a good start. If you're interested in doing it, I cc vm-dev were people can detail you what has exactly to be done. Best, Clement 2015-04-24 18:06 GMT+02:00 Stefan Krecher <stefan.krecher@googlemail.com>:
Hi all, i know this topic was discussed from time to time but I'm not sure if there is a simple answer. Can the VM be compiled to a windows dll, so pharo could get started from another dll and would exchange events? It is probably a similar approach to the one Andreas Raab did for the android/ squeak port back in 2010. He compiled squeak as a shared library and started it on Android via a Java wrapper. I had a short conversation on that with Andreas on this years ago and it sounded very easy. I had the impression that he did this on one evening and it just worked. The code looked simple too. But maybe it was that easy because Andreas was a super-smart guy ... Anyway - would this architecture fit with a dll-scario (having a dll that starts pharo, which itself runs in a dll)? Regards Stefan
Personally I would love to have this happening. Stef Le 24/4/15 18:06, Stefan Krecher a écrit :
Hi all, i know this topic was discussed from time to time but I'm not sure if there is a simple answer. Can the VM be compiled to a windows dll, so pharo could get started from another dll and would exchange events? It is probably a similar approach to the one Andreas Raab did for the android/ squeak port back in 2010. He compiled squeak as a shared library and started it on Android via a Java wrapper. I had a short conversation on that with Andreas on this years ago and it sounded very easy. I had the impression that he did this on one evening and it just worked. The code looked simple too. But maybe it was that easy because Andreas was a super-smart guy ... Anyway - would this architecture fit with a dll-scario (having a dll that starts pharo, which itself runs in a dll)? Regards Stefan
participants (3)
-
Clément Bera -
Stefan Krecher -
stepharo