On Friday, 3 April 2015 10:31:31 UTC+2, bluescarni wrote: > > Hello Bill, > > On 2 April 2015 at 18:06, Bill Hart <goodwi...@googlemail.com > <javascript:>> wrote: >> >> We are very deliberately targeting the leading/bleeding edge because >> there is just so much amazing, useful stuff in the works that we really >> can't ignore (dramatically improved gc, much better C struct support, >> staged functions, C++ interface support, including inline C++, many >> speedups and bug fixes). We have numerous local hacks so that we can keep >> working through all the chaos. >> > > I just went to take a look at Cxx.jl, and it looks very promising! >
It's fantastic. I don't believe any other programming language can do this in real time (mix C++ and some other language in fairly arbitrary ways). The main downside is that the initial compilation of C++ (which happens at runtime in Julia) has to initialise the C++ (jit) compiler and run it, which is quite slow. For mathematics this isn't such a huge issue because if you have long running code you tend to not care too much about a compilation phase. But for other real time projects it would be useless. > There's not much documentation about it though, so I was wondering if you > know about the following: > > - does it support templates? > No, I don't know, sorry. You can slurp in arbitrary C++ header files. But I'm not sure how you'd instantiate them without C++. > - can you define julia structs/classes (if it makes any sense) on top of > the C++ ones (that is, I would like to be able to expose C++ classes and > their methods/operators, and to be able to call them from julia)? Or does > it support only functions? > You can certainly do this. > - is the REPL stuff going to be basically an interactive C++ interpreter? > It seems to reference in some places Cling ( > https://root.cern.ch/drupal/content/cling), which I had read about > previously. > > I haven't looked at the REPL. But my understanding is it will be an interactive C++ interpreter. It's probably best to ask the people writing it, since I don't know a lot about that side of the Cxx project. Bill. > Cheers, > > Francesco. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.