Re: [Pharo-users] Hash collision

2016-12-18 Thread Martin McClure
On 12/18/2016 02:29 AM, Andres Valloud wrote: The primitive and the primitive failure code should behave the same? You think the primitive is faulty? I haven't looked at the primitive code, but it just fails when given a Float. From the name, I'd guess that it's designed for a byte object. Th

Re: [Pharo-users] Hash collision

2016-12-19 Thread Martin McClure
On 12/19/2016 01:27 AM, Andres Valloud wrote: At first glance, that the failure code only sees "two" things when it should see "eight" seems to be problematic. Perhaps the primitive insists on hashing byte objects, and there is a distinction between "byte" objects and "word" objects (whatever

Re: [Pharo-users] Strange behavior

2017-02-21 Thread Martin McClure
I've sometimes thought it would be nice if the Finder were to list any *exact* match first, then puts the inexact matches below. It would save considerable scrolling in cases like this. Regards, -Martin On 02/19/2017 03:24 AM, Sven Van Caekenberghe wrote: > Because 'now' is a case insensitive su

Re: [Pharo-users] why is concat of Symbols a string?

2017-03-05 Thread Martin McClure
On 03/05/2017 03:01 AM, Sven Van Caekenberghe wrote: I also think that allowing concatenation on Symbols does not violate their immutability contract. As a thought experiment, what could be the problem with adding Symbol >> , arg ^ (self , arg) asSymbol ? Aside from the infinite rec

Re: [Pharo-users] why is concat of Symbols a string?

2017-03-06 Thread Martin McClure
On 03/06/2017 11:17 AM, Igor Stasenko wrote: > You got me with this... > Hey, stop confusing people, put #== everywhere! :) > > But if seriously, #assert:equals: hides this detail from us, that's why > it looks confusing.. > IMO, for given case it would be better to use just straight #assert:, >

Re: [Pharo-users] PetitParser question parsing HTML meta tags

2017-03-30 Thread Martin McClure
On 03/30/2017 10:58 AM, PAUL DEBRUICKER wrote: > I can't figure out how to change the startParser parser to accept the second > idiom. And maybe there's a better approach altogether. Anyway. If anyone > has any ideas on different approaches I'd appreciate learning them. This looks like a jo

Re: [Pharo-users] Other format to Filetree

2016-10-21 Thread Martin McClure
Vitor Medina Cruz wrote: > I was wondering: is there another format available for Filetree? Hi Vitor, I'm not sure exactly what you're looking for. The current package formats in Pharo are, as you probably know, Filetree and MCZ (Monticello archives). I find Filetree easier to use, managing sou

Re: [Pharo-users] Other format to Filetree

2016-10-21 Thread Martin McClure
On 10/21/2016 05:51 PM, Vitor Medina Cruz wrote: > Thank you for the answers! Actually my question has a rather silly > reason: I find it difficult to navigate and peek at code in the current > format. I would like to show ST code to other people through GitHub — it > is pretty common for me to dis

Re: [Pharo-users] Use of -> in Pharo Code

2016-11-29 Thread Martin McClure
On 11/29/2016 06:48 PM, Bruce Prior wrote: I have been away from smalltalk coding for a while. On returning to the fold, I often see the use of a right arrow in code. Is this something new? Today in a Teapot app example, I saw, Teapot on GET: '/welcome' -> 'Hello World!'; start. What is the

Re: [Pharo-users] Hash collision

2016-12-10 Thread Martin McClure
On 12/09/2016 09:45 AM, Ben Coman wrote: The suggested fix depended on being willing to let go of byte ordering (which we might not want different results on different platforms) Float>>hash ^ByteArray hashBytes: self startingWith: self species hash This fix contains a good idea, bu

Re: [Pharo-users] Hash collision

2016-12-13 Thread Martin McClure
On 12/13/2016 08:39 AM, Andres Valloud wrote: > I would have expected the floats to be a byte object of size 8. Why is > this conversion needed? Is somehow the primitive thinking the float has > size 2? Or is the primitive hashing 32 bits at a time? The prim used > to be a C version of the byte

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-21 Thread Martin McClure
On 04/21/2018 08:25 PM, Gregg Williams wrote: > Hi—I’m a beginner in Pharo Hi Gregg, welcome! > and am working my way through Pharo by Example 5.0 (PbE) and Learning OOP and > TDD with Pharo (LOTWP). > > I’m currently going through 7.4 Designing a test, in LOTWP, which covers > testing whether a

[Pharo-users] Re: [Pharo-dev] [ANN] Libgit 1.0.0 in Pharo 9

2020-10-12 Thread Martin McClure
Thanks, this is great news. Are there instructions on how to make P9 actually use the new version of libgit2? I see that the stable Linux VM for 9.0 does include "libgit2.1.0.0.so" but Pharo is still loading libgit2.so.0.25.1. ...this may be because Pharo's libgit2.1.0.0.so has not-found dep

[Pharo-users] Re: [Pharo-dev] [ANN] New Pharo VM released (v8.6.1)

2020-11-26 Thread Martin McClure
Is this new VM available for Linux? I only see Windows and Mac VMs that are dated 2020-11-02. In the launcher (launcher 2.2, still the latest AFAICT) refreshing the 90-x64 VM just re-downloads the one from 2020-02-11. Thanks, -Martin On 11/2/20 7:48 AM, teso...@gmail.com wrote: Hi, this

[Pharo-users] Re: [Pharo-dev] [ANN] New Pharo VM released (v8.6.1)

2020-11-27 Thread Martin McClure
as I can fix it. I want to push OBS to the last step to be productive. There is a lot of work on that and we need to profit it. The headless VM in Linux has been updated to the latest and that one has not been rollbacked. On Fri, Nov 27, 2020 at 5:48 AM Martin McClure wrote: Is this new VM