Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Max Leske
I get your point Igor but then again, we're all somewhat self taught which means that as a developer if you don't understand something you hack around until you get it. It's not like I'm going to break anything in the released products, right? And I think I can judge the risk of wrecking my own

Re: [Pharo-project] Tips for efficient multi-serial handling

2012-11-08 Thread drush66
Hi Udo! Well, as fare as I know there is currently no equivalent Ruby's EventMachine, or similar event based server infrastructure. There is AioPlugin for async IO http://wiki.squeak.org/squeak/3384 which lets Smalltalk process (looking from the os view) to get async notifications of IO events,

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Camillo Bruni
On 2012-11-08, at 04:39, Igor Stasenko siguc...@gmail.com wrote: sure sure.. but guys... i really doubt that i would want to see people poking with NB who don't even have a basic understanding of malloc(ed) memory management and working with memory buffers pointers. For such sort of

Re: [Pharo-project] PluggableListMorph error, how to debug ?

2012-11-08 Thread Henrik Sperre Johansen
On 04.11.2012 18:37, Benjamin wrote: In Pharo 1.4, browse Morph Find the method fullDrawOn: and replace on: Error do: [:err | self setProperty: #errorOnDraw toValue: true. self setProperty: #drawError toValue: err freeze. ^ self drawErrorOn:

Re: [Pharo-project] Replace ByteArray with a smaller one

2012-11-08 Thread Mariano Martinez Peck
On Thu, Nov 8, 2012 at 4:24 AM, Igor Stasenko siguc...@gmail.com wrote: On 7 November 2012 11:11, Camillo Bruni camillobr...@gmail.com wrote: if the chunks you wan to cut off are big enough you could potentially allocate a new object there which get's gc-ed. yes.. actually you can 'crop' the

Re: [Pharo-project] NB integration

2012-11-08 Thread Esteban Lorenzano
yes... but the athens ready VMs are also coming with pharo 2.0 so... On Nov 8, 2012, at 4:29 AM, Igor Stasenko siguc...@gmail.com wrote: On 2 November 2012 10:07, Esteban Lorenzano esteba...@gmail.com wrote: pharo 2.0 will be athens ready... that means NB ready too :) well, i actually

[Pharo-project] Increase memory

2012-11-08 Thread roberto.mine...@usi.ch
Hi, I was executing a piece of code that collects the revisions of a Git repo in Pharo but it seems Pharo requires more memory.. How do I increase the available memory? Here is the log: SmalltalkImagesignalLowSpace OutOfMemorydefaultAction UndefinedObjecthandleSignal:

Re: [Pharo-project] Tips for efficient multi-serial handling

2012-11-08 Thread Udo Schneider
Hi Igor, thanks for the reply. The idea working with Semaphore has definitly it's own charm. From my last (high-level) check I only found serial primitives which return 0 bytes if nothing was recieved meanwhile - no Semaphore as far as I saw. Regarding adding support for this - I try to

Re: [Pharo-project] Increase memory

2012-11-08 Thread Fernando Olivero
Ciao Roberto, which is the current size of the image? (the .image file). If you evaluate the following a couple of times (print it cmd-p), you will cleanup most of the unreferenced objects in the image, it returns a number so you can compare it to successive evaluations. Smalltalk

Re: [Pharo-project] Increase memory

2012-11-08 Thread Alexandre Bergel
By passing appropriate arguments when launching the VM on the command line. Cheers, Alexandre On Nov 8, 2012, at 10:16 AM, roberto.mine...@usi.ch wrote: Hi, I was executing a piece of code that collects the revisions of a Git repo in Pharo but it seems Pharo requires more memory.. How

[Pharo-project] New command line option: load updates

2012-11-08 Thread Marcus Denker
Hi, There is now a command line option to load updates. To test it: wget --quiet -qO - http://pharo.gforge.inria.fr/ci/ciPharo20NBCog.sh | bash ./vm.sh Pharo.image update What is does it to load updates, then snapshot and quit. The idea is to use this in the new CI setup so we don't need any

Re: [Pharo-project] New command line option: load updates

