Re: [Pharo-users] Pharo by example 5.0 is officially released and available

2017-03-10 Thread Tudor Girba
Great work!

Doru


> On Mar 10, 2017, at 8:54 PM, stepharong  wrote:
> 
> Hi
> 
> After several iterations and some month of efforts, the new version of Pharo 
> by Example is finally available in print form and pdf.
> 
>http://books.pharo.org
> 
> 
> Tx all the contributors.
> 
> --
> 

--
www.tudorgirba.com
www.feenk.com

"Every now and then stop and ask yourself if the war you're fighting is the 
right one."







Re: [Pharo-users] Easy question about syntax.

2017-03-10 Thread Jupiter Jones
Also, you’re not setting the instance variable - just returning an 
OrderedCollection - is that what you want to do?

e.g. setting the trees instance variable:

trees
^ trees ifNil: [ trees := OrderedCollection new ]

like Bernardo said, when you call #trees from within the #trees method (with 
self trees) - like in your first example, you created an infinite loop.

> On 11 Mar 2017, at 3:36 pm, Bernardo Ezequiel Contreras 
>  wrote:
> 
> i think that in the first case you access an instance variable trees while in 
> the second case you send a message trees to self that cause an infinite 
> recursion.
> am i right?
> 
> 
> On Sat, Mar 11, 2017 at 12:57 AM, sergio ruiz  > wrote:
> I have a simple one, but i need to understand what is going on..
> 
> i have something like
> 
> Tree
> 
> with a class method
> 
> trees
> ^ trees ifNil: [OrderedCollection new]
> 
> i initially ran into trouble with it locking my image up because i wrote it 
> as:
> 
> trees
> ^ self trees ifNil: [OrderedCollection new]
> 
> what is the semantic difference between these two calls?
> 
> THanks!
> 
>  
> 
> 
> peace,
> sergio
> photographer, journalist, visionary
> 
> Public Key: http://bit.ly/29z9fG0 
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com 
> http://www.ThoseOptimizeGuys.com 
> http://www.coffee-black.com 
> http://www.painlessfrugality.com 
> http://www.twitter.com/sergio_101 
> http://www.facebook.com/sergio101 
> 
> 
> -- 
> Bernardo E.C.
> 
> Sent from a cheap desktop computer in South America.



Re: [Pharo-users] [Pharo-dev] Mini Pharo -> JavaScript translator?

2017-03-10 Thread H. Hirzel
On 3/10/17, Alexandre Bergel  wrote:
> Hi!
>
> Is there a simple way to translate Pharo code into Javascript?
> There is Pharo JS, but I cannot load it in Pharo 6. There is the amber
> compiler, but I cannot find a version for Pharo.
>
> Amber takes the approach of translating everything into JavaScript,
> including the Smalltalk object model. While this is great for fan of
> bootstrapping images, it produces large javascript code.
>
> Is there a kind of Slang for JavaScript? I am looking for something
> minimal.
>
> Cheers,
> Alexandre


Hello Alexandre


Something like this
https://github.com/ympbyc/LittleSmallscript

or


http://wiki.squeak.org/squeak/5860 which refers to
http://www.squeaksource.com/@xxu3r2Ma7SbqJi3E/1j-SgMCf (74000 downloads).

People have used it successfully.

There is probably a Pharo port.

--Hannes



Re: [Pharo-users] Easy question about syntax.

2017-03-10 Thread Bernardo Ezequiel Contreras
i think that in the first case you access an instance variable trees while
in the second case you send a message trees to self that cause an infinite
recursion.
am i right?


On Sat, Mar 11, 2017 at 12:57 AM, sergio ruiz  wrote:

