Re: [Pharo-project] DateAndTime bug: we should do something about it

2013-04-14 Thread Levente Uzonyi
On Sat, 13 Apr 2013, Igor Stasenko wrote: On 13 April 2013 21:36, Levente Uzonyi le...@elte.hu wrote: On Sat, 13 Apr 2013, Igor Stasenko wrote: Both #timeToRun and secondsWhenClockTicks (via Delay) using same primitive - #millisecondClockValue. Sure thing, precision of this primitive should

Re: [Pharo-project] DateAndTime bug: we should do something about it

2013-04-13 Thread Levente Uzonyi
On Sat, 13 Apr 2013, Igor Stasenko wrote: On 12 April 2013 23:47, Norbert Hartl norb...@hartl.name wrote: Am 12.04.2013 um 23:23 schrieb Igor Stasenko siguc...@gmail.com: On 12 April 2013 23:14, p...@highoctane.be p...@highoctane.be wrote: +1. No clue either. But discovered the terminate

Re: [Pharo-project] DateAndTime bug: we should do something about it

2013-04-13 Thread Levente Uzonyi
On Sat, 13 Apr 2013, Igor Stasenko wrote: Both #timeToRun and secondsWhenClockTicks (via Delay) using same primitive - #millisecondClockValue. Sure thing, precision of this primitive should be it is 1 millisecond or smaller.. But it has nothing to do with precision of primSecondsClock and you

Re: [Pharo-project] about OrderedCollection new replaceFrom: 1 to: 5 with: #(6 7 8 9 10) startingAt: 1

2013-03-03 Thread Levente Uzonyi
On Sun, 3 Mar 2013, stephane ducasse wrote: while in 1.4 and 2.0 OrderedCollection new replaceFrom: 1 to: 5 with: #(6 7 8 9 10) startingAt: 1 raised an error The problem I have is in fact that (OrderedCollection new: 10) replaceFrom: 1 to: 5 with: #(6 7 8 9

Re: [Pharo-project] A contorted way of making things work :)

2012-12-23 Thread Levente Uzonyi
On Sat, 22 Dec 2012, Camillo Bruni wrote: On 2012-12-22, at 09:56, Levente Uzonyi le...@elte.hu wrote: On Sat, 22 Dec 2012, Fernando Olivero wrote: Well, the assignment within the and: block says it all… Yeah, blame and flame everyone who doesn't write code the way you do... But before

Re: [Pharo-project] A contorted way of making things work :)

2012-12-22 Thread Levente Uzonyi
On Sat, 22 Dec 2012, Fernando Olivero wrote: Well, the assignment within the and: block says it all… Yeah, blame and flame everyone who doesn't write code the way you do... But before you do that, tell me what's wrong with that assignment. Levente Fernando On Sat, Dec 22, 2012 at 2:57

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

2012-10-14 Thread Levente Uzonyi
On Sun, 14 Oct 2012, Igor Stasenko wrote: A total number of lines in string should be: one + number of line separators found. Explanation: a 'String cr/ crlf' stands for 'line separator'. By definition, a separator, is thing which separates two others.. i mean, there is no way how you can use

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

2012-10-01 Thread Levente Uzonyi
On Mon, 1 Oct 2012, 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 seaside hosting, where we only

Re: [Pharo-project] Transform sends to ANSI standard?

2012-09-25 Thread Levente Uzonyi
On Tue, 25 Sep 2012, Hernán Morales Durand wrote: Hi folks, I am rewriting packages to be compatible or more portable between Smalltalks. Code Critics gives the following information on my packages: - #cr, #crlf, #lf, #space, #tab, #findTokens:, ... are not part of the ANSI string

Re: [Pharo-project] serializing DynamicVariables (Zinc so far)

2012-08-27 Thread Levente Uzonyi
On Sun, 26 Aug 2012, Frank Shearar wrote: On 26 August 2012 17:55, Levente Uzonyi le...@elte.hu wrote: On Sun, 26 Aug 2012, Frank Shearar wrote: That sounds like a reasonable workaround to address Mariano's immediate problem :) I don't see what other issues are there to solve

Re: [Pharo-project] serializing DynamicVariables (Zinc so far)

2012-08-26 Thread Levente Uzonyi
On Sun, 26 Aug 2012, Frank Shearar wrote: That sounds like a reasonable workaround to address Mariano's immediate problem :) I don't see what other issues are there to solve. :) Anyway, here's a highly untested example of what I had in my mind:

Re: [Pharo-project] serializing DynamicVariables (Zinc so far)

2012-08-25 Thread Levente Uzonyi
On Sat, 25 Aug 2012, Sven Van Caekenberghe wrote: The nil default is used as a 'not set' third value. ZnSignalProgress class#enabled Answer if HTTPProgress should be signalled. The default is false. ^ self value ifNil: [ false ]

Re: [Pharo-project] serializing DynamicVariables (Zinc so far)

