Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-12 Thread Stephane Ducasse
I thought so and this is good to have it around. On Thu, Jan 11, 2018 at 10:13 AM, Thierry Goubier wrote: > Hi Stef, > > it's the one done with Damien, 3 or 4 years ago. > > Thierry > > 2018-01-11 8:23 GMT+01:00 Stephane Ducasse : > >> Hi Thierry >> >> One of these days I think that I will have

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-11 Thread Thierry Goubier
Hi Stef, it's the one done with Damien, 3 or 4 years ago. Thierry 2018-01-11 8:23 GMT+01:00 Stephane Ducasse : > Hi Thierry > > One of these days I think that I will have to have a look at it :) > > Stef > > On Wed, Jan 10, 2018 at 2:35 PM, Thierry Goubier < > thierry.goub...@gmail.com> wrote:

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Stephane Ducasse
Hi Thierry One of these days I think that I will have to have a look at it :) Stef On Wed, Jan 10, 2018 at 2:35 PM, Thierry Goubier wrote: > > > 2018-01-10 14:26 GMT+01:00 Serge Stinckwich : > >> >> >> On Wed, Jan 10, 2018 at 2:23 PM, Julien >> wrote: >> >>> Hello Serge, >>> >>> Do you mean p

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread askoh
Good job. Is there something which translates Python to Smalltalk? Thanks, Aik-Siong Koh -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Stephane Ducasse
Johan Brichau could execute java code from VisualWorks. He had special metaclass whose dictionaries contains strange mirror to java methods. So I'm interested to see how far you can get :) On Wed, Jan 10, 2018 at 4:58 PM, Julien wrote: > Even if I learned things from your answer, I think you misu

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Dimitris Chloupis
yeah I am afraid I understood exactly what you meant because at first that was my initial desire when I made Atlas. Essentially you want auto mapping of Python objects to Pharo, so you wont have to deal with Python and do everything from inside the Pharo image. So essentially reading and writing P

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Julien
Even if I learned things from your answer, I think you misunderstood what I was talking about. :p What I want is a mechanism to describe python’s objects from Pharo and being able to: 1. Serialise those objects from Python 2. Send those object to Pharo (whatever the way it is done: socket, write

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Dimitris Chloupis
On Mon, Jan 8, 2018 at 5:50 PM Julien wrote: > Beware that no mechanism to get back values from Python is defined for now > (except if you just want the String > representation of those objects, then you can get that if you use atlas). > > I’d like to have that but it is not easy. I would like a

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Thierry Goubier
2018-01-10 14:41 GMT+01:00 Serge Stinckwich : > > > On Wed, Jan 10, 2018 at 2:35 PM, Thierry Goubier < > thierry.goub...@gmail.com> wrote: > >> >> >> 2018-01-10 14:26 GMT+01:00 Serge Stinckwich : >> >>> >>> >>> On Wed, Jan 10, 2018 at 2:23 PM, Julien >>> wrote: >>> Hello Serge, Do

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Julien
I see :-) Another interesting project then. :-) Julien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juliendelplanque.be/phd.html Equipe Rmod, Inria Bâtiment B 40, avenue Halley 59650 Villeneuve d'Ascq Numéro de téléphone: +333 59 35 86 40 > Le 10 janv. 2018 à 14:39, Serge St

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Serge Stinckwich
On Wed, Jan 10, 2018 at 2:35 PM, Thierry Goubier wrote: > > > 2018-01-10 14:26 GMT+01:00 Serge Stinckwich : > >> >> >> On Wed, Jan 10, 2018 at 2:23 PM, Julien >> wrote: >> >>> Hello Serge, >>> >>> Do you mean pieces of code you wrote in Python using Numpy that you want >>> to transform to Smallt

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Serge Stinckwich
On Wed, Jan 10, 2018 at 2:33 PM, Julien wrote: > I guess the hardest part will be to define the 1 - 1 mapping between Numpy > and PolyMath APIs, no? > > I mean, how can you ensure that features using Floats will behave exactly > the same in Python and Smalltalk for example? > > ​Float are the sam

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Thierry Goubier
2018-01-10 14:26 GMT+01:00 Serge Stinckwich : > > > On Wed, Jan 10, 2018 at 2:23 PM, Julien > wrote: > >> Hello Serge, >> >> Do you mean pieces of code you wrote in Python using Numpy that you want >> to transform to Smalltalk code using PolyMath? >> >> It’s kind of the other way around of this p

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Julien
I guess the hardest part will be to define the 1 - 1 mapping between Numpy and PolyMath APIs, no? I mean, how can you ensure that features using Floats will behave exactly the same in Python and Smalltalk for example? Julien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juli

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Serge Stinckwich
On Wed, Jan 10, 2018 at 2:23 PM, Julien wrote: > Hello Serge, > > Do you mean pieces of code you wrote in Python using Numpy that you want > to transform to Smalltalk code using PolyMath? > > It’s kind of the other way around of this project. :-) > > ​yes this is exactly the opposite :-(​ ​I gues

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Julien
Hello Serge, Do you mean pieces of code you wrote in Python using Numpy that you want to transform to Smalltalk code using PolyMath? It’s kind of the other way around of this project. :-) Julien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juliendelplanque.be/phd.html Equi

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-10 Thread Serge Stinckwich
Thank you Julien for this very interesting piece of code. What I need at the moment is a way to transform semi-automatically Numpy code to PolyMath code ... On Mon, Jan 1, 2018 at 8:22 PM, Julien wrote: > Hello, > > My new year main resolution: stop keeping my side-projects for me. > > It’s been

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-08 Thread Julien
Beware that no mechanism to get back values from Python is defined for now (except if you just want the String representation of those objects, then you can get that if you use atlas). I’d like to have that but it is not easy. I would like a way to describe how to map Python’s objects to Pharo’s

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-08 Thread Alexandre Bergel
AI Python libraries may be my first target…. I will let you know Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;. > On Jan 8, 2018, at 4:25 AM, Julien wrote: > > Happy you find this interes

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-07 Thread Julien
Happy you find this interesting. If you have suggestions, just let me know by creating an issue on the repository. If you create bridges to some Python 3 libraries, tell me as well! :-) Julien --- Julien Delplanque Doctorant à l’Université de Lille 1 http://juliendelplanque.be/phd.html Equipe

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-07 Thread Alexandre Bergel
I have just tried Python3Generator. Impressive work! It is a wonderful contribution! Cheers, Alexandre > So, Python3Generator [1] is made for generating programatically Python 3 code > from Pharo. Basically, it allows you to easily build a Python 3 AST, to > serialize it in Python 3 source c

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Dimitris Chloupis
Ah ok so you want to target the AST specifically, I see now. Yeap I did not implement any security measure for Atlas because the goal was local and not remote execution. Yes indeed the socket connects directly to 127.0.0 port 4000.So Atlas is preconfigured to work locally. I think safety is somethi

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Julien
> > Le 5 janv. 2018 à 17:15, Dimitris Chloupis a écrit : > > > > > Python3Generator allows to generate a Python 3 AST programatically. So > basically you have objects that represent Python 3 AST nodes and some > messages in top of that to make the generation of the AST easier from Pharo. >

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Dimitris Chloupis
> > Python3Generator allows to generate a Python 3 AST programatically. So > basically you have objects that represent Python 3 AST nodes and some > messages in top of that to make the generation of the AST easier from Pharo. > > E.g. > > ast := 'print' asP3GIdentifier callWith: #('Hello world'). >

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Julien
> > Le 5 janv. 2018 à 12:34, Dimitris Chloupis a écrit : > > > Well done, great to see my code be reused for new project. I am happy to see > people take it one step further. > > What exactly your code offers additional to my code ? Is there is something > special you do with it? Python3Ge

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Dimitris Chloupis
Well done, great to see my code be reused for new project. I am happy to see people take it one step further. What exactly your code offers additional to my code ? Is there is something special you do with it? > There is a concept of « Interpreter » in this framework. Basically, an > interpreter

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-05 Thread Julien
> Le 4 janv. 2018 à 23:48, Kjell Godo a écrit : > > did you use a socket to communicate from Pharo to Python? > it does not sound like it it sounds more one way > i am interested in using sockets to communicate between programs > but i haven't done much with it yet >

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-04 Thread Kjell Godo
did you use a socket to communicate from Pharo to Python? it does not sound like it it sounds more one way i am interested in using sockets to communicate between programs but i haven't done much with it yet maybe you can include sockets in your generated Python to talk

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-02 Thread Stephane Ducasse
On Mon, Jan 1, 2018 at 8:22 PM, Julien wrote: > Hello, > > My new year main resolution: stop keeping my side-projects for me. I ***LOVE IT*** Last year I took as decision, release all the books that I had half finished :) and I ended up creating the booklets to flush my hardisc. Stef > > I

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-01 Thread Offray Vladimir Luna Cárdenas
Good. Really nice to see more bridges between Pharo and the external world and playing well with other programming languages, frameworks and documentation systems. Cheers, Offray On 01/01/18 14:22, Julien wrote: > Hello, > > My new year main resolution: stop keeping my side-projects for me. > >

Re: [Pharo-users] [ANN] Python3Generator and MatplotLibBridge

2018-01-01 Thread Sean P. DeNigris
Julien wrote > My new year main resolution: stop keeping my side-projects for me. Great! Keep them coming… - Cheers, Sean -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html