[Pharo-project] Cog+NativeBoost @ Mac OS
Hello, since recently i got access to macs, i were finally able to add NB support for Mac OS. I built the Cog VM with NativeBoost plugin , which you can download at NativeBoost project page [1]. At image side you just load NativeBoost-Installer package and then evaluate: NBInstaller install. Should i also build Squeak VM with NB plugin, or i could stick with Cog? :) [1] http://code.google.com/p/nativeboost/downloads/list -- Best regards, Igor Stasenko AKA sig.
On Thu, 9 Dec 2010, Igor Stasenko wrote:
Hello,
since recently i got access to macs, i were finally able to add NB support for Mac OS. I built the Cog VM with NativeBoost plugin , which you can download at NativeBoost project page [1].
At image side you just load NativeBoost-Installer package and then evaluate:
NBInstaller install.
Should i also build Squeak VM with NB plugin, or i could stick with Cog? :)
What about adding NativeBoost to the official VMs? There could be a command line option to enable/disable it. What do you think? Levente
[1] http://code.google.com/p/nativeboost/downloads/list
-- Best regards, Igor Stasenko AKA sig.
On 9 December 2010 15:54, Levente Uzonyi <leves@elte.hu> wrote:
On Thu, 9 Dec 2010, Igor Stasenko wrote:
Hello,
since recently i got access to macs, i were finally able to add NB support for Mac OS. I built the Cog VM with NativeBoost plugin , which you can download at NativeBoost project page [1].
At image side you just load NativeBoost-Installer package and then evaluate:
NBInstaller install.
Should i also build Squeak VM with NB plugin, or i could stick with Cog? :)
What about adding NativeBoost to the official VMs? There could be a command line option to enable/disable it. What do you think?
i'm not opposed to this. If you remember , i proposed to do this for FFI (keep it as builtin, and enable either via command-line or via .ini file). That is fairly possible.
Levente
-- Best regards, Igor Stasenko AKA sig.
Hi Igor, On 9 December 2010 14:47, Igor Stasenko <siguctua@gmail.com> wrote:
NBInstaller install.
wonderful, thank you *very* much. I installed the examples (which appear to be working) and tests as well, but the tests crash the VM. I have not yet tried to nail the problem down; is this expected behaviour on the Mac? Best, thanks again, Michael
Hi Igor, here are some details. On 9 December 2010 16:29, Michael Haupt <mhaupt@gmail.com> wrote:
I installed the examples (which appear to be working) and tests as well, but the tests crash the VM. I have not yet tried to nail the problem down; is this expected behaviour on the Mac?
most tests are green, but there are some issues: 1. NBUnixHeapManagerTests - 2 errors ("unable to map to virtual memory") 2. NBCallbackTests - assertion failure in NBInterpreterProxy >> #callInterpreter I installed NB in a clean up-to-date Squeak trunk image and use the Cog/NB VM from the NB Google code page. Best, Michael
On 9 December 2010 17:04, Michael Haupt <mhaupt@gmail.com> wrote:
Hi Igor,
here are some details.
On 9 December 2010 16:29, Michael Haupt <mhaupt@gmail.com> wrote:
I installed the examples (which appear to be working) and tests as well, but the tests crash the VM. I have not yet tried to nail the problem down; is this expected behaviour on the Mac?
most tests are green, but there are some issues:
1. NBUnixHeapManagerTests - 2 errors ("unable to map to virtual memory")
yeah, because it is for unix, not mac, but test not aware of it :) Mac memory manager (NBMacExternalHeapManager) works ok, because it is involved in a bootstrapping, and you won't be able to run almost anything without successful bootstrap. I have to disable this test , or better use an appropriate heap manager for testing depending on platform.
2. NBCallbackTests - assertion failure in NBInterpreterProxy >> #callInterpreter
Yeah, callbacks not ready for Cog. I implemented necessary stuff, but haven't time to test it. So, don't use callbacks. Also, Eliot made something cool with FFI , we yet have to see it, and basicly i think i will wait till release of it, so i can play more nicely with it than now. Also, i haven't time to check all image-side code for compatibility with Mac. I even didn't tried to do any external library call, i just tested that assembler + interpreterProxy calls working ok. Currently the Mac NB code using mostly the linux code, and sure thing it could be different in some places specific to mac.
I installed NB in a clean up-to-date Squeak trunk image and use the Cog/NB VM from the NB Google code page.
Best,
Michael
-- Best regards, Igor Stasenko AKA sig.
Hi Igor, OK, so those are "expected failures". :-) On 9 December 2010 19:31, Igor Stasenko <siguctua@gmail.com> wrote:
Currently the Mac NB code using mostly the linux code, and sure thing it could be different in some places specific to mac.
Are there any larger bodies of example code that could be used to identify those places? Best, Michael
participants (3)
-
Igor Stasenko -
Levente Uzonyi -
Michael Haupt