2012-08-25 Thread Levente Uzonyi
On Sat, 25 Aug 2012, Frank Shearar wrote: On 25 August 2012 14:30, Levente Uzonyi le...@elte.hu wrote: On Sat, 25 Aug 2012, Sven Van Caekenberghe wrote: The nil default is used as a 'not set' third value. ZnSignalProgress class#enabled Answer if HTTPProgress should be signalled

Re: [Pharo-project] Breaking another dependency to Compiler (related to Traits I think)

2012-08-16 Thread Levente Uzonyi
On Thu, 16 Aug 2012, Fernando Olivero wrote: NICE! I would say lets go for it, 120MB is nothing nowadays. The IDE could be simplied and be more powerful. Let's be a bit more realistic. The current garbage collector is choking if you add 100 MB of small objects to your image. Caching the

Re: [Pharo-project] Breaking another dependency to Compiler (related to Traits I think)

2012-08-15 Thread Levente Uzonyi
On Wed, 15 Aug 2012, Fernando Olivero wrote: Hi, great point Marcus. I was wondering why cant a compiled method know the ast that generated it? Would you store all ASTs in memory all the time or recreate it every time on demand? It would ease the queries + manipulation, in the tools a

Re: [Pharo-project] WriteStream, nextPutAll:, OrderedCollections

2012-06-13 Thread Levente Uzonyi
On Wed, 13 Jun 2012, Guillermo Polito wrote: soo, what do I do? :D Streaming into an OrderedCollection is unnecessary, because OrderedCollection is already a stream-like object. If I were implementing Smalltalk now, I would probably add the stream protocol to it (#nextPut:, #nextPutAll:,

Re: [Pharo-project] [Vm-dev] Re: Plan/discussion/communication around new object format

2012-06-03 Thread Levente Uzonyi
On Wed, 30 May 2012, Igor Stasenko wrote: Here are couple (2) of mine, highly valuable cents :) 2^20 for classes? might be fine (or even overkill) for smalltalk systems, but could be quite limiting for one who would like experiment and implementing a prototype-based frameworks, where every

Re: [Pharo-project] [squeak-dev] Re: A comparative article (was STON - Smalltalk Object Notation)

2012-05-10 Thread Levente Uzonyi
On Thu, 10 May 2012, H. Hirzel wrote: Hello A question about dynamic arrays Goran writes that he thinks they were introduced in Squeak? Göran wrote: It is simply a dynamic {} array (was introduced originally in Squeak I believe) but with the assumption that the expressions all evaluate to

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-26 Thread Levente Uzonyi
On Thu, 26 Apr 2012, Frank Shearar wrote: On 26 April 2012 03:35, Levente Uzonyi le...@elte.hu wrote: On Wed, 25 Apr 2012, Levente Uzonyi wrote: On Wed, 25 Apr 2012, Frank Shearar wrote: On 20 April 2012 15:15, Frank Shearar frank.shea...@gmail.com wrote: On 20 April 2012 03:51, Levente

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-25 Thread Levente Uzonyi
On Fri, 20 Apr 2012, Frank Shearar wrote: On 20 April 2012 03:51, Levente Uzonyi le...@elte.hu wrote: On Thu, 19 Apr 2012, Frank Shearar wrote: I found a serious bug in parsing numbers with negative exponents. It was completey broken, in fact, parsing 1e-1 as 10, not 1 / 10. Anyway

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-25 Thread Levente Uzonyi
On Wed, 25 Apr 2012, Frank Shearar wrote: On 20 April 2012 15:15, Frank Shearar frank.shea...@gmail.com wrote: On 20 April 2012 03:51, Levente Uzonyi le...@elte.hu wrote: On Thu, 19 Apr 2012, Frank Shearar wrote: I found a serious bug in parsing numbers with negative exponents

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-25 Thread Levente Uzonyi
On Wed, 25 Apr 2012, Eliot Miranda wrote: On Wed, Apr 25, 2012 at 1:11 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 20 Apr 2012, Frank Shearar wrote: On 20 April 2012 03:51, Levente Uzonyi le...@elte.hu wrote: On Thu, 19 Apr 2012, Frank Shearar wrote

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-25 Thread Levente Uzonyi
On Wed, 25 Apr 2012, Frank Shearar wrote: On 25 April 2012 21:11, Levente Uzonyi le...@elte.hu wrote: On Fri, 20 Apr 2012, Frank Shearar wrote: On 20 April 2012 03:51, Levente Uzonyi le...@elte.hu wrote: On Thu, 19 Apr 2012, Frank Shearar wrote: I found a serious bug in parsing numbers

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-25 Thread Levente Uzonyi
On Wed, 25 Apr 2012, Levente Uzonyi wrote: On Wed, 25 Apr 2012, Frank Shearar wrote: On 20 April 2012 15:15, Frank Shearar frank.shea...@gmail.com wrote: On 20 April 2012 03:51, Levente Uzonyi le...@elte.hu wrote: On Thu, 19 Apr 2012, Frank Shearar wrote: I found a serious bug in parsing

