Re: [Pharo-project] RE : cannot modify class comments on Linux

2013-04-26 Thread David T. Lewis
On Fri, Apr 26, 2013 at 12:44:49PM +0200, Igor Stasenko wrote: On 26 April 2013 10:27, Pavel Krivanek pavel.kriva...@gmail.com wrote: The reason is in the optimalizations in the latest glibc. It really does not write the new content to the changes file immediately. We need to call flush at

Re: [Pharo-project] VM Crashes

2013-03-08 Thread David T. Lewis
On Fri, Mar 08, 2013 at 11:23:27AM +0100, stephane ducasse wrote: On Mar 8, 2013, at 2:52 AM, David T. Lewis le...@mail.msen.com wrote: On Thu, Mar 07, 2013 at 11:23:22PM +0100, Sven Van Caekenberghe wrote: Hi Eliot, On 07 Mar 2013, at 23:12, Eliot Miranda eliot.mira...@gmail.com

Re: [Pharo-project] osprocess in pharo 2.0

2013-03-08 Thread David T. Lewis
On Fri, Mar 08, 2013 at 05:27:04PM +0100, Camillo Bruni wrote: thanks, I changed it and it sort of works: https://ci.inria.fr/pharo-contribution/job/OSProcess/ though an impressive number of 81 tests fail, that is almost 50% of all the tests. Is that normal? I wouldn't call in normal, but

Re: [Pharo-project] osprocess in pharo 2.0

2013-03-08 Thread David T. Lewis
On Fri, Mar 08, 2013 at 08:13:19AM -0800, Sean P. DeNigris wrote: On Mar 8, 2013, at 3:49 AM, Camillo Bruni-3 [via Smalltalk] ml-node+s1294792n4675680...@n4.nabble.com wrote: I wonder why it fails on the build-server? It fails because ThisOSProcess classshutDown: includes OSProcess accessor

Re: [Pharo-project] osprocess in pharo 2.0

2013-03-08 Thread David T. Lewis
On Fri, Mar 08, 2013 at 11:58:38AM -0500, David T. Lewis wrote: On Fri, Mar 08, 2013 at 08:13:19AM -0800, Sean P. DeNigris wrote: On Mar 8, 2013, at 3:49 AM, Camillo Bruni-3 [via Smalltalk] ml-node+s1294792n4675680...@n4.nabble.com wrote: I wonder why it fails on the build-server

Re: [Pharo-project] osprocess in pharo 2.0

2013-03-08 Thread David T. Lewis
On Fri, Mar 08, 2013 at 05:25:55PM -0800, Sean P. DeNigris wrote: David T. Lewis wrote So I should add a nil check in the shutDown: method, right? Would it be a good idea to do a lazy initialization in #accessor? For example, if I load Base, and then I separately add the OS packages, I

Re: [Pharo-project] VM Crashes

2013-03-07 Thread David T. Lewis
On Thu, Mar 07, 2013 at 11:23:22PM +0100, Sven Van Caekenberghe wrote: Hi Eliot, On 07 Mar 2013, at 23:12, Eliot Miranda eliot.mira...@gmail.com wrote: I seem to be talking to thin air. If you would use an up-to-date VM your crashes would disappear. This bug was fixed this last week.

Re: [Pharo-project] OSProcess and CommandShell in Pharo 2.0

2013-02-13 Thread David T. Lewis
Thanks a lot Sean! Dave On Wed, Feb 13, 2013 at 07:16:25AM -0800, Sean P. DeNigris wrote: I think we have it now: - ConfigurationOfOSProcess and ConfigurationOfCommandShell have been updated to work in 1.4 and 2.0 - Each config has been copied to its project repo (e.g. sqs/CommandShell). I

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-02-12 Thread David T. Lewis
On Tue, Feb 12, 2013 at 08:13:39AM -0800, Sean P. DeNigris wrote: stephane ducasse wrote I will update their configurations and publish them in the squeaksource repository and the MetaRepoForPharo20. I fixed the configs to work on Pharo 1.4 and Pharo 2.0 and uploaded to sqs/MetaRepo...

Re: [Pharo-project] pharo VM names

2013-02-05 Thread David T. Lewis
On Tue, Feb 05, 2013 at 01:15:47PM -0800, Eliot Miranda wrote: On Tue, Feb 5, 2013 at 1:12 PM, Camillo Bruni camillobr...@gmail.comwrote: done: https://ci.inria.fr/pharo/view/VM/job/StackVM/ https://ci.inria.fr/pharo/view/VM/job/PharoVM/ The Pharo VM (former Cog VM) is a VM that

Re: [Pharo-project] Status of Pharo on Pi