2012-11-08 Thread Camillo Bruni
nice! :) now we should rewrite the monkey fully in Pharo, given that we have now almost everything needed that shouldn't be that hard anymore ;)! On 2012-11-08, at 14:39, Marcus Denker marcus.den...@inria.fr wrote: Hi, There is now a command line option to load updates. To test it:

Re: [Pharo-project] Increase memory

2012-11-08 Thread roberto.mine...@usi.ch
Hi Fernando, On Nov 8, 2012, at 2:32 PM, Fernando Olivero fernando.oliv...@usi.ch wrote: Ciao Roberto, which is the current size of the image? (the .image file). The image is indeed fresh, just installed FileSystemGit.. It's about 30 MB.. If you evaluate the following a couple of times

[Pharo-project] [update 2.0] #20385

2012-11-08 Thread Marcus Denker
20385 - Issue 6936: Compiler tests dependent on TextMorph http://code.google.com/p/pharo/issues/detail?id=6936 Issue 6935: CompilerEvaluationTest dependent on Debugger http://code.google.com/p/pharo/issues/detail?id=6935 Issue 6934: move

Re: [Pharo-project] unpacking cairo.tgz fails during VM build

2012-11-08 Thread Camillo Bruni
Is this a known issue, or my tar install is wrong? yes it is known.. i had to install 7z support for tar. this is because MacOS is number of years behind the most recent release of tar, which supports 7z compressing by default :) so that has to be installed on OSX or not? If we should

[Pharo-project] What did you guys do to startup-time ?

2012-11-08 Thread Miloslav.Raus
Who snuffed the poor guy ? I don't know what magic (yea, i know, not just one magic, bunch of magix really ;-) you did but ... I downloaded Pharo 2.0 to give it a whirl (I love smalltalk and keep playing with it / write an app in it every once in a while), unzipped it, doble clicked the binary

Re: [Pharo-project] [update 2.0] #20385

2012-11-08 Thread Pavel Krivanek
Automatic CI update jobs startup is not working so I started it manually. -- Pavel On Thu, Nov 8, 2012 at 3:41 PM, Marcus Denker marcus.den...@inria.fr wrote: 20385 - Issue 6936: Compiler tests dependent on TextMorph http://code.google.com/p/pharo/issues/detail?id=6936