Re: [Pharo-project] PetitSmalltalk: now with a self-contained grammar for number literals

2012-04-19 Thread Levente Uzonyi
On Thu, 19 Apr 2012, Frank Shearar wrote: I found a serious bug in parsing numbers with negative exponents. It was completey broken, in fact, parsing 1e-1 as 10, not 1 / 10. Anyway. This version fixes that, and adds a bunch of tests demonstrating that number parsing will return rationals if it

Re: [Pharo-project] Workspace completion with Tab and Ctrl-q gone in Pharo 1.4?

2012-04-10 Thread Levente Uzonyi
On Mon, 9 Apr 2012, Stéphane Ducasse wrote: first load ConfigurationOfNewECompletion (via the configurationBrowser). Second we will see if we can clean OCompletion to make it work with ECompletion instead of breaking it. We could ship the old and ugly version but we will see if we can make

Re: [Pharo-project] Do we have the new primitive?? [WAS] Re: IdentitySet but using #hash rather than #identityHash ?

2012-02-27 Thread Levente Uzonyi
and LargeIdentityDictionary when the primitive is ready. Levente Thanks!   Levente thanks On Fri, Dec 16, 2011 at 3:28 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote:  On 16.12.2011 03:26

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
On Sun, 8 Jan 2012, Mariano Martinez Peck wrote: What I don't understand is why in Squeak it does work. Because #pointsTo: is not used in Squeak (yet). As usual I dug deeper than I should have, so I'll publish a few changes soon. Ok, you are right. Squeak #inboundPointersExcluding: is

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
On Sun, 8 Jan 2012, Mariano Martinez Peck wrote: Of course, but I'd check for the class equality first, because it's faster (yeah, i know you turned off inlining of #class, but Cog doesn't care about that ;)). Are you sure Cog doesn't care? I think it does. From what I can see in Cog code

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
| a | 10 timesRepeat: [ a := Date new. Smalltalk garbageCollect. self assert: (PointerFinder pointersTo: a) isEmpty ] Thanks a lot, On Mon, Jan 9, 2012 at 2:40 PM, Levente Uzonyi le...@elte.hu wrote: On Sun, 8 Jan 2012, Mariano Martinez Peck wrote: What I don't understand is why in Squeak

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: On Mon, Jan 9, 2012 at 7:13 PM, Levente Uzonyi le...@elte.hu wrote: On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: Hi Levente. Thanks for looking into the issue. I saw your code and there is something I don't understand. pointsTo

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: On Mon, Jan 9, 2012 at 8:01 PM, Levente Uzonyi le...@elte.hu wrote: On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: On Mon, Jan 9, 2012 at 7:13 PM, Levente Uzonyi le...@elte.hu wrote: On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: Hi

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
help Levente. Now PointerFinderTest are green :) Levente | a | 10 timesRepeat: [ a := Date new. Smalltalk garbageCollect. self assert: (PointerFinder pointersTo: a) isEmpty ] Thanks a lot, On Mon, Jan 9, 2012 at 2:40 PM, Levente Uzonyi le...@elte.hu wrote: On Sun, 8 Jan 2012, Mariano

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-09 Thread Levente Uzonyi
On Mon, 9 Jan 2012, Henrik Johansen wrote: On Jan 9, 2012, at 8:46 06PM, Levente Uzonyi wrote: On Mon, 9 Jan 2012, Mariano Martinez Peck wrote: So..I am puzzle again. I said In which scenario can (self instVarsInclude: anObject) answer true, but the loop false? you answered

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-07 Thread Levente Uzonyi
On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: Thanks Levente. However, #pointersToExcept: does a GC at the beginning... so.. am I missing something? Yes, at the beginning The MethodContexts are created after that GC. But those MC shouldn't be excluded by the instVar

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-07 Thread Levente Uzonyi
On Sat, 7 Jan 2012, Mariano Martinez Peck wrote: On Sat, Jan 7, 2012 at 4:04 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: Thanks Levente. However, #pointersToExcept: does a GC at the beginning... so.. am I missing something? Yes

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-06 Thread Levente Uzonyi
On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: Hi guys. Levente recommended us to integrate the new version of #pointsTo:, and I did it. But not I think I found a bug. The method is: pointsTo: anObject Answers true if I hold a reference to anObject, or false otherwise. Or stated another way:

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-06 Thread Levente Uzonyi
On Fri, 6 Jan 2012, Stéphane Ducasse wrote: On Jan 6, 2012, at 2:46 PM, Levente Uzonyi wrote: Of course, but I'd check for the class equality first, because it's faster (yeah, i know you turned off inlining of #class, but Cog doesn't care about that ;)). Another thing that you should add

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-06 Thread Levente Uzonyi
On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: On Fri, Jan 6, 2012 at 2:59 PM, Stéphane Ducasse stephane.duca...@inria.frwrote: On Jan 6, 2012, at 2:46 PM, Levente Uzonyi wrote: Of course, but I'd check for the class equality first, because it's faster (yeah, i know you turned off

Re: [Pharo-project] Bug in #pointsTo: ?

2012-01-06 Thread Levente Uzonyi
On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: 2012/1/6 Levente Uzonyi le...@elte.hu On Fri, 6 Jan 2012, Mariano Martinez Peck wrote: On Fri, Jan 6, 2012 at 2:59 PM, Stéphane Ducasse stephane.duca...@inria.fr**wrote: On Jan 6, 2012, at 2:46 PM, Levente Uzonyi wrote: Of course

Re: [Pharo-project] Image input sensors blocked

2012-01-02 Thread Levente Uzonyi
On Mon, 2 Jan 2012, Janko Mivšek wrote: S, Stéphane Ducasse piše: There is opportunity for someone of you to finally catch this bug! My image is blocked again, but Aida is still working and my backdoor too :) So, I can run any code on image. 'Sensor startUp' didn't help, what can yet try?

Re: [Pharo-project] string hash collisions?

2011-12-30 Thread Levente Uzonyi
On Fri, 30 Dec 2011, Philippe Marschall wrote: Hi As you probably noted string hash collisions are all the rage these days [1]. Has anybody looked into whether this applies to Pharo as well? I'm sure it does. Levente [1] http://events.ccc.de/congress/2011/Fahrplan/events/4680.en.html

Re: [Pharo-project] string hash collisions?

2011-12-30 Thread Levente Uzonyi
On Fri, 30 Dec 2011, Levente Uzonyi wrote: On Fri, 30 Dec 2011, Philippe Marschall wrote: Hi As you probably noted string hash collisions are all the rage these days [1]. Has anybody looked into whether this applies to Pharo as well? I'm sure it does. Ok, I read the slides. Pharo

Re: [Pharo-project] string hash collisions?

2011-12-30 Thread Levente Uzonyi
On Fri, 30 Dec 2011, Levente Uzonyi wrote: On Fri, 30 Dec 2011, Levente Uzonyi wrote: On Fri, 30 Dec 2011, Philippe Marschall wrote: Hi As you probably noted string hash collisions are all the rage these days [1]. Has anybody looked into whether this applies to Pharo as well? I'm sure

Re: [Pharo-project] Destiny of changed:/update:

2011-12-27 Thread Levente Uzonyi
: pharo-project-boun...@lists.gforge.inria.fr [pharo-project-boun...@lists.gforge.inria.fr] on behalf of Levente Uzonyi [le...@elte.hu] Sent: Monday, December 26, 2011 9:06 PM To: Pharo-project@lists.gforge.inria.fr; andres.vall...@gmail.com Subject: Re: [Pharo-project] Destiny of changed:/update

Re: [Pharo-project] Destiny of changed:/update:

2011-12-27 Thread Levente Uzonyi
On Tue, 27 Dec 2011, Andres Valloud wrote: He might imply any finalization process that runs on the weak collection after the objects are collected must be thread safe, which seems reasonable. You may get away with free atomic finalization if you have a finalization queue... but not always.

Re: [Pharo-project] Destiny of changed:/update:

2011-12-26 Thread Levente Uzonyi
On Mon, 26 Dec 2011, Schwab,Wilhelm K wrote: Stef, I completely agree that events/announcements are cleaner and easier to understand than changed/update. I don't really care whether or not the latter is removed, because I never (directly) use it. Others might prefer to have it retained??

Re: [Pharo-project] Destiny of changed:/update:

2011-12-26 Thread Levente Uzonyi
finalization techniques require the use of weak collections, but otherwise weak collections are independent of finalization. Levente Bill From: pharo-project-boun...@lists.gforge.inria.fr [pharo-project-boun...@lists.gforge.inria.fr] on behalf of Levente

Re: [Pharo-project] Destiny of changed:/update:

2011-12-26 Thread Levente Uzonyi
that the finalize() method in java is similar). But it doesn't mean that finalization has anything to do with weak collections or that weak collections should be thread safe, which is what Bill wrote. Levente On 12/26/11 16:49 , Levente Uzonyi wrote: On Mon, 26 Dec 2011, Schwab,Wilhelm K wrote

