Re: [Pharo-users] looking for a tutorial on sounds in Pharo

2016-10-16 Thread Grigory Hatsevich
thanks! On Sun, 16 Oct 2016 21:47:22 +0700, stepharo wrote: https://ci.inria.fr/pharo-contribution/view/Books/job/PharoReadyForReviews/19/artifact/book-result/Sound/Sound.pdf Le 16/10/16 à 13:29, p...@highoctane.be a écrit :

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

2016-10-16 Thread CodeDmitry
I define Magic as "An opaque abstraction or an abstraction you think is opaque until you learn better.", to a beginner, everything is deeply Magical. That said, much of Smalltalk's opaqueness is not due to the language, but due to me being a beginner. I'm sure there's a way to actually force

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

2016-10-16 Thread Charlie Robbats
Here, Dmitry, try this code in playground...maybe helps you understand | lookupClosure | lookupClosure := []. lookupClosure := [:cls :selector | (cls == nil) ifTrue: [Warning signal: ('selector lookup failure: ', selector)]. (cls methodDictionary at: selector

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

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 9:11 PM, Charlie Robbats wrote: > Here, Dmitry, try this code in playground...maybe helps you understand > > | lookupClosure | > lookupClosure := []. > lookupClosure := [:cls :selector | > (cls == nil) > ifTrue: [Warning signal:

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

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 12:44 PM, CodeDmitry wrote: > 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

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

2016-10-16 Thread Ben Coman
On Sun, Oct 16, 2016 at 8:38 PM, Nicolai Hess wrote: > Am 16.10.2016 14:35 schrieb "CodeDmitry" : >> >> I define Magic as "An opaque abstraction or an abstraction you think is >> opaque until you learn better.", to a beginner, everything is deeply >>

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

2016-10-16 Thread Charlie Robbats
Oops, that should be.. | array lookupClosure performClosure | lookupClosure := []. lookupClosure := [:cls :selector | (cls == nil) ifTrue: [Warning signal: ('method lookup failure: ', selector)]. cls methodDictionary at: selector

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

2016-10-16 Thread Charlie Robbats
Here's a little change to get your #perform:withArguments: implemented. | array lookupClosure method | array := { 1 }. lookupClosure := []. lookupClosure := [:cls :selector | (cls == nil) ifTrue: [Warning signal: ('method lookup failure: ', selector)]. cls methodDictionary

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

2016-10-16 Thread Charlie Robbats
and a little block cleanup: | array lookupClosure performClosure | lookupClosure := []. lookupClosure := [:cls :selector | (cls == nil) ifTrue: [Warning signal: ('method lookup failure: ', selector)]. cls methodDictionary at: selector

Re: [Pharo-users] looking for a tutorial on sounds in Pharo

2016-10-16 Thread stepharo
https://ci.inria.fr/pharo-contribution/view/Books/job/PharoReadyForReviews/19/artifact/book-result/Sound/Sound.pdf Le 16/10/16 à 13:29, p...@highoctane.be a écrit : https://github.com/xmessner/PharoSoundTutorial/blob/master/Sound_en.pier On Sun, Oct 16, 2016 at 1:16 PM, Grigory Hatsevich

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

2016-10-16 Thread CodeDmitry
I tried so hard to find an example of Ruby using smalltalk message syntax. You can do something like: class Dictionary attr_accessor :dict def initialize() @dict = {} end def at(*args) if (args.length == 1) then return @dict[args[0]]

[Pharo-users] looking for a tutorial on sounds in Pharo

2016-10-16 Thread Grigory Hatsevich
Hi! I'm looking for a tutorial about sound generation in Pharo. I've found "PharoSoundTutorial" (https://github.com/xmessner/PharoSoundTutorial) but it is in French. Is there an English version of this tutorial or some other English text about sounds in Pharo?

Re: [Pharo-users] looking for a tutorial on sounds in Pharo

2016-10-16 Thread p...@highoctane.be
https://github.com/xmessner/PharoSoundTutorial/blob/master/Sound_en.pier On Sun, Oct 16, 2016 at 1:16 PM, Grigory Hatsevich wrote: > Hi! I'm looking for a tutorial about sound generation in Pharo. I've found > "PharoSoundTutorial"

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

2016-10-16 Thread Tudor Girba
Hi, > On Oct 16, 2016, at 10:41 AM, CodeDmitry wrote: > > I was actually curious about this in Ruby as well, since Ruby also doesn't > have the Smalltalk message syntax. > > I figure that the magic behind it is that Smalltalk takes strings like "dict > at: 'foo' put:

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

2016-10-16 Thread Dimitris Chloupis
"I was actually curious about this in Ruby as well, since Ruby also doesn't have the Smalltalk message syntax. " Actually, it does when i said in my reply "The only other languages that have such an implementation are ObjC and Ruby which borrow this directly from Smalltalk." What I mean is

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

2016-10-16 Thread CodeDmitry
"Messages are very hard to implement if not impossible because they required that calls don't exist or be disabled, otherwise the existence of message is pointless. And since no language I am aware of allow you to disable calls and replace them with messages , what you trying to do is pointless ."

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

2016-10-16 Thread Dimitris Chloupis
Still you don't understand how Ruby syntax works. Every method call every function you see is basically a masquerade message sent. Those calls are just syntactic sugar, they don't exist, they are there to make people to feel more comfortable giving them the illusion that is a call because it looks

Re: [Pharo-users] looking for a tutorial on sounds in Pharo

2016-10-16 Thread Dimitris Chloupis
I have used the Sound library for my project ChronosManager to play back an alarm sound, its an easy to use library but quite powerful. Last time I checked could not get it working on Linux but it worked like a charm on MacOS and I think it worked well also on windows. Is there something specific

[Pharo-users] using zinc wss instead of ws on windows or linux machine

2016-10-16 Thread itayy
hi all, i was building a an app with pharo and zinc, after i finished the first part i wanted to upgrade the security and so to move from ws to wss. the server is on a windows based machine, and when i change from ws to wss nothing happens. im using pharo 5 as the server. do i need to

Re: [Pharo-users] using zinc wss instead of ws on windows or linux machine

2016-10-16 Thread Sven Van Caekenberghe
> On 16 Oct 2016, at 18:34, itayy wrote: > > hi all, > i was building a an app with pharo and zinc, > after i finished the first part i wanted to upgrade the security and so to > move from ws to wss. > the server is on a windows based machine, and when i change from