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 significant to have that. >>> >>> Two open questions: >>> >>> - would a slang to x86 asm via NativeBoost be doable / a nice target? >>> >> >> I have to admit that I am happy to have Slang to C and it gets out of my >> competence from there :-) >> > > Yes, I believe it is very cool as it is. You need a full C toolchain > around to make it work. > > >> >> Now, Slang to asm, that's quite a chasm to cross. If what asm does is >> doing syscalls, well, I don't see the added value right away as NB >> Assembler would do that already no? >> > > Hum, I would more like SSE and AVX code done this way: matrix > multiplications, bitmap processing, heavily used code, SciSmalltalk stuff > on very large datasets. > Indeed! I'd live to generate some CUDA code from Pharo. But the toolchain goes C code which gets compiled through some "black-hole toolchain" in the NVidia SDK with host and GPU blocks. That's too much to handle for my tastes, so the best is for me to have an engine (or for a better metaphor) and using Pharo to drive/steer/harness it. > To see NB only used as a way to write syscalls :(:(:( > You opened my eyes with the previous comment. Thx. > > >> >> Now, I am on Linux for about all of my Pharo code, so, C is nice enough. >> >> >>> >>> - would targetting LLVM-IR be of interest? >>> >> >> Oh, that would be interesting. In order to get the IR interpreter and >> running things all over. Now, this should be extended to the whole VM then. >> But not sure we want that before we get 64 bits... >> > > OpenCL, SPIR code generation and link to Cog. > Indeed! CUDA =-) > > The ability to generate better code than when targetting C. > True too. But aren't those compilers smart enough already? With current CPUs, well, it takes a strong man to do better things than the compiler it seems. Or am I mistaken? > > >> >> Ah, I should have taken the research career :-) >> > > Hum, you know that researchers are allways on the lookout for SMEs to > collaborate on projects :-) > Duly noted :-) Feel free to tickle me :-) > > > Thierry > > Phil