> I have a simple one, but i need to understand what is going on..
>
> i have something like
>
> Tree
>
> with a class method
>
> trees
> ^ trees ifNil: [OrderedCollection new]
>
> i initially ran into trouble with it locking my image up because i wrote
> it as:
>
> trees
> ^ self trees ifNil: [OrderedCollection new]
>
> what is the semantic difference between these two calls?
>
> THanks!
>
>
>
> 
> peace,
> sergio
> photographer, journalist, visionary
>
> Public Key: http://bit.ly/29z9fG0
> #BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
> http://www.Village-Buzz.com
> http://www.ThoseOptimizeGuys.com
> http://www.coffee-black.com
> http://www.painlessfrugality.com
> http://www.twitter.com/sergio_101
> http://www.facebook.com/sergio101
>



-- 
Bernardo E.C.

Sent from a cheap desktop computer in South America.


[Pharo-users] Easy question about syntax.

2017-03-10 Thread sergio ruiz
I have a simple one, but i need to understand what is going on..

i have something like

Tree

with a class method

trees
^ trees ifNil: [OrderedCollection new]

i initially ran into trouble with it locking my image up because i wrote it as:

trees
^ self trees ifNil: [OrderedCollection new]

what is the semantic difference between these two calls?

THanks!

 


peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.Village-Buzz.com
http://www.ThoseOptimizeGuys.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101

signature.asc
Description: Message signed with OpenPGP using AMPGpg


[Pharo-users] Mini Pharo -> JavaScript translator?

2017-03-10 Thread Alexandre Bergel
Hi!

Is there a simple way to translate Pharo code into Javascript?
There is Pharo JS, but I cannot load it in Pharo 6. There is the amber 
compiler, but I cannot find a version for Pharo.

Amber takes the approach of translating everything into JavaScript, including 
the Smalltalk object model. While this is great for fan of bootstrapping 
images, it produces large javascript code. 

Is there a kind of Slang for JavaScript? I am looking for something minimal.

Cheers,
Alexandre
-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






Re: [Pharo-users] Pharo by example 5.0 is officially released and available

2017-03-10 Thread Sven Van Caekenberghe
Very nice, much needed, much appreciated.

PS: Why no html (yet) ? HTML chapters make it easy to show people where to look.

> On 10 Mar 2017, at 20:54, stepharong  wrote:
> 
> Hi
> 
> After several iterations and some month of efforts, the new version of Pharo 
> by Example is finally available in print form and pdf.
> 
>http://books.pharo.org
> 
> 
> Tx all the contributors.
> 
> --
> 




Re: [Pharo-users] Pharo by example 5.0 is officially released and available

2017-03-10 Thread Dimitris Chloupis
Awesome ;)
On Fri, 10 Mar 2017 at 21:55, stepharong  wrote:

> Hi
>
> After several iterations and some month of efforts, the new version of
> Pharo by Example is finally available in print form and pdf.
>
>  http://books.pharo.org
>
>
> Tx all the contributors.
>
> --
>
>


Re: [Pharo-users] New Version of Pillar on Windows

2017-03-10 Thread mldavis
Thank you for the quick response.  From what you told me and what I have
seen so far, it will most likely work.  I will have it tested and get back
to you by Monday.  I'm rather swamped today.

I would like to add a comment about this, that ties into another thread with
a comment by Peter: "I would argue that its simply easier to find Mac/Linux
low-level experts and contributors than Windows as the developer culture
(including OSS and contributions) is different."

I agree with Peter that the Windows developer culture, even at the low-level
is different.  I believe that is twofold:  First, use of the Windows command
line and even the Microsoft endorsed PowerShell is seldom used to perform
development work.  Although PowerShell is commonly used for server
administration.  ALSO, and more importantly, the "C" / ADT based language
culture is very, very strong in the U.S.  I believe this was an unfortunate
branch in software development here.  This requires such a strong behavioral
change to switch to a dynamic, object messaging environment like SmallTalk,
that it is typically ignored.  I'm personally pursuing an effort to motivate
local interest in Pharo, in a local open source group to which I belong, for
all the reasons you know well.

 In this particular case, for example, rather than adapting the Linux style
