Re: [Pharo-project] Memory usage

2012-08-01 Thread John McIntosh
A few years back the interpreted virtual machine was fixed to allow an
image to grow to the 4 GB limit.
It is unclear to me if someone regressed the software to impose a 2GB limit
again, or if the 2GB number
mentioned is based on how things worked10 years ago?

On Wed, Aug 1, 2012 at 5:01 AM, Stéphane Ducasse
stephane.duca...@inria.frwrote:


 On Jul 31, 2012, at 11:46 PM, johnmci wrote:

  David Lewis and I spent a far amount of time a few years back  to make
 the 32
  vm 4gb clean. So are you running on stale knowledge here, or does the vm
  crash when to goes over 2gb?

 sorry my english limit does not let me know understanding what you mean
 exactly.
 Jannik in the context of moose would like to see if we can have image
 larger than 500 mb (on mac it should be possible).

 Stef

 
 
 
  --
  View this message in context:
 http://forum.world.st/Memory-usage-tp4641108p4642349.html
  Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
 





-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
iPhone Apps.  http://www.wikiserver.com  Twitter: squeaker68882
===


Re: [Pharo-project] Memory usage

2012-08-01 Thread John McIntosh
I'm sure I built a vm for 64 bits a few years back, maybe not a stack one,
can't remember
ya
http://lists.squeakfoundation.org/pipermail/vm-dev/2010-January/003732.html

On Tue, Jul 31, 2012 at 11:01 AM, David T. Lewis le...@mail.msen.comwrote:

 I don't know of anyone who has built a StackVM for the 64-bit object
 memory,
 so this might require some development work. It would certainly be possible
 to do it, but I don't think that anyone has tried.

 Note that Eliot has plans for improved object memory formats, and the
 current
 64-bit object memory is a simplest thing that could possible work
 conversion
 of the 32-bit object memory. I expect that Eliot would want to put his
 energy
 into the new object memory format(s), so a StackVM for the current 64-bit
 object memory would probably require someone to volunteer to do some
 development
 work.

 Dave


 On Tue, Jul 31, 2012 at 04:16:40PM +0200, p...@highoctane.be wrote:
  Hi guys,
 
  I've been building the iOS StackVM for my own uses and am definitely
  interested in getting a 64-bit StackVM for some large data sets I'd like
 to
  load in RAM for some experiments.
 
  If there are pointers given, I am willing to test the build on my box.
 
  Phil
 
 
  2012/7/31 David T. Lewis le...@mail.msen.com
 
   Hi Jannik,
  
   I am not a Mac user, and I have only ever done this on Linux, so I
 cannot
   promise that it will be easy. Possibly Esteban can give us some advice
   here,
   and correct my errors. Also, if you are going to try this, we may want
 to
   take the discussion to the vm-dev list.
  
   You will need to install the Mac tools for compiling Unix programs
 (sorry
   I do not know what this is called) and you will need to be able to
 compile
   programs using CMake and the gcc tools on a Mac. I know very little
 about
   this myself, but I'm sure others can give some tips.
  
   The actual VM that you will need to build will be an interpreter VM,
 and
   you will be building it with a preprocessor macro set to force use of
   the 64-bit object format. The resulting VM will be slow compared to
 what
   you are used to with Cog, and it may not have all the features that you
   would expect from a Mac VM (i.e. the VM that Esteban supports), but I
   expect that it should work on Mac and that it would allow you to run a
   64-bit image prepared with the SystemTracer.
  
   As luck would have it, Ian Piumarta is in the process of updating the
 unix
   VM code right now, and this will make it easier to do the build for
 64-bit
   images. I would say that we should wait a couple of days before
 starting
   any new work on this so that we have all of the latest updates.
  
   I'm not sure if this is something that you want to get into, and it is
 not
   what I would call easy ;) But if you want to try it I will do my best
   to step you through the process.
  
   Dave
  
  
   On Tue, Jul 31, 2012 at 03:18:19PM +0200, jannik.laval wrote:
Hi Dave,
   
I begin with a small problem (is it ?): my os is the latest apple
 macos.
It seems that there is no squeak vm 64 for macos (I did not find it).
   
How can I build one easily ?
   
Thanks,
Jannik
   
On Jul 24, 2012, at 2:04 PM, David T. Lewis le...@mail.msen.com
 wrote:
   
 On Tue, Jul 24, 2012 at 09:27:49AM +0200, jannik.laval wrote:
 Hi Dave,

 Should I load the SystemTracer available on SqueakSource ? The
 last
   version is from 2011, and seems old, no ?
 When I try it, it calls some methods that do not exist in Pharo.

 Do you have more information on how to use it ?

 Hi Jannik,

 The system tracer is explained in the class comment of class
   SystemTracer.
 The comment was written by Dan Ingalls (I think), and gives credit
 to
   Ted
 Kaehler as the inventor of the original. Class SystemTracer2 has
   additional
 documentation including how to run the trace. SystemTracer2 is a
 newer
 version that you will actually be using, so you can think of
   SystemTracer
 as the original reference implementation, while SystemTracer2 and
 its
 subclasses are variations on the original. SystemTracer64 is the
   subclass
 that implements conversion logic for copying 32-bit objects into
 the
 experimental 64-bit object memory format. This object format is
   described
 in the SystemTracer64 class comment, and more information is
 available
   at
 http://squeakvm.org/squeak64.

 A system tracer will first put your image into a quiet mode, then
   copy
 and convert the running object memory to a new image file, and then
   wake up
 and return to normal. This is similar to saving your image and
   restarting
 from a disk file, except that the system tracer will trace your
 object
 memory to a new format rather than saving it unchanged.

 To trace your running image to a new 64-bit image file, you would
 do
   this:

 SystemTracer64 writeImage: 

Re: [Pharo-project] GZipWriteStream crashing my VM when serializing ?

2011-12-09 Thread John McIntosh
Mmm I recall a problem from long ago where the buffer passed into the
zip call was not big enough to store the results.
If you pass in a small chunk of data, why the buffer to hold the
results and the decode data is bigger than the buffer going in.
So the two sizes, input and output are?