Re: [Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-08 Thread Friedrich Dominicus
Luc Fabresse luc.fabre...@gmail.com writes: Hi Friedrich,  I did not test myself but I will soon.  Since the Jenkins is down, you can found the latest VM (with the SerialPlugin modifications that Esteban did) in my dropbox: https://www.dropbox.com/sh/flx2cc8mjszhckg/uZ8sTxSB1k Ok I

[Pharo-project] [update 2.0] #20386

2012-11-08 Thread Marcus Denker
[update 2.0] #20386 20386 - Issue 6933: Fixing the fact that typing ... http://code.google.com/p/pharo/issues/detail?id=6933 Issue 6853: Monticello merge conflicts on reordered package names http://code.google.com/p/pharo/issues/detail?id=6853 Issue

Re: [Pharo-project] Fixing the StackInterpreterSimulator for Pharo 1.4

2012-11-08 Thread Stefan Marr
Hi: On 06 Nov 2012, at 17:59, Stéphane Ducasse wrote: The attached change set fixes bit rot in the StackInterpreterSimulator and related classes. Here a brief summary: - VMClass#doOrDefer: now uses ProcessBrowser#isUIProcess: instead of Project - it replaces the use of #asDisplayText

Re: [Pharo-project] Opening a serial Port with Pharo on Linux

2012-11-08 Thread Luc Fabresse
2012/11/8 Friedrich Dominicus fr...@q-software-solutions.de Luc Fabresse luc.fabre...@gmail.com writes: Hi Friedrich, I did not test myself but I will soon. Since the Jenkins is down, you can found the latest VM (with the SerialPlugin modifications that Esteban did) in my dropbox:

[Pharo-project] pharo-2.0-tests » win - Build # 467 - Failure!

2012-11-08 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/pharo-2.0-tests/./label_exp=win/467/Project:label_exp=winDate of build:Thu, 08 Nov 2012 18:20:13 +0100Build duration:9 min 8 secCHANGESNo ChangesBUILD

Re: [Pharo-project] [Jenkins] about Pharo ci infrastructure...

2012-11-08 Thread Marcus Denker
On Nov 7, 2012, at 5:02 PM, Marcus Denker marcus.den...@inria.fr wrote: Hello, We are experiencing some stability issues with https://ci.lille.inria.fr/pharo/ But the good news is: people here have been busy, and there will be a completely new ci infrastructure soon. First job for

[Pharo-project] pharo-2.0-tests » win - Build # 468 - Still Failing!

2012-11-08 Thread jenkins-pharo . ci . inria . fr
BUILD FAILUREBuild URLhttps://ci.lille.inria.fr/pharo/job/pharo-2.0-tests/./label_exp=win/468/Project:label_exp=winDate of build:Thu, 08 Nov 2012 19:35:36 +0100Build duration:10 minCHANGESNo ChangesBUILD

[Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Sebastian Sastre
…I mean ever. Because you'll screw your image. Mostly when you also are on OS X but, for some crazy reason of the Universe, your TimeMachine was not operating normally on your laptop while coding. And you weren't committing in the monticello repo because it was work in progress and you

Re: [Pharo-project] [update 2.0] #20386

2012-11-08 Thread Pavel Krivanek
On Thu, Nov 8, 2012 at 5:59 PM, Marcus Denker marcus.den...@inria.fr wrote: [update 2.0] #20386 20386 - Issue 6933: Fixing the fact that typing ... http://code.google.com/p/pharo/issues/detail?id=6933 Issue 6853: Monticello merge conflicts on reordered package names

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Stéphane Ducasse
Again I told you several time, do you think that a guy do not understand what is a pointer because he does not know how to write it in C? Give a chance to professionals to learn. We are not talking about explaining what is a pointer, but explaining the potential problems and challenges With

Re: [Pharo-project] [update 2.0] #20386

2012-11-08 Thread Esteban Lorenzano
oops! fix in inbox :) On Nov 8, 2012, at 8:13 PM, Pavel Krivanek pavel.kriva...@gmail.com wrote: On Thu, Nov 8, 2012 at 5:59 PM, Marcus Denker marcus.den...@inria.fr wrote: [update 2.0] #20386 20386 - Issue 6933: Fixing the fact that typing ...

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Stéphane Ducasse
And you can be pretty sure that most pharoers (including myself) have a pretty vague notion about malloc/free, combined with the internals of an third party C library, that makes a pretty unstable field. Again, no silver bullets here, but less arrogance and more examples! +1 but we can

Re: [Pharo-project] [Jenkins] about Pharo ci infrastructure...

2012-11-08 Thread Stéphane Ducasse
On Nov 8, 2012, at 1:43 AM, Igor Stasenko wrote: This is really good news! I really like that INRIA pays attention to issues we having and takes into account our experience and input. This is, of course, what anyone would expect from any reasonable organization :) but to me I do not know

Re: [Pharo-project] PluggableListMorph error, how to debug ?

2012-11-08 Thread Stéphane Ducasse
Debugging UI code is one of those places you probably want to insert a haltOnce instead, or risk losing the image :) and event :) and shortcut code :)

Re: [Pharo-project] [Pharo-consortium] [Pharo-users] Pharo consortium agreement

2012-11-08 Thread Stéphane Ducasse
On Nov 8, 2012, at 4:03 AM, Igor Stasenko wrote: On 6 November 2012 15:36, Sven Van Caekenberghe s...@stfx.eu wrote: Very good that there is progress on this front ! Even better news about Igor ;-) i always asking myself, if this horse worth its bets. Thank you, Stephane others for

Re: [Pharo-project] [update 2.0] #20386

2012-11-08 Thread Pavel Krivanek
:-) you were faster.. with the same code ;-) -- Pavel On Thu, Nov 8, 2012 at 8:29 PM, Esteban Lorenzano esteba...@gmail.com wrote: oops! fix in inbox :) On Nov 8, 2012, at 8:13 PM, Pavel Krivanek pavel.kriva...@gmail.com wrote: On Thu, Nov 8, 2012 at 5:59 PM, Marcus Denker

Re: [Pharo-project] New command line option: load updates