scripts to Windows command line, my first reaction was to attempt to do the
same thing within the Playground after which I would add an appropriate
method or subclass to the Pillar package etc.  Is this too far afield from
where you are going with Pharo?

At any rate, I will get the Windows command line version tested and also a
Windows command line batch file (.bat) which could be circulated along with
the .sh scripts, if you like.

Cheers,

mike

-Original Message-
From: stepharong [mailto:stephar...@free.fr] 
Sent: Thursday, March 9, 2017 1:20 PM
To: pharo-users@lists.pharo.org; mlda...@chaparralwest.com
Subject: Re: [Pharo-users] New Version of Pillar on Windows

Hi mike

I just checked
- ./download.sh and it took the 50 stable version
- make
this created the html

Now on windows you do not have make probably :) so you should

$(OUTPUTDIRECTORY)/%.html: $(OUTPUTDIRECTORY)/%.html.json
./mustache --data=$< --template=${HTMLTEMPLATE} > $@

invoke ./mustache --data=output.html.json --template==yourhtmltemplate

Tell me if this is working.


> I am trying out the new version of Pillar (build 1940 or 1941) on 
> Windows on Pharo 50770, following the Pillar tutorial in Enterprise 
> Pharo book:
>
> I created the new file first.pillar containing:  ! Hello World
>
> I ran: C:\Users\mldavis\Desktop\mldPillarWorking>Pharo.exe 
> Pillar.image pillar export --to=html first.pillar
>
> It created a file named:  output.html.json  containing:
> {"content":"\r\n1. Hello World\r\n"}
>
> It was supposed to be an HTML document as shown in Enterprise Pharo 
> para
> 14.2 page 213 "5 Minutes Tutorial".
>
> Any suggestions what I missed or should do?
>
> mike
>
>
>


--
Using Opera's mail client: http://www.opera.com/mail/




[Pharo-users] Pharo by example 5.0 is officially released and available

2017-03-10 Thread stepharong

Hi

After several iterations and some month of efforts, the new version of  
Pharo by Example is finally available in print form and pdf.


http://books.pharo.org


Tx all the contributors.

--



[Pharo-users] Pharo Association event listing updated

2017-03-10 Thread Marcus Denker
Hi,

I added all events (tech talks, sprints, pharodays) that will happen till June 
here:

https://association.pharo.org/events

Marcus


Re: [Pharo-users] What is the craziest bug you ever face

2017-03-10 Thread werner kassens

and occasionally memory leaks
werner

On 03/10/2017 04:02 PM, werner kassens wrote:

Hi Stephane,
bugs i found difficult to debug are eg (1) red cross of death bugs in 
morphs, (2) bugs that are not visible any more because they are caught 
and dealt with in the wrong place and then produce wrong results 
instead of errors, and (3) bugs in iterative algos that work eg with 
#while and that pop up eg in the 1000th iteration, where i first have 
to add a counter to know that it happens in the 1000th iteration and 
then have to add a #halt if counter=999 to see what happens then in 
the debugger.

werner

On 03/09/2017 12:36 PM, Stephane Ducasse wrote:

Hi guys

During the DSU workshop we were brainstorming about what are the most 
difficult bugs we faced and what are the conceptual tools that would 
have helped you.


Stef










Re: [Pharo-users] What is the craziest bug you ever face

2017-03-10 Thread werner kassens

Hi Stephane,
bugs i found difficult to debug are eg (1) red cross of death bugs in 
morphs, (2) bugs that are not visible any more because they are caught 
and dealt with in the wrong place and then produce wrong results instead 
of errors, and (3) bugs in iterative algos that work eg with #while and 
that pop up eg in the 1000th iteration, where i first have to add a 
counter to know that it happens in the 1000th iteration and then have to 
add a #halt if counter=999 to see what happens then in the debugger.

werner

On 03/09/2017 12:36 PM, Stephane Ducasse wrote:

Hi guys

During the DSU workshop we were brainstorming about what are the most 
difficult bugs we faced and what are the conceptual tools that would 
have helped you.


Stef