Re: [Pharo-dev] [squeak-dev] Why do we have SmallDictionary?

2018-06-08 Thread Andres Valloud
In addition, open addressing with linear probing has superior cache line read behavior (no indirection / random traversal, and if the first probe misses the second one was likely cached by the first one). On 6/8/18 1:37 , Levente Uzonyi wrote: On Fri, 8 Jun 2018, Clément Bera wrote: Hi Max,

Re: [Pharo-dev] float & fraction equality bug

2017-11-09 Thread Andres Valloud
Because by definition, a floating point value is of the form +/- 2^e * m for some 0 <= m < M, and e in some range of values (some positive, some negative). There are other special cases that don't matter here, such as NaN, INF, denormals, etc. So now set up the equality you want. Since

Re: [Pharo-dev] Odd (and wrong) implementation of Float>>sign

2017-01-31 Thread Andres Valloud
Martin, On 1/30/17 16:41 , Martin McClure wrote: IEEE-754 does not define a "sign" operation. ANSI Smalltalk and ISO/IEC 10967 do, so it makes sense to provide a #sign that conforms to those standards -- answering -1, 0, or 1. IEEE-754 does define an isSignMinus operation, answering true or

Re: [Pharo-dev] Odd (and wrong) implementation of Float>>sign

2017-01-27 Thread Andres Valloud
The 2007 update of 10967 is somewhat more helpful. It replaces the "sign" operation with one called "signum" which returns 1, -1, or NaN. It returns 1 for positive zero and positive infinity, and -1 for negative zero and negative infinity. If given a qNaN, it returns a qNaN. If given a signaling

Re: [Pharo-dev] roundTo: strange behavior

2016-11-25 Thread Andres Valloud
Hey Martin... I agree on the confusion. > I still recommend not rounding the number itself, but rounding the printing of the number Yes. If "rounding" had well specified behavior that was at least somewhat reasonable (e.g. return the closest floating point value and round to even if tied),

Re: [Pharo-dev] C Variadic Functions via UFFI?

2016-09-23 Thread Andres Valloud
self ffiCall: #(int printf(String format, int number)) that will work… yes is not the best in the word, but it works :) Esteban On 23 Sep 2016, at 08:11, Andres Valloud <avall...@smalltalk.comcastbiz.net> wrote: I wouldn't do that if I were you. The manual says fcntl() can be a

Re: [Pharo-dev] C Variadic Functions via UFFI?

2016-09-23 Thread Andres Valloud
I wouldn't do that if I were you. The manual says fcntl() can be a macro, and you can't call a macro from an FFI. http://pubs.opengroup.org/onlinepubs/009695399/basedefs/fcntl.h.html On 9/22/16 15:12 , Mariano Martinez Peck wrote: Hi guys, I am wondering if I can wrap some variadic

[Pharo-dev] Marquette Camp Smalltalk September 15-18th

2016-08-09 Thread Andres Valloud
Hi! Your Camp Smalltalk crew has been at it for a while, and we are very happy to announce a Camp Smalltalk at Marquette, Michigan, on September 15-18th. The event's website is at http://mqt.st. We are generously hosted by Northern Michigan University (http://www.nmu.edu), where John Sarkela

Re: [Pharo-dev] Pharo website broken on HTTPS

2016-08-05 Thread Andres Valloud
Also FYI the Pharo Consortium's website at http://consortium.pharo.org/ displays a Proxy Error. On 8/5/16 7:35 , Esteban A. Maringolo wrote: Hi all, The Pharo website doesn't work properly if you access it vía HTTPS (and Chrome), apparently some resources (JS and CSS) are explicitly linked to

[Pharo-dev] [Smalltalks 2015] --- Invitation

2015-08-18 Thread Andres Valloud
The Fundación Argentina de Smalltalk proudly invites you to one of the premier Smalltalk conferences in the world. Let's meet at Buenos Aires, November 11-13! For more details, see the invitation here: http://www.fast.org.ar/Smalltalks2015-invitation.pdf

[Pharo-dev] Camp Smalltalk PDX --- August 21st through the 23rd

