[squeak-dev] Squeak as DLL

Igor Stasenko siguctua at gmail.com
Sun Jul 27 00:16:11 UTC 2008


2008/7/27 askoh <askoh at askoh.com>:
>
> Thank you very much for your expert advice. Can you elaborate a bit why a
> Squeak.dll is so different from Squeak.exe? What holds back the browser
> plugin from becoming a CAD plugin/addon?
>

Well, you have to rewrite the initialization, which starts in main()
function and then after a dozen steps, like loading image, creating
window, setting up a message loop, calls interpret().
Also, interpret() function is not reentrant, once you called it, it
never returns.

And there i no API, like in other languages (Lua / Python) which will
give you control on initialization & managing interpreter, memory ,
events from host application. You'll have to invent all by own.
And there is a lot of platform-specific code, which assuming it runs
as standalone process.

> Thanks,
> Aik-Siong Koh
>
>
>
> I think it would be MUCH easier to write a .dll which communicating
> with squeak vm using sockets instead of rewriting squeak VM to be
> compiled as dll.
> There are too much gory details need to be changed to be able to build
> squeak as dynamic library for general purpose.
> Squeak VM can be built as browser plugin (dll), but to what i saw it
> is really different to making squeak a simple dynamic library.
>
>
> --
> View this message in context: http://www.nabble.com/Squeak-as-DLL-tp18655393p18671688.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list