2013-01-30 Thread David T. Lewis
Pharo 2.0 does not seem to work on a standard Squeak interpreter VM any more. Can anyone explain why? I suspect it might be something in the image startup code, because Pharo 2.0 does work on Cog (from Eliot's site), and AFIK there should be little functional difference between Cog and interpreter

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
On Tue, Jan 29, 2013 at 01:45:27PM -0300, St?phane Ducasse wrote: I can write a configuration if you want. Stef That would be great, thank you! Dave On Jan 29, 2013, at 12:14 AM, David T. Lewis wrote: I have updated CommandShell for Pharo 2.0, and made a few additional updates

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
loading the other. But from a practical point of view, CommandShell is not very useful without OSProcess to access the operating system. Thanks a lot! Dave On Jan 29, 2013, at 12:14 AM, David T. Lewis wrote: I have updated CommandShell for Pharo 2.0, and made a few additional updates

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
trimBoth - same for withoutTrailingBlanks Strange I finally typed ls and I got cannot access system to run 'ls' On Jan 29, 2013, at 12:14 AM, David T. Lewis wrote: I have updated CommandShell for Pharo 2.0, and made a few additional updates to OSProcess also. In addition

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
On Tue, Jan 29, 2013 at 09:34:37PM -0300, St?phane Ducasse wrote: - when I typed ls in the command tools I get an error because withBlanksTrimmed DNU we could add it as an extension as follows. String withBlanksTrimmed ^ self trimBoth - same for

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
On Tue, Jan 29, 2013 at 05:42:39PM -0800, Sean P. DeNigris wrote: David T. Lewis wrote Thanks! Probably we should call this ConfigurationOfCommandShell I was maintaining a ConfigurationOfCommandShell at http://www.squeaksource.com/MetacelloRepository . I had done some investigation

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
On Tue, Jan 29, 2013 at 10:54:25PM -0300, St?phane Ducasse wrote: Probably you need to load OSProcess. From a package point of view, the two are completely independent. You can load either OSProcess or CommandShell without loading the other. But from a practical point of view, CommandShell

Re: [Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-29 Thread David T. Lewis
On Tue, Jan 29, 2013 at 10:54:55PM -0300, St?phane Ducasse wrote: On Jan 29, 2013, at 10:14 PM, David T. Lewis wrote: Stef, Thanks! Probably we should call this ConfigurationOfCommandShell, because we also have a ConfigurationOfOSProcess in http://www.squeaksource.com

[Pharo-project] CommandShell and OSProcess updated for Pharo 2.0

2013-01-28 Thread David T. Lewis
:03PM -0500, David T. Lewis wrote: OSProcess and CommandShell-Piping should now load cleanly in Pharo 2.0. The latest versions are OSProcess-dtl.75 and CommandShell-Piping-dtl.13 in the SqueakSource repositories for OSProcess and CommandShell. Thanks to Damien Cassou for doing the original

Re: [Pharo-project] OSProcess updated for Pharo 2.0

2013-01-26 Thread David T. Lewis
On Sun, Jan 27, 2013 at 01:11:07AM +0800, Ben Coman wrote: David T. Lewis wrote: On Sat, Jan 26, 2013 at 08:50:43AM +0800, Ben Coman wrote: David T. Lewis wrote: Unit test notes: The AioEventHandlerTestCase failures are due to AioPlugin not included in the VM. I expect the tests

Re: [Pharo-project] OSProcess updated for Pharo 2.0 (was: The monkey is back in town)

2013-01-25 Thread David T. Lewis
. Dave On 2013-01-25, at 05:14, Sean P. DeNigris s...@clipperadams.com wrote: David T. Lewis wrote OSProcess and CommandShell-Piping should now load cleanly in Pharo 2.0. Awesome!!! Thank you David. I just successfully used PipeableOSProcess in latest 2.0 with no load errors. Cheers

Re: [Pharo-project] OSProcess updated for Pharo 2.0

2013-01-25 Thread David T. Lewis
On Sat, Jan 26, 2013 at 08:50:43AM +0800, Ben Coman wrote: David T. Lewis wrote: On Fri, Jan 18, 2013 at 03:28:10PM +0100, Damien Cassou wrote: you don't need FileSystem-Legacy if you use OSProcess from Coral: Gofer new squeaksource3: 'coral'; package: 'OSProcess'; load

[Pharo-project] OSProcess updated for Pharo 2.0 (was: The monkey is back in town)

2013-01-24 Thread David T. Lewis
On Fri, Jan 18, 2013 at 03:28:10PM +0100, Damien Cassou wrote: you don't need FileSystem-Legacy if you use OSProcess from Coral: Gofer new squeaksource3: 'coral'; package: 'OSProcess'; load. OSProcess and CommandShell-Piping should now load cleanly in Pharo 2.0. The latest

Re: [Pharo-project] Must OSPlatform classosVersion be deprecated?

2013-01-23 Thread David T. Lewis
On Wed, Jan 23, 2013 at 03:08:57PM +0100, Marcus Denker wrote: On Jan 23, 2013, at 7:28 AM, Marcus Denker marcus.den...@inria.fr wrote: Could you capture for deprecation of OSPlatform osVersion, and resend the other method (Smalltalk osVersion current osVersion)? Or, trap for

Re: [Pharo-project] Must OSPlatform classosVersion be deprecated?

2013-01-22 Thread David T. Lewis
] ifFalse: [((Smalltalk classNamed: 'SmalltalkImage') ifNil: [^ Smalltalk osVersion]) current]) osVersion Dave Am I missing something here? --Hannes On 1/21/13, David T. Lewis le...@mail.msen.com wrote: Why is OSPlatform classosVersion deprecated

