On Fri, 7 Jul 2017, Summers, Peter wrote:
Hi Allin,
This sounds great, thanks for the heads-up.
I don't know if this is a high enough priority to try fixing before then, but
I've had an issue executing a Julia script from within gretl. Disclosure: I only
started trying to learn Julia yesterday, so this may reflect my ignorance more than
anything. Anyway, the script is
<Julila>
2+2
f(n) = (n>1 ? f(n-1)+n : n)
f(50)
</Julila>
(I know there's a more efficient way to do the recursive function: this was intended
just as a test)
This runs fine in Atom/Juno/Julia. Running it from the Julia script window in gretl, the
script output window opens but is empty -- no errors or anything. Also no indication that
anything's happening in the background (initial loading, etc.). I haven't yet
tried it as a "foreign" block, as this behavior seems like a bug.
The following works here:
<hansl>
foreign language=julia
print(2+2, "\n")
f(n) = (n>1 ? f(n-1)+n : n)
print(f(50))
end foreign
</hansl>
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------