Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-19 Thread Henrik Johansen

> On 18 Oct 2016, at 11:11 , Sven Van Caekenberghe  wrote:
> 
> 
> Is there still a stack VM (PharoS for ARM, 5.0) ?

I downloaded the one you linked 
(http://files.pharo.org/vm/pharoS/raspbian/latest.zip 
), but it was a pre-spur 
VM, so I had to use 50496 from the "preSpur" folder.
It didn't recognize the -nodisplay parameter, so I had to open image normally 
to do tinyBenchmarks.
Performance was fairly bad compared to Cog Spur (34M bytecodes, 2M sends), and 
in general not suitable for live editing of a Pharo image at all (8 seconds to 
open a browser, etc), so if a newer does not exist, I doubt it makes sense to 
spend effort creating one that reads Spur images other than as an intellectual 
exercize with a Cog VM available.

Cheers,
Henry

Version infos of vms I've ran, in order of age:

http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz
 

 :

./phcogspurlinuxhtRPi/pharo -version
5.0-201610142319  Sat Oct 15 02:45:47 UTC 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-eem.1959 uuid: 2784931a-d7ba-431a-be8c-ec79b1e55684 
Oct 15 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1959 uuid: 
2784931a-d7ba-431a-be8c-ec79b1e55684 Oct 15 2016
VM: 201610142319 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: 
Sat Oct 15 00:19:53 2016 +0100 $
Plugins: 201610142319 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
Linux testing-gce-874b9d32-9a0b-447e-98d4-15ee5b4feaec 4.4.0-42-generic 
#62~14.04.1-Ubuntu SMP Fri Oct 7 23:15:48 UTC 2016 armv7l GNU/Linux
plugin path: ./phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319 [default: 
/home/veloxit/phcogspurlinuxhtRPi/lib/pharo/5.0-201610142319/]

Included by nuscratch:

squeak -version
5.0-201608180858  Mon Aug 22 18:41:57 PDT 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-cb.1919 uuid: 00a8dd2a-bc8d-4552-b400-be781c8aabec 
Aug 22 2016
StackToRegisterMappingCogit VMMaker.oscog-cb.1919 uuid: 
00a8dd2a-bc8d-4552-b400-be781c8aabec Aug 22 2016
VM: 201608180858 tim@Diziet.local:Documents/Squeak/Rasbian-VM/vm $ Date: Thu 
Aug 18 10:58:48 2016 +0200 $
Plugins: 201608180858 tim@Diziet.local:Documents/Squeak/Rasbian-VM/vm $
Linux Pi-3B-1 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
plugin path: /usr/lib/squeak/5.0-201608180858 [default: 
/usr/lib/squeak/5.0-201608180858/]

http://files.pharo.org/vm/pharoS/raspbian/latest.zip 
 :

./PharoS/PharoS --version
3.9-7 #1 Thu Apr  9 14:59:10 CEST 2015 gcc 4.6.3 [Production ITHB VM]
StackInterpreter VMMaker.oscog-jeanbaptistearnaud.828 uuid: 
ba8d2ed6-70b9-4309-8bf0-9eda9c0d1c2d Apr  9 2015
https://github.com/pharo-project/pharo-vm.git Commit: 
32d18ba0f2db9bee7f3bdbf16bdb24fe4801cfc5 Date: 2015-03-24 11:08:14 +0100 By: 
Esteban Lorenzano  Jenkins build #128
Linux pharo-contribution-raspberrypi-linux 3.2.0-58-generic #88-Ubuntu SMP Tue 
Dec 3 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
plugin path: /home/veloxit/PharoS/ [default: /home/veloxit/PharoS/]

squeak.old (aka squeak , without nuscratch installed) (shell script doesn't 
forward to actual vm if not provided image path, hence the absolute):

/usr/lib/squeak/4.10.2-2614/squeakvm -version
4.10.2-2614 #1 XShm Sat Nov  8 01:32:22 UTC 2014 /usr/bin/cc
Linux bm-wb-01 3.16-trunk-armmp #1 SMP Debian 3.16-1~exp1 (2014-08-09) armv7l 
GNU/Linux
plugin path: /usr/lib/squeak/4.10.2-2614/ [default: 
/usr/lib/squeak/4.10.2-2614/]



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-19 Thread Henrik Johansen

> On 18 Oct 2016, at 6:27 , Sven Van Caekenberghe  wrote:
> 
>>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;