On Fri, Dec 2, 2011 at 4:41 PM, Mariano Martinez Peck
marianop...@gmail.com wrote:
 Hi guys. We are doing some experiments with Fuel and GZip streams... Now I
 have a beatiful test like this:

 testMethodContextThisContext

     | materializedContext context |
     context := thisContext copy.
     materializedContext := self resultOfSerializeAndMaterialize: context.

 and it crashes like crazy. From the VM crash stack, I can see:


 Smalltalk stack dump:
 0xbff66ba4 M GZipWriteStream(DeflateStream)deflateBlock 447551436: a(n)
 GZipWriteStream
 0xbff66bc8 M GZipWriteStream(DeflateStream)nextPutAll: 447551436: a(n)
 GZipWriteStream
 0xbff66be4 M GZipWriteStream(DeflateStream)next:putAll:startingAt:
 447551436: a(n) GZipWriteStream
 0xbff66c08 M FLBufferedWriteStreamflushBuffer 448048664: a(n)
 FLBufferedWriteStream
 0xbff66c20 M FLBufferedWriteStreamnextBytesPutAll: 448048664: a(n)
 FLBufferedWriteStream
 0xbff66c40 M FLBufferedWriteStreamnextStringPut: 448048664: a(n)
 FLBufferedWriteStream
 0xbff66c5c M FLByteStringClusterserialize:on: 448054196: a(n)
 FLByteStringCluster
 0xbff66c7c M FLByteStringCluster(FLPrimitiveCluster)serializeInstance:with:
 448054196: a(n) FLByteStringCluster
 0xbff66ca0 M [] in
 FLByteStringCluster(FLIteratingCluster)serializeInstances: 448054196: a(n)
 FLByteStringCluster
 0xbff66cc8 M IdentitySet(Set)do: 451711680: a(n) IdentitySet
 0xbff66ce4 M FLByteStringCluster(FLIteratingCluster)serializeInstances:
 448054196: a(n) FLByteStringCluster
 0xbff66d00 M
 FLByteStringCluster(FLIteratingCluster)serializeInstancesStepWith:
 448054196: a(n) FLByteStringCluster
 0xbff66d1c M FLSerializationclusterInstancesStepOf: 448053428: a(n)
 FLSerialization
 0xbff66d38 M [] in FLSerializationinstancesStep 448053428: a(n)
 FLSerialization
 0xbff66d58 M OrderedCollectiondo: 449989736: a(n) OrderedCollection
 0xbff66d74 M FLSerializationinstancesStep 448053428: a(n) FLSerialization
 0xbff66d8c M FLSerializationrun 448053428: a(n) FLSerialization
 0xbff66db0 I [] in FLSerializerdefaultSerialization 447550464: a(n)
 FLSerializer
 0xbff66dd8 M [] in FLSerializerserialize:on: 447550464: a(n) FLSerializer
 0xbff66df8 M BlockClosureensure: 448052884: a(n) BlockClosure
 0xbff66e18 M FLSerializerserialize:on: 447550464: a(n) FLSerializer
 0xbff66e3c M [] in
 FLMethodContextSerializationTest(FLSerializationTest)serialize: 447235380:
 a(n) FLMethodContextSerializationTest
 0xbff66e60 M [] in GZipWriteStream class(PositionableStream class)on:do:
 419845144: a(n) GZipWriteStream class
 0xbff66e80 M BlockClosureensure: 448048616: a(n) BlockClosure
 0xbff66ea0 M GZipWriteStream class(PositionableStream class)on:do:
 419845144: a(n) GZipWriteStream class
 0xbff66ec4 M [] in FLGZipStrategywriteStreamDo: 447550896: a(n)
 FLGZipStrategy
 0xbff66ee0 M FLByteArrayStreamStrategywriteStreamDo: 447550884: a(n)
 FLByteArrayStreamStrategy
 0xbff66efc M FLGZipStrategywriteStreamDo: 447550896: a(n) FLGZipStrategy
 0xbff66f18 M
 FLMethodContextSerializationTest(FLSerializationTest)serialize: 447235380:
 a(n) FLMethodContextSerializationTest
 0xbff66f34 M
 FLMethodContextSerializationTest(FLSerializationTest)resultOfSerializeAndMaterialize:
 447235380: a(n) FLMethodContextSerializationTest
 0xbff66f58 M FLMethodContextSerializationTesttestMethodContextThisContext
 447235380: a(n) FLMethodContextSerializationTest


 any idea of where I should start to look at?

 Thanks


 --
 Mariano
 http://marianopeck.wordpress.com




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===



Re: [Pharo-project] Pharo for iOS

2011-10-26 Thread John McIntosh
Well this is an old note, but I thought I'd answer it.

You can download, install and run the Scratch.app
https://github.com/johnmci/Scratch.app.for.iOS
This is not the closure VM, but does have the Open/GL canvas, or you can
choose to use the alternate canvas which is based on CALayers.

Now about building apps on iOS.

You can choose to either
(a) run the VM and show the squeak desktop which I did for Blob and Swirl,
these being experimental early toys mostly to track the stability of the VM
as Apple sends developers crash reports if there are enough generated.

(b) run the VM and show a Cocoa UI, do all work via Smalltalk, Both the
Fractions Calculators and WIkiServers do that. This  is hard because getting
a walk back means setting up  VNC so you can control things, and using proxy
and callbacks to do work in Smalltalk code is hard to debug and code, plus
you need to pass in all these constants to Alien or FFI which you gleam from
the apple header files. Bad things happen when you deadlock between the VM
and iOS callbacks.

(c) run a cocoa app and use the VM as a subprocess to be the Model, where
the View and Controller is all Objective-C.  Which is mostly how the
Scratch.app is designed.  We give taps, keyboard, load this project, and
stop/go to the VM as a result of interacting with cocoa controls. The VM in
turn mostly provides audio and frame updates.

Oh and Im not sure about the JIT stuff, pre 3.2 making a virtual memory
page executable was not allowed by non-root apps. But in post 3.2 it seems
they added some extra mmap keywords

#define PROT_EXEC 0x04 /* [MC2] pages can be executed */

#define MAP_JIT 0x0800 /* Allocate a region that will be used for JIT
purposes */

Obviously someone could try it...

On Fri, Sep 23, 2011 at 12:41 PM, Pat Maddox patmad...@me.com wrote:

 sweet! where can I find instructions on how to do this too?


 On Sep 22, 2011, at 4:37 AM, Alexandre Bergel wrote:

  I have Pharo running on my ipad.
  I just followed instruction of Bert and it works like a charm. This is
 not accesible via itune however, but, it is perfectly okay to have pharo
 applications on it. John has a couple of them
 
  Alexandre
 
 
  On 22 Sep 2011, at 06:46, Dennis Schetinin wrote:
 
  What is the state of the art and nearest perspectives of using
 Pharo/Squea (or maybe some other Smalltalk implementation) for iOS
 development? And does Apple officially allow to Smalltalk-based
 applications?
 
  --
  Dennis Schetinin
 
  --
  _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
  Alexandre Bergel  http://www.bergel.eu
  ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
 
 
 
 
 
 





-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===


Re: [Pharo-project] Pharo on Apple App Store

2011-03-05 Thread John McIntosh
I'm not sure anyone really answered the question.

(a) Yes you can build squeak/pharo VM based applications for the iOS
platform and distribute in the App Store. This assumes you adhere to the
rules.

(b) Yes you can build Squeak/pharo VM based applications for the OS-X
platform and distribute in the OS-X App Store.  This assumes someone wants
to take the time to port the file dialog logic from Sophie to Pharo since
you will be rejected if you present a Squeak file open/save dialog.

Lastly you can't download MC packages to the app for doing on the fly
updates, any updates have to go thru the app store. An example of alternate
technology is Sparkle and Apple has rejected apps that use that technology
to provide an update path.

PS No I can't say I've actually attempted getting a squeak based app into
the OS-X store, perhaps this summer, still that is my tea leaf reading of
the situation.


On Fri, Mar 4, 2011 at 12:53 AM, laurent laffont
laurent.laff...@gmail.comwrote:

 Hi,

 is it possible today to distribute Pharo apps through Apple App Store (OSX)
 ? If no, why ? Can I hope it will be possible  or should I learn objective-C
 ?


 Laurent




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===


Re: [Pharo-project] Smalltalk for engineers

2011-02-05 Thread John McIntosh
Casual mention of iPhone port, always helpfull

