Hi,
I played around a bit more, and managed to get the ROOT GUI (e.g. TBrowser
or histogram in TCanvas) running from within Julia. One has to start a
TTimer for some reason (else ROOT's event loop blocks for longs times),
took some digging in TQRootApplication.cxx to discover that trick.
Anyhow if anyone's interested, here's a gist with a little demo (needs
ROOT-5, for now, of course):
https://gist.github.com/oschulz/e471c2e6c7dcd7ea10a5
It fills a histogram with a Gauss, draws it, and does a simple fit. Fun to
see ROOT's fitter output on the Julia console.
I'm thinking about putting together a small Julia package ("CxxROOT.jl",
maybe?), focused on TH1, TTree and GUI via "Cxx.jl" (won't cover as many
classes as "ROOT.jl") - just to explore these things further, and as a
stopgap to use ROOT+Julia for my work. Joosep, would you be interested, too?
Cheers,
Oliver
On Wednesday, January 13, 2016 at 1:01:54 AM UTC+1, Oliver Schulz wrote:
>
> That's great news - thanks a lot, Keno!
>
> On Tuesday, January 12, 2016 at 4:24:33 PM UTC+1, Keno Fischer wrote:
>>
>> Doesn't work with ROOT-6, though, as the LLVM instances
>>> of Cling and Julia seem to clash.
>>>
>>
>> I've been talking to the ROOT authors to get this resolved as well as
>> getting better integration.
>>
>