Pharo-dev
By thread
pharo-dev@lists.pharo.org
By month
Messages by month
- ----- 2026 -----
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
March 2014
- 63 participants
- 1299 messages
Re: [Pharo-dev] keybindings problem?
by Andrei Chis
And now there is a bug report
https://pharo.fogbugz.com/f/cases/13102/Sequences-of-bindings-hide-individu…
On Thu, Mar 20, 2014 at 10:09 AM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
> We digged a bit more, and we think it's definitely a bug in Keymapping.
>
> The problem is made obvious by the global shortcuts recently introduced:
>
> https://github.com/pharo-project/pharo-core/commit/d7ff3a9a65273292a764fc8e…
>
> Some shortcuts start with Cmd+o and add something else (for example,
> Cmd+o, Cmd+s opens the settings browser).
>
> The problem is that if you only press Cmd+o, the event is swallowed and
> the Cmd+o defined locally no longer triggers.
>
> If you disable all global keybindings that start with Cmd+o:
> ((self globalCategories flatCollect: [ :each | each allEntries keymaps ])
> select: [ :each | each shortcut beginsWith: $o command ]) do: #disable
>
> you can again use the shortcuts locally:
> ((PluggableTextMorph
> on: 'haba'
> text: #asText
> accept: nil)
> bindKeyCombination: $o command toAction: [ 'does not halt' halt ];
> bindKeyCombination: $/ command toAction: [ 'it halts' halt ])
> openInWorld
>
> Doru
>
>
>
> On Thu, Mar 20, 2014 at 6:54 AM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
>
>> Hi,
>>
>> We (Andrei and I) are experiencing some strange behavior recently related
>> to keybindings.
>>
>> In the example below:
>> - pressing "Cmd+/" brings up the halt
>> - pressing "Cmd+o" does not bring up the halt
>>
>> ((PluggableTextMorph
>> on: 'haba'
>> text: #asText
>> accept: nil)
>> bindKeyCombination: $o command toAction: [ 'does not halt' halt ];
>> bindKeyCombination: $/ command toAction: [ 'it halts' halt ])
>> openInWorld
>>
>> One difference between the two is that Cmd+o is already define inside the
>> text morph, while Cmd+/ is not. However, this used to work in 30796 but
>> does not work in 30798.
>>
>> I do not have time right now to look at it more deeply. Do you know why
>> the behavior changed suddenly? What should we adapt?
>>
>> Doru
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>>
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
March 20, 2014
Re: [Pharo-dev] pharo sound should be working
by J.F. Rick
Sometimes it doesn't crash it. So, I can attempt to play a sound multiple
times without it crashing. But, then, after a little time, it crashes.
Cheers,
Jeff
On Thu, Mar 20, 2014 at 11:26 AM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
> yeah, I'm checking that... it is probably not fixable in the release time :(
> is because alsa and pulseaudio have incompatibilities and it breaks the
> ALSA based sound system... I do not have the time to write a pulse sound.
>
> anyway... what is weird is that it crashes your vm, because it does not do
> that with mine.
>
> Esteban
>
> On 20 Mar 2014, at 11:21, J.F. Rick <self(a)je77.com> wrote:
>
> Some more information. "SoundPlayer boinkScale" works. FMSound does not
> work. When I try playing a sampled sound, I get the following message in
> the terminal:
> sound_Start(default)
> soundStart: snd_add_pcm_handler: Function not implemented
> It also crashes the VM.
>
> It seems like this is a know issue:
> http://bugs.squeak.org/view.php?id=7328
>
> Cheers,
>
> Jeff
>
>
> On Thu, Mar 20, 2014 at 9:44 AM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>
>> the 32bits version of them?
>> I can create a parallels image and try there... no promises :)
>>
>> Esteban
>>
>> On 20 Mar 2014, at 09:42, J.F. Rick <self(a)je77.com> wrote:
>>
>> Any ideas of how to go forward? It seems to work for some people on Linux
>> but not for me. Mine is Ubuntu 13.10 (64 bit). And I have all the
>> libasound2 libraries installed.
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Tue, Mar 18, 2014 at 2:11 PM, J.F. Rick <self(a)je77.com> wrote:
>>
>>> I've tried the zeroconf script. It installs fine and it seems to work
>>> fine until I try to play sound. Then, it crashes. I get the following
>>> message in STD_OUT:
>>> sound_Start(default)
>>> sound_Start: snd_add_pcm_handler: Function not implemented
>>> ./pharo-ui: line 11: 5799 I/O possible "$DIR"/"pharo-vm/pharo" "$@"
>>>
>>> When I did "pharo -help", I get the following as sound drivers:
>>> vm-sound-null
>>> vm-sound-ALSA
>>>
>>> This is on Ubuntu 13.10.
>>>
>>> Cheers,
>>>
>>> Jeff
>>>
>>>
>>> On Mon, Mar 17, 2014 at 5:40 PM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>>>
>>>> the ppa is not updated yet... this is a test version.
>>>> you have to install libasound2>i386 and libasound2-plugins:i386.
>>>> you get the vm with zeroconf: wget -O- get.pharo.org/vmLatest | bash
>>>>
>>>> Esteban
>>>>
>>>> On 17 Mar 2014, at 16:49, J.F. Rick <self(a)je77.com> wrote:
>>>>
>>>> What would I need to do to install it on Ubuntu? Could I just use the
>>>> PPA? If so, what are the commands?
>>>>
>>>> Cheers,
>>>>
>>>> Jeff
>>>>
>>>>
>>>> On Mon, Mar 17, 2014 at 3:45 PM, Esteban Lorenzano <estebanlm(a)gmail.com
>>>> > wrote:
>>>>
>>>>> can you check with the latest vm now?
>>>>>
>>>>> btw... you need to install:
>>>>>
>>>>> sudo apt-get install libasound2-plugins:i386
>>>>>
>>>>> in order to prevent warnings.
>>>>>
>>>>> On 15 Mar 2014, at 00:03, Nicolai Hess <nicolaihess(a)web.de> wrote:
>>>>>
>>>>> 2014-03-14 21:43 GMT+01:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> so I committed some changes to allow soundplugin to work on the
>>>>>> pharovm.
>>>>>> can you please download and test in your platforms?
>>>>>>
>>>>>
>>>>> Works on windows
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> (remember, in linux you need libasound2 dependency installed)
>>>>>>
>>>>>
>>>>> it does not work on linux Ubuntu 12.04.2 LTS
>>>>> (I have installed libasound2).
>>>>>
>>>>> Why don't we include the pulse config again and build the
>>>>> vm-sound-pulse module as well?
>>>>> As I described it in the issue 12493, vm-sound-oss is buildable too.
>>>>> But current
>>>>> linux distribution don't provide the older OSS sound system.
>>>>> (it worked for me with ubuntu 10.04 but not with 12.04)
>>>>>
>>>>>
>>>>>>
>>>>>> cheers,
>>>>>> Esteban
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jochen "Jeff" Rick, Ph.D.
>>>> http://www.je77.com/
>>>> Skype ID: jochenrick
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jochen "Jeff" Rick, Ph.D.
>>> http://www.je77.com/
>>> Skype ID: jochenrick
>>>
>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>>
>>
>>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
>
>
>
--
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick
March 20, 2014
Re: [Pharo-dev] pharo sound should be working
by Esteban Lorenzano
yeah, Iâm checking that⦠it is probably not fixable in the release time :(
is because alsa and pulseaudio have incompatibilities and it breaks the ALSA based sound system⦠I do not have the time to write a pulse sound.
anyway⦠what is weird is that it crashes your vm, because it does not do that with mine.
Esteban
On 20 Mar 2014, at 11:21, J.F. Rick <self(a)je77.com> wrote:
> Some more information. "SoundPlayer boinkScale" works. FMSound does not work. When I try playing a sampled sound, I get the following message in the terminal:
> sound_Start(default)
> soundStart: snd_add_pcm_handler: Function not implemented
> It also crashes the VM.
>
> It seems like this is a know issue: http://bugs.squeak.org/view.php?id=7328
>
> Cheers,
>
> Jeff
>
>
> On Thu, Mar 20, 2014 at 9:44 AM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
> the 32bits version of them?
> I can create a parallels image and try there⦠no promises :)
>
> Esteban
>
> On 20 Mar 2014, at 09:42, J.F. Rick <self(a)je77.com> wrote:
>
>> Any ideas of how to go forward? It seems to work for some people on Linux but not for me. Mine is Ubuntu 13.10 (64 bit). And I have all the libasound2 libraries installed.
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Tue, Mar 18, 2014 at 2:11 PM, J.F. Rick <self(a)je77.com> wrote:
>> I've tried the zeroconf script. It installs fine and it seems to work fine until I try to play sound. Then, it crashes. I get the following message in STD_OUT:
>> sound_Start(default)
>> sound_Start: snd_add_pcm_handler: Function not implemented
>> ./pharo-ui: line 11: 5799 I/O possible "$DIR"/"pharo-vm/pharo" "$@"
>>
>> When I did "pharo -help", I get the following as sound drivers:
>> vm-sound-null
>> vm-sound-ALSA
>>
>> This is on Ubuntu 13.10.
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Mon, Mar 17, 2014 at 5:40 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
>> the ppa is not updated yet⦠this is a test version.
>> you have to install libasound2>i386 and libasound2-plugins:i386.
>> you get the vm with zeroconf: wget -O- get.pharo.org/vmLatest | bash
>>
>> Esteban
>>
>> On 17 Mar 2014, at 16:49, J.F. Rick <self(a)je77.com> wrote:
>>
>>> What would I need to do to install it on Ubuntu? Could I just use the PPA? If so, what are the commands?
>>>
>>> Cheers,
>>>
>>> Jeff
>>>
>>>
>>> On Mon, Mar 17, 2014 at 3:45 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
>>> can you check with the latest vm now?
>>>
>>> btw⦠you need to install:
>>>
>>> sudo apt-get install libasound2-plugins:i386
>>>
>>> in order to prevent warnings.
>>>
>>> On 15 Mar 2014, at 00:03, Nicolai Hess <nicolaihess(a)web.de> wrote:
>>>
>>>> 2014-03-14 21:43 GMT+01:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
>>>> Hi,
>>>>
>>>> so I committed some changes to allow soundplugin to work on the pharovm.
>>>> can you please download and test in your platforms?
>>>>
>>>> Works on windows
>>>>
>>>>
>>>>
>>>> (remember, in linux you need libasound2 dependency installed)
>>>>
>>>> it does not work on linux Ubuntu 12.04.2 LTS
>>>> (I have installed libasound2).
>>>>
>>>> Why don't we include the pulse config again and build the vm-sound-pulse module as well?
>>>> As I described it in the issue 12493, vm-sound-oss is buildable too. But current
>>>> linux distribution don't provide the older OSS sound system.
>>>> (it worked for me with ubuntu 10.04 but not with 12.04)
>>>>
>>>>
>>>> cheers,
>>>> Esteban
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> --
>>> Jochen "Jeff" Rick, Ph.D.
>>> http://www.je77.com/
>>> Skype ID: jochenrick
>>
>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>
>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
March 20, 2014
Re: [Pharo-dev] pharo sound should be working
by J.F. Rick
Some more information. "SoundPlayer boinkScale" works. FMSound does not
work. When I try playing a sampled sound, I get the following message in
the terminal:
sound_Start(default)
soundStart: snd_add_pcm_handler: Function not implemented
It also crashes the VM.
It seems like this is a know issue: http://bugs.squeak.org/view.php?id=7328
Cheers,
Jeff
On Thu, Mar 20, 2014 at 9:44 AM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
> the 32bits version of them?
> I can create a parallels image and try there... no promises :)
>
> Esteban
>
> On 20 Mar 2014, at 09:42, J.F. Rick <self(a)je77.com> wrote:
>
> Any ideas of how to go forward? It seems to work for some people on Linux
> but not for me. Mine is Ubuntu 13.10 (64 bit). And I have all the
> libasound2 libraries installed.
>
> Cheers,
>
> Jeff
>
>
> On Tue, Mar 18, 2014 at 2:11 PM, J.F. Rick <self(a)je77.com> wrote:
>
>> I've tried the zeroconf script. It installs fine and it seems to work
>> fine until I try to play sound. Then, it crashes. I get the following
>> message in STD_OUT:
>> sound_Start(default)
>> sound_Start: snd_add_pcm_handler: Function not implemented
>> ./pharo-ui: line 11: 5799 I/O possible "$DIR"/"pharo-vm/pharo" "$@"
>>
>> When I did "pharo -help", I get the following as sound drivers:
>> vm-sound-null
>> vm-sound-ALSA
>>
>> This is on Ubuntu 13.10.
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Mon, Mar 17, 2014 at 5:40 PM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>>
>>> the ppa is not updated yet... this is a test version.
>>> you have to install libasound2>i386 and libasound2-plugins:i386.
>>> you get the vm with zeroconf: wget -O- get.pharo.org/vmLatest | bash
>>>
>>> Esteban
>>>
>>> On 17 Mar 2014, at 16:49, J.F. Rick <self(a)je77.com> wrote:
>>>
>>> What would I need to do to install it on Ubuntu? Could I just use the
>>> PPA? If so, what are the commands?
>>>
>>> Cheers,
>>>
>>> Jeff
>>>
>>>
>>> On Mon, Mar 17, 2014 at 3:45 PM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>>>
>>>> can you check with the latest vm now?
>>>>
>>>> btw... you need to install:
>>>>
>>>> sudo apt-get install libasound2-plugins:i386
>>>>
>>>> in order to prevent warnings.
>>>>
>>>> On 15 Mar 2014, at 00:03, Nicolai Hess <nicolaihess(a)web.de> wrote:
>>>>
>>>> 2014-03-14 21:43 GMT+01:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
>>>>
>>>>> Hi,
>>>>>
>>>>> so I committed some changes to allow soundplugin to work on the
>>>>> pharovm.
>>>>> can you please download and test in your platforms?
>>>>>
>>>>
>>>> Works on windows
>>>>
>>>>
>>>>
>>>>>
>>>>> (remember, in linux you need libasound2 dependency installed)
>>>>>
>>>>
>>>> it does not work on linux Ubuntu 12.04.2 LTS
>>>> (I have installed libasound2).
>>>>
>>>> Why don't we include the pulse config again and build the
>>>> vm-sound-pulse module as well?
>>>> As I described it in the issue 12493, vm-sound-oss is buildable too.
>>>> But current
>>>> linux distribution don't provide the older OSS sound system.
>>>> (it worked for me with ubuntu 10.04 but not with 12.04)
>>>>
>>>>
>>>>>
>>>>> cheers,
>>>>> Esteban
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jochen "Jeff" Rick, Ph.D.
>>> http://www.je77.com/
>>> Skype ID: jochenrick
>>>
>>>
>>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>>
>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
>
>
>
--
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick
March 20, 2014
Re: [Pharo-dev] keybindings problem?
by Tudor Girba
We digged a bit more, and we think it's definitely a bug in Keymapping.
The problem is made obvious by the global shortcuts recently introduced:
https://github.com/pharo-project/pharo-core/commit/d7ff3a9a65273292a764fc8e…
Some shortcuts start with Cmd+o and add something else (for example, Cmd+o,
Cmd+s opens the settings browser).
The problem is that if you only press Cmd+o, the event is swallowed and the
Cmd+o defined locally no longer triggers.
If you disable all global keybindings that start with Cmd+o:
((self globalCategories flatCollect: [ :each | each allEntries keymaps ])
select: [ :each | each shortcut beginsWith: $o command ]) do: #disable
you can again use the shortcuts locally:
((PluggableTextMorph
on: 'haba'
text: #asText
accept: nil)
bindKeyCombination: $o command toAction: [ 'does not halt' halt ];
bindKeyCombination: $/ command toAction: [ 'it halts' halt ])
openInWorld
Doru
On Thu, Mar 20, 2014 at 6:54 AM, Tudor Girba <tudor(a)tudorgirba.com> wrote:
> Hi,
>
> We (Andrei and I) are experiencing some strange behavior recently related
> to keybindings.
>
> In the example below:
> - pressing "Cmd+/" brings up the halt
> - pressing "Cmd+o" does not bring up the halt
>
> ((PluggableTextMorph
> on: 'haba'
> text: #asText
> accept: nil)
> bindKeyCombination: $o command toAction: [ 'does not halt' halt ];
> bindKeyCombination: $/ command toAction: [ 'it halts' halt ])
> openInWorld
>
> One difference between the two is that Cmd+o is already define inside the
> text morph, while Cmd+/ is not. However, this used to work in 30796 but
> does not work in 30798.
>
> I do not have time right now to look at it more deeply. Do you know why
> the behavior changed suddenly? What should we adapt?
>
> Doru
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
>
--
www.tudorgirba.com
"Every thing has its own flow"
March 20, 2014
Re: [Pharo-dev] Just found, i can compile this:
by Christophe Demarey
Hi Eliot,
Le 19 mars 2014 à 16:25, Eliot Miranda a écrit :
> Hi Christophe,
>
> On Mar 19, 2014, at 1:45 AM, Christophe Demarey <Christophe.Demarey(a)inria.fr> wrote:
>
>>
>> Le 18 mars 2014 à 19:50, Eliot Miranda a écrit :
>>
>>> On Tue, Mar 18, 2014 at 10:10 AM, Christophe Demarey <Christophe.Demarey(a)inria.fr> wrote:
>>> Why arguments should be read only?
>>> They are just temporary variables with an initial value.
>>>
>>> Read the blue book. It was a decision of the language designers to forbid assignment to arguments to allow debugging. The assignment to block arguments is a side-effect of the old BlockContext implementation of blocks where block arguments were mapped onto temporary variables of the home context. It is an anachronism and should be forbidden also.
>>
>> Thank you for the explanation.
>> I'm just curious why it is so difficult to implement a debugger if arguments are assignable?
>> If you need to restart the execution of a method, and so you need to get the initial value of the argument, I understand you cannot find the value anymore in the method context but it is available in the caller context, no?
>> As I never implemented a debugger, I cannot figure out the difficulties.
>
> the args are no longer available; they get moved from the caller context to the callee. If you think about stack frames then what happens is that the slots containing the outgoing arguments are used as the slots for the incoming arguments. So if arguments are assigned to they are indeed lost.
ok, I understand. Thank you for the explanation.
> But look at how many methods in the system (or in any system). The proportion of methods/functions/procedures that could be written to assign their arguments is very small so the Smalltalk trade off is a good one.
I agree we don't really loose something. You can always assign arguments to temporary variables and update temporary variables. My point was just: if possible, why don't do it?
Christophe.
March 20, 2014
Re: [Pharo-dev] pharo sound should be working
by Esteban Lorenzano
the 32bits version of them?
I can create a parallels image and try there⦠no promises :)
Esteban
On 20 Mar 2014, at 09:42, J.F. Rick <self(a)je77.com> wrote:
> Any ideas of how to go forward? It seems to work for some people on Linux but not for me. Mine is Ubuntu 13.10 (64 bit). And I have all the libasound2 libraries installed.
>
> Cheers,
>
> Jeff
>
>
> On Tue, Mar 18, 2014 at 2:11 PM, J.F. Rick <self(a)je77.com> wrote:
> I've tried the zeroconf script. It installs fine and it seems to work fine until I try to play sound. Then, it crashes. I get the following message in STD_OUT:
> sound_Start(default)
> sound_Start: snd_add_pcm_handler: Function not implemented
> ./pharo-ui: line 11: 5799 I/O possible "$DIR"/"pharo-vm/pharo" "$@"
>
> When I did "pharo -help", I get the following as sound drivers:
> vm-sound-null
> vm-sound-ALSA
>
> This is on Ubuntu 13.10.
>
> Cheers,
>
> Jeff
>
>
> On Mon, Mar 17, 2014 at 5:40 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
> the ppa is not updated yet⦠this is a test version.
> you have to install libasound2>i386 and libasound2-plugins:i386.
> you get the vm with zeroconf: wget -O- get.pharo.org/vmLatest | bash
>
> Esteban
>
> On 17 Mar 2014, at 16:49, J.F. Rick <self(a)je77.com> wrote:
>
>> What would I need to do to install it on Ubuntu? Could I just use the PPA? If so, what are the commands?
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Mon, Mar 17, 2014 at 3:45 PM, Esteban Lorenzano <estebanlm(a)gmail.com> wrote:
>> can you check with the latest vm now?
>>
>> btw⦠you need to install:
>>
>> sudo apt-get install libasound2-plugins:i386
>>
>> in order to prevent warnings.
>>
>> On 15 Mar 2014, at 00:03, Nicolai Hess <nicolaihess(a)web.de> wrote:
>>
>>> 2014-03-14 21:43 GMT+01:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
>>> Hi,
>>>
>>> so I committed some changes to allow soundplugin to work on the pharovm.
>>> can you please download and test in your platforms?
>>>
>>> Works on windows
>>>
>>>
>>>
>>> (remember, in linux you need libasound2 dependency installed)
>>>
>>> it does not work on linux Ubuntu 12.04.2 LTS
>>> (I have installed libasound2).
>>>
>>> Why don't we include the pulse config again and build the vm-sound-pulse module as well?
>>> As I described it in the issue 12493, vm-sound-oss is buildable too. But current
>>> linux distribution don't provide the older OSS sound system.
>>> (it worked for me with ubuntu 10.04 but not with 12.04)
>>>
>>>
>>> cheers,
>>> Esteban
>>>
>>>
>>
>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>
>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
March 20, 2014
Re: [Pharo-dev] pharo sound should be working
by J.F. Rick
Any ideas of how to go forward? It seems to work for some people on Linux
but not for me. Mine is Ubuntu 13.10 (64 bit). And I have all the
libasound2 libraries installed.
Cheers,
Jeff
On Tue, Mar 18, 2014 at 2:11 PM, J.F. Rick <self(a)je77.com> wrote:
> I've tried the zeroconf script. It installs fine and it seems to work fine
> until I try to play sound. Then, it crashes. I get the following message in
> STD_OUT:
> sound_Start(default)
> sound_Start: snd_add_pcm_handler: Function not implemented
> ./pharo-ui: line 11: 5799 I/O possible "$DIR"/"pharo-vm/pharo" "$@"
>
> When I did "pharo -help", I get the following as sound drivers:
> vm-sound-null
> vm-sound-ALSA
>
> This is on Ubuntu 13.10.
>
> Cheers,
>
> Jeff
>
>
> On Mon, Mar 17, 2014 at 5:40 PM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>
>> the ppa is not updated yet... this is a test version.
>> you have to install libasound2>i386 and libasound2-plugins:i386.
>> you get the vm with zeroconf: wget -O- get.pharo.org/vmLatest | bash
>>
>> Esteban
>>
>> On 17 Mar 2014, at 16:49, J.F. Rick <self(a)je77.com> wrote:
>>
>> What would I need to do to install it on Ubuntu? Could I just use the
>> PPA? If so, what are the commands?
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Mon, Mar 17, 2014 at 3:45 PM, Esteban Lorenzano <estebanlm(a)gmail.com>wrote:
>>
>>> can you check with the latest vm now?
>>>
>>> btw... you need to install:
>>>
>>> sudo apt-get install libasound2-plugins:i386
>>>
>>> in order to prevent warnings.
>>>
>>> On 15 Mar 2014, at 00:03, Nicolai Hess <nicolaihess(a)web.de> wrote:
>>>
>>> 2014-03-14 21:43 GMT+01:00 Esteban Lorenzano <estebanlm(a)gmail.com>:
>>>
>>>> Hi,
>>>>
>>>> so I committed some changes to allow soundplugin to work on the pharovm.
>>>> can you please download and test in your platforms?
>>>>
>>>
>>> Works on windows
>>>
>>>
>>>
>>>>
>>>> (remember, in linux you need libasound2 dependency installed)
>>>>
>>>
>>> it does not work on linux Ubuntu 12.04.2 LTS
>>> (I have installed libasound2).
>>>
>>> Why don't we include the pulse config again and build the vm-sound-pulse
>>> module as well?
>>> As I described it in the issue 12493, vm-sound-oss is buildable too. But
>>> current
>>> linux distribution don't provide the older OSS sound system.
>>> (it worked for me with ubuntu 10.04 but not with 12.04)
>>>
>>>
>>>>
>>>> cheers,
>>>> Esteban
>>>>
>>>>
>>>
>>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>>
>>
>>
>
>
> --
> Jochen "Jeff" Rick, Ph.D.
> http://www.je77.com/
> Skype ID: jochenrick
>
--
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick
March 20, 2014
Re: [Pharo-dev] Class vars and inst vars of a class
by Yuriy Tymchuk
Itâs an evil variable :)
On 20 Mar 2014, at 09:07, Nicolas Cellier <nicolas.cellier.aka.nice(a)gmail.com> wrote:
>
> 2014-03-20 8:43 GMT+01:00 Pharo4Stef <pharo4Stef(a)free.fr>:
>
> On 20 Mar 2014, at 08:32, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>
> > Thank you all for your replies.
> >
> > I would say, that âClass Variableâ name is a bit misleading, but now I know what is going on behind it. :)
>
> Yes I would like to rename them to sharedVariable
>
>
> It's exactly a shared variable, but that does not describe the scope.
> It's a shared variable accessible in all methods of a class, its metaclass and their subclasses...
>
> >
> > Cheers!
> > Uko
> >
> > On 19 Mar 2014, at 23:53, Ben Coman <btc(a)openinworld.com> wrote:
> >
> >> Yuriy Tymchuk wrote:
> >>> Can anybody tell me what is the difference between the class variable on the "instance sideâ definition and instance variable on the âclass sideâ definition?
> >>>
> >>> Thanks in advance.
> >>> Uko
> >>>
> >>>
> >> instance-variable: A variable that holds the private state of an object. In Smalltalk these can only be accessed by instance-methods.
> >>
> >> class-variable: An attribute of a class that is shared by that class, its subclasses, and all instances of those classes. Can be accessed by both instance-methods and class-methods.
> >>
> >> class-instance-variable: An attribute of a class that is not shared outside that specific class. Only the definition is inherited by subclasses, not the value . Each subclass has its own private value. Accessible only by class-methods.
> >>
> >>
> >> You will understand it best by experimenting. Here is one I made for myself...
> >>
> >> ivCounter - instance variable counter
> >> CVCounter - class variable counter
> >> CIVCounter - class instance variable counter
> >>
> >> "----------"
> >> Object subclass: #TestCounter
> >> instanceVariableNames: 'ivCounter iName'
> >> classVariableNames: 'CVCounter'
> >> poolDictionaries: ''
> >> category: 'MyExamples'
> >>
> >> TestCounter class "accessed by clicking the <Class> button"
> >> instanceVariableNames: 'CIVCounter'
> >>
> >> TestCounter subclass: #TestSubCounter
> >> instanceVariableNames: ''
> >> classVariableNames: ''
> >> poolDictionaries: ''
> >> category: 'MyExamples'
> >> "----------"
> >> TestCounter name: myInstanceName
> >> iName := myInstanceName.
> >> TestCounter >> next
> >> ivCounter ifNil: [ ivCounter := 0 ].
> >> CVCounter ifNil: [ CVCounter := 0 ].
> >> ivCounter := ivCounter + 1.
> >> CVCounter := CVCounter + 1.
> >> TestCounter >> printOn: aStream
> >> super printOn: aStream.
> >> aStream nextPutAll: ' ['. aStream
> >> print: iName.
> >> aStream nextPutAll: '] ( '. aStream
> >> nextPutAll: ' ivCounter=';
> >> print: ivCounter.
> >> aStream
> >> nextPutAll: ', CIVCounter=n/a'.
> >> aStream
> >> nextPutAll: ', CVCounter=';
> >> print: CVCounter.
> >> aStream nextPutAll: ' )'. "----------" TestCounter class >> next2
> >> CIVCounter ifNil: [ CIVCounter := 0 ].
> >> CVCounter ifNil: [ CVCounter := 0 ].
> >>
> >> CIVCounter := CIVCounter + 1.
> >> CVCounter := CVCounter + 1.
> >> TestCounter class >> printOn: aStream
> >> super printOn: aStream.
> >> aStream nextPutAll: ' ( '. aStream
> >> nextPutAll: 'ivCounter=n/a'.
> >> aStream
> >> nextPutAll: ', CIVCounter=';
> >> print: CIVCounter.
> >> aStream
> >> nextPutAll: ', CVCounter=';
> >> print: CVCounter.
> >> aStream nextPutAll: ' )'. TestCounter class >> reset
> >> CVCounter := nil.
> >> CIVCounter := nil.
> >>
> >> "---------"
> >> Then from Workspace evaluate these...
> >>
> >> tc1 := TestCounter new.
> >> tc2 := TestCounter new.
> >>
> >> tsc1 := TestSubCounter new.
> >> tsc2 := TestSubCounter new.
> >>
> >> TestCounter reset.
> >> TestSubCounter reset.
> >>
> >> tc1 next. tc2 next.
> >> tc1 next.
> >> tc2 next.
> >>
> >> tsc1 next.
> >> tsc2 next.
> >> tsc1 next.
> >> tsc2 next.
> >>
> >> TestCounter next2.
> >> TestCounter next2.
> >> TestCounter next2.
> >>
> >>
> >> TestSubCounter next2.
> >> TestSubCounter next2.
> >> TestSubCounter next2.
> >>
> >> cheers -ben
> >>
> >>
> >>
> >>
> >>
> >
> >
>
>
>
March 20, 2014
Re: [Pharo-dev] Class vars and inst vars of a class
by Nicolas Cellier
2014-03-20 8:43 GMT+01:00 Pharo4Stef <pharo4Stef(a)free.fr>:
>
> On 20 Mar 2014, at 08:32, Yuriy Tymchuk <yuriy.tymchuk(a)me.com> wrote:
>
> > Thank you all for your replies.
> >
> > I would say, that "Class Variable" name is a bit misleading, but now I
> know what is going on behind it. :)
>
> Yes I would like to rename them to sharedVariable
>
>
It's exactly a shared variable, but that does not describe the scope.
It's a shared variable accessible in all methods of a class, its metaclass
and their subclasses...
> >
> > Cheers!
> > Uko
> >
> > On 19 Mar 2014, at 23:53, Ben Coman <btc(a)openinworld.com> wrote:
> >
> >> Yuriy Tymchuk wrote:
> >>> Can anybody tell me what is the difference between the class variable
> on the "instance side" definition and instance variable on the "class side"
> definition?
> >>>
> >>> Thanks in advance.
> >>> Uko
> >>>
> >>>
> >> instance-variable: A variable that holds the private state of an
> object. In Smalltalk these can only be accessed by instance-methods.
> >>
> >> class-variable: An attribute of a class that is shared by that class,
> its subclasses, and all instances of those classes. Can be accessed
> by both instance-methods and class-methods.
> >>
> >> class-instance-variable: An attribute of a class that is not shared
> outside that specific class. Only the definition is inherited by
> subclasses, not the value . Each subclass has its own private value.
> Accessible only by class-methods.
> >>
> >>
> >> You will understand it best by experimenting. Here is one I made for
> myself...
> >>
> >> ivCounter - instance variable counter
> >> CVCounter - class variable counter
> >> CIVCounter - class instance variable counter
> >>
> >> "----------"
> >> Object subclass: #TestCounter
> >> instanceVariableNames: 'ivCounter iName'
> >> classVariableNames: 'CVCounter'
> >> poolDictionaries: ''
> >> category: 'MyExamples'
> >>
> >> TestCounter class "accessed by clicking the <Class> button"
> >> instanceVariableNames: 'CIVCounter'
> >>
> >> TestCounter subclass: #TestSubCounter
> >> instanceVariableNames: ''
> >> classVariableNames: ''
> >> poolDictionaries: ''
> >> category: 'MyExamples'
> >> "----------"
> >> TestCounter name: myInstanceName
> >> iName := myInstanceName.
> >> TestCounter >> next
> >> ivCounter ifNil: [ ivCounter := 0 ].
> >> CVCounter ifNil: [ CVCounter := 0 ].
> >> ivCounter := ivCounter + 1.
> >> CVCounter := CVCounter + 1.
> >> TestCounter >> printOn: aStream
> >> super printOn: aStream.
> >> aStream nextPutAll: ' ['. aStream
> >> print: iName.
> >> aStream nextPutAll: '] ( '. aStream
> >> nextPutAll: ' ivCounter=';
> >> print: ivCounter.
> >> aStream
> >> nextPutAll: ', CIVCounter=n/a'.
> >> aStream
> >> nextPutAll: ', CVCounter=';
> >> print: CVCounter.
> >> aStream nextPutAll: ' )'. "----------" TestCounter class >> next2
> >> CIVCounter ifNil: [ CIVCounter := 0 ].
> >> CVCounter ifNil: [ CVCounter := 0 ].
> >>
> >> CIVCounter := CIVCounter + 1.
> >> CVCounter := CVCounter + 1.
> >> TestCounter class >> printOn: aStream
> >> super printOn: aStream.
> >> aStream nextPutAll: ' ( '. aStream
> >> nextPutAll: 'ivCounter=n/a'.
> >> aStream
> >> nextPutAll: ', CIVCounter=';
> >> print: CIVCounter.
> >> aStream
> >> nextPutAll: ', CVCounter=';
> >> print: CVCounter.
> >> aStream nextPutAll: ' )'. TestCounter class >> reset
> >> CVCounter := nil.
> >> CIVCounter := nil.
> >>
> >> "---------"
> >> Then from Workspace evaluate these...
> >>
> >> tc1 := TestCounter new.
> >> tc2 := TestCounter new.
> >>
> >> tsc1 := TestSubCounter new.
> >> tsc2 := TestSubCounter new.
> >>
> >> TestCounter reset.
> >> TestSubCounter reset.
> >>
> >> tc1 next. tc2 next.
> >> tc1 next.
> >> tc2 next.
> >>
> >> tsc1 next.
> >> tsc2 next.
> >> tsc1 next.
> >> tsc2 next.
> >>
> >> TestCounter next2.
> >> TestCounter next2.
> >> TestCounter next2.
> >>
> >>
> >> TestSubCounter next2.
> >> TestSubCounter next2.
> >> TestSubCounter next2.
> >>
> >> cheers -ben
> >>
> >>
> >>
> >>
> >>
> >
> >
>
>
>
March 20, 2014