On 2/4/11, Geert Claes geert.wl.cl...@gmail.com wrote:

 James Robertson spotted this post:

 http://unhandledexpression.com/2011/02/04/smalltalk-for-engineers/

 I was especially interested in the statement you don’t understand what you
 can/should do ...
 --
 View this message in context:
 http://forum.world.st/Smalltalk-for-engineers-tp3261551p3261551.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===


Re: [Pharo-project] WeakArrayisFinalizationSupported

2010-12-30 Thread John McIntosh
Well the question as pointed out was does this vm support weak object
finalization? and since all closure vm support finalization, then
asking the question was mute, so it was ditched. Sophie from the 2003
era had to ask.


On 12/30/10, Schwab,Wilhelm K bsch...@anest.ufl.edu wrote:
 Hopefully that can eventually be said as backward compatibility with good
 stuff is a priority for Pharo.   Moving targets are perhaps best left
 moving for now.



 
 From: pharo-project-boun...@lists.gforge.inria.fr
 [pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Levente Uzonyi
 [le...@elte.hu]
 Sent: Thursday, December 30, 2010 6:13 PM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] WeakArrayisFinalizationSupported

 (or so) which is unrelated. The method was removed during a cleanup. And
 as you know, backwards compatibility is not a priority for Pharo.


 Levente





-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===



[Pharo-project] iPhone Cog Stack VM, performance numbers

2010-07-12 Thread John McIntosh
As always it's difficult to determine how best to benchmark. So given:

| savedMorphs |
savedMorphs := World submorphs.
World removeAllMorphs.
self halt.
^ [[10
timesRepeat: [Browser fullOnClass: Object selector: #yourself].
World submorphs
do: [:m |
m delete.
self currentWorld doOneCycle]]
ensure: [World addAllMorphs: savedMorphs]] timeToRun inspect


I can say that the Cog Stack VM on the iPhone produces numbers like

48.081 seconds
47.858 seconds

The original VM did:

74.415 seconds
74.257 seconds

making the iPhone COG VM 1.55x faster


A 2.33ghz mac book pro mac vm 5.7b1 does it in about 8.3 seconds
with a COG JIT VM 5.8 that takes 2.6 seconds or about 3.2 faster

-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] we need help for rome

2010-04-16 Thread John McIntosh
Ok, well I'm less distracted and tense this afternoon. So I'm just
attempting to compile up everything on an old powerpc test machine
that I used to build the rome plugin. Unfortunately the current source code
won't compile on my current work machine because
it requires installing rome, and 55 other unixy things in order to do the
compile, build, debug cycle.

However I hope to get to the point of being able to determine exactly *why*
the primitive fails.

-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] we need help for rome

2010-04-16 Thread John McIntosh
Well I'm just as puzzled as you since the primitive gets executed and you
are using the same binary that was shipped with Sophie years back.


On Fri, Apr 16, 2010 at 1:25 PM, Stéphane Ducasse stephane.duca...@inria.fr
 wrote:


  Ok, well I'm less distracted and tense this afternoon.

 I imagined that :)

  So I'm just attempting to compile up everything on an old powerpc test
 machine
  that I used to build the rome plugin. Unfortunately the current source
 code won't compile on my current work machine because
  it requires installing rome, and 55 other unixy things in order to do the
 compile, build, debug cycle.
 
  However I hope to get to the point of being able to determine exactly
 *why* the primitive fails.

 John what is strange is that when I use the sophie-dev image it works, so I
 thought that it was something at the image level
 but this is the same code that I filled in.

 Stef
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Question about HostMenuSystem

2010-03-19 Thread John McIntosh
I believe the duplicate events issue was solved or do you have an
example of it occuring again?

On 3/19/10, Adrian Lienhard a...@netstyle.ch wrote:
 Hi Mariano,

 As you may remember, I have removed HostSystemMenus from PharoCore 1.0 some
 time ago.

 What I did in this case was Smalltalk at: #HostSystemMenus ifPresent:...,
 which is not very nice but easily solves the problem.

 Thanks for removing it in 1.1. Until the duplication of events due to this
 package/plugin is solved, we should not have it in PharoCore. Or maybe even
 better we should not have it in PharoCore at all and load it only in Pharo
 (when it works).

 Cheers,
 Adrian


 On Mar 18, 2010, at 23:38 , Mariano Martinez Peck wrote:

 Hi folks. I want to remove HostMenuSystem from PharoCore image. Probably,
 I
 can put it on PharoDev image but of course, it will be accesible also from
 squeaksource to download it. I don't this is a core package. In order to
 do that, I found the following problem.

 Look to InputEventSensor  processMenuEvent: evt

| handler localCopyOfEvt |

localCopyOfEvt := evt shallowCopy.
handler := (HostSystemMenus
defaultMenuBarForWindowIndex: (localCopyOfEvt at: 8))
getHandlerForMenu: (localCopyOfEvt at: 3) item: (localCopyOfEvt at:
 4).

handler handler value: localCopyOfEvt

 There is the only place where HostSystemMenus is used. Now I am trying to
 see the best way to remove this. The first approach that came to my mind,
 which may not be the best to implement this method as follows:

 processMenuEvent: evt
By default the menu events are not handled. In case you want to handle
 them you should override this method

 And of course, in the package HostSystemMenus  we override that method
 with
 the original code.

 Then I though some kind of notification or oberser pattern, where someone
 can register as an observer and then, then this menu events occurs,
 these
 guys are notified. Maybe using Announcments?  My skills here are quite
 limited. What do you think ? Can you help me ?

 Cheers

 Mariano
 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] New profiler for Pharo: tester wanted!

2010-01-20 Thread John McIntosh
Are you on a mac? Of not I'll send the vmmaker, source code and
smalltlak changes

On 1/20/10, Levente Uzonyi le...@elte.hu wrote:
 On Wed, 20 Jan 2010, Alexandre Bergel wrote:

 The millisecond grain information is obtained from MessageTally. How
 do I access this microsecond clock? Something like Time
 class#microsecondClock ?

 You have to create that method since it doesn't exist. Something like:

 Time class  microsecondClock

   primitive: 'primitiveMicrosecondClock'
   self primitiveFailed

 shoud do it.


 Levente



 Cheers,
 Alexandre


 On 20 Jan 2010, at 16:24, John M McIntosh wrote:

 You know Im trying to integrate a microsecond clock into the VM. It
 might be interesting if  you
 run on a macintosh to try a test V5 VM I can supply to see what
 happens if you change your
 time collecting from the millisecond clock to the microsecond clock.


 On 2010-01-20, at 11:20 AM, Alexandre Bergel wrote:

 Each implementor of #ensureMetacello is different. Even the one of
 ConfigurationOfMetacello is different from the one of the website :-)

 I update ConfigurationOfSpy. It loads now without any problem.

 Cheers,
 Alexandre

 --
 =
 =
 =
 =
 =
 ==
 John M. McIntosh john...@smalltalkconsulting.com   Twitter:
 squeaker68882
 Corporate Smalltalk Consulting Ltd.  http://
 www.smalltalkconsulting.com
 =
 =
 =
 =
 =
 ==





 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 --
 _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
 Alexandre Bergel  http://www.bergel.eu
 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] A dog-slow browser