That's the one I downloaded/ran Pharo on.
Like Todd said, there's also a Spur VM shipped with raspbian (as part of 
nuscratch package, located in /usr/lib/squeak/5.*).
Unless you've already uninstalled scratch/is running on an OS other than 
Raspbian, downloading a Squeak image and running the tinyBenchmarks in an image 
launched by
squeak $PathToMyImage should give a good baseline, on my machine it yields 
comparable tinyBenchmark numbers to the above Pharo build.
(In fact, it runs Pharo 6 images as well, the difference is mostly in plugins 
it seems. I guess you'll encounter errors if opening a file browser that 
attempts to use the extended FilePlugin prims, for example)

I'd recommend focusing on verifying any externally interacting parts you intend 
to use work correctly, since that's generally the area that's most spotty.
For instance, while FFI plugin ships with Pharo VM, you may (as I did on 
cursory testing with the vm linked above) get failing float/double call tests 
(60262 image), or downright crashes due to illegal instructions (latest 5.0 
image)
OSProcessPlugin shipped (externally) with the squeak cog vm has been sort of 
hit-and-miss, on above pharo vm it's built internal and seems to be working 
(but curiously, has no canonical source version from which it was generated in 
the Modules list...).

If you plan on developing on the Pi rather than just deploying to, switching to 
Bitmapped Fonts asap is a good idea; iirc the work that was done to provide 
optimized arm-assembly primitives included (bitmap) font rendering.
Disabling auto-complete and syntax-highlighting (that seem to tend to cause 
frequent noticeable pauses), and commenting out 
"write-entire-contents-to-file-every-keystroke" functionality from Playground 
code (so your SD-card doesn't die a premature death), are other small ways to 
make a less jarring experience of it.

Or, framework use allowing, you could save yourself a lot of work flow 
interruption frustration and develop using a Squeak image instead.

Cheers,
Henry


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Sven Van Caekenberghe
Thanks, Esteban, that works:

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo --version
5.0-201610181220  Tue Oct 18 14:42:58 UTC 2016 gcc 4.9.2 [Production Spur VM]
CoInterpreter VMMaker.oscog-rsf.1951 uuid: c714858a-7f63-47bd-a9ec-4bc1350eead2 
Oct 18 2016
StackToRegisterMappingCogit VMMaker.oscog-rsf.1951 uuid: 
c714858a-7f63-47bd-a9ec-4bc1350eead2 Oct 18 2016
VM: 201610181220 https://github.com/estebanlm/opensmalltalk-vm.git $ Date: Tue 
Oct 18 14:20:17 2016 +0200 $
Plugins: 201610181220 https://github.com/estebanlm/opensmalltalk-vm.git $
Linux testing-gce-a8263b5d-fc45-4502-a6e9-cbf3483c9374 4.4.0-42-generic 
#62~14.04.1-Ubuntu SMP Fri Oct 7 23:15:48 UTC 2016 armv7l GNU/Linux
plugin path: /home/pi/Pharo/pharo-arm-vm/ [default: 
/home/pi/Pharo/pharo-arm-vm/]

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo -vm-display-null Pharo.image 
printVersion
[version] 5.0 #50581

pi@raspberrypi ~/Pharo $ ./pharo-arm-vm/pharo -vm-display-null Pharo.image eval 
'1 tinyBenchmarks'
'167210973 bytecodes/sec; 11337746 sends/sec'

Speed is similar to what I got before 160M bytecodes/s, 11M sends/s

Maybe all the VMs that I tried before were all Cog VMs ?

Is there still a stack VM (PharoS for ARM, 5.0) ?

> On 18 Oct 2016, at 22:56, Esteban Lorenzano  wrote:
> 
> Hi Sven, 
> 
> this vm: pharo-linux-i386.7237aa8.zip
> 
> should work. Name is bad but is an ARMv6 VM… did you tried it?
> 
> Esteban
> 
>> On 18 Oct 2016, at 22:50, Sven Van Caekenberghe  wrote:
>> 
>> 
>>> On 18 Oct 2016, at 22:16, Todd Blanchard  wrote:
>>> 
>>> There is a scratch on cog vm as part of the standard raspbian distro.
>>> 
>>> Have you tried that?
>> 
>> The Squeak VMs that come with raspbian seem to be of the older variant (I am 
>> using Pharo 5).
>> 
>> You known, "This interpreter (vers. 6505) cannot read image file (vers. 
>> 6521)."
>> 
>> Still, in order to be sure we are talking about the exact same VM, version 
>> info is needed.
>> 
 On Oct 18, 2016, at 09:27, Sven Van Caekenberghe  wrote:
 
 