2015-06-30 Thread Andres Valloud
Camp Smalltalk Portland 2015 is go for August 21st through the 23rd! (and if you arrive earlier on the 20th that's cool too) Please register for the event here: https://www.picatic.com/event14352674835773927 Help us by filling in the questions so you can get your event shirt. And also see

[Pharo-dev] Camp Smalltalk PDX

2015-03-19 Thread Andres Valloud
A group of Smalltalkers have been discussing the possibility of having a Camp Smalltalk in Portland Oregon, August 20-23. If you think you might be interested in attending such a gathering, please let us know filling our short survey: http://goo.gl/forms/Di0rFPMcLu

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-18 Thread Andres Valloud
Side comments... Some code just has to be written in C, otherwise you cannot rely on the behavior being correct and ultimately that's a major show stopper for anything you might want to call production code. Anything having to do with calling operating system libraries is a typical example

[Pharo-dev] [Smalltalks 2014] --- Invitation

2014-09-08 Thread Andres Valloud
1. Invitation. The Fundación Argentina de Smalltalk (FAST, http://www.fast.org.ar) invites you to the 8th International Conference on Smalltalk Technologies (Smalltalks), to be held from November 5th through November 7th at the Universidad Tecnológica Nacional,

Re: [Pharo-dev] Memory limit problems on Windows VM

2014-07-19 Thread Andres Valloud
LARGEADDRESSAWARE, so more memory space is enabled for 64bits Windows OSs. Thanks guys Oscar On Thu, Jul 17, 2014 at 11:03 PM, Andres Valloud avall...@smalltalk.comcastbiz.net mailto:avall...@smalltalk.comcastbiz.net wrote: I worked on that switch before, and IIRC it's just

Re: [Pharo-dev] Memory limit problems on Windows VM

2014-07-19 Thread Andres Valloud
Does the VM make a single memory allocation to load the image file? On 7/19/14 17:20 , Ben Coman wrote: Andres Valloud wrote: Keep in mind that, depending on how images are loaded, you won't be able to load images larger than about 2gb... you might want to test that. Can you hint what those

Re: [Pharo-dev] Memory limit problems on Windows VM

2014-07-17 Thread Andres Valloud
I worked on that switch before, and IIRC it's just a linker switch that marks executables a certain way. So, if you have imagecfg.exe handy... http://support.microsoft.com/kb/297812 On 7/17/14 19:25 , Oscar E. A. Callaú wrote: Well. It seems that Pharo vms must be compiled with that option

Re: [Pharo-dev] Memory limit problems on Windows VM

2014-07-16 Thread Andres Valloud
/LARGEADDRESSAWARE?... I don't think /3GB is even recognized in 64 bit Windows... http://support.microsoft.com/default.aspx?scid=889654 On 7/16/14 14:49 , Eliot Miranda wrote: On Wed, Jul 16, 2014 at 2:21 PM, Oscar E. A. Callaú oscar.apo...@gmail.com mailto:oscar.apo...@gmail.com wrote:

Re: [Pharo-dev] Division isn't correct

2014-07-12 Thread Andres Valloud
not round true or false to the nearest float, so it's even nicer! On 7/11/14 17:19 , Nicolas Cellier wrote: 2014-07-12 1:29 GMT+02:00 Andres Valloud avalloud@smalltalk.__comcastbiz.net mailto:avall...@smalltalk.comcastbiz.net mailto:avalloud@smalltalk

Re: [Pharo-dev] Division isn't correct

2014-07-12 Thread Andres Valloud
difference is that we do not round true or false to the nearest float, so it's even nicer! On 7/11/14 17:19 , Nicolas Cellier wrote: 2014-07-12 1:29 GMT+02:00 Andres Valloud avalloud@smalltalk.__comcastb__iz.net http

Re: [Pharo-dev] Division isn't correct

2014-07-11 Thread Andres Valloud
I don't think it makes sense to compare floating point numbers to other types of numbers with #=... there's a world of approximations and other factors hiding behind #=, and the occasional true answer confuses more than it helps. On top of that, then you get x = y = x hash = y hash, and so

Re: [Pharo-dev] Division isn't correct

2014-07-11 Thread Andres Valloud
I don't think it makes sense to compare floating point numbers to other types of numbers with #=... there's a world of approximations and other factors hiding behind #=, and the occasional true answer confuses more than it helps. On top of that, then you get x = y = x hash =

Re: [Pharo-dev] about ~=

2014-06-27 Thread Andres Valloud
Sp, speaking of mathematical precedence and all that, anyone up to looking at the IEEE-754 spec and making one's Smalltalk of choice comply with _all_ the requirements? Or how about implementing decimal floats? On 6/26/14 12:01 , p...@highoctane.be wrote: Couldn't we just have an expression

Re: [Pharo-dev] [squeak-dev] Re: String #=

2014-05-28 Thread Andres Valloud
Hey Philippe, Yes but #= is blissfully unaware of normalization in Squeak/Pharo. In fact AFAIK Squeak/Pharo is unaware of normalization. Having a short look at it doesn't even look as if case insensitivity worked in Squeak/Pharo outside of Latin-1 (I could be wrong though). Yes, that's what I

Re: [Pharo-dev] [squeak-dev] Re: String #=

2014-05-27 Thread Andres Valloud
What is going to happen when one compares two general Unicode series of characters that represent the same string but differ in normalization? Wouldn't the size test would result in false negatives? http://unicode.org/reports/tr15/ I'm asking because I haven't seen any discussion on the

Re: [Pharo-dev] 32 bits and 64 bits VM

2014-05-16 Thread Andres Valloud
* 64-bit aware hashing functions as the current ones are 32-bit centric. This issue might not be the most urgent because the 32 bit hash functions should be sufficient to deal with at least moderately sized 64 bit images. But how much stuff would you have to allocate before seeing a

Re: [Pharo-dev] [Inspiration] Toward a better programming

2014-04-02 Thread Andres Valloud
Hey Doru, I was going to ask so is that a language or a library?... On 4/1/14 23:12 , Tudor Girba wrote: Indeed, I read this article several times over the last couple of days. This work is impressive particularly when combined with the cloud part. The language itself is less interesting for

Re: [Pharo-dev] [Bug] IdentitySetsize

2014-03-02 Thread Andres Valloud
So it seems the problem is with Fuel rather than IdentitySet, no? On 3/2/14 10:47 , Max Leske wrote: During serialization the IdentitySet size is stored and later its objects. During that step, #do:

Re: [Pharo-dev] [Bug] IdentitySetsize

2014-03-02 Thread Andres Valloud
So, just out of curiosity, how does the IdentitySet get damaged? On 3/2/14 11:28 , Max Leske wrote: On 02.03.2014, at 20:12, Andres Valloud avall...@smalltalk.comcastbiz.net wrote: So it seems the problem is with Fuel rather than IdentitySet, no? No. Asking an IdentitySet for its size

Re: [Pharo-dev] hashMultiply

2014-03-02 Thread Andres Valloud
AM, Andres Valloud avall...@smalltalk.comcastbiz.net mailto:avall...@smalltalk.comcastbiz.net wrote: Hello... On 2/25/14 1:17 , p...@highoctane.be mailto:p...@highoctane.be wrote: I am currently reading through the Hashing in Smalltalk book

Re: [Pharo-dev] hashMultiply

2014-02-26 Thread Andres Valloud
Hello... On 2/25/14 18:32 , Martin McClure wrote: Andres and I have an ongoing discussion on this topic. :-) :)... And #bitShift *should* be faster. Ok, but how much faster? 64x64 bit multiplication on modern x86 is just 8 cycles (!), and there will likely be parallelism done by the