2010-01-20 Thread John McIntosh
Btw I didn't create the script it was done by I think David pennel?
Check the soure for details. The register foo logic is mine added for
PowerPC. Was done pre osx  for os9
machines

On 1/20/10, Eliot Miranda eliot.mira...@gmail.com wrote:
 On Wed, Jan 20, 2010 at 2:54 PM, Levente Uzonyi le...@elte.hu wrote:

 On Wed, 20 Jan 2010, Igor Stasenko wrote:

  2010/1/20 Levente Uzonyi le...@elte.hu:
 
  I guess that vm is not gnuified.
 
 
 I installed one that was avail for linux, latest one. Didn't built it
 myself.

 I just checked on a not-that-fast machine with the binary versions from
 squeakvm.org:

 3.11-3.2135 - #(
'204309656 bytecodes/sec; 7660022 sends/sec'
'202852614 bytecodes/sec; 7722256 sends/sec'
'205457463 bytecodes/sec; 7785510 sends/sec')

 3.10.6 - #(
'380386329 bytecodes/sec; 9512738 sends/sec'
'377025036 bytecodes/sec; 10174641 sends/sec'
'378978534 bytecodes/sec; 10183725 sends/sec')

 The 3.11-3.2135 is not gnuified and I couldn't force cmake to gnuify it
 (though I didn't try really hard). I think this is an issue that should
 be solved.


 I think the right way is to include John's image level gnuification script
 and produce an extra engine from within VMMaker.  That's what I do.
  Changing makefiles and/or configurations to choose between the two
 available interpreters is easier than applying a gnuification scirpt.



 Levente

 
 
  Levente
 

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] testing the linux vm of pharo-project

2010-01-19 Thread John McIntosh
So what do you mean by better?

On 1/19/10, Sean Allen s...@monkeysnatchbanana.com wrote:
 We are using the exupery exclusively and find that it works for out
 needs better than the squeak.

 On Tue, Jan 19, 2010 at 12:46 PM, Stéphane Ducasse
 stephane.duca...@inria.fr wrote:
 I would not put the stexupery as first vm because the squeak one should be
 more tested.

 Stef

 On Jan 19, 2010, at 2:40 PM, Mariano Martinez Peck wrote:

 Ok...so: pharo exupery vm as FTPlugin compiled and 3.11. doesn't. And
 both are closure-enable.

 Does someone have a compiled squeak-unix-vm  with FTPlugin ? because
 otherwise, I think I would rather to put again Exupery as the default
 one.

 Opinions?

 2010/1/19 George Herolyants george.herolya...@gmail.com
 So, here are the results (see attachments). On the background of each
 pharo screenshot you can see the version number of the vm, and command
 line I used to run pharo image with this vm.
 As you can see results are far better for the pharo-exupery-linux-vm
 (which means 0.15.2f), because it has FTPlugin compiled, and
 squeak-unix-vm (which means 3.11.3-2135) hasn't.

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Nanosecond-level profiling in Pharo?

2010-01-07 Thread John McIntosh
I think Eliot wanted those in my vm work I think qwaq has them
time to add them I think

should it return a Long integer or a double

On 1/7/10, Esteban Lorenzano esteba...@gmail.com wrote:
 Some times I wanted smaller grain for running tests... but most of the
 time millis are good enough :)

 On 2010-01-07 18:52:16 -0300, Alexandre Bergel
 alexan...@bergel.eu said:

 Hi!

 I am currently working on a new profiler for Pharo. The idea is to
 graphically renders a profiling using Mondrian. I hope to release it
 soon.
 When discussing with an expert in the field (Walter Binder), the
 question about time grain was raised. I am partly based on
 MessageTally, which has a millisecond grain. Anyone is aware of a
 finer grain? At the level of nanosecond? Does it makes sense since
 there is no JIT (yet)?

 Cheers,
 Alexandre




 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] pharoImage 64 bits

2009-12-18 Thread John McIntosh
Could you give details on the errors?

On 12/17/09, Laval Jannik jannik.la...@gmail.com wrote:
 Hi all,

 I made a pharoImage 64 bits, based on 11088.
 I would like to put it on inria gforge but I do not have administrator
 access.

 Now in this image there are 14 test failures, and 65 test errors.
 So it works on a VM5.0 - 64x64.

 For now, it is available on:
 http://jannik-laval.eu/assets/files/pharo64/

 Cheers

 ---
 Jannik Laval
 ---


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] code coverage?

2009-12-02 Thread John McIntosh
Ok as I'm testing this new VM Im wondering has anyone done a code coverage
review of the Pharo
image in relationship to the suite of available tests? I wondering how much
of the image side code is
actually used?

Part of the problem here in cross checking the list of internal plugins is
that I need test cases to
actually exploit the plugin code so that I can confirm it works, even to
confirm it gets called.

No doubt from the other side it would be interesting to see from a VM
platform perspective if the
Smalltalk Sunits actually execute a reasonable set of the
slang/objective-c/C code.

-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Hashed collection changes, the performance graphs

2009-10-28 Thread John McIntosh
I looked at the squeak identityHash in squeak a few years back

(a) how efficient was the algorithm? Attempted at one time to replace with a
fixed array of numbers. There was some benefit on slow machines.

(b) only calculate the identity hash when required, but then how do you mark
the oops with that fact when all the identityHash values are in use in the
image. The hassle of fixing an image to use the new hash logic wasn't worth
the gain which was difficult to measure.

In both cases I was more interested in the cpu usage on those 68K machines.


On Wed, Oct 28, 2009 at 7:14 PM, Andres Valloud 
avall...@smalltalk.comcastbiz.net wrote:

 Martin,

 One of the constituencies I thought of when I decided to leave
 identityHash alone was folks like you.

-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Status of Alien FFI

2009-09-15 Thread John McIntosh
Yes because the intent was that the primitive would return a failure
error code versus prim failed, guess why?

On 9/15/09, Johan Brichau johan.bric...@uclouvain.be wrote:
 The problem is that Pharo no longer considers the following primitive
 call syntactically correct:
 primitive: 'primCalloc' error: errorCode module: 'IA32ABI'

 It does work if we omit the errorCode:
 primitive: 'primCalloc' module: 'IA32ABI'


 Was this change in the parser intended??


 On 15 Sep 2009, at 00:15, Stéphane Ducasse wrote:

 Hi ken


 fernando is the guy that fixed alien so he will probably reply to you

 Stef
 On Sep 14, 2009, at 11:36 PM, Ken Treis wrote:

 I'm unable to load Alien-Core into the latest Pharo (I'm on 10451),
 mostly because the package overrides some methods in Scanner/Parser
 and those overrides are out of sync with the current Pharo base. Is
 anyone working on bringing these into sync? I would be glad to take a
 stab at it but I'm hardly the best qualified person to do that.

 If there's a better mailing list for Alien issues/discussion, please
 let me know.

 Thanks,

 --
 Ken Treis
 Miriam Technologies, Inc.


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

 
 Johan Brichau
 johan.bric...@uclouvain.be





 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Higher priority processes using ThreadSafeTranscript throw Error: Error: Instances of UndefinedObject are not indexable (was Re: Issue 1053: )