> On 18 Oct 2016, at 14:29, Henrik Johansen  
> wrote:
> 
> 
>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
>> 
>> Hi,
>> 
>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>> 
>> I tried comparing the latest OpenSmalltalk VM with some older ones, only 
>> to find that they are all equally fast (slow actually):
>> 
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>> [version] 5.0 #50581
>> 
>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
>> 
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
>> tinyBenchmarks'
>> '167429692 bytecodes/sec; 11160247 sends/sec'
>> 
>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
>> 
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>> Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>> 
>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
>> 
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>> Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>> 
>> That is no significant difference on a RPi 3, at all. Is this normal ? 
>> Am I missing something ?
>> 
>> Thx,
>> 
>> Sven
>> 
>> PS: Just for reference, my Mac Book Pro is 10 times faster
>> 
>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
> 
> Are you 100% sure you benched different VM's?
> A stack VM (PharoS) getting the same results as a Spur VM 
> (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather 
> suspicious...
> 
> At least on my Pi3, the spur Cog VM gives  numbers around 250M 
> bytecodes/160M sends
> which, while still "slow", is a decent bump in speed compared to what 
> you're seeing.
> 
> Cheers,
> Henry
 
 Hi Henry,
 
 That is exactly the kind of reference/experience I am looking for.
 Could you please point me to the exact download URL you downloaded ?
 I will happily test it ;-)
 
 Thx,
 
 Sven
 
 
 
>>> 
>>> 
>> 
>> 
> 




Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Esteban Lorenzano
Hi Sven, 

this vm: pharo-linux-i386.7237aa8.zip 


should work. Name is bad but is an ARMv6 VM… did you tried it?

Esteban

> On 18 Oct 2016, at 22:50, Sven Van Caekenberghe  wrote:
> 
> 
>> On 18 Oct 2016, at 22:16, Todd Blanchard  wrote:
>> 
>> There is a scratch on cog vm as part of the standard raspbian distro.
>> 
>> Have you tried that?
> 
> The Squeak VMs that come with raspbian seem to be of the older variant (I am 
> using Pharo 5).
> 
> You known, "This interpreter (vers. 6505) cannot read image file (vers. 
> 6521)."
> 
> Still, in order to be sure we are talking about the exact same VM, version 
> info is needed.
> 
>>> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe  wrote:
>>> 
>>> 
 On 18 Oct 2016, at 14:29, Henrik Johansen  
 wrote:
 
 
> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
> 
> Hi,
> 
> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
> 
> I tried comparing the latest OpenSmalltalk VM with some older ones, only 
> to find that they are all equally fast (slow actually):
> 
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
> [version] 5.0 #50581
> 
> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
> 
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
> tinyBenchmarks'
> '167429692 bytecodes/sec; 11160247 sends/sec'
> 
> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
> 
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
> Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
> 
> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
> 
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
> Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
> 
> That is no significant difference on a RPi 3, at all. Is this normal ? Am 
> I missing something ?
> 
> Thx,
> 
> Sven
> 
> PS: Just for reference, my Mac Book Pro is 10 times faster
> 
> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
 
 Are you 100% sure you benched different VM's?
 A stack VM (PharoS) getting the same results as a Spur VM 
 (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather 
 suspicious...
 
 At least on my Pi3, the spur Cog VM gives  numbers around 250M 
 bytecodes/160M sends
 which, while still "slow", is a decent bump in speed compared to what 
 you're seeing.
 
 Cheers,
 Henry
>>> 
>>> Hi Henry,
>>> 
>>> That is exactly the kind of reference/experience I am looking for.
>>> Could you please point me to the exact download URL you downloaded ?
>>> I will happily test it ;-)
>>> 
>>> Thx,
>>> 
>>> Sven
>>> 
>>> 
>>> 
>> 
>> 
> 
> 



Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Sven Van Caekenberghe

> On 18 Oct 2016, at 22:16, Todd Blanchard  wrote:
> 
> There is a scratch on cog vm as part of the standard raspbian distro.
> 
> Have you tried that?

