[Pharo-users] NativeBoost callbacks from different threads?

2014-02-02 Thread Joachim Geidel
In 2012, Igor Stasenko wrote: "the limitation is multithreading. callback
should be called in same
thread as VM."
http://forum.world.st/NativeBoost-callbacks-status-td4656362.html#a4656371

Is this still true in Pharo 3.0? If it is, I don't have to search for the
reason why my Pharo code is equivalent to "Pharo become: nil". :-)

Best regards,
Joachim Geidel




--
View this message in context: 
http://forum.world.st/NativeBoost-callbacks-from-different-threads-tp4740997.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.



Re: [Pharo-users] NativeBoost callbacks from different threads?

2014-02-02 Thread Clément Bera
Hello,

This is still true in Pharo 3 AFAIK. With NativeBoost you need to have the
call back in the same thread as the VM.

If you want multithreaded callback you can do it through the FFI VM plugin
and the Cog Multi threaded VM (you can find the CogMT VM prebuilt for Pharo
here: https://ci.inria.fr/pharo/view/VM/job/CogMTVM/ ). However it depends
what you want to do with your call backs. This VM looks stable but very few
people use it so it may not be as stable as it looks like. So if you plan
to use it for real (like production app) do some experiments before to see
if your use cases work fine.




2014-02-02 Joachim Geidel :

> In 2012, Igor Stasenko wrote: "the limitation is multithreading. callback
> should be called in same
> thread as VM."
> http://forum.world.st/NativeBoost-callbacks-status-td4656362.html#a4656371
>
> Is this still true in Pharo 3.0? If it is, I don't have to search for the
> reason why my Pharo code is equivalent to "Pharo become: nil". :-)
>
> Best regards,
> Joachim Geidel
>
>
>
>
> --
> View this message in context:
> http://forum.world.st/NativeBoost-callbacks-from-different-threads-tp4740997.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>


Re: [Pharo-users] Slides from Fosdem: Pharo4: Plans and Dreams

2014-02-02 Thread peter yoo
2013-FOSDEM-Pharo4.pdffile
not fuond. check please~


Re: [Pharo-users] Slides from Fosdem: Pharo4: Plans and Dreams

2014-02-02 Thread Marcus Denker

On 02 Feb 2014, at 15:22, peter yoo  wrote:

> 2013-FOSDEM-Pharo4.pdf file not fuond. check please~

yes, it should be

http://marcusdenker.de/talks/14Fosdem/2014-FOSDEM-Pharo4.pdf

(I found the mistake of  2013 later and fixed it…)

Marcus

Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Alain Busser
Hi Hilaire,

The instructions are written in small characters, which supposes that the
child who tries the exercises is rather old; yet before a child is able to
read complete sentences like this, he/she learns the numbers. So I wonder
if your application would not benefit from voice synthesis.

Which yields me to an other question: Is there already voice synthesis in
Pharo? If yes, how many languages are implemented?

Alain


On Sat, Feb 1, 2014 at 11:16 PM, Hilaire Fernandes <
hilaire.fernan...@gmail.com> wrote:

> Hello,
>
> Some newer screenshots about iStoa.
> To try, some instructions there [2]
>
> Hilaire
>
>
> [1] https://launchpad.net/istoa
> [2]
>
> http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README
>
> --
> Dr. Geo http://drgeo.eu
>


Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Pharo4Stef
I did not fully check but the code should be here:

http://www.squeaksource.com/Cresta.html


On 02 Feb 2014, at 18:29, Pharo4Stef  wrote:

> 
> On 02 Feb 2014, at 17:39, Alain Busser  wrote:
> 
>> Hi Hilaire,
>> 
>> The instructions are written in small characters, which supposes that the 
>> child who tries the exercises is rather old; yet before a child is able to 
>> read complete sentences like this, he/she learns the numbers. So I wonder if 
>> your application would not benefit from voice synthesis.
>> 
>> Which yields me to an other question: Is there already voice synthesis in 
>> Pharo?
> 
> There KlattPlugin but it is prehistorical age and does not work for spanish, 
> french.
> I had one student working on bring a tagger. 
> 
> Stef
> 
>> If yes, how many languages are implemented?
>> 
>> Hello,
>> 
>> Some newer screenshots about iStoa.
>> To try, some instructions there [2]
>> 
>> Hilaire
>> 
>> 
>> [1] https://launchpad.net/istoa
>> [2]
>> http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README
>> 
>> --
>> Dr. Geo http://drgeo.eu
>> 
> 



Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Alain Busser
Then I guess the simplest way to go, would be to add some ogg files with
pre recorded sentences. In this way the child could have the letters and
the sound at the same time and begin to learn to read while doing some
maths...