2009-09-02 Thread John McIntosh
On Wed, Sep 2, 2009 at 11:43 AM, Stan Shepherd
stan.shepherd...@gmail.comwrote:

 Test case attached, although I can't get it to catch the error. Use with
 ***caution***. In the one click image it often freezes the image.


I note for these cases where catching the error with an debug dialog seems
impossible, goodness knows we saw lots of that in Sophie via Tweak, then try
something like

Smalltalk logError:'Fatal error' inContext: thisContext to:
'SqueakDebug.log'.]]


This then logs the context to a log file, for later review.  For evil UI
related bugs this can be of assistance.



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Complex number support discussion

2009-08-14 Thread John McIntosh
Why not have sqrt throw the exception and suggest that you could load
the optional complex logic if you actual are working with complex numbers

On 8/14/09, Schwab,Wilhelm K bsch...@anest.ufl.edu wrote:
 Ken,

 All of us will welcome something that can do sophisticed mathematics,
 provided it does not break the base system when installed, and has
 no/limited runtime penalty when not needed.

 Bill



 -Original Message-
 From: pharo-project-boun...@lists.gforge.inria.fr
 [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Ken.Dickey
 Sent: Friday, August 14, 2009 10:38 AM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] Complex number support discussion

 Schwab,Wilhelm K bsch...@anest.ufl.edu
 A 2-10x performance hit is all the more reason why such a creation
 should be dormant unless specifically invoked - translation, no
 coercion into the controversial type.  While there are uses for systems
 that are smart
 enough to give exact answers, most computation happens in a world of
 tolerances, with numbers that are not cherry picked for aesthetics.

 As somebody else (Sig perhaps) said, the behavior of the base system
 magnitude classes should not change when a different package is loaded.
  #asComplex is the gateway through which one can tell the system that
 complex numbers are expected and desired.  The more you write, the
 more it becomes clear that there also would need to be a
 #asComplexSymbolic or something to invoke behavior one might expect
 from Maple and other symbolic systems.

 I strongly recommend starting with a numerical approach to a closed
 system of complex numbers.  GSL provides much of what should be
 available, and can be mapped into Pharo by FFI/Alien.  The result
 would get used.  If you then want to compete with Maple and
 Mathematica, that really should be done separately.  For examle, there
 are times when I use logs to estimate the number of digits required to
 hold a number, and if the argument is negative, I goofed and expect an
 error.

 Bill,

 My apologies for mixing a personal philosophy discussion into the Complex
 header.  The Complex implementation does not suffer from the performance hit
 mentioned and as I stated earlier, I have no current desire to make Pharo
 into Mathematica.

 I would welcome a package which did this, however.

 -KenD

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Complex number support discussion

2009-08-14 Thread John McIntosh
Yes but we usually don't do explicit casting Like 2 asFloat * 3.0
We could but where does the implicit type conversion lie?


On 8/14/09, Schwab,Wilhelm K bsch...@anest.ufl.edu wrote:
 John,

 If I may be so presumptuous, the answer is to have people use #asComplex
 when they want complex results.  -2 sqrt throws an error; -2 asComplex sqrt
 gives the complex (imaginary) result.  Then we break no old code, we offer
 useful new features with minimal effort required to invoke them.

 Bill



 -Original Message-
 From: pharo-project-boun...@lists.gforge.inria.fr
 [mailto:pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of John M
 McIntosh
 Sent: Friday, August 14, 2009 4:55 PM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] Complex number support discussion


 On 14-Aug-09, at 1:04 PM, Schwab,Wilhelm K wrote:

 John,

 That is not far from the eveolving conscensous opinion - I think we
 can indeed claim to have a collective desire to leave integers and
 floats as they are.  One concern I have about your suggestion is what
 happens when the user loads the complex package?  Does existing code
 break?  It would given Ken's proposal.  There are alternatives, and
 they are discussed in this fairly extensive thread.

 Besides, someone wanting complex numbers will look for and load a
 package to support them, as long as it is good code.  Complex is fine
 as far as it goes; some FFI magic to benefit from GSL functionality
 would be nice.  We should also have an analog to FloatArray that has
 complex entries; again, a wrapper onto GSL would be a nice addition.

 I have no power over Ken; he can build what he wants.  I would like to
 see his energy directed toward creating something we can all use.  I
 suggest a layered proposal on the wiki and up or down votes on what
 becomes part of Pharo.  If the vote(s) split, we have benevolent
 dictators to sort it out.

 Bill

 Ah, yes well I think I lost the 0.2 = (1/2) argument, so anything goes.

 I think the choice is either numbers + complex work as expected, or you just
 offer number then offer to load the complex logic as soon as someone wants
 -2 sqrt.

 Obviously the problem here is that for a vast range of programmers if you
 offer up -2 sqrt by default and it does not throw an exception they will be
 confused. Some of them likely have NO idea what a complex number is.

 Random thoughts.

 No-doubt there are abuses of math to string where people assume you have an
 integer like thing versus a complex number string.


 --
 =
 =
 =
 
 John M. McIntosh john...@smalltalkconsulting.com   Twitter:
 squeaker68882
 Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
 =
 =
 =
 





 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Pharo apparently slow on linux

2009-07-18 Thread John McIntosh
2) Mac VM seems faster than others. I don't know if it is because 1)
or any other reason


This is because of compiler version choice,  compiler options,
tweaking, and from time to time re-verification of what is going on...
So yes the mac vm can be 30%, but maybe someone can check that

-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] iphone testers for fractions calculator needed

2009-06-04 Thread John McIntosh
This squeak app went live in the iTunes app store at 6:07pm PST June 3rd,
the typical 7 day app review cycle.
http://www.mobilewikiserver.com/Fraction.html

On Sat, May 16, 2009 at 11:35 PM, John M McIntosh 
john...@smalltalkconsulting.com wrote:

 I've built a fractions calculator for the iPhone and need a few folks to
 really test it. (confirm it's sane).


===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] SLICE-RelicensingPart1

2009-05-28 Thread John McIntosh
Well I think a statement of direction is required. Is *all* ANSI specific
logic going to be in the base Pharo? Is base Pharo going to be
ANSI compliant ?
I don't think people want to load chunks of it from here and there, assuming
they know they need to do that.


On Thu, May 28, 2009 at 12:30 PM, Adrian Lienhard a...@netstyle.ch wrote:
-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] More relicensing

2009-05-24 Thread John McIntosh
http://www.smalltalk.org/versions/ANSIStandardSmalltalk.htmlalso see
http://smalltalk.gnu.org/wiki/ansi-smalltalk-98-errata

On Sun, May 24, 2009 at 10:59 AM, Lukas Renggli reng...@gmail.com wrote:

  I'm stills doubtful about asFloatD/E/Q.

 I've never used these methods either, but they are part of the ANSI
 Standard. I think that having an accurate coverage of the standard is
 central to Pharo, even if this is not used from within Pharo itself.

  Anyone has the ANSI Standard
  specification?

 Ask Google. There is a draft of revision 1.9 online. I don't know if
 there are newer versions. Probably not.

  I don't want to look at the old code to implement the new
  and from the message names isn't clear to me what is supposed to do.

 #asFloatD/E/Q is the same as #asFloat. This is only meaningful for
 Smalltalk that support floats of different sizes.

 Cheers,
 Lukas

 --
 Lukas Renggli
 http://www.lukas-renggli.ch

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===
___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Re: [Pharo-project] Port of Cryptography to Pharo