The Squeak VMs that come with raspbian seem to be of the older variant (I am 
using Pharo 5).

You known, "This interpreter (vers. 6505) cannot read image file (vers. 6521)."

Still, in order to be sure we are talking about the exact same VM, version info 
is needed.

>> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe  wrote:
>> 
>> 
>>> On 18 Oct 2016, at 14:29, Henrik Johansen  
>>> wrote:
>>> 
>>> 
 On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
 
 Hi,
 
 Does a (faster) Cog VM for the Raspberry Pi actually exist ?
 
 I tried comparing the latest OpenSmalltalk VM with some older ones, only 
 to find that they are all equally fast (slow actually):
 
 pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
 [version] 5.0 #50581
 
 "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
 
 pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
 tinyBenchmarks'
 '167429692 bytecodes/sec; 11160247 sends/sec'
 
 "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
 
 pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
 Pharo.image eval '1 tinyBenchmarks'
 '166992824 bytecodes/sec; 11337746 sends/sec'
 
 "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
 
 pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
 Pharo.image eval '1 tinyBenchmarks'
 '166992824 bytecodes/sec; 11337746 sends/sec'
 
 That is no significant difference on a RPi 3, at all. Is this normal ? Am 
 I missing something ?
 
 Thx,
 
 Sven
 
 PS: Just for reference, my Mac Book Pro is 10 times faster
 
 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>>> 
>>> Are you 100% sure you benched different VM's?
>>> A stack VM (PharoS) getting the same results as a Spur VM 
>>> (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather 
>>> suspicious...
>>> 
>>> At least on my Pi3, the spur Cog VM gives  numbers around 250M 
>>> bytecodes/160M sends
>>> which, while still "slow", is a decent bump in speed compared to what 
>>> you're seeing.
>>> 
>>> Cheers,
>>> Henry
>> 
>> Hi Henry,
>> 
>> That is exactly the kind of reference/experience I am looking for.
>> Could you please point me to the exact download URL you downloaded ?
>> I will happily test it ;-)
>> 
>> Thx,
>> 
>> Sven
>> 
>> 
>> 
> 
> 




Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Todd Blanchard
There is a scratch on cog vm as part of the standard raspbian distro.

Have you tried that?

> On Oct 18, 2016, at 09:27, Sven Van Caekenberghe  wrote:
> 
> 
>> On 18 Oct 2016, at 14:29, Henrik Johansen  
>> wrote:
>> 
>> 
>>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
>>> 
>>> Hi,
>>> 
>>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>>> 
>>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to 
>>> find that they are all equally fast (slow actually):
>>> 
>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>>> [version] 5.0 #50581
>>> 
>>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
>>> 
>>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
>>> tinyBenchmarks'
>>> '167429692 bytecodes/sec; 11160247 sends/sec'
>>> 
>>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
>>> 
>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>>> Pharo.image eval '1 tinyBenchmarks'
>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>> 
>>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
>>> 
>>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>>> Pharo.image eval '1 tinyBenchmarks'
>>> '166992824 bytecodes/sec; 11337746 sends/sec'
>>> 
>>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I 
>>> missing something ?
>>> 
>>> Thx,
>>> 
>>> Sven
>>> 
>>> PS: Just for reference, my Mac Book Pro is 10 times faster
>>> 
>>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>> 
>> Are you 100% sure you benched different VM's?
>> A stack VM (PharoS) getting the same results as a Spur VM 
>> (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
>> 
>> At least on my Pi3, the spur Cog VM gives  numbers around 250M 
>> bytecodes/160M sends
>> which, while still "slow", is a decent bump in speed compared to what you're 
>> seeing.
>> 
>> Cheers,
>> Henry
> 
> Hi Henry,
> 
> That is exactly the kind of reference/experience I am looking for.
> Could you please point me to the exact download URL you downloaded ?
> I will happily test it ;-)
> 
> Thx,
> 
> Sven
> 
> 
> 




Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Sven Van Caekenberghe