2012-11-08 Thread Stéphane Ducasse
Cool! I like the noise of the falling of large bash scripts. The lesser the better Stef Hi, There is now a command line option to load updates. To test it: wget --quiet -qO - http://pharo.gforge.inria.fr/ci/ciPharo20NBCog.sh | bash ./vm.sh Pharo.image update What is does it to

Re: [Pharo-project] What did you guys do to startup-time ?

2012-11-08 Thread Stéphane Ducasse
Thanks Miloslav This is strange because we are not really satisfied from this point of view. There are a lot of cleaning to do to get a snappy morphic. Stef Who snuffed the poor guy ? I don’t know what magic (yea, i know, not just one magic, bunch of magix really ;-) you did but ... I

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Jimmie Houchin
On 11/8/2012 1:30 PM, Stéphane Ducasse wrote: And you can be pretty sure that most pharoers (including myself) have a pretty vague notion about malloc/free, combined with the internals of an third party C library, that makes a pretty unstable field. Again, no silver bullets here, but less

[Pharo-project] Recovering Changes from a broken image

2012-11-08 Thread Sven Van Caekenberghe
Hi, One of the cool things of Smalltalk's images/changes file is that you can do a World Menu Tools Recover lost changes… to get back most [1] of your code in case your image/OS/machine suddenly crashed or you forgot to save your image or commit your Monticello packages. But we all have

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Stéphane Ducasse
jimmie ***THANKS*** I'm in the same situation even if I read several lectures and books on C. So I want a tutorials that takes us into account and I'm sure that this is faisable. Just need care, love and time. STef On Nov 8, 2012, at 8:58 PM, Jimmie Houchin wrote: On 11/8/2012 1:30 PM,

Re: [Pharo-project] [Pharo-users] Recovering Changes from a broken image

2012-11-08 Thread Stéphane Ducasse
On Nov 8, 2012, at 9:03 PM, Sven Van Caekenberghe wrote: Hi, One of the cool things of Smalltalk's images/changes file is that you can do a World Menu Tools Recover lost changes… to get back most [1] of your code in case your image/OS/machine suddenly crashed or you forgot to save

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Sven Van Caekenberghe
On 08 Nov 2012, at 20:29, Stéphane Ducasse stephane.duca...@inria.fr wrote: I told you several time, do you think that a guy do not understand what is a pointer because he does not know how to write it in C? Give a chance to professionals to learn. We are not talking about explaining what

Re: [Pharo-project] [Pharo-users] Recovering Changes from a broken image

2012-11-08 Thread Sven Van Caekenberghe
On 08 Nov 2012, at 21:09, Stéphane Ducasse stephane.duca...@inria.fr wrote: On Nov 8, 2012, at 9:03 PM, Sven Van Caekenberghe wrote: Hi, One of the cool things of Smalltalk's images/changes file is that you can do a World Menu Tools Recover lost changes… to get back most [1] of your

Re: [Pharo-project] [NativeBoost] pass an array of args to external function

2012-11-08 Thread Stéphane Ducasse
On Nov 8, 2012, at 9:13 PM, Sven Van Caekenberghe wrote: On 08 Nov 2012, at 20:29, Stéphane Ducasse stephane.duca...@inria.fr wrote: I told you several time, do you think that a guy do not understand what is a pointer because he does not know how to write it in C? Give a chance to

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Sebastian Nozzi
Hey there Sebastian, I feel your pain. Unfortunately there seem to be *many* places / situations where halting is a very bad idea and renders your image unusable. That's why I think it would be a good idea to have a list of these places (in the documentation and in the Pharo welcome Workspace),

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Mariano Martinez Peck
You can build a VM and skip to the next bytecode ;) http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-td3800729.html On Thu, Nov 8, 2012 at 10:30 PM, Sebastian Nozzi sebno...@gmail.com wrote: Hey there Sebastian, I feel your pain. Unfortunately there seem to be *many* places /

Re: [Pharo-project] [Pharo-users] Recovering Changes from a broken image

2012-11-08 Thread Sebastian Nozzi
This tip is very welcome, didn't know that you could import changes made from another image. Should definitely be included in the section recovering lost changes in the Pharo book (in case it isn't there already ;-). Also very welcome is a new description of changes. Without knowing its details,

Re: [Pharo-project] [Pharo-users] Recovering Changes from a broken image

