Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-21 Thread Frank Shearar
On 20 September 2014 11:04, p...@highoctane.be p...@highoctane.be wrote: Le 20 sept. 2014 10:57, Frank Shearar frank.shea...@gmail.com a écrit : On 20 September 2014 08:45, p...@highoctane.be p...@highoctane.be wrote: A Le 20 sept. 2014 03:27, Alain Rastoul alf.mmm@gmail.com a écrit

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-21 Thread p...@highoctane.be
I may have more interesting fish to fry on the horizon... Let's keep in touch :-) Phil Le 21 sept. 2014 17:08, Frank Shearar frank.shea...@gmail.com a écrit : On 20 September 2014 11:04, p...@highoctane.be p...@highoctane.be wrote: Le 20 sept. 2014 10:57, Frank Shearar

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-20 Thread p...@highoctane.be
A Le 20 sept. 2014 03:27, Alain Rastoul alf.mmm@gmail.com a écrit : Le 20/09/2014 02:33, p...@highoctane.be a écrit : We'll prevail! What we also need to do is to showcase the Smalltalk workflow and how nice it is. We cannot gain mindshare by technical prowess only. Phil I

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-20 Thread Frank Shearar
On 20 September 2014 08:45, p...@highoctane.be p...@highoctane.be wrote: A Le 20 sept. 2014 03:27, Alain Rastoul alf.mmm@gmail.com a écrit : Le 20/09/2014 02:33, p...@highoctane.be a écrit : We'll prevail! What we also need to do is to showcase the Smalltalk workflow and how nice

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-20 Thread p...@highoctane.be
Le 20 sept. 2014 10:57, Frank Shearar frank.shea...@gmail.com a écrit : On 20 September 2014 08:45, p...@highoctane.be p...@highoctane.be wrote: A Le 20 sept. 2014 03:27, Alain Rastoul alf.mmm@gmail.com a écrit : Le 20/09/2014 02:33, p...@highoctane.be a écrit : We'll

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-20 Thread Alain Rastoul
Le 20/09/2014 10:56, Frank Shearar a écrit : I am facing quite some people who are in the FP bandwagon and wonder how to bridge with their views. Like classes are just functions etc. The article that convinced me that objects are higher order functions (that close over a set of variables) is

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-19 Thread Alain Rastoul
Le 15/09/2014 14:21, kilon alios a écrit : thanks I am looking at it is this relevant to pharo ? -- http://en.wikipedia.org/wiki/Visitor_pattern Hi, Of course, the only difference between what you will find in java,dotNet,c++ examples and Smalltalk is that the latter does not support method

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-19 Thread Alain Rastoul
Le 15/09/2014 18:23, Eliot Miranda a écrit : I find this whole discussion depressing. It seems people would rather put their energy in chasing quick fixes or other technologies instead of contributing to the work that is being done in the existing VM. People discuss using LLVM as if the code

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-19 Thread p...@highoctane.be
Le 20 sept. 2014 02:11, Alain Rastoul alf.mmm@gmail.com a écrit : Le 15/09/2014 18:23, Eliot Miranda a écrit : I find this whole discussion depressing. It seems people would rather put their energy in chasing quick fixes or other technologies instead of contributing to the work that is

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-19 Thread Alain Rastoul
Le 20/09/2014 02:33, p...@highoctane.be a écrit : We'll prevail! What we also need to do is to showcase the Smalltalk workflow and how nice it is. We cannot gain mindshare by technical prowess only. Phil I totally agree with you, but I think that those technical advances are vital in

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-18 Thread Andres Valloud
Side comments... Some code just has to be written in C, otherwise you cannot rely on the behavior being correct and ultimately that's a major show stopper for anything you might want to call production code. Anything having to do with calling operating system libraries is a typical example

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-16 Thread Pavel Krivanek
Dne pondělí 15. září 2014 p...@highoctane.be p...@highoctane.be napsal(a): Slang has been externalized by Pavel. So, Smalltalk to C works. Works nicely, even if there were a few glitches (like code generated twice at one point). Nothing unfixable, I got the beast working. Allows for things

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-16 Thread p...@highoctane.be
On Tue, Sep 16, 2014 at 9:52 AM, Pavel Krivanek pavel.kriva...@gmail.com wrote: Dne pondělí 15. září 2014 p...@highoctane.be p...@highoctane.be napsal(a): Slang has been externalized by Pavel. So, Smalltalk to C works. Works nicely, even if there were a few glitches (like code generated

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-16 Thread David T. Lewis
On Mon, Sep 15, 2014 at 11:28:24AM +0200, Santiago Bragagnolo wrote: I may be wrong, but I think the closest thing out there is Slang. Is the pseudo smalltalk used to develop the VM. A bit off topic, but just for clarification: Slang is not a language. It is just a casual name to refer to

[Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread kilon alios
Is there a way to convert code from pharo to c or c++ ? Does pettit parser or other parsers offer such support ?

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Santiago Bragagnolo
I may be wrong, but I think the closest thing out there is Slang. Is the pseudo smalltalk used to develop the VM. Also there is a project for generating C for arduino, (a project related with EToys), but i am not sure about how complete is. 2014-09-15 11:04 GMT+02:00 kilon alios

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
Hi Kilon, you don't need any parser to do that, you need something to generate C / C++ code :) There are Smalltalk to C translators floating around, and I believe one of them is in the Squeak / Pharo code base to generate the VM (or part of it). If you want to do it yourself, you probably

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Serge Stinckwich
On Mon, Sep 15, 2014 at 11:28 AM, Santiago Bragagnolo santiagobragagn...@gmail.com wrote: I may be wrong, but I think the closest thing out there is Slang. Is the pseudo smalltalk used to develop the VM. Also there is a project for generating C for arduino, (a project related with EToys),

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
Slang has been externalized by Pavel. So, Smalltalk to C works. Works nicely, even if there were a few glitches (like code generated twice at one point). Nothing unfixable, I got the beast working. Allows for things like: write Slang, generate C, compile into DLL, load DLL, run C code. All in a

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
On Mon, Sep 15, 2014 at 11:33 AM, Serge Stinckwich serge.stinckw...@gmail.com wrote: On Mon, Sep 15, 2014 at 11:28 AM, Santiago Bragagnolo santiagobragagn...@gmail.com wrote: I may be wrong, but I think the closest thing out there is Slang. Is the pseudo smalltalk used to develop the VM.

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Esteban Lorenzano
On 15 Sep 2014, at 11:33, Serge Stinckwich serge.stinckw...@gmail.com wrote: Hi pharoers, so I’ve installed Yosemite beta and: 1) there were no problems with Pharo by now 2) sometimes Yosemite lags in general (on rich 3D graphics for e.g.) and battery life is worse. 3) the most

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
Hi Phil, thanks for the update on Slang to C. Allways significant to have that. Two open questions: - would a slang to x86 asm via NativeBoost be doable / a nice target? - would targetting LLVM-IR be of interest? Thierry 2014-09-15 12:29 GMT+02:00 p...@highoctane.be p...@highoctane.be:

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Serge Stinckwich
On Mon, Sep 15, 2014 at 12:31 PM, p...@highoctane.be p...@highoctane.be wrote: On Mon, Sep 15, 2014 at 11:33 AM, Serge Stinckwich serge.stinckw...@gmail.com wrote: On Mon, Sep 15, 2014 at 11:28 AM, Santiago Bragagnolo santiagobragagn...@gmail.com wrote: I may be wrong, but I think the

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread kilon alios
WOW this CCodeGenerator is great , I have downloaded it and tried the example and it generated the 'generated.c file . Awesome thank you all Ok how about this visitor thing ? any links to it , no idea what that is and how to use it in pharo. Is it a way to code like continuations ? About

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
On Mon, Sep 15, 2014 at 1:39 PM, kilon alios kilon.al...@gmail.com wrote: WOW this CCodeGenerator is great , I have downloaded it and tried the example and it generated the 'generated.c file . Awesome thank you all Ah ah, happy to have made you day. Yes, Slang is the awesome thing for

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Tudor Girba
Please pay careful attention: this is one of those Pharo libraries that might not meet industry standard. But, it is so small and elegant that even an amateur can have a say with it :). The interesting thing about the red pill is that the reality that comes after taking the pill is less clean

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread kilon alios
thanks I am looking at it is this relevant to pharo ? -- http://en.wikipedia.org/wiki/Visitor_pattern Sure if I can stay in pharo while coding in C/C++ then why not ? Even if I still have to do work outside pharo. The problem is beginners like me do not realize the potential of their tools

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
2014-09-15 13:39 GMT+02:00 kilon alios kilon.al...@gmail.com: About LLVM sound very cool and I was googling about that few hours ago but from what I have read is a very undocumented part of LLVM so that maybe easier said than done. Looks like Pharo is not the only project having issues with

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Juan
Hola Santiago Como se llama tal proyecto, me podria ser util podria colaborar saludos Juan Marcelo On Mon, Sep 15, 2014 at 6:28 AM, Santiago Bragagnolo santiagobragagn...@gmail.com wrote: I may be wrong, but I think the closest thing out there is Slang. Is the pseudo smalltalk used to

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Santiago Bragagnolo
Que proyecto?? ?_? el que pasa smalltalk a c? estan hablando de slang 2014-09-15 14:29 GMT+02:00 Juan smalltalker.marc...@gmail.com: Hola Santiago Como se llama tal proyecto, me podria ser util podria colaborar saludos Juan Marcelo On Mon, Sep 15, 2014 at 6:28 AM, Santiago

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
2014-09-15 13:56 GMT+02:00 p...@highoctane.be p...@highoctane.be: On Mon, Sep 15, 2014 at 1:28 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Hi Phil, thanks for the update on Slang to C. Allways significant to have that. Two open questions: - would a slang to x86 asm via

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Clément Bera
Hello, Note that slang is a subset of smalltalk. The Slang compiler does not allow to compile smalltalk to C. It allows to compile a smalltalk with restricted message sends and classes to C. 2014-09-15 13:28 GMT+02:00 Thierry Goubier thierry.goub...@gmail.com: Hi Phil, thanks for the update

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread kilon alios
Yeah I think I mixed it up with something else, anyway I found a very nice tutorial how to make a working compiler with LLVM http://www.ibm.com/developerworks/library/os-createcompilerllvm1/index.html http://www.ibm.com/developerworks/library/os-createcompilerllvm2/ looks like nativeboost on

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Juan
Arduino to c++ /c Best Jmdc El 15/09/2014 09:33, Santiago Bragagnolo santiagobragagn...@gmail.com escribió: Que proyecto?? ?_? el que pasa smalltalk a c? estan hablando de slang 2014-09-15 14:29 GMT+02:00 Juan smalltalker.marc...@gmail.com: Hola Santiago Como se llama tal proyecto,

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
2014-09-15 14:39 GMT+02:00 Clément Bera bera.clem...@gmail.com: Hello, Note that slang is a subset of smalltalk. The Slang compiler does not allow to compile smalltalk to C. It allows to compile a smalltalk with restricted message sends and classes to C. Yes, I am aware of that. I remember

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
On Mon, Sep 15, 2014 at 2:33 PM, Thierry Goubier thierry.goub...@gmail.com wrote: 2014-09-15 13:56 GMT+02:00 p...@highoctane.be p...@highoctane.be: On Mon, Sep 15, 2014 at 1:28 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Hi Phil, thanks for the update on Slang to C. Allways

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
On Mon, Sep 15, 2014 at 2:11 PM, Tudor Girba tu...@tudorgirba.com wrote: Please pay careful attention: this is one of those Pharo libraries that might not meet industry standard. But, it is so small and elegant that even an amateur can have a say with it :). The interesting thing about the

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Jan Vrany
Wasn't Smalltalk/X the one which had a more complete version of that C translation? Yes. Smalltalk/X **still** compiles Smalltalk to C (bytecode interpreting and JITing modes are also supported, of course). Best, Jan

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
Sure, but enough of Smalltalk flavor to not want to go into C. For specific plugins, this is really cool to have. Phil On Mon, Sep 15, 2014 at 2:39 PM, Clément Bera bera.clem...@gmail.com wrote: Hello, Note that slang is a subset of smalltalk. The Slang compiler does not allow to compile

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
2014-09-15 15:13 GMT+02:00 p...@highoctane.be p...@highoctane.be: On Mon, Sep 15, 2014 at 2:33 PM, Thierry Goubier thierry.goub...@gmail.com wrote: Hum, I would more like SSE and AVX code done this way: matrix multiplications, bitmap processing, heavily used code, SciSmalltalk stuff on

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Damien Cassou
On Mon, Sep 15, 2014 at 2:21 PM, kilon alios kilon.al...@gmail.com wrote: is this relevant to pharo ? -- http://en.wikipedia.org/wiki/Visitor_pattern yes, this is what they are talking about! -- Damien Cassou http://damiencassou.seasidehosting.st Success is the ability to go from one

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread kilon alios
Thanks Damien :) so I want to further explore Slang , that means downloading the VMMaker , I am following the post of Mariano here https://marianopeck.wordpress.com/tag/vmmaker/ and install VMMaker like this 1 2 3 4 5 6 Deprecation raiseWarning: false. Gofer new

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Ben Coman
kilon alios wrote: WOW this CCodeGenerator is great , I have downloaded it and tried the example and it generated the 'generated.c" file . Awesome thank you all  Ok how about this visitor thing ? any links to it , no idea what that is and how to use it in pharo. Is it a way to

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Eliot Miranda
Hi All, On Mon, Sep 15, 2014 at 6:01 AM, Thierry Goubier thierry.goub...@gmail.com wrote: 2014-09-15 14:39 GMT+02:00 Clément Bera bera.clem...@gmail.com: Hello, Note that slang is a subset of smalltalk. The Slang compiler does not allow to compile smalltalk to C. It allows to compile a

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread p...@highoctane.be
On Mon, Sep 15, 2014 at 6:23 PM, Eliot Miranda eliot.mira...@gmail.com wrote: Hi All, On Mon, Sep 15, 2014 at 6:01 AM, Thierry Goubier thierry.goub...@gmail.com wrote: 2014-09-15 14:39 GMT+02:00 Clément Bera bera.clem...@gmail.com: Hello, Note that slang is a subset of smalltalk. The

Re: [Pharo-dev] Parsing Pharo syntax to C/C++

2014-09-15 Thread Thierry Goubier
Hi Eliot, Le 15/09/2014 18:23, Eliot Miranda a écrit : Hi All, On Mon, Sep 15, 2014 at 6:01 AM, Thierry Goubier thierry.goub...@gmail.com mailto:thierry.goub...@gmail.com wrote: I would not suggest replacing C by LLVM-IR for VM work, in part because LLVM-IR is not what I would call