> On 18 Oct 2016, at 14:29, Henrik Johansen  
> wrote:
> 
> 
>> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
>> 
>> Hi,
>> 
>> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
>> 
>> I tried comparing the latest OpenSmalltalk VM with some older ones, only to 
>> find that they are all equally fast (slow actually):
>> 
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
>> [version] 5.0 #50581
>> 
>> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
>> 
>> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
>> tinyBenchmarks'
>> '167429692 bytecodes/sec; 11160247 sends/sec'
>> 
>> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
>> 
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>> Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>> 
>> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
>> 
>> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
>> Pharo.image eval '1 tinyBenchmarks'
>> '166992824 bytecodes/sec; 11337746 sends/sec'
>> 
>> That is no significant difference on a RPi 3, at all. Is this normal ? Am I 
>> missing something ?
>> 
>> Thx,
>> 
>> Sven
>> 
>> PS: Just for reference, my Mac Book Pro is 10 times faster
>> 
>> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
> 
> Are you 100% sure you benched different VM's?
> A stack VM (PharoS) getting the same results as a Spur VM 
> (cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...
> 
> At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M 
> sends
> which, while still "slow", is a decent bump in speed compared to what you're 
> seeing.
> 
> Cheers,
> Henry

Hi Henry,

That is exactly the kind of reference/experience I am looking for.
Could you please point me to the exact download URL you downloaded ?
I will happily test it ;-)

Thx,

Sven





Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-18 Thread Henrik Johansen

> On 17 Oct 2016, at 8:43 , Sven Van Caekenberghe  wrote:
> 
> Hi,
> 
> Does a (faster) Cog VM for the Raspberry Pi actually exist ?
> 
> I tried comparing the latest OpenSmalltalk VM with some older ones, only to 
> find that they are all equally fast (slow actually):
> 
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
> [version] 5.0 #50581
> 
> "http://files.pharo.org/vm/pharoS/raspbian/latest.zip;
> 
> pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 
> tinyBenchmarks'
> '167429692 bytecodes/sec; 11160247 sends/sec'
> 
> "http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;
> 
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
> Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
> 
> "https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;
> 
> pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
> Pharo.image eval '1 tinyBenchmarks'
> '166992824 bytecodes/sec; 11337746 sends/sec'
> 
> That is no significant difference on a RPi 3, at all. Is this normal ? Am I 
> missing something ?
> 
> Thx,
> 
> Sven
> 
> PS: Just for reference, my Mac Book Pro is 10 times faster
> 
> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"

Are you 100% sure you benched different VM's?
A stack VM (PharoS) getting the same results as a Spur VM 
(cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz) is rather suspicious...

At least on my Pi3, the spur Cog VM gives  numbers around 250M bytecodes/160M 
sends
which, while still "slow", is a decent bump in speed compared to what you're 
seeing.

Cheers,
Henry


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Pharo-users] Cog VM on Raspberry Pi ?

2016-10-17 Thread Denis Kudriashov
Hi.

2016-10-17 20:43 GMT+02:00 Sven Van Caekenberghe :

> That is no significant difference on a RPi 3, at all. Is this normal ? Am
> I missing something ?
>
> Thx,
>
> Sven
>
> PS: Just for reference, my Mac Book Pro is 10 times faster
>

I had same experience with beaglebone


>
> 1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"
>


[Pharo-users] Cog VM on Raspberry Pi ?

2016-10-17 Thread Sven Van Caekenberghe
Hi,

Does a (faster) Cog VM for the Raspberry Pi actually exist ?

I tried comparing the latest OpenSmalltalk VM with some older ones, only to 
find that they are all equally fast (slow actually):

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image printVersion
[version] 5.0 #50581

"http://files.pharo.org/vm/pharoS/raspbian/latest.zip;

pi@raspberrypi ~/Pharo $ ./pharo -nodisplay Pharo.image eval '1 tinyBenchmarks'
'167429692 bytecodes/sec; 11160247 sends/sec'

"http://www.mirandabanda.org/files/Cog/VM/VM.r3427/cogspurlinuxhtARM-15.33.3427.tgz;

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

"https://bintray.com/opensmalltalk/vm/download_file?file_path=cog_linux32ARMv6_pharo.cog.spur_201610142319.tar.gz;

pi@raspberrypi ~/Pharo $ ./products/phcogspurlinuxhtRPi/pharo -nodisplay 
Pharo.image eval '1 tinyBenchmarks'
'166992824 bytecodes/sec; 11337746 sends/sec'

That is no significant difference on a RPi 3, at all. Is this normal ? Am I 
missing something ?

Thx,

Sven

PS: Just for reference, my Mac Book Pro is 10 times faster 

1 tinyBenchmarks  "'1323852617 bytecodes/sec; 174185794 sends/sec'"