Re: [Pharo-project] Wrong number with message tally?

2011-12-23 Thread Levente Uzonyi
On Fri, 23 Dec 2011, Alexandre Bergel wrote: Hi! MessageTally seems to give wrong values regarding the relative time spent. Consider: MessageTally spyOn: [ 100 timesRepeat: [ 1000 factorial ] ] It gives something like: -=-=-=-=-=-=-=-=-=-=-=-= - 377 tallies, 379 msec. **Tree**

Re: [Pharo-project] Wrong number with message tally?

2011-12-23 Thread Levente Uzonyi
On Fri, 23 Dec 2011, Nicolas Cellier wrote: Doesn't it tally several processes ? (finalization etc...) No, that would be MessageTally spyAllOn: [ ... ]. Levente Nicolas 2011/12/23 Alexandre Bergel alexandre.ber...@me.com: Hi! MessageTally seems to give wrong values regarding the

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-20 Thread Levente Uzonyi
...@inria.fr wrote: On Dec 16, 2011, at 3:28 PM, Levente Uzonyi wrote: Cool. One more thing: in Squeak the method using primitive 132 directly was renamed to #instVarsInclude:, so now #pointsTo: works as expected. If this was also added to Pharo, then the #pointsTo

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-18 Thread Levente Uzonyi
On Sun, 18 Dec 2011, Levente Uzonyi wrote: On Sat, 17 Dec 2011, Mariano Martinez Peck wrote: Can't you debug it ? Of course I could do it when I have some time. It already took me 1 hour to isolate the bug from Fuel and make a reproducible test. I hope that at least you find

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-18 Thread Levente Uzonyi
Ducasse stephane.duca...@inria.fr wrote: On Dec 16, 2011, at 3:28 PM, Levente Uzonyi wrote: Cool. One more thing: in Squeak the method using primitive 132 directly was renamed to #instVarsInclude:, so now #pointsTo: works as expected. If this was also added to Pharo

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-18 Thread Levente Uzonyi
On Sun, 18 Dec 2011, Mariano Martinez Peck wrote: 2011/12/18 Levente Uzonyi le...@elte.hu On Sun, 18 Dec 2011, Mariano Martinez Peck wrote: Actually, the long test is Create some bitmaps numbers := OrderedCollection new. numbers addAll: (1 to: 1 29 by: 1 14) asArray. numbers

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-18 Thread Levente Uzonyi
On Sun, 18 Dec 2011, Mariano Martinez Peck wrote: 2011/12/18 Levente Uzonyi le...@elte.hu On Sun, 18 Dec 2011, Mariano Martinez Peck wrote: 2011/12/18 Levente Uzonyi le...@elte.hu On Sun, 18 Dec 2011, Mariano Martinez Peck wrote: Actually, the long test is Create some bitmaps

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-17 Thread Levente Uzonyi
with a special prime is also very common. Levente - Benoit St-Jean Yahoo! Messenger: bstjean A standpoint is an intellectual horizon of radius zero. (Albert Einstein) From: Levente Uzonyi le...@elte.hu To: Pharo-project@lists.gforge.inria.fr