On Sun, Feb 2, 2014 at 9:29 PM, Pharo4Stef  wrote:

>
> On 02 Feb 2014, at 17:39, Alain Busser  wrote:
>
> Hi Hilaire,
>
> The instructions are written in small characters, which supposes that the
> child who tries the exercises is rather old; yet before a child is able to
> read complete sentences like this, he/she learns the numbers. So I wonder
> if your application would not benefit from voice synthesis.
>
> Which yields me to an other question: Is there already voice synthesis in
> Pharo?
>
>
> There KlattPlugin but it is prehistorical age and does not work for
> spanish, french.
> I had one student working on bring a tagger.
>
> Stef
>
> If yes, how many languages are implemented?
>
> Hello,
>>
>> Some newer screenshots about iStoa.
>> To try, some instructions there [2]
>>
>> Hilaire
>>
>>
>> [1] https://launchpad.net/istoa
>> [2]
>>
>> http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README
>>
>> --
>> Dr. Geo http://drgeo.eu
>>
>
>
>
>


[Pharo-users] creating a png filereference in memory

2014-02-02 Thread Tudor Girba
Hi,

I have troubles creating a PNG file in memory.

I can create a PNG file on disk and load it back without problems:
f := FileSystem disk workingDirectory / 'pharoicon.png'.
f writeStreamDo: [ :stream |
PNGReadWriter
putForm: ThemeIcons current pharoIcon
onStream: stream ].
f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]

But, when I try the same thing in memory, I get an exception for incorrect
format:
f := FileSystem memory workingDirectory / 'pharoicon.png'.
f writeStreamDo: [ :stream |
PNGReadWriter
putForm: ThemeIcons current pharoIcon
onStream: stream ].
f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]

Can anyone point me to what am I doing wrong?

Doru


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-users] creating a png filereference in memory

2014-02-02 Thread Sven Van Caekenberghe
Doru,

I think you will need the new #binaryReadStream or #binaryReadStreamDo:

Sven

On 02 Feb 2014, at 20:15, Tudor Girba  wrote:

> Hi,
> 
> I have troubles creating a PNG file in memory.
> 
> I can create a PNG file on disk and load it back without problems:
> f := FileSystem disk workingDirectory / 'pharoicon.png'.
> f writeStreamDo: [ :stream |
>   PNGReadWriter 
>   putForm: ThemeIcons current pharoIcon 
>   onStream: stream ].
> f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> 
> But, when I try the same thing in memory, I get an exception for incorrect 
> format:
> f := FileSystem memory workingDirectory / 'pharoicon.png'.
> f writeStreamDo: [ :stream |
>   PNGReadWriter 
>   putForm: ThemeIcons current pharoIcon 
>   onStream: stream ].
> f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> 
> Can anyone point me to what am I doing wrong?
> 
> Doru
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"




Re: [Pharo-users] creating a png filereference in memory

2014-02-02 Thread Tudor Girba
Thanks! That worked.

What is the difference?

Doru




On Sun, Feb 2, 2014 at 9:19 PM, Sven Van Caekenberghe  wrote:

> Doru,
>
> I think you will need the new #binaryReadStream or #binaryReadStreamDo:
>
> Sven
>
> On 02 Feb 2014, at 20:15, Tudor Girba  wrote:
>
> > Hi,
> >
> > I have troubles creating a PNG file in memory.
> >
> > I can create a PNG file on disk and load it back without problems:
> > f := FileSystem disk workingDirectory / 'pharoicon.png'.
> > f writeStreamDo: [ :stream |
> >   PNGReadWriter
> >   putForm: ThemeIcons current pharoIcon
> >   onStream: stream ].
> > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> >
> > But, when I try the same thing in memory, I get an exception for
> incorrect format:
> > f := FileSystem memory workingDirectory / 'pharoicon.png'.
> > f writeStreamDo: [ :stream |
> >   PNGReadWriter
> >   putForm: ThemeIcons current pharoIcon
> >   onStream: stream ].
> > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> >
> > Can anyone point me to what am I doing wrong?
> >
> > Doru
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-users] iStoa, some new

2014-02-02 Thread Carlo
Hi Hillaire

I pulled the code from smalltalhub and the resources, into pharo3. The LEDMorph 
dependency was resolved by pulling it from PharoExtras. 
I couldn’t find a starting point for demo so I tried the following in a 
workspace:

Stoa beUnix.
StoaApp current show.

But not having much luck. Do you have any workspace scripts you use to test 
your app?
Thanks
Carlo

On 01 Feb 2014, at 9:16 PM, Hilaire Fernandes  
wrote:

Hello,

Some newer screenshots about iStoa.
To try, some instructions there [2]

Hilaire