Re: [Pharo-dev] hashMultiply

2014-02-26 Thread Andres Valloud
all of the mapping phase results to the reduce nodes. I am surprised to see that Smalltalk vendors haven't jumped in that space. Phil On Wed, Feb 26, 2014 at 2:04 AM, Andres Valloud avall...@smalltalk.comcastbiz.net mailto:avall...@smalltalk.comcastbiz.net wrote: Hello... On 2/25/14 1

Re: [Pharo-dev] hashMultiply

2014-02-25 Thread Andres Valloud
Hello... On 2/25/14 1:17 , p...@highoctane.be wrote: I am currently reading through the Hashing in Smalltalk book (http://www.lulu.com/shop/andres-valloud/hashing-in-smalltalk-theory-and-practice/paperback/product-3788892.html) and, my head hurting notwithstanding, there are indeed a ton

Re: [Pharo-dev] [GSoC ideas] Pharo - Derreferencer

2014-02-16 Thread Andres Valloud
On 2/16/14 3:38 , Levente Uzonyi wrote: On Sat, 15 Feb 2014, Alejandro Infante wrote: Well, I tried today using that to release some memory used by Roassal. Let's say all the instances of ROElement. So I executed the following code: ROElement allInstances do: [:el | el becomeForward: nil ].

Re: [Pharo-dev] [GSoC ideas] Pharo - Derreferencer

2014-02-15 Thread Andres Valloud
FYI writing any decent production quality tool takes way more than 1 hour. IME writing *two* reference finders, it takes a bunch of effort to make them work correctly, reliably, quickly, and in a useful way. On 2/15/14 6:31 , Alexandre Bergel wrote: Well... I do no think so. There is a fair

Re: [Pharo-dev] [GSoC ideas] Pharo - Derreferencer

2014-02-15 Thread Andres Valloud
can't really do becomeForward: (or it won't help), e.g. with a class (this would fall under the reliably category). We are all capable of writing random workspace code, I don't think this is the idea for these projects. On 2/15/14 16:34 , Levente Uzonyi wrote: On Sat, 15 Feb 2014, Andres Valloud

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-14 Thread Andres Valloud
Whoops, it was an old bug after all! :( On 1/13/14 4:51 , Nicolai Hess wrote: Yes, chaging the system time is a known issue for pharos linux-vm: 11324 https://pharo.fogbugz.com/default.asp?11324 Image freeze when changing system time

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-13 Thread Andres Valloud
? There have been mysterious time(r) related problems in the past, it would be good to follow up on something concrete and repeatable. Thx, Sven On 12 Jan 2014, at 04:41, Andres Valloud avall...@smalltalk.comcastbiz.net wrote: Somewhat related only, but FYI something I've noticed with Cog VMs

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-13 Thread Andres Valloud
confirm that same problem exists in pharo-vm with pharo-image? Esteban On 13 Jan 2014, at 09:37, Andres Valloud avall...@smalltalk.comcastbiz.net wrote: Try the following on OS X... 1. Launch Pharo (Cuis). 2. Go to the System Settings time panel. 3. Disable automatic time updates. 4. Bump

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-13 Thread Andres Valloud
(of course, make sure you're online when you re-enable automatic time keeping so that NTP bumps the clock backwards... if not, do it manually) On 1/13/14 4:10 , Andres Valloud wrote: My friend, you need to believe :)... Ok, so with Cuis the image hangs (unresponsive to input) when the clock

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-13 Thread Andres Valloud
My friend, you also need to believe :)... Checked with Pharo 3.0, misbehavior reproduced. I'm done hanging various versions of Pharo and Cuis on my machine. It's someone else's turn now :D. On 1/13/14 4:17 , Marcus Denker wrote: On 13 Jan 2014, at 13:10, Andres Valloud avall

Re: [Pharo-dev] Pharo 3.0 not responding to mouse or keyboard after launch

2014-01-11 Thread Andres Valloud
Somewhat related only, but FYI something I've noticed with Cog VMs is that if you bump the computer clock forward by e.g. 30 seconds then Cuis remains frozen for 30 seconds. Under the assumption that Cuis and Pharo are close enough, and considering that alt+. does not bring up a debugger

[Pharo-dev] Smalltalks 2013 video now available

2013-11-20 Thread Andres Valloud
Check out the playlist here: http://www.youtube.com/playlist?list=PLCGAAdUizzH027lLWKXh_44cGuEsay7-R Make sure you don't miss Smalltalks 2014! Andres.

Re: [Pharo-dev] Efficient string concatenation - proposed new

2013-11-17 Thread Andres Valloud
Well, maybe, although it's interesting to consider how many strings streams need to beat string concatenation. Moreover, streams aren't hyper efficient either... On 11/16/13 10:09 , b...@openinworld.com wrote: Code Critic rule Optimization String concatenation instead of streams says:

Re: [Pharo-dev] Efficient string concatenation - proposed new

2013-11-17 Thread Andres Valloud
The details really don't fit in an email, however the 2nd volume of my Fundamentals book already has an analysis of this issue and hence my previous comment. On 11/17/13 8:45 , Stéphane Ducasse wrote: this one is surprising to me [ 'foo', 'bar', 'baz', 'foobar' ] bench. '2,030,000 per

Re: [Pharo-dev] Efficient string concatenation - proposed new

2013-11-17 Thread Andres Valloud
We’re only measuring execution speed, not memory allocation, which is important too. Yes. And besides having to collect the garbage at some point, allocation can be costly because the VM has to zero out the string bytes (or nil them if the string is not encoded) and then write on those

Re: [Pharo-dev] Pharo VM latest on the Debian 7

2013-08-08 Thread Andres Valloud
Are you saying the Pharo VM requires glibc version 2.15 of March 2012, and that consequently the Pharo VM as compiled won't run on any Linux distro older than 17 months? On 8/8/13 5:52 , Igor Stasenko wrote: Yes. It is known issue. Now there's little we can do, except from building VM for