2012-11-08 Thread Mariano Martinez Peck
On Thu, Nov 8, 2012 at 10:41 PM, Sebastian Nozzi sebno...@gmail.com wrote: This tip is very welcome, didn't know that you could import changes made from another image. http://marianopeck.wordpress.com/2012/05/19/pharo-tips-and-tricks/ title Recovering lost code: I paste it here: *- Recovering

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Camillo Bruni
humm I actually already improved the startup quiet a bit to prevent stupid people like me to crash images ;) but the halt is not yet caught, I have to add that, then you'll simply get a warning at startup :P On 2012-11-08, at 22:34, Mariano Martinez Peck marianop...@gmail.com wrote: You can

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Camillo Bruni
https://code.google.com/p/pharo/issues/detail?id=6941 so that your experience will be last one :) On 2012-11-08, at 22:49, Camillo Bruni camillobr...@gmail.com wrote: humm I actually already improved the startup quiet a bit to prevent stupid people like me to crash images ;) but the halt

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread blake
Could you debug the VM and alter the bytecodes? On Thu, Nov 8, 2012 at 10:51 AM, Sebastian Sastre sebast...@flowingconcept.com wrote: …I mean ever. Because you'll screw your image. Mostly when you also are on OS X but, for some crazy reason of the Universe, your TimeMachine was not

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Sebastian Nozzi
Cool :-) This will be a default behaviour, or activated through a command-line switch? 2012/11/8 Camillo Bruni camillobr...@gmail.com https://code.google.com/p/pharo/issues/detail?id=6941 so that your experience will be last one :)

Re: [Pharo-project] PluggableListMorph error, how to debug ?

2012-11-08 Thread Sebastian Nozzi
Hi Laurent, let me share my way of solving this. My method works from a Workspace or Inspector/Explorer. What I do is invoke drawOn: manually, passing a NullCanvas (a dummy canvas). Suppose I have a reference (in a Workspace/Inspector) for my buggy morph, called m: m drawOn: (NullCanvas new).

Re: [Pharo-project] Don't ever ever halt in #startUp:

2012-11-08 Thread Sebastian Sastre
I'm currently trying Sven idea: 1. use a fresh pharo image (same base version your screwed one's changes is) 2. rename (a copy of) the changes file as .cs 3. open file browser and try to file in that .cs The first try didn't work because some compilation error. I've removed the offending code

[Pharo-project] NB Capabilities

2012-11-08 Thread Jimmie Houchin
I am developing an application which needs to access a proprietary business API to access data from their servers. Currently because I don't know how to do that from within Pharo, I have been using Python/COM. But that API is deprecated and expires soon. Now I have to move to an app which

Re: [Pharo-project] NB Capabilities

2012-11-08 Thread Jimmie Houchin
On 11/8/2012 7:50 PM, Jimmie Houchin wrote: I am developing an application which needs to access a proprietary business API to access data from their servers. Currently because I don't know how to do that from within Pharo, I have been using Python/COM. But that API is deprecated and expires

Re: [Pharo-project] NB Capabilities

2012-11-08 Thread Igor Stasenko
On 8 November 2012 22:50, Jimmie Houchin jlhouc...@gmail.com wrote: I am developing an application which needs to access a proprietary business API to access data from their servers. Currently because I don't know how to do that from within Pharo, I have been using Python/COM. But that API is

Re: [Pharo-project] NB Capabilities

2012-11-08 Thread Igor Stasenko
On 8 November 2012 23:25, Jimmie Houchin jlhouc...@gmail.com wrote: On a second look at the API's documentation, the DLL is C++ not C. I don't know, but that might have been evident by the requirement of implementing interfaces. well, with C++ it is a bit worse than C: because C++ compilers

Re: [Pharo-project] Pharo wiki?

2012-11-08 Thread Mariano Martinez Peck
On Fri, Nov 9, 2012 at 1:33 AM, Sebastian Nozzi sebno...@gmail.com wrote: Hello Pharo Community, are there plans to host a Pharo wiki somewhere? (for tutorials, tips, faqs, documentation, ideas, brainstorming, etc.) We have this: http://book.pharo-project.org/ Cheers, Sebastian --