[1] https://launchpad.net/istoa
[2]
http://bazaar.launchpad.net/~hilaire-fernandes/istoa/trunk/view/head:/README

-- 
Dr. Geo http://drgeo.eu





Re: [Pharo-users] creating a png filereference in memory

2014-02-02 Thread Sven Van Caekenberghe

On 02 Feb 2014, at 22:13, Tudor Girba  wrote:

> Thanks! That worked.
> 
> What is the difference?

It's a complicated story ;-)

https://pharo.fogbugz.com/f/cases/12259/FileSystem-memory-reads-writes-using-a-binary-stream-by-default

> Doru
> 
> 
> 
> 
> On Sun, Feb 2, 2014 at 9:19 PM, Sven Van Caekenberghe  wrote:
> Doru,
> 
> I think you will need the new #binaryReadStream or #binaryReadStreamDo:
> 
> Sven
> 
> On 02 Feb 2014, at 20:15, Tudor Girba  wrote:
> 
> > Hi,
> >
> > I have troubles creating a PNG file in memory.
> >
> > I can create a PNG file on disk and load it back without problems:
> > f := FileSystem disk workingDirectory / 'pharoicon.png'.
> > f writeStreamDo: [ :stream |
> >   PNGReadWriter
> >   putForm: ThemeIcons current pharoIcon
> >   onStream: stream ].
> > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> >
> > But, when I try the same thing in memory, I get an exception for incorrect 
> > format:
> > f := FileSystem memory workingDirectory / 'pharoicon.png'.
> > f writeStreamDo: [ :stream |
> >   PNGReadWriter
> >   putForm: ThemeIcons current pharoIcon
> >   onStream: stream ].
> > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]
> >
> > Can anyone point me to what am I doing wrong?
> >
> > Doru
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
> 
> 
> 
> 
> 
> -- 
> www.tudorgirba.com
> 
> "Every thing has its own flow"




Re: [Pharo-users] creating a png filereference in memory

2014-02-02 Thread Tudor Girba
I see.

However, I still do not understand two things:
1. Why does it work if I read and write to the file system?

f := FileSystem disk workingDirectory / 'pharoicon.png'.
f writeStreamDo: [ :stream |
PNGReadWriter
putForm: ThemeIcons current pharoIcon
onStream: stream ].
f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream binary ]


2. Why is binaryReadStreamDo: not equivalent to:
f := FileSystem memory workingDirectory / 'pharoicon.png'.
f writeStreamDo: [ :stream |
PNGReadWriter
putForm: ThemeIcons current pharoIcon
onStream: stream ].
f *readStreamDo:* [ :stream | PNGReadWriter formFromStream: stream *binary*]

Cheers,
Doru


On Sun, Feb 2, 2014 at 11:23 PM, Sven Van Caekenberghe  wrote:

>
> On 02 Feb 2014, at 22:13, Tudor Girba  wrote:
>
> > Thanks! That worked.
> >
> > What is the difference?
>
> It's a complicated story ;-)
>
>
> https://pharo.fogbugz.com/f/cases/12259/FileSystem-memory-reads-writes-using-a-binary-stream-by-default
>
> > Doru
> >
> >
> >
> >
> > On Sun, Feb 2, 2014 at 9:19 PM, Sven Van Caekenberghe 
> wrote:
> > Doru,
> >
> > I think you will need the new #binaryReadStream or #binaryReadStreamDo:
> >
> > Sven
> >
> > On 02 Feb 2014, at 20:15, Tudor Girba  wrote:
> >
> > > Hi,
> > >
> > > I have troubles creating a PNG file in memory.
> > >
> > > I can create a PNG file on disk and load it back without problems:
> > > f := FileSystem disk workingDirectory / 'pharoicon.png'.
> > > f writeStreamDo: [ :stream |
> > >   PNGReadWriter
> > >   putForm: ThemeIcons current pharoIcon
> > >   onStream: stream ].
> > > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream
> binary ]
> > >
> > > But, when I try the same thing in memory, I get an exception for
> incorrect format:
> > > f := FileSystem memory workingDirectory / 'pharoicon.png'.
> > > f writeStreamDo: [ :stream |
> > >   PNGReadWriter
> > >   putForm: ThemeIcons current pharoIcon
> > >   onStream: stream ].
> > > f readStreamDo: [ :stream | PNGReadWriter formFromStream: stream
> binary ]
> > >
> > > Can anyone point me to what am I doing wrong?
> > >
> > > Doru
> > >
> > >
> > > --
> > > www.tudorgirba.com
> > >
> > > "Every thing has its own flow"
> >
> >
> >
> >
> >
> > --
> > www.tudorgirba.com
> >
> > "Every thing has its own flow"
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"