[Pharo-users] [ANN] Complishon: efficient heuristics for code completion

2020-03-31 Thread Guillermo Polito
Hi all, Since yesterday, Pharo 9 contains a new alternative code completion engine. The idea behind this engine is to be pluggable, to be efficient and to be more accurate through the introduction of heuristics. The completion engine implements a couple of nice heuristics, like - chances are `a

[Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Russ Whaley
My image size keeps growing and growing. I've been scouring Google and mailing lists, trying to find a solution. Observables: - Running this 'query' shows I have a whole lot instances of Objects I've created that are not "releasing". There are 65000 instances of one Object/Class, and 35

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Sven Van Caekenberghe
Hi Russ, It is quite hard to debug somebody else's application, especially without access to the code, but here are some suggestions of what I would do. Can you move your code to a new/fresh image and see what happens there (especially after just one iteration of loading your data) ? Is there

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread dario.trussardi65
Ciao, > My image size keeps growing and growing. I've been scouring Google and > mailing lists, trying to find a solution. i have the same problem with a Pharo 7 image. Maybe it has nothing to do. But after close all the class browser windows the image save re

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Richard Sargent
On Tue, Mar 31, 2020 at 9:25 AM Russ Whaley wrote: > Sven, > Thanks for the reply :) > > I will try to move my code over to another image (I'm not very good with > GitHub - we'll see how this goes). > > But it just seems like there ought to be a way to at least delete all of > these instances - a

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Russ Whaley
Dario, Thanks for the reply! When I closed my image - after running that huge query and leaving it in an inspector... my image grew to 1.3GB, lol. When I closed the inspector, and all the class browsers, did the garbage collection, etc., it dropped back to 384MB. Still huge, and all my Class ins

[Pharo-users] Pharo on a chromebook?

2020-03-31 Thread PAUL DEBRUICKER
Forgive my ignorance but does anyone have a recipe to run Pharo on a Chromebook? Without having to install another OS. And also not with SqueakJS. Just on ChromeOS? Seems like its not possible. Just wanted to double check. thanks Paul

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Russ Whaley
Here is some additional data - attached - I checked the number of instances on select Classes before a UI load, during the UI load and after the UI load (and again). The class instances grow as expected, but do no release. I'm doing something wrong. I'm going to try a fresh image next, however,

Re: [Pharo-users] Pharo on a chromebook?

2020-03-31 Thread tbrunz
Hi Paul, It *is* possible! I've got it running on one of my Chromebooks, a Pixelbook model. (I gave my 2015 Pixel LS to my wife; I've yet to try it on that one.) See the attached image. You'll likely need to install a Linux container, which is how I got it to work. (I didn't try to get it run

[Pharo-users] UFFI code problem

2020-03-31 Thread shawon58
I am trying to do "FFICContantExamples class>>absMinusFortyTwo ^ self ffiCall: #( int abs ( TheAnswer ) ) module: LibC" this code but it shows error -- Sent from: http://forum.world.st/Pharo-Smal

[Pharo-users] UFFI code problem

2020-03-31 Thread shawon58
i am trying UFFI code the code is : FFICContantExamples class>>absMinusFortyTwo ^ self ffiCall: #( int abs ( TheAnswer ) ) module: LibC but it shows error. how to solve this ? -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.ht

Re: [Pharo-users] UFFI code problem

2020-03-31 Thread tbrunz
Where did you get this example? The straightforward answer is that "TheAnswer" appears to be undefined. In this context, 'ffiCall:' is expecting a valid C expression that indicates the type of a formal argument, followed by the formal argument. Based on the examples in the UFFI booklet, I would

Re: [Pharo-users] UFFI code problem

2020-03-31 Thread shawon58
that means i cant able to use Theanswer ? i attach my screenshot how i initialize the value in variable . -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] UFFI code problem

2020-03-31 Thread tbrunz
Try using this expression: ^ self ffiCall: #( int abs ( int TheAnswer ) ) module: LibC i.e., add 'int' to tell Pharo that 'TheAnswer' is to be interpreted as a C integer. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Ballooning image size! Approaching 400MB

2020-03-31 Thread Tim Mackinnon
Hi Russ - a quick look at your stats seems to indicate that something is holding on to your model, I didn’t understand the first object growing by 2, but the second increases by 1 each time, and it looks like some form of root object holding on to the others ? This of course means the GC can’t