Re: [Pharo-project] Time to rename Object#name ?

2011-12-17 Thread Levente Uzonyi
On Sat, 17 Dec 2011, Janko Mivšek wrote: Hi guys, Isn't a time come to finally rename this unfortunate method #name in Object to something more internal? From its comment it seems it is using just for debugging: Objectname Answer a name for the receiver. This is used generically in the

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-17 Thread Levente Uzonyi
On Sat, 17 Dec 2011, Stéphane Ducasse wrote: On Dec 16, 2011, at 3:28 PM, Levente Uzonyi wrote: Cool. One more thing: in Squeak the method using primitive 132 directly was renamed to #instVarsInclude:, so now #pointsTo: works as expected. If this was also added to Pharo, then the #pointsTo

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-17 Thread Levente Uzonyi
...@inria.fr wrote: On Dec 16, 2011, at 3:28 PM, Levente Uzonyi wrote: Cool. One more thing: in Squeak the method using primitive 132 directly was renamed to #instVarsInclude:, so now #pointsTo: works as expected. If this was also added to Pharo, then the #pointsTo: sends should be changed

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-17 Thread Levente Uzonyi
in advance Nicolas Thanks for any idea. On Sat, Dec 17, 2011 at 1:50 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: On Dec 16, 2011, at 3:28 PM, Levente Uzonyi wrote: Cool. One more thing: in Squeak the method using primitive 132 directly was renamed to #instVarsInclude:, so

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-16 Thread Levente Uzonyi
On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011 03:26, Levente Uzonyi wrote: How about my numbers? :) Preallocate objects, so we won't count gc time. n := 100. objects := Array new: n streamContents: [ :stream | n timesRepeat: [ stream nextPut: Object new ] ]. set

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-16 Thread Levente Uzonyi
(IdentityDictionary, PluggableIdentityDictionary, subclassing, etc). I'm about to propose this primitive with other improvements on the vm-dev list. Levente thanks On Fri, Dec 16, 2011 at 3:28 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-16 Thread Levente Uzonyi
think). So Levente, you say this is not possible to adapt this for dictionary? can we contact Eliot to provide such a primitive? thanks On Fri, Dec 16, 2011 at 3:28 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011 03:26, Levente Uzonyi

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-16 Thread Levente Uzonyi
On Fri, 16 Dec 2011, Mariano Martinez Peck wrote: On Fri, Dec 16, 2011 at 3:28 PM, Levente Uzonyi le...@elte.hu wrote: On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011 03:26, Levente Uzonyi wrote: How about my numbers? :) Preallocate objects, so we won't count gc time

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-15 Thread Levente Uzonyi
On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011 00:40, Henrik Sperre Johansen wrote: On 15.12.2011 23:35, Mariano Martinez Peck wrote: Well...it is much slower :( it seems that the cost of (aKey identityHash + ( aKey mareaClass identityHash bitShift: 12) + (aKey basicSize

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-15 Thread Levente Uzonyi
On Fri, 16 Dec 2011, Henrik Sperre Johansen wrote: On 16.12.2011 00:40, Henrik Sperre Johansen wrote: On 15.12.2011 23:35, Mariano Martinez Peck wrote: Well...it is much slower :( it seems that the cost of (aKey identityHash + ( aKey mareaClass identityHash bitShift: 12) + (aKey basicSize

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-12 Thread Levente Uzonyi
On Mon, 12 Dec 2011, Mariano Martinez Peck wrote: Hi guys. I hope this is not a very stupid question. Background: in Fuel we have a IdentityDictionary where we put each of the objects we find while traversing the graph. We need to use IdentitySet because we cannot have repetitions (and to avoid

Re: [Pharo-project] IdentitySet but using #hash rather than #identityHash ?

2011-12-12 Thread Levente Uzonyi
On Mon, 12 Dec 2011, Levente Uzonyi wrote: On Mon, 12 Dec 2011, Mariano Martinez Peck wrote: Hi guys. I hope this is not a very stupid question. Background: in Fuel we have a IdentityDictionary where we put each of the objects we find while traversing the graph. We need to use IdentitySet

Re: [Pharo-project] [squeak-dev] new VMs available at...

2011-12-12 Thread Levente Uzonyi
On Thu, 1 Dec 2011, Eliot Miranda wrote: http://www.mirandabanda.org/files/Cog/VM/VM.r2519 Change the VM argument access back to be consistent with linux: CogVM binaries as per VMMaker.oscog-eem.139/r2519. 0 = executable name -1 .. -n = VM arguments *including* image (if explicitly

Re: [Pharo-project] Missing network primitive

2011-12-10 Thread Levente Uzonyi
On Sat, 10 Dec 2011, Noury Bouraqadi wrote: Hi, While working on OCEAN (yes, yes, we're still working on it :-) we have an annoying issue. We have some netname resolver tests that do work with the Squeak Mac VM 5.8, but they are not working in the Mac Cog VMs. This is because the following

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-10 Thread Levente Uzonyi
On Sat, 10 Dec 2011, Stéphane Ducasse wrote: thanks levente (since 2007) there is this bug? Yes. :) may be igor and you should join effort on it. I tried to track it down a year ago without luck. IIRC the Transcript usage in the script doesn't affect the results and the timeouts can also

Re: [Pharo-project] native boost is the best thing since COGVM

2011-12-10 Thread Levente Uzonyi
Why wasn't that possible with FFI? Levente On Sun, 11 Dec 2011, Fernando Olivero wrote: I was able to create the binding to Pango using NB. The ultimate goal is to provide a cleaner implementation of text widgets. Thanks Igor ! Fernando

Re: [Pharo-project] problem installing seaside in pharo

2011-12-10 Thread Levente Uzonyi
On Sat, 10 Dec 2011, sergio_101 wrote: i am getting the following error when trying to install seaside in pharo using: Gofer new squeaksource: 'MetacelloRepository'; package: 'ConfigurationOfSeaside30'; load. ((Smalltalk at:

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Levente Uzonyi
On Fri, 9 Dec 2011, Schwab,Wilhelm K wrote: Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I had a repeatable failure scenario, I would make the switch to a mutex just in case. If for no other reason,

Re: [Pharo-project] How to resurrect an unrepsonsive image?

2011-12-09 Thread Levente Uzonyi
On Sat, 10 Dec 2011, Mariano Martinez Peck wrote: On Sat, Dec 10, 2011 at 12:09 AM, Levente Uzonyi le...@elte.hu wrote: On Fri, 9 Dec 2011, Schwab,Wilhelm K wrote: Ok, but I have never failed to be impressed by how much trouble even green threads can cause. Meaning no disrespect, if I

Re: [Pharo-project] A possible bug in GZip streams

2011-12-08 Thread Levente Uzonyi
On Thu, 8 Dec 2011, Martin Dias wrote: On Thu, Dec 8, 2011 at 2:50 PM, Sven Van Caekenberghe s...@beta9.be wrote: On 08 Dec 2011, at 18:43, Martin Dias wrote: I think the problem is that this method supposes n = 1: Yeah, that is why I propose a guard, maybe in this method n = 0 ifTrue:

Re: [Pharo-project] Loading MCZ freezes, but loading the source.st works?

2011-12-06 Thread Levente Uzonyi
On Tue, 6 Dec 2011, Henrik Sperre Johansen wrote: On 06.12.2011 16:35, Mariano Martinez Peck wrote: On Tue, Dec 6, 2011 at 4:30 PM, Henrik Sperre Johansen henrik.s.johan...@veloxit.no mailto:henrik.s.johan...@veloxit.no wrote: On 06.12.2011 15:55, Mariano Martinez Peck wrote:

Re: [Pharo-project] OpenGL in Pharo?

2011-11-18 Thread Levente Uzonyi
On Fri, 18 Nov 2011, Igor Stasenko wrote: 2011/11/18 Levente Uzonyi le...@elte.hu: On Thu, 17 Nov 2011, Javier Pimás wrote: We are advancing on making OpenGL work with NativeBoost right now. If you have to write an app that uses OpenGL now, I would strongly recommend you to use NBOpenGL

Re: [Pharo-project] WideString performance

2011-11-17 Thread Levente Uzonyi
On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 16.11.2011 21:45, Nicolas Cellier wrote: I think that there are several issues: 1) Character with codePoint 256 are unique, but Wider are not. The characters are not stored in the WideString (which instead stores the code points), but any

Re: [Pharo-project] ProcessWrapper crashes image on startup

2011-11-17 Thread Levente Uzonyi
On Thu, 17 Nov 2011, Hernán Morales Durand wrote: Anyone working with ProcessWrapper.dll plugin in Pharo 1.3? I've tested a bit and saved the image after a full GC. Now my developement image became unusable crashing on opening under all updated VM's (Croquet, CogVM and Stack). Moving out the

Re: [Pharo-project] WideString performance

2011-11-17 Thread Levente Uzonyi
On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 17.11.2011 11:26, Levente Uzonyi wrote: On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 16.11.2011 21:45, Nicolas Cellier wrote: I think that there are several issues: 1) Character with codePoint 256 are unique, but Wider

Re: [Pharo-project] WideString performance

2011-11-17 Thread Levente Uzonyi
On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 17.11.2011 11:53, Levente Uzonyi wrote: On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 17.11.2011 11:26, Levente Uzonyi wrote: On Thu, 17 Nov 2011, Henrik Sperre Johansen wrote: On 16.11.2011 21:45, Nicolas Cellier wrote: I

Re: [Pharo-project] OpenGL in Pharo?

2011-11-17 Thread Levente Uzonyi
On Thu, 17 Nov 2011, Javier Pimás wrote: We are advancing on making OpenGL work with NativeBoost right now. If you have to write an app that uses OpenGL now, I would strongly recommend you to use NBOpenGL. It's I see the hype about NBOpenGL, but I don't see how is it better than the FFI

Re: [Pharo-project] #at:ifAbsent: for Array(s) could be faster

2011-11-02 Thread Levente Uzonyi
On Wed, 2 Nov 2011, Igor Stasenko wrote: Here the original implementation, which Array inherits from SequenceableCollection: at: index ifAbsent: exceptionBlock Answer the element at my position index. If I do not contain an element at index, answer the result of evaluating the

Re: [Pharo-project] Still more problems with underscore

2011-10-30 Thread Levente Uzonyi
On Sun, 30 Oct 2011, Lukas Renggli wrote: Hi guys. I still have problems with underscore in Pharo 1.3. I want to use underscore in both ways: in selectors and as assigment. Who would tell the system what you mean? If I do: Scanner allowUnderscoreAsAssignment: true. then it works in selectrs

Re: [Pharo-project] Fwd: trying to understand loops in pharo

2011-10-17 Thread Levente Uzonyi
On Sun, 16 Oct 2011, Stéphane Ducasse wrote: On Oct 16, 2011, at 10:33 PM, Nicolas Cellier wrote: Ah, I see, this sound appealing. But I would object this: (I'm speaking of do:, not only to:do:) 1) what the last value mean for unordered collections? 2) for a SequenceableCollection, the

Re: [Pharo-project] About ~= and ~~

2011-10-12 Thread Levente Uzonyi
On Wed, 12 Oct 2011, Clara Allende wrote: Hi guys, I'm wondering, why? ProtoObject ~~ anObject Answer whether the receiver and the argument are not the same object (do not have the same object pointer). self == anObject ifTrue: [^ false] ifFalse: [^ true] Instead of:

Re: [Pharo-project] About ~= and ~~

2011-10-12 Thread Levente Uzonyi
On Wed, 12 Oct 2011, Mariano Martinez Peck wrote: On Wed, Oct 12, 2011 at 5:38 PM, Levente Uzonyi le...@elte.hu wrote: On Wed, 12 Oct 2011, Clara Allende wrote: Hi guys, I'm wondering, why? ProtoObject ~~ anObject Answer whether the receiver and the argument are not the same object

Re: [Pharo-project] About ~= and ~~

2011-10-12 Thread Levente Uzonyi
On Thu, 13 Oct 2011, Igor Stasenko wrote: On 12 October 2011 23:22, Levente Uzonyi le...@elte.hu wrote: On Wed, 12 Oct 2011, Mariano Martinez Peck wrote: On Wed, Oct 12, 2011 at 5:38 PM, Levente Uzonyi le...@elte.hu wrote: On Wed, 12 Oct 2011, Clara Allende wrote:  Hi guys, I'm

Re: [Pharo-project] About the scope of classVariables

2011-10-07 Thread Levente Uzonyi
On Fri, 7 Oct 2011, Igor Stasenko wrote: On 7 October 2011 11:16, Frank Shearar frank.shea...@gmail.com wrote: On 7 October 2011 08:42, Lukas Renggli reng...@gmail.com wrote: I do not understand why classVariables cannot shadow globals and take precedence over them. When I define a

Re: [Pharo-project] New problem with rehash [WAS] Re: MethodDictionary fast #rehash

2011-09-27 Thread Levente Uzonyi
On Tue, 27 Sep 2011, Mariano Martinez Peck wrote: Hi. With this latest new #rehash there is a problem. I took Levente changes from Squeak. @Levente: the same happens in squeak so this may interest you. The #rehash is right now rehash | newInstance | newInstance := self species new:

Re: [Pharo-project] Two objects with same hash

2011-09-23 Thread Levente Uzonyi
On Fri, 23 Sep 2011, Marcus Denker wrote: On Sep 23, 2011, at 1:08 PM, Denis Kudriashov wrote: Hello, I use hash message to generate unique object id. (unique between current memory objects). And I catch situation when two objects has same hash value. Objects has been created in loop

Re: [Pharo-project] what are the frameworks to develop 3d interactive world like codecity in Pharo

2011-09-21 Thread Levente Uzonyi
On Wed, 21 Sep 2011, Alexandre Bergel wrote: I think that depending on your goals both approaches are good: - binding to OpenGL it would be very cool to have a working/solid solution in this area. As Henrik and Marcus said, native support would be great. If I remember correctly, Lumiere

Re: [Pharo-project] yield current Thread

2011-09-21 Thread Levente Uzonyi
On Wed, 21 Sep 2011, Stéphane Ducasse wrote: Processor yield That will only allow processes to run which have the same priority as the current process. Higher priority processes will simply interrupt the current process if they can run, lower priority processes won't have a chance to run,

Re: [Pharo-project] Should a serializer do something in particular with weak references?

2011-09-20 Thread Levente Uzonyi
On Tue, 20 Sep 2011, Mariano Martinez Peck wrote: Hi guys. Martin and I were discussing whether we should do something in particular in Fuel with Weak references, such as WeakArray. Should we serialize it the same way we serialize all objects, or should we do something special? what could be

Re: [Pharo-project] Zinc HTTPS

2011-09-12 Thread Levente Uzonyi
On Mon, 12 Sep 2011, Norbert Hartl wrote: Am 12.09.2011 um 09:44 schrieb Sven Van Caekenberghe: On 12 Sep 2011, at 09:21, Norbert Hartl wrote: Is the SSL plugin the one from Andreas that has license issues? Yes. What is the license issue? It is MIT. Great, thanks. And the archive

Re: [Pharo-project] [Vm-dev] Re: [squeak-dev] what's the standard way of finding out from Smalltalk if one is running headless?

2011-08-31 Thread Levente Uzonyi
On Wed, 31 Aug 2011, Igor Stasenko wrote: On 31 August 2011 18:28, Eliot Miranda eliot.mira...@gmail.com wrote: I thought to test things like Display extent DisplayScreen actualScreenDepth but these either fall back to values in the pre-headless image or don't fail and answer the actual

Re: [Pharo-project] Omnibrowser in 1.4

2011-08-30 Thread Levente Uzonyi
On Tue, 30 Aug 2011, Igor Stasenko wrote: On 30 August 2011 02:58, Douglas Brebner squeakli...@fang.demon.co.uk wrote: On 29/08/2011 21:41, Stéphane Ducasse wrote: So may be you do not like Ring and this is ok. Now I want an abstraction so that we can build a remote browser by plugging

Re: [Pharo-project] Pharo 1.4

2011-08-29 Thread Levente Uzonyi
On Mon, 29 Aug 2011, Stéphane Ducasse wrote: Roel typer does inference using method bodies and I do not think that it takes the receiver. Now the problem is that we could take the expression (here 100) and evaluate and get its class (and catch error in case you wrote jlkkj Now what if the

  1   2   3   4   5   6   7   >