Re: [Pharo-project] Must OSPlatform classosVersion be deprecated?

2013-01-22 Thread David T. Lewis
On Tue, Jan 22, 2013 at 09:15:32AM -0800, Sean P. DeNigris wrote: David T. Lewis wrote I am trying to find a way to make OSProcess... work on Pharo 2.0, Pharo1.x, and the various versions of Squeak and Cuis I've been thinking a lot about keeping OSP working well on all our favorite St

Re: [Pharo-project] Must OSPlatform classosVersion be deprecated?

2013-01-22 Thread David T. Lewis
On Tue, Jan 22, 2013 at 01:51:56PM -0800, Chris Cunningham wrote: On Tue, Jan 22, 2013 at 12:13 PM, David T. Lewis le...@mail.msen.comwrote: On Tue, Jan 22, 2013 at 08:05:02PM +0100, Marcus Denker wrote: On Jan 22, 2013, at 5:27 PM, H. Hirzel hannes.hir...@gmail.com wrote: Dave

Re: [Pharo-project] User Interrupt Broken?!

2013-01-22 Thread David T. Lewis
Keep in mind that responding to the user interrupt key can be timing dependent, so differences between the behavior of Cog and interpreter VMs may be nothing more than the effect of a faster versus slower VM running the same image. It does not mean that Cog is more (or less) error prone, it might

[Pharo-project] Must OSPlatform classosVersion be deprecated?

2013-01-20 Thread David T. Lewis
Why is OSPlatform classosVersion deprecated but OSPlatform classplatformName is not? My suggestion would be to comment #osVersion as being a synonym for #version, but do not deprecate it. That would enable use of Smalltalk os version, and it would also support OSPlatform osVersion, both of which

Re: [Pharo-project] [squeak-dev] Mine-able ideas?

2013-01-02 Thread David T. Lewis
On Wed, Jan 02, 2013 at 05:26:25PM -0800, tim Rowledge wrote: On 02-01-2013, at 4:15 PM, David T. Lewis le...@mail.msen.com wrote: Do you have a reference to the sensible compiled method format? I think I recall some discussions on that topic, but I don't recall when or by whom. I

[Pharo-project] UTC seconds in Pharo 2.0

2012-12-01 Thread David T. Lewis
I wanted to see if I can update TimeZoneDatabase (Olson tz data) for Pharo 2.0, but I am encountering a basic time conversion issue. I don't know the background on the Chronology changes in Pharo, so I'll just try to describe the issue as I understand it: I am in Michigan, so my time zone offset

Re: [Pharo-project] UTC seconds in Pharo 2.0

2012-12-01 Thread David T. Lewis
On Sat, Dec 01, 2012 at 10:22:28PM -0300, Camillo Bruni wrote: could you open a bug report for this? http://code.google.com/p/pharo/issues/detail?id=7085thanks=7085ts=1354421832

Re: [Pharo-project] Alt-. does not work anymore on Linux or?

2012-11-29 Thread David T. Lewis
On Thu, Nov 29, 2012 at 12:28:09PM +0100, G?ran Krampe wrote: Hey! I just realized that alt-. doesn't seem to fly on my Ubuntu 12.10 in Pharo 1.4 nor 2.0 one-clicks. It *does* however work fine in Squeak 4.3 one-click. In Squeak I can: Run (Delay forSeconds: 5) wait and

Re: [Pharo-project] Pharo 2.0 on Raspberry Pi ?

2012-11-24 Thread David T. Lewis
On Sat, Nov 24, 2012 at 10:44:51AM +, Dan Corneanu wrote: On 23 Nov 2012, at 13:57, Sven Van Caekenberghe sven@... wrote: Hi, Does anyone know how to make Pharo 2.0 run on a Raspberry Pi ? The out of the box VM is rather old. I have recompiled the stack VM from the

Re: [Pharo-project] [ANN] Limbo: a simple shell wrapper for NativeBoost

2012-11-22 Thread David T. Lewis
ideas? Cheers, Max On 21.11.2012, at 08:50, Max Leske maxle...@gmail.com wrote: On 20.11.2012, at 21:56, David T. Lewis le...@mail.msen.com wrote: On Mon, Nov 19, 2012 at 05:46:14PM -0300, Igor Stasenko wrote: Providing bindings to fork/pipe kernel functions is piece

Re: [Pharo-project] [ANN] Limbo: a simple shell wrapper for NativeBoost

2012-11-20 Thread David T. Lewis
On Mon, Nov 19, 2012 at 05:46:14PM -0300, Igor Stasenko wrote: Providing bindings to fork/pipe kernel functions is piece of cake. But writing a wrapper around it would be a bit of work.. but still it is possible. And you should try. And yes, using fork() stuff having many treacherous

Re: [Pharo-project] nonblocking stdin?

2012-11-15 Thread David T. Lewis
Or you can use #primitiveSQFileSetNonBlocking, as in OSProcess thisOSProcess stdIn setNonBlocking. Also make sure that you don't run your VM in background (with '') otherwise your stdin will be detached and the VM can still be blocked. Dave On Tue, Nov 13, 2012 at 10:56:02AM +0100, Camillo