2009-05-24 Thread John McIntosh
Cryptography uses several plugins, not only DES.
what are the other plugins then?


2009/5/24 Mariano Martinez Peck marianop...@gmail.com



 2009/5/23 John McIntosh john...@smalltalkconsulting.com

 Ok, in the past I've built the DES plugin for the macintosh.
 However I should point out that Cryptography  should NOT be made part of
 the base VM.


 I didn't understand you. Cryptography uses several plugins, not only DES.
 Are you talking Cryptography in general or just DES?

 In addition you said the Cryptography should not be included in the base
 VM. Did you wanted to say base image ?

 Greetings,

 Mariano



 Why? Well the USA government then wants you to fill out export paperwork
 if you are USA company or selling product thru the USA that someone that
 doesn't live in the USA could buy. An example of this is when you submit
 apps to the Apple iPhone app store, then you are asked if the product
 includes any encryption and if you have done the paperwork.


 Yes I know this is a irksome rule, but people should be aware of the
 implications.

 2009/5/23 Mariano Martinez Peck marianop...@gmail.com

 Did someone commit any kind of magic to Pharo core orCryptography packge ?
 I just prepared a latest image to start working on it but I see only 3 red
 tests. Those are: testDES, testDES2 and testDSASigninAndVerifying.

 And all of them fail because of the same problem: a primitive has failed.
 The primitive is

 primCookKey: aByteArray mode: flag to: cooked
 primitive: 'primitiveDESCookKey' module: 'DESPlugin'
 ^ self primitiveFailed

 I look here: http://code.google.com/p/pharo/wiki/VMPluginOverview   but
 I didn't found it. I don't have that plugin in my Exupery VM.

 Perhaps downloading VMMaker and try to generate the plugin is a good idea
 but I never even download VMMaker haha

 Anyway, is this important?

 Cheers,

 Mariano





 On Fri, May 22, 2009 at 1:42 PM, Schwab,Wilhelm K bsch...@anest.ufl.edu
  wrote:

 Stef,

 I proposed that a while ago, but there was a stunning lack of response.
  The offer is still good however; I'd welcome a group effort to tackle it.

 Bill


 -Original Message-
 From: pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Stéphane
 Ducasse
 Sent: Friday, May 22, 2009 9:55 AM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] Port of Cryptography to Pharo

 Hi guys

 Why don;t you join forces and create a Cryptography package which work
 for pharo and for you.
 Mariano I still would love to know the method of integer that are
 missing

 Stef

 On May 22, 2009, at 4:47 PM, Jan van de Sandt wrote:

  Hello,
 
  I faced the same problem with Cloudfork-AWS. This project required the
  Cryptography package for generating the signatures using SHA and for
  generating MD5 hash values.
 
  When I had problems loading the package in Pharo and I learned that
  the package was no longer maintained I copied the classes I required
  to a Cloudfork package. I needed the MD5, SHA1 and SHA256 classes. I
  renamed them to CFMD5, CFSHA1 and CFSHA256, I also prefixed all the
  methods in the required class extensions with cf. For example
  ThirtyTwoBitRegistercfBitShift: anInteger. You can use a simular
  approach for Glorp.
 
  Jan.
 
  PS: Another dependency of Cloudfork is a HTTP client. I'm now
  playing around with the CurlPlugin, this plugin works very well.
  Things like supporting https become real easy
 
  2009/5/22 Mariano Martinez Peck marianop...@gmail.com
 
 
  On Fri, May 22, 2009 at 9:18 AM, Ramiro Diaz Trepat 
 ramiro.diaz.tre...@jpmorgan.com
   wrote:
  I'm really sorry to hear it is no longer being maintained.
  It was a necessary package to connect to properly set up Postgres
  databases, that requiere sending password hashes with SHA-1.  We
  will probably face this kind of need when interacting with the
  outside world in general.
 
  Yes. That's why I saw it. I am trying to make Glorp to work in
  Pharo, but as you know Glorp in Squeak only works with Postgres. And
  the native postgres driver requieres cryptography package when you
  use md5 :(
 
  Just for now, I disable md5 from my postgres and use password auth-
  method. With this, cryptography is not needed. However, this is not
  an option in a production enviorment.
 
  Cheers,
 
  Mariano
 
 
  It was a fantastic package, I wonder why the maintainers droped it.
  I suppose maintaining crypto frameworks up to date, with no
  vulnerabilities, is a lot of work.
  Sorry for venting out my sadnes to the list.
  Cheers
 
  r.
 
 
 
 
  -Original Message-
  From: pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr
  ] On Behalf Of Stéphane Ducasse
  Sent: 22 May 2009 11:08
  To: Pharo-project@lists.gforge.inria.fr
  Subject: Re: [Pharo-project] Port of Cryptography to Pharo
 
  Ok I thought the cryptology package was working well and maintained.
 
  Stef
 
  On May 22

Re: [Pharo-project] Port of Cryptography to Pharo

2009-05-23 Thread John McIntosh
Ok, in the past I've built the DES plugin for the macintosh.
However I should point out that Cryptography  should NOT be made part of the
base VM. Why? Well the USA government then wants you to fill out export
paperwork if you are USA company or selling product thru the USA that
someone that doesn't live in the USA could buy. An example of this is when
you submit apps to the Apple iPhone app store, then you are asked if the
product includes any encryption and if you have done the paperwork.

Yes I know this is a irksome rule, but people should be aware of the
implications.

