Re: [Pharo-users] Is there any fundamental technical barrier to compiling to JVM byte codes?

2013-12-25 Thread Stéphane Ducasse

> nothing is impossible if you give it either infinite amount of resources or 
> infinite time. I think it would be a great idea, most likely doable with a 
> good team . That would mean probably the redesign of all FFIs but it would 
> gives us the ability to run tons of java libraries out of the box. Would 
> pharo be the same thing ? who cares, same is boring the real fun is to move 
> forward and improve constantly. 
> 
> Personally I dont care if pharo moves to JVM or not , I only care that it 
> moves forward and seem people excited and having fun with it. 

:)
The fun is important. 
What we want is well designed and powerful libraries that enabled people. 
For the JVM question: it is a question of resources + the fact that jvm do not 
really support well some key smalltalk operations.
Now I do not understand why people develop their own vm instead of joining 
forces.
Doing in the long term something and finishing a task are the most difficult 
things.
Stef

> Of course I would never sacrifice the very things that make Pharo special 
> like live coding, in favor of popularity. I have said before and I will say 
> it again I have zero issues with pharo not being popular, I tasted popular, 
> boring and annoying as hell. I am here because pharo is special and I want it 
> to remain special, a rebel , a fun way to code, an alternative way of 
> thinking. 
> 
> If I wanted popular I would be coding in Java. 
> 
> 
> On Tue, Dec 24, 2013 at 3:13 PM, Sven Van Caekenberghe  wrote:
> Andy,
> 
> On 22 Dec 2013, at 18:38, Andy Burnett  
> wrote:
> 
> > I am sure it would be a huge amount of work, and may not be a good idea at 
> > all.
> >
> > However, given the number of dynamic languages that now compile to JVM
> > byte codes, I am curious whether there is anything about Pharo that
> > would make this impossible?
> >
> > Cheers
> > Andy
> 
> This is a complex subject area which touches on many things/issues. I am not 
> capable of producing a good writeup, but I’ll try to give some kind of answer.
> 
> It is really hard to define what makes Pharo (or Smalltalk) unique compared 
> to so many other environments. As you know, it is the special combination of 
> language, library, IDE and VM that constitutes the real magic: a live, 
> dynamic, late bound language with meta level capabilities, including many 
> libraries, frameworks and tools, written in itself.
> 
> Like with Lisp, many/most of the features of Smalltalk can be found here and 
> there in other languages. Like with Lisp, there are many implementations of 
> some kind of Lisp/Smalltalk. This has all been done before.
> 
> Moving Pharo (or Smalltalk) away from its own VM is certainly possible (up to 
> a point), but the question is: is it still the same thing ? If you can no 
> longer write your own debugger implemented in the same language ? If you 
> cannot read code all the way down ?
> 
> Regards,
> 
> Sven
> 
> 
> 



Re: [Pharo-users] Is there any fundamental technical barrier to compiling to JVM byte codes?

2013-12-25 Thread Sergi Reyner
2013/12/25 Stéphane Ducasse 

> Now I do not understand why people develop their own vm instead of joining
> forces.
> Doing in the long term something and finishing a task are the most
> difficult things.
>

http://c2.com/cgi/wiki?NotInventedHere is a possible explanation :)

Cheers,
Sergi


Re: [Pharo-users] have a question for morphic Designer in pharo.

2013-12-25 Thread Stéphane Ducasse

> hello smalltalker! this is my first thread.

Welcome :)

> 
> first! im smalltalk newbie and use ogly english. sorry!!!

Don’t worry our korean is near to zero ;)

> i want using "Morphic Designer" in pharo.
> because pharo is smart smalltalk environment, and morphic designer is 
> useful(maybe only loook movie file)

Yes it is nice. Now you should pay attention because once we looked at the 
events and it used a different event 
mechanism that used thisContext (too costly to be used for every morph events).

Now I would be really interested to know if you succeed to make it work even 
partly. 

> but use not easy! because squeak and pharo is not same.
> ok i can try.
> 
> i make a this guide.
> Morphic Designer in Pharo2-writeen korean.
> http://workspace.onionmixer.net/mediawiki/index.php?title=Morphic_Designer_in_Pharo2

this is REALLY impressive!

> now i can run in pharo. but encounterd error in playtime.
> 
> look this section please.
> http://workspace.onionmixer.net/mediawiki/index.php?title=Morphic_Designer_in_Pharo2#Step_06_::_.ED.94.84.EB.A1.9C.EA.B7.B8.EB.9E.A8_.EA.B5.AC.EB.8F.99.EC.84.B1.EA.B3.B5.21_.EA.B7.B8.EB.9F.AC.EB.82.98_.EC.95.84.EC.A7.81_.EB.81.9D.EB.82.98.EC.A7.80_.EC.95.8A.EC.95.98.EB.8B.A4._positionInWorld_.EB.A9.94.EC.84.9C.EB.93.9C
> 
> 
> start drag item but rise debug error.
> debugger display "positionInWord" is nil.
> 
> 
> i misssion way for solution.
> where look then can find way to answer?

try to see in squeak how positionInWorld was implemented and see how to migrate 
it to Pharo. 
I do not know if the implementors of Morphic Designer is still maintaining it. 
May be he can help or else I suggest that you fork and publish your work. 

May be we were too aggressive about some methods that we removed. 
If you get some methods that you need for your project, let us know because we 
could add them into 
pharo or you can package them as extension of your project.

let us know if you make progress. what could be good is if you put an image 
somewhere so that we can have a look.

Stef

> you can then little hint give to me please.
> 
> thank you...T.T
> 
> 
> -- 
> http://onionmixer.net | http://gentoo.or.kr | http://gnome.or.kr
> peter yoo. ROK



Re: [Pharo-users] Stupid ideas when I'm bored:

2013-12-25 Thread Stéphane Ducasse
this is brutally fun. :D and this got great success during the sprint last week.
This is good to see that closing the window still works :)
I was wondering why we get really big pixels at the beginning.

Stef
On 20 Dec 2013, at 14:33, Nicolai Hess  wrote:

> (EyeMorphViewer new inspect:World) openWithSpec window fullscreen.



[Pharo-users] Geo coordinates operations

2013-12-25 Thread Esteban A. Maringolo
Has anybody implemented basic methods/classes to calculate distance
between two points (lat, long) and similar operations?

Regards,

Esteban A. Maringolo



Re: [Pharo-users] Geo coordinates operations

2013-12-25 Thread Esteban A. Maringolo
Answering myself...

I found a solution and transcribed it: http://pastebin.com/ThKDXCKK
Esteban A. Maringolo


2013/12/25 Esteban A. Maringolo :
> Has anybody implemented basic methods/classes to calculate distance
> between two points (lat, long) and similar operations?
>
> Regards,
>
> Esteban A. Maringolo