Re: [Pharo-project] now that squeaksource is back...

2012-11-06 Thread David T. Lewis
On Tue, Nov 06, 2012 at 10:45:57AM +0100, Esteban Lorenzano wrote: Hi, I strongly recommend all of you to move your projects into one of the alternatives: http://smalltalkhub.com http://ss3.gemstone.com I would appreciate some guidance as to which of these is intended to serve as the

Re: [Pharo-project] OSProcess in Pharo 2.0

2012-10-30 Thread David T. Lewis
Hi, I'm not up to speed on the latest Pharo, but I'll try to offer a couple of tips... On Tue, Oct 30, 2012 at 10:15:12AM +0100, Damien Cassou wrote: Hi, I was trying to play with OSProcess. Simple goal, to execute $ ldconfig -p | grep libcairo.so and get the result as a string or

Re: [Pharo-project] image format with shebang

2012-10-16 Thread David T. Lewis
On Tue, Oct 16, 2012 at 03:08:45PM +0200, Sven Van Caekenberghe wrote: I understand that it would be nice eventually to have images saved like that automatically. It is still a pity that the VM has to change for that ;-) If you don't want to do it in the VM, you can do it with a shell

Re: [Pharo-project] image format with shebang

2012-10-16 Thread David T. Lewis
On Tue, Oct 16, 2012 at 05:32:57PM +0200, Sven Van Caekenberghe wrote: On 16 Oct 2012, at 16:13, David T. Lewis le...@mail.msen.com wrote: If you don't want to do it in the VM, you can do it with a shell script. Just make a 512 byte file that starts with the shebang line that you want

Re: [Pharo-project] image format with shebang

2012-10-16 Thread David T. Lewis
On Tue, Oct 16, 2012 at 12:08:47PM -0400, Yanni Chiu wrote: On 16/10/12 10:13 AM, David T. Lewis wrote: If you don't want to do it in the VM, you can do it with a shell script. Just make a 512 byte file that starts with the shebang line that you want to use, prepend it to the saved image

Re: [Pharo-project] Need more consistent #lines

2012-10-14 Thread David T. Lewis
On Sun, Oct 14, 2012 at 02:23:43PM +0200, Nicolas Cellier wrote: Yes, that's weird. But I think the inconsistency comes from Unix that insist on having a terminating LF. Not so. The line end convention on Unix is consistent with what Igor is expecting to see. But it's just a convention that is

Re: [Pharo-project] Do you know any code that can be better understood with its test?

2012-10-13 Thread David T. Lewis
On Sat, Oct 13, 2012 at 04:47:04PM +0200, Damien Cassou wrote: I'm looking for a piece of code that is hard to understand by looking at the source code but which has unit tests that help understanding the behavior. Do you have any idea? Perhaps CommandShell and OSProcess. The tests show

Re: [Pharo-project] Global session object?

2012-10-08 Thread David T. Lewis
I like your idea, but just so this does not get overlooked: See also [Stack]InterpretergetThisSessionID which is used in e.g. OSProcessPluginprimitiveGetSession for external resource management. You could move the primitive into the interpreter if you wanted to make it mandatory. This is the

Re: [Pharo-project] Global session object?

2012-10-08 Thread David T. Lewis
On Mon, Oct 08, 2012 at 04:12:13PM +0200, Igor Stasenko wrote: Another question, why session id was not exposed to language by VM (your primitive in OSProcess plugin does that, but since plugin is optional, the question remains the same). I don't know. Maybe nobody other than me ever wanted

Re: [Pharo-project] detect if image was saved with Cog

2012-10-01 Thread David T. Lewis
On Mon, Oct 01, 2012 at 11:09:51AM +0200, Max Leske wrote: Hi guys Is there a way to find out (from outside of the image), if an image has been saved with Cog? What I would like to do is something like this: $ head -20 myImage.image | grep some expression The use case for this is

Re: [Pharo-project] detect if image was saved with Cog

2012-10-01 Thread David T. Lewis
On Mon, Oct 01, 2012 at 04:56:39PM +0200, Sven Van Caekenberghe wrote: On 01 Oct 2012, at 16:33, Henrik Sperre Johansen henrik.s.johan...@veloxit.no wrote: On 01.10.2012 14:43, Sven Van Caekenberghe wrote: On 01 Oct 2012, at 14:01, Henrik Sperre Johansen henrik.s.johan...@veloxit.no

Re: [Pharo-project] detect if image was saved with Cog

2012-10-01 Thread David T. Lewis
On Mon, Oct 01, 2012 at 05:07:48PM +0200, Henrik Sperre Johansen wrote: On 01.10.2012 15:44, Igor Stasenko wrote: On 1 October 2012 14:43, Sven Van Caekenberghe s...@stfx.eu wrote: On 01 Oct 2012, at 14:01, Henrik Sperre Johansen henrik.s.johan...@veloxit.no wrote: Endianness in header

Re: [Pharo-project] New Text Completion suggestions