2009/5/23 Mariano Martinez Peck marianop...@gmail.com

 Did someone commit any kind of magic to Pharo core orCryptography packge ?
 I just prepared a latest image to start working on it but I see only 3 red
 tests. Those are: testDES, testDES2 and testDSASigninAndVerifying.

 And all of them fail because of the same problem: a primitive has failed.
 The primitive is

 primCookKey: aByteArray mode: flag to: cooked
 primitive: 'primitiveDESCookKey' module: 'DESPlugin'
 ^ self primitiveFailed

 I look here: http://code.google.com/p/pharo/wiki/VMPluginOverview   but I
 didn't found it. I don't have that plugin in my Exupery VM.

 Perhaps downloading VMMaker and try to generate the plugin is a good idea
 but I never even download VMMaker haha

 Anyway, is this important?

 Cheers,

 Mariano





 On Fri, May 22, 2009 at 1:42 PM, Schwab,Wilhelm K 
 bsch...@anest.ufl.eduwrote:

 Stef,

 I proposed that a while ago, but there was a stunning lack of response.
  The offer is still good however; I'd welcome a group effort to tackle it.

 Bill


 -Original Message-
 From: pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Stéphane
 Ducasse
 Sent: Friday, May 22, 2009 9:55 AM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] Port of Cryptography to Pharo

 Hi guys

 Why don;t you join forces and create a Cryptography package which work for
 pharo and for you.
 Mariano I still would love to know the method of integer that are missing

 Stef

 On May 22, 2009, at 4:47 PM, Jan van de Sandt wrote:

  Hello,
 
  I faced the same problem with Cloudfork-AWS. This project required the
  Cryptography package for generating the signatures using SHA and for
  generating MD5 hash values.
 
  When I had problems loading the package in Pharo and I learned that
  the package was no longer maintained I copied the classes I required
  to a Cloudfork package. I needed the MD5, SHA1 and SHA256 classes. I
  renamed them to CFMD5, CFSHA1 and CFSHA256, I also prefixed all the
  methods in the required class extensions with cf. For example
  ThirtyTwoBitRegistercfBitShift: anInteger. You can use a simular
  approach for Glorp.
 
  Jan.
 
  PS: Another dependency of Cloudfork is a HTTP client. I'm now
  playing around with the CurlPlugin, this plugin works very well.
  Things like supporting https become real easy
 
  2009/5/22 Mariano Martinez Peck marianop...@gmail.com
 
 
  On Fri, May 22, 2009 at 9:18 AM, Ramiro Diaz Trepat 
 ramiro.diaz.tre...@jpmorgan.com
   wrote:
  I'm really sorry to hear it is no longer being maintained.
  It was a necessary package to connect to properly set up Postgres
  databases, that requiere sending password hashes with SHA-1.  We
  will probably face this kind of need when interacting with the
  outside world in general.
 
  Yes. That's why I saw it. I am trying to make Glorp to work in
  Pharo, but as you know Glorp in Squeak only works with Postgres. And
  the native postgres driver requieres cryptography package when you
  use md5 :(
 
  Just for now, I disable md5 from my postgres and use password auth-
  method. With this, cryptography is not needed. However, this is not
  an option in a production enviorment.
 
  Cheers,
 
  Mariano
 
 
  It was a fantastic package, I wonder why the maintainers droped it.
  I suppose maintaining crypto frameworks up to date, with no
  vulnerabilities, is a lot of work.
  Sorry for venting out my sadnes to the list.
  Cheers
 
  r.
 
 
 
 
  -Original Message-
  From: pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr
  ] On Behalf Of Stéphane Ducasse
  Sent: 22 May 2009 11:08
  To: Pharo-project@lists.gforge.inria.fr
  Subject: Re: [Pharo-project] Port of Cryptography to Pharo
 
  Ok I thought the cryptology package was working well and maintained.
 
  Stef
 
  On May 22, 2009, at 11:58 AM, Schwab,Wilhelm K wrote:
 
   Agreed: I mentioned both curl and OpenSSL - we should embrace both.
   AFACT, the cryptography package is a thing of the past, and we
   should look to active projects.  Tell me where I'm wrong, please.
  
   Another reality, fair or not: if we were to take on the enormous
   burden of maintaining the cypto package, there would always be
   questions about security holes we left open.  The same will be true
   of OpenSSL, but there is 

Re: [Pharo-project] Port of Cryptography to Pharo

2009-05-23 Thread John McIntosh
well being from Canada I can't quite comment, but I did have to spend 5
minutes to confirm that WikiServer, ST80Docs, and SqueakDocs didn't have any
thing illegal in them when I answered the prompt as part of my due diligence
for submission sign off.  In theory if cryptography went in then I would
have to spend another 5 minutes deleting it. Unless of course I needed to
use it, then likely delays of weeks awaiting paperwork signoff.

