Oh it can? i thought it couldn't because i got an error last time i tried it and it was along the lines of "attempted to use dyalog runtime" or something. so i assumed eval was the issue
yes i think so. to make sure though i need some time because i tested the script and ofcorse turned off apl because of the ⎕off. should have seen that coming
@Adám the jupyter kernel is flaky with 18.2. I can't tell if this is a jupyter-kernel problem or 18.2 problem. I've captured some crash logs here: gist.github.com/xpqz/11f99b6788f9d8a0b5b9b76793f4a12e -- let me know if/where you'd like this reported.
It goes into a restart loop.
Bad file descriptors, bad tcp recv.
I can generally open one notebook successfully. Trying to open another seems to trigger this problem.
A library for CEF components/etc might be a nice idea. Writing bindings/ffi in Dyalog is sufficiently too hard for other forms of GUI libraries to take off (imo)
I want to be able to write myui.document.body.background←'red' and have it change background, and similarly, myui.mybutton.onclick←'⍎MyAPLfn' or something like that.
Well, there's also the Python APL bridge, you could always write the frontend in Python. Or you could use APL as a shared library. But neither of those are ideal
@Fmbalbuena b is a dyadic operator (due to having ⍵⍵). You end up calling 1 2 3 4 {(⍴⍺)>(⍴⍵):⍺⋄∇∇⍵+⍵⍵}⍎1 2 3 4 which makes 1 2 3 4 he left operand, and then there's no left argument, so you get a value error on ⍺.
The Challenge
The challenge is simple: given an input list a and another list b, repeat a until it is longer than b. Call the repeated list ra. Then the following condition must hold true: len(b) < len(ra) <= len(b) + len(a). That is, a must not be repeated more than is required.
Sample Python Im...