2012-08-23 Thread David T. Lewis
On Fri, Aug 24, 2012 at 01:40:54AM +0200, Igor Stasenko wrote: On 24 August 2012 01:19, Eliot Miranda eliot.mira...@gmail.com wrote: On Thu, Aug 23, 2012 at 3:57 PM, Igor Stasenko siguc...@gmail.com wrote: (a bit orthogonal) i don't understand why we cannot have own, consistent set

Re: [Pharo-project] New Adventure.

2012-08-12 Thread David T. Lewis
On Sat, Aug 11, 2012 at 05:38:45PM -0300, Diogenes Moreira wrote: Hi folks, I wanna tell you my new adventure, that i'll start today. I'll be try compile and fix the VM and FFI for run on 64 bits systems, the idea is run dbxtalk over a Windows 2008 server.. Any Clue o Tip are welcome.

Re: [Pharo-project] [Vm-dev] Android Cog VM/Pharo Builds at INRIA Jenkins

2012-08-07 Thread David T. Lewis
Really nice! Thank you for this Android VM work, and also for the excellent documentation on installation and usage. (CC to squeak-dev also) Dave On Tue, Aug 07, 2012 at 10:04:48AM -0400, Dmitry Golubovsky wrote: Hi, There are two CI (continuous integration) jobs running periodically at

Re: [Pharo-project] Memory usage

2012-08-01 Thread David T. Lewis
Hi John, There is no regression in the interpreter VM ... well actually there was about 6 months back, but I keep an eye on it and it's fixed again now :) The 32-bit interpreter VM will not fail on any 2GB or 4BG boundaries, and an interpreter VM compiled for the 64-bit object format can handle

Re: [Pharo-project] Memory usage

2012-08-01 Thread David T. Lewis
On Wed, Aug 01, 2012 at 09:04:20AM -0400, John McIntosh wrote: 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 John: Thanks, I had forgotten about your 64*64 VM, I think

Re: [Pharo-project] Memory usage

2012-07-31 Thread David T. Lewis
: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

Re: [Pharo-project] Memory usage

2012-07-31 Thread David T. Lewis
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

Re: [Pharo-project] Memory usage

2012-07-24 Thread David T. Lewis
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

Re: [Pharo-project] Memory usage

2012-07-23 Thread David T. Lewis
On Mon, Jul 23, 2012 at 09:26:18AM +0200, jannik.laval wrote: Dear pharoers, We are loading really big models in the Moose software analysis platform. This generate a lot of small objects and with the biggest model, we approach the limit of 2Gb of the VM. Is it possible for anyone who

Re: [Pharo-project] OSProcess test failures in Pharo 1.4

2012-07-07 Thread David T. Lewis
On Fri, Jul 06, 2012 at 08:48:08PM -0700, Sean P. DeNigris wrote: David T. Lewis wrote There might be some plugin version issues too. ... OSProcess accessor osppModuleVersionString == '4.3.3 Cog' My failing image was running on the latest Jit Cocoa Cog VM from Jenkins and had

Re: [Pharo-project] OSProcess test failures in Pharo 1.4

2012-07-06 Thread David T. Lewis
On Fri, Jul 06, 2012 at 04:49:35PM -0400, DeNigris Sean wrote: The few that I checked had to do with stdout being closed... OSProcess-dtl.70 Mac Lion Also tried running with vm from command line cc/ David Lewis OSProcess and CommandShell tests run successfully on Pharo 1.4 with an

Re: [Pharo-project] Integrating OSProcess?

2012-06-26 Thread David T. Lewis
On Tue, Jun 26, 2012 at 08:09:42PM +0200, St?phane Ducasse wrote: On Jun 26, 2012, at 5:33 PM, Sean P. DeNigris wrote: Issue 5796: Integrate OSProcess http://code.google.com/p/pharo/issues/detail?id=5796 Are we doing this? If so, are we forking it (I hope not), or just integrating

Re: [Pharo-project] Integrating OSProcess?

2012-06-26 Thread David T. Lewis
:27 PM, David T. Lewis wrote: On Tue, Jun 26, 2012 at 08:09:42PM +0200, St?phane Ducasse wrote: On Jun 26, 2012, at 5:33 PM, Sean P. DeNigris wrote: Issue 5796: Integrate OSProcess http://code.google.com/p/pharo/issues/detail?id=5796 Are we doing this? If so, are we

Re: [Pharo-project] [Vm-dev] Re: who can have a look at Issue 5913: Remove Squeak epoch

