Re: [Pharo-users] The Ultimate Smalltalk Tutorial

2016-10-15 Thread stepharo
Hi Horrido The tinyblog tutorial is a tutorial on build a real little web application. We worked on it with Olivier and we decided to reuse an adpat it for the mooc. If you want to help what we are trying to do is the following (but I need time hence you can help): - take the mooc vers

[Pharo-users] OSProcess lock image

2016-10-15 Thread Hilaire
Hello, On Pharo4, when I type the command: OSProcess waitForCommand: 'ls' it locks the image, I can get back control with [Alt]-. With the same image and VM, this command was previously working, even called from a Seaside component. Any idea? Thanks Hilaire -- Dr. Geo http://drgeo.

Re: [Pharo-users] The Ultimate Smalltalk Tutorial

2016-10-15 Thread horrido
Excellent suggestion! I shall look into it. Thanks. -- View this message in context: http://forum.world.st/The-Ultimate-Smalltalk-Tutorial-tp4918859p4918930.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] OSProcess lock image

2016-10-15 Thread Paul DeBruicker
I have no idea why it happens but sometimes OSProcess resumes working after doing a OSProcessAccessor initialize. in a workspace. Hope this helps HilaireFernandes wrote > Hello, > > On Pharo4, when I type the command: > > OSProcess waitForCommand: 'ls' > > it locks the image,

[Pharo-users] location of package SkipLists from ConfigurationOfFuzzySearch?

2016-10-15 Thread PAUL DEBRUICKER
Hi - I'm trying to load this package http://smalltalkhub.com/#!/~hernan/FuzzySearcher and MC cannot locate the SkipLists package. Is it published anywhere? Thanks Paul

Re: [Pharo-users] location of package SkipLists from ConfigurationOfFuzzySearch?

2016-10-15 Thread Esteban Lorenzano
Hi, you have a configuration there… I didn’t tried (so I’m not sure it will work), but I guess you need to use it to have all dependencies loaded. cheers, Esteban > On 15 Oct 2016, at 20:39, PAUL DEBRUICKER wrote: > > Hi - > > I'm trying to load this package > http://smalltalkhub.com/#!

Re: [Pharo-users] location of package SkipLists from ConfigurationOfFuzzySearch?

2016-10-15 Thread Paul DeBruicker
Hi Esteban, The config stops because the SkipLists package isn't in the FuzzySearcher repo and whatever repo it is in isn't set as the repository to look in. Do you know what repo the SkipLists package is in? Thanks Paul EstebanLM wrote > Hi, > > you have a configuration there… I didn’t t

Re: [Pharo-users] location of package SkipLists from ConfigurationOfFuzzySearch?

2016-10-15 Thread Hernán Morales Durand
Hi Paul, May be SkipLists was included in Pharo images at the time I published the package. You can find it here: http://www.squeaksource.com/skiplists Cheers, Hernán 2016-10-15 15:39 GMT-03:00 Paul DeBruicker : > Hi Esteban, > > The config stops because the SkipLists package isn't in the Fuz

[Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread CodeDmitry
I am trying to do a JavaScript experiment to make Objects behave like Smalltalk objects. example: "reminder: Smalltalk arrays start at 1." |arr| a := Array new: 1. a at: 1 put: 'Hello, World'. Here, the Smalltalk array has a message "at: index put: value" which is defined ma

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread Gabriel Cotelli
The message is "at:put:". It's a single message send. I encourage you to try the ProfStef tutorial to understand the basis. On Oct 16, 2016 01:17, "CodeDmitry" wrote: > I am trying to do a JavaScript experiment to make Objects behave like > Smalltalk objects. > > example: > > "reminder: Sm

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread CodeDmitry
I understand that it is a single message send, but to know how to handle the message at runtime, the parser needs to somehow determine where the implementation of that message is. It must do a lookup based on multiple keys(at, and put), which is really confusing. "methods" are easy to look up becau

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread Charlie Robbats
I think the nub of your confusion is twofold. The method #at:put: is a keyword method and it isn't right to think o them as two keys. It is one compound key and unlike most every other system, Smalltalk keyword message sends allow the programmer to name each argument. This is very fine indeed.

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread CodeDmitry
So "at: x put: y" translates to a method named #at:put:(or "at:put:")? |dict| dict := Dictionary new. dict at: 'foo' put: 'bar'. So javascript equivalent would be(assuming the Dictionary object existed). var dict; dict = new Dictionary; dict['at:put:']('foo', 'bar'); -- View this message in

Re: [Pharo-users] How do Smalltalk disambiguate messages?

2016-10-15 Thread Tudor Girba
The value of the method name is at:put: # denotes a Symbol, which is a subclass of String. The difference between the two is that two symbols with the same value will actually be the same object, while this is not necessarily the case with strings: stringA := String newFrom: 'string'. stringB :