2009/5/23 Schwab,Wilhelm K bsch...@anest.ufl.edu

  John,

 Yes I know this is a irksome rule, but people should be aware of the
 implications. 

 - you can say that again.  Conspicuously among those people are the members
 of the US House and Senate, and those who elected them.

 Bill

  --
 *From:* pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr] *On Behalf Of *John McIntosh
 *Sent:* Saturday, May 23, 2009 4:41 PM

 *To:* Pharo-project@lists.gforge.inria.fr
 *Subject:* Re: [Pharo-project] Port of Cryptography to Pharo

 Ok, in the past I've built the DES plugin for the macintosh.
 However I should point out that Cryptography  should NOT be made part of
 the base VM. Why? Well the USA government then wants you to fill out export
 paperwork if you are USA company or selling product thru the USA that
 someone that doesn't live in the USA could buy. An example of this is when
 you submit apps to the Apple iPhone app store, then you are asked if the
 product includes any encryption and if you have done the paperwork.

 Yes I know this is a irksome rule, but people should be aware of the
 implications.

 2009/5/23 Mariano Martinez Peck marianop...@gmail.com

 Did someone commit any kind of magic to Pharo core orCryptography packge ?
 I just prepared a latest image to start working on it but I see only 3 red
 tests. Those are: testDES, testDES2 and testDSASigninAndVerifying.

 And all of them fail because of the same problem: a primitive has failed.
 The primitive is

 primCookKey: aByteArray mode: flag to: cooked
 primitive: 'primitiveDESCookKey' module: 'DESPlugin'
 ^ self primitiveFailed

 I look here: http://code.google.com/p/pharo/wiki/VMPluginOverview   but I
 didn't found it. I don't have that plugin in my Exupery VM.

 Perhaps downloading VMMaker and try to generate the plugin is a good idea
 but I never even download VMMaker haha

 Anyway, is this important?

 Cheers,

 Mariano





 On Fri, May 22, 2009 at 1:42 PM, Schwab,Wilhelm K 
 bsch...@anest.ufl.eduwrote:

 Stef,

 I proposed that a while ago, but there was a stunning lack of response.
  The offer is still good however; I'd welcome a group effort to tackle it.

 Bill


 -Original Message-
 From: pharo-project-boun...@lists.gforge.inria.fr [mailto:
 pharo-project-boun...@lists.gforge.inria.fr] On Behalf Of Stéphane
 Ducasse
  Sent: Friday, May 22, 2009 9:55 AM
 To: Pharo-project@lists.gforge.inria.fr
 Subject: Re: [Pharo-project] Port of Cryptography to Pharo

 Hi guys

 Why don;t you join forces and create a Cryptography package which work
 for pharo and for you.
 Mariano I still would love to know the method of integer that are missing

 Stef

 On May 22, 2009, at 4:47 PM, Jan van de Sandt wrote:

  Hello,
 
  I faced the same problem with Cloudfork-AWS. This project required the
  Cryptography package for generating the signatures using SHA and for
  generating MD5 hash values.
 
  When I had problems loading the package in Pharo and I learned that
  the package was no longer maintained I copied the classes I required
  to a Cloudfork package. I needed the MD5, SHA1 and SHA256 classes. I
  renamed them to CFMD5, CFSHA1 and CFSHA256, I also prefixed all the
  methods in the required class extensions with cf. For example
  ThirtyTwoBitRegistercfBitShift: anInteger. You can use a simular
  approach for Glorp.
 
  Jan.
 
  PS: Another dependency of Cloudfork is a HTTP client. I'm now
  playing around with the CurlPlugin, this plugin works very well.
  Things like supporting https become real easy
 
  2009/5/22 Mariano Martinez Peck marianop...@gmail.com
 
 
  On Fri, May 22, 2009 at 9:18 AM, Ramiro Diaz Trepat 
 ramiro.diaz.tre...@jpmorgan.com
   wrote:
  I'm really sorry to hear it is no longer being maintained.
  It was a necessary package to connect to properly set up Postgres
  databases, that requiere sending password hashes with SHA-1.  We
  will probably face this kind of need when interacting with the
  outside world in general.
 
  Yes. That's why I saw it. I am trying to make Glorp to work in
  Pharo, but as you know Glorp in Squeak only works with Postgres. And
  the native postgres driver requieres cryptography package when you
  use md5 :(
 
  Just for now, I disable md5 from my postgres and use password auth-
  method. With this, cryptography is not needed. However, this is not
  an option in a production enviorment.
 
  Cheers,
 
  Mariano
 
 
  It was a fantastic package, I wonder why the maintainers droped

Re: [Pharo-project] 10296 available for download

2009-05-02 Thread John McIntosh
For the psuedocontext I think you should check with Eliot I though he
said that class was no longer needed?


On 5/2/09, Stéphane Ducasse stephane.duca...@inria.fr wrote:
 on fgorge

   https://gforge.inria.fr/frs/?group_id=1299

 Pay attention that

   - copy and paste does not work (at least on mac)

   - you cannot obtain this image by doing a simple update from 10281


 - font update at startup as a preference
 (fixes http://code.google.com/p/pharo/issues/detail?id=689)

 - Issue 749: Put back ensureEndsWith:

 - event part one done manually

 - New event part two

 - literalsDo: fix again

 - fix polling argh (not copy and paste :))

 - with manual premable for Delay fixing (sorry no copy and paste so
 painful to write down all the details).

 - apply the last part of DelayCleanup.1.cs from
 http://bugs.squeak.org/view.php?id=7321

 - Remove Delay upper bound limitation

 - SharedQueuefindFirst:

 - BlockClosureasText

 - InputEventSensorflushNonKbdEvents

 - literals do - literalsDo:

 - StreamingOnOrderedCollection

 - Fixing conflict notion in traits since now trait methods are copied.

 - removing powermanagement
 enhancing scriptLoader to ask for preamble or postscript

 - 762 MethodContextrunSimulated:contextAtEachStep
 - 772 isSuspended fix
 - 770 copy and paste fix - igor suggestions
   (still does not work after InputEventSensor
 installPollingEventSensorFramework

 - sensor fixes again

 - issue 787: Change compactClassesArray for stackVm and Cog
 - issue 783 better errorReportOn: of ContextPart
 - issue 789: PseudoContext class initialize removed

 - issue 758: faster font rendering
 - issue 790: BookMorph other removal
 - issue 786: closing stream on remoteString







 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Postgresql + pharo

2009-04-18 Thread John McIntosh
Well if you can put an image/changes file ready to go somewhere I can
take a look at it.

On Sat, Apr 18, 2009 at 9:22 PM, MichaelA michael_atkis...@comcast.net wrote:


 All I am trying to do at this point is to get the Postgres test to run.  On
 a 10263 image using the Squeak 3.8.21beta1U image using the same
 default connection arg setup it works.
 --
 View this message in context: 
 http://n2.nabble.com/Postgresql-%2B-pharo-tp2621714p2658136.html
 Sent from the Pharo Smalltalk mailing list archive at Nabble.com.


 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Unicode test II

2009-03-10 Thread John McIntosh
-61 mmm
0xFFC3  ?



int utf32Code;  /* UTF-32 unicode value */



does anyone consider the data coming back could be a 32bit value that
is unsigned?


value = positive32BitIntegerFor(value);

oh details details...

oh wait look we ask if the value is an integervalue, aka a
SmallInteger, if it is then we pass it up, if it's not a SmallInteger,
thus a Large Integer, we decide to pass it up as a Positive 32bit
value.

Ergo if the value was  0xFFC3   why then it would flow up as a
negative SmallIInteger, like -61, then twist the mind of Michael?


On Mon, Mar 9, 2009 at 10:03 PM, Michael Rueger m.rue...@acm.org wrote:
 Mariano Martinez Peck wrote:
 I send you the wallback:

 Character classvalue:
     Receiver: Character
     Arguments and temporary variables:
         anInteger:     -61

 OK, that can't work...

 TextMorphEditordispatchOnKeyEvent:with:
 TextMorphEditor(ParagraphEditor)keystroke:

 Could you tell me the inst var values of the key event passed here?

 Especially interesting are
 keyValue charCode scanCode

 No idea yet why that value is negative...

 Thanks

 Michael

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project




-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Mac VM arguments access problem

2008-12-20 Thread John McIntosh
Yes if you link to the binary directly it cann't figure out where the
info.plist is to load the mouse click mapping The vmparm issue was
looked at earler this year and a change was done so which Vm is this
On 12/20/08, Keith Hodges keith_hod...@yahoo.co.uk wrote:
 Stéphane Ducasse wrote:
 Hi john

 Gwenael told that:

 SystemImage current getSystemAttribute: 1
  returns well the image name

   SystemImage current getSystemAttribute: 2
  does not return the other arguments passed

 Apparently this is working under linux.

 Then apparently when he launches the vm from the command line
 he cannot click but the mouse scrolling works.

 I asked to send a report but he is away. So sorry for the fuzzyness of
 my report.
 I prefer to report is than to forget. He will complement it if you
 need more info

 Stef

 The Mac vm did have problems like this when accessed via a symbolic link

 Keith

 ___
 Pharo-project mailing list
 Pharo-project@lists.gforge.inria.fr
 http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project



-- 
===
John M. McIntosh john...@smalltalkconsulting.com
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


[Pharo-project] mac menus in Pharo

2008-10-31 Thread John McIntosh
I'm wondering if there is any interest in having mac menus in Pharo.
This was done for Sophie
and Scratch, and attempted for 3.10. I could drag the required change
sets out of storage to
implement the proper file/edit menu in Pharo and have it respond to
cmd-Q etc if there is
any interest...

-- 
===
John M. McIntosh [EMAIL PROTECTED]
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


Re: [Pharo-project] Re: [ANN] new 10095 prebuild image

2008-10-17 Thread John McIntosh
On Fri, Oct 17, 2008 at 12:07 AM, Marcus Denker [EMAIL PROTECTED] wrote:

 On 16.10.2008, at 21:38, nicolas cellier wrote:

 Marcus Denker [EMAIL PROTECTED] writes:


 Yes, I will try to update the windows vm, too.

 In addtion, we should fix the Logo.

Marcus


 By the way,
 what is the recommended VM?

 For now, I use the Squeak 3.8.18beta1U vm. I don't even know if there is a
 newer one...

That would be the 3.8.18beta4U vm

3.8.18b4Use NANO-SLEEP logic to ensure sleep is accurate to
millisecond, no-usage which is more CPU friendly
would give upwards of 10ms error to delays which is 
unacceptable.

Fix issue with arguments passed as parms to the VM, the 
parm number
(2) was treated as being
special by the carbon vm for historical reasons, but in 
fact it was
not actually set. Try to follow the
generic unix rules instead.

3.8.18b3Compile with xcode 2.5.x on powerpc machine os-x 10.4.x
set utf832code field to zero on fake wheel event 
up/down/left/right arrows
print more diagnostic data on failure to allocation 
virtual memory
on browser plugin setup

3.8.18b2The Sophie team noticed that
 InternetConfiguration 
getMacintoshFileTypeAndCreatorFrom: 'test.jpg'
This returns byte reversed data on macintel #('GEPJ' 
'elgo')

sqMacInternetConfiguration.c  use CFSwapInt32BigToHost 
swap OSType


-- 
===
John M. McIntosh [EMAIL PROTECTED]
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===

___
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project