2012-06-19 Thread David T. Lewis
On Tue, Jun 19, 2012 at 03:32:47PM -0700, Eliot Miranda wrote: On Tue, Jun 19, 2012 at 1:50 PM, Igor Stasenko siguc...@gmail.com wrote: IMO epoch starting is completely orthogonal to timezone bug which should simply fixed. If you define epoch time as 1 jan 1970 (or any other date you

Re: [Pharo-project] [Vm-dev] Cog issue? Re: StandardFileStream size limit?

2012-06-13 Thread David T. Lewis
On Wed, Jun 13, 2012 at 04:08:14PM +0200, G?ran Krampe wrote: Hey! Ok, so the plot thickens: If I run this in a oneclick 1.4 I will get a file write error on 2Gb: | f b | f := StandardFileStream newFileNamed: 'test'. b := ByteArray new: 1024*1024*100. 100Mb [30 timesRepeat: [f

Re: [Pharo-project] NB FileSystem Primitives Speedup

2012-06-02 Thread David T. Lewis
On Fri, Jun 01, 2012 at 11:01:29PM +0200, Igor Stasenko wrote: On 1 June 2012 22:47, Chris Cunningham cunningham...@gmail.com wrote: On Fri, Jun 1, 2012 at 12:17 PM, Camillo Bruni camillobr...@gmail.com wrote: For those complaining lately about the new FS being a bit slow ;) Igor and I

Re: [Pharo-project] NB FileSystem Primitives Speedup

2012-06-02 Thread David T. Lewis
On Sat, Jun 02, 2012 at 04:11:16PM +0200, St?phane Ducasse wrote: That will definitely make a huge performance improvement. Here is something similar (probably bit rotted but maybe still of interest): http://wiki.squeak.org/squeak/2274 it is a pity that this stuff was never

Re: [Pharo-project] Working directory

2012-05-26 Thread David T. Lewis
On Sat, May 26, 2012 at 10:44:15AM +0200, Camillo Bruni wrote: On 2012-05-26, at 06:41, David T. Lewis wrote: What is a working directory? And for that matter, what is a directory? These are concepts and metaphors that have been used in various ways by some (but not all) operating

Re: [Pharo-project] Working directory

2012-05-25 Thread David T. Lewis
+1 Thanks Igor. Dave On Sat, May 26, 2012 at 02:13:34AM +0200, Igor Stasenko wrote: we should integrate the chdir fix to osprocess into jenkins vms On 25 May 2012 22:17, Sean P. DeNigris s...@clipperadams.com wrote: When OSProcess is integrated, we will have two different concepts of the

Re: [Pharo-project] Working directory

2012-05-25 Thread David T. Lewis
On Fri, May 25, 2012 at 05:59:17PM -0700, Sean P. DeNigris wrote: Igor Stasenko wrote we should integrate the chdir fix to osprocess into jenkins vms Oops, I took the error handler off the wrong call... ??OSProcess thisOSProcess chDir: ospPwd. should have been ??[ OSProcess

Re: [Pharo-project] addDeferredUIMessage: Documentation

2012-05-21 Thread David T. Lewis
On Mon, May 21, 2012 at 03:46:21PM -0700, Sean P. DeNigris wrote: I want to add a good comment to addDeferredUIMessage:. I know we use it whenever we're updating Morphic from a background thread, but I've read stuff saying to use it when Morphic is not in a sane state. In Squeak:

Re: [Pharo-project] Epoch returns local offset

2012-05-16 Thread David T. Lewis
On Wed, May 16, 2012 at 01:24:20PM -0700, Randal L. Schwartz wrote: Sean == Sean P DeNigris s...@clipperadams.com writes: Sean In New York (EST), DateAndTime epoch - 1901-01-01T00:00:00-04:00 (Squeak Sean epoch offset by local timezone). Can that be right? It must be constant, no? But

Re: [Pharo-project] Epoch returns local offset

2012-05-16 Thread David T. Lewis
(cross posting to squeak-dev) On Wed, May 16, 2012 at 01:50:16PM -0700, Sean P. DeNigris wrote: David T. Lewis wrote So no, it is not a constant. Let me rephrase: wouldn't it be better if it was a constant, like dos and unix? Yes it would be better if the Smalltalk epoch

Re: [Pharo-project] Running in background with OSProcess

2012-05-08 Thread David T. Lewis
On Mon, May 07, 2012 at 10:05:12PM -0700, Sean P. DeNigris wrote: David T. Lewis wrote ProxyPipeline command: '/bin/sleep 10' This gives you exactly what you expect to see. Okay, it worked! However, I'm confused by the string escaping. Because I'm on a Mac, and only later

Re: [Pharo-project] Running in background with OSProcess

2012-05-08 Thread David T. Lewis
On Tue, May 08, 2012 at 08:20:38AM -0700, Sean P. DeNigris wrote: Sean P. DeNigris wrote How do I circumvent all the processing and tell OSP what args to actually pass to the underlying system? I found a solution: env := CommandShell new environment. pwd := '/'. args :=

Re: [Pharo-project] Running in background with OSProcess

2012-05-07 Thread David T. Lewis
On Mon, May 07, 2012 at 11:46:30PM +0200, Norbert Hartl wrote: Am 07.05.2012 um 20:52 schrieb Sean P. DeNigris: How would I run '/usr/bin/java -jar /path/to/jenkins.war ' with OSProcess? Specifically I want to know the process number of the java child process. I unsuccessfully

Re: [Pharo-project] Can OSProcess functionality be implemented using FFI instead of plugin?

2012-05-06 Thread David T. Lewis
On Sat, May 05, 2012 at 03:23:15AM +0200, Igor Stasenko wrote: Hi, David, all i just want to know, if we can use FFI calls, for implementing an OSProcessPlugin functionality (or at least most of it). and if there parts which is hard to implement, i would like to know what and why. Most,

Re: [Pharo-project] OSProcess error in 1.3

2012-05-03 Thread David T. Lewis
: resuming | aio | (aio := Smalltalk at: #AioEventHandler) ifNotNil: [ aio startUp: resuming ]. *OSProcessAccessor initialize.* self initializeThisOSProcess Regards. 2012/5/2 David T. Lewis le...@mail.msen.com Sean, Can you please try two things, in this order, and let me know which

Re: [Pharo-project] OSProcess: can't #chDir: '/' on Linux

2012-05-03 Thread David T. Lewis
On Thu, May 03, 2012 at 12:14:21PM +0200, Damien Cassou wrote: Hi, OSProcess thisOSProcess chDir: '/'. always returns a /: Resource temporarily unavailable Thanks, this is a bug in the plugin that has apparently been there since at least 2006. It's a reversed #ifTrue:ifFalse: so

Re: [Pharo-project] OSProcess error in 1.3

2012-05-02 Thread David T. Lewis
Sean, Can you please try two things, in this order, and let me know which one causes the problem to go away? 1) Save your image, exit, and restart. Then try (OSProcess command: 'ls') inspect and see if it results in a process proxy with run state complete. 2) Restart the child watcher

Re: [Pharo-project] OSProcess - is process done?

2012-04-18 Thread David T. Lewis
On Wed, Apr 18, 2012 at 02:47:38PM -0700, Sean P. DeNigris wrote: Sometimes, OSProcess hangs even though the underlying command has completed. For example, on Mac 10.7.3: p := PipeableOSProcess waitForCommand: 'ps -ax -o pid,command' never returns even though p upToEnd immediately

Re: [Pharo-project] Stupid question about Fuel

2012-04-15 Thread David T. Lewis
On Sun, Apr 15, 2012 at 01:50:06PM +0200, Marcus Denker wrote: On Apr 15, 2012, at 1:44 PM, Edgar J. De Cleene wrote: And wish made experiments if this Foo.fuel could be loaded into different fork as Squeak, Cuis having Fuel into. I would not waste time with that... we will improve

Re: [Pharo-project] tail-like

2012-04-06 Thread David T. Lewis
On Fri, Apr 06, 2012 at 03:21:33AM -0700, drush66 wrote: It kind of depends on the OS, but all of them let you subscribe to events on the files in some way. So you would subscribe with os to notify you when some file is changed in some way, keep some internal house keeping information like

Re: [Pharo-project] Pharo 1.4 with interpreted VM

2012-04-04 Thread David T. Lewis
On Wed, Apr 04, 2012 at 11:41:52PM +0200, Igor Stasenko wrote: On 4 April 2012 21:17, St??phane Ducasse stephane.duca...@inria.fr wrote: hilaire I checked and I downloaded the latest pharo and I could not open it with a mac 4.2 old old vm but I could with 5.7 let me know if this helps.

Re: [Pharo-project] Voice reader support for Pharo

2012-04-01 Thread David T. Lewis
On Sat, Mar 31, 2012 at 12:40:00AM +0530, S Krish wrote: I am preffering currently to use Festival ( on linux) through OSProcess. Simple to push out sentences one by one.. wholeText splitToSentences do: [ :eaSentence | OSProcess command: 'echo ', eaSentence , ' |

Re: [Pharo-project] [Vm-dev] Re: Enhancing SmalltalkImagerecreateSpecialObjectsArray to lower coupling

2012-03-28 Thread David T. Lewis
On Mon, Mar 19, 2012 at 10:01:23AM -0700, Eliot Miranda wrote: Hi Guillermo, On Sun, Mar 18, 2012 at 5:46 PM, Guillermo Polito guillermopol...@gmail.com wrote: What about changing #recreateSpecialObjectsArray so having in mind some classes like Bitmap or Display may not be in the

Re: [Pharo-project] Bug in DateAndTime?

2012-03-27 Thread David T. Lewis
On Mon, Mar 26, 2012 at 08:17:17PM -0700, Sean P. DeNigris wrote: Max Leske wrote DateAndTime fromUnixTime: seconds DateAndTimefromUnixTime: anInteger ^ self fromSeconds: anInteger + 2177452800 unix epoch constant This seems like a bug to me. Wikipedia

Re: [Pharo-project] Needs help with hang images

2012-03-23 Thread David T. Lewis
On Fri, Mar 23, 2012 at 02:13:57PM +0400, Denis Kudriashov wrote: Hello. I have standalone application with UI which hangs sometime (very *rarely*). This application has many threads which interacts with server. All interactions with server and UI activity logged. But at hang state there

Re: [Pharo-project] Make arduino work on linux with cog vm

2012-03-21 Thread David T. Lewis
On Wed, Mar 21, 2012 at 05:27:38PM +0100, Igor Stasenko wrote: On 21 March 2012 11:51, Pavel Krivanek pavel.kriva...@gmail.com wrote: On Wed, Mar 21, 2012 at 11:34 AM, Pavel Krivanek pavel.kriva...@gmail.com wrote: On Wed, Mar 21, 2012 at 3:05 AM, Igor Stasenko siguc...@gmail.com wrote:

Re: [Pharo-project] Is there a package for running bash shells in a Smalltalk workspace?

2012-03-20 Thread David T. Lewis
On Tue, Mar 20, 2012 at 11:47:38AM +, Frank Church wrote: On 20 March 2012 10:47, S Krish krishnamachari.sudha...@gmail.com wrote: CommandShell package..? On 3/20/12, St?phane Ducasse stephane.duca...@inria.fr wrote: With OSProcess you can invoke shell. Now so far we do not

Re: [Pharo-project] Exception logging

2012-01-16 Thread David T. Lewis
On Mon, Jan 16, 2012 at 07:08:49PM +0100, St?phane Ducasse wrote: Hi guys when I do the following |file| [ file := StandardFileStream fileNamed: 'loglog.txt'. file nextPutAll: 'Start'. [ file nextPutAll: (Compiler evaluate: '55 + 88 poipuiu') asString] on: Error do: [:ex | ex outer

Re: [Pharo-project] Cog+linux: external module not found

2012-01-07 Thread David T. Lewis
On Sun, Jan 08, 2012 at 12:37:59AM +, Schwab,Wilhelm K wrote: Eliot, SOL?? Is that really the message we want to send to current and *prospective* users? Canonical does something that makes sense from a security perspective (one needs root privileges to alter the ldconfig mapping,

Re: [Pharo-project] [ VM ]Smalltalk getSystemAttribute:

2012-01-03 Thread David T. Lewis
On Tue, Jan 03, 2012 at 11:54:18PM +1100, Ben Coman wrote: Esteban Lorenzano wrote: El 02/01/2012, a las 4:39p.m., David T. Lewis escribi?: Real problem then is: we don't have a way to get the executable name or getSystemAttribute: comment is wrong :) On a unix VM

Re: [Pharo-project] [ VM ]Smalltalk getSystemAttribute:

2012-01-02 Thread David T. Lewis
On Mon, Jan 02, 2012 at 01:04:58PM -0300, Esteban Lorenzano wrote: Hi, I was trying to fix this, but seems to be a problem (besides the '-psn_0_528513', which is an error). According SmalltalkImage#getSystemAttribute: comment, getSystemAttribute: 0 shouldn't answer the executable name,

Re: [Pharo-project] Anyone want more timezones in the base image?

2011-12-20 Thread David T. Lewis
On Mon, Dec 19, 2011 at 10:30:02AM -0800, Paul DeBruicker wrote: Thanks for the feedback. Comments below. Sven Van Caekenberghe wrote I had a quick look at your code and it seems like a logical addition (given what TimeZone currently is and what you want to do: interpret tz

Re: [Pharo-project] [squeak-dev] [ANN] First try: Fuel for Squeak

2011-11-27 Thread David T. Lewis
On Sat, Nov 26, 2011 at 05:06:17PM -0300, Mariano Martinez Peck wrote: Hi guys. After a couple of efforts from Martin Dias and I, we have a working Fuel serializer for Squeak. I used the quotes because all I could do is to run tests. Cool! As always, we appreciate any feedback. Hi

Re: [Pharo-project] [squeak-dev] [ANN] First try: Fuel for Squeak

2011-11-27 Thread David T. Lewis
On Sat, Nov 26, 2011 at 05:06:17PM -0300, Mariano Martinez Peck wrote: Hi guys. After a couple of efforts from Martin Dias and I, we have a working Fuel serializer for Squeak. I used the quotes because all I could do is to run tests. Fuel is a binary serializer and you can find all the

Re: [Pharo-project] [squeak-dev] [ANN] First try: Fuel for Squeak

2011-11-27 Thread David T. Lewis
On Sun, Nov 27, 2011 at 03:34:27PM -0300, Mariano Martinez Peck wrote: Hi Mariano, I loaded Fuel into my working Squeak image, which is an older image kept up to date with trunk via the update stream (i.e. it is bleeding edge with various additional packages loaded). Excellent :)

Re: [Pharo-project] Added brief OSProcess info to online book

2011-11-26 Thread David T. Lewis
On Sat, Nov 26, 2011 at 07:42:56AM -0800, Sean P. DeNigris wrote: http://book.pharo-project.org/book/PharoTools/OSProcess Thanks Sean!!! Dave

Re: [Pharo-project] experience with large images?

2011-11-24 Thread David T. Lewis
Much larger images can be supported. This may be of interest: http://lists.squeakfoundation.org/pipermail/vm-dev/2010-November/005731.html In practical use, the current garbage collector will probably be the limiting factor. Dave On Thu, Nov 24, 2011 at 01:29:26PM -0300, Alexandre Bergel

Re: [Pharo-project] Building 32-bit Cairo library on Macs

2011-11-23 Thread David T. Lewis
Yay! On Wed, Nov 23, 2011 at 07:10:41PM +0100, Igor Stasenko wrote: TADAAA: file /opt/local/lib/libcairo.2.dylib /opt/local/lib/libcairo.2.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libcairo.2.dylib (for architecture i386): Mach-O dynamically linked shared

  1   2   3   4   >