« first day (1870 days earlier)      last day (791 days later) » 

8:11 AM
@BrianBED I believe isn't allowed on tryapl.
 
@BrianBED Did you make it a console app?
@BrianBED Right, as xpqz said, isn't allowed on TryAPL. Neither is .
 
8:41 AM
yes i did. Sorry, I've been pretty busy but i hope the error and the code can help:
https://imgur.com/Br4s4W9
 eval
 e←⍞
 ⍎⍞
 ⎕OFF
 
@BrianBED Use "Standalone executable".
 
but, if i do that i can't use eval right?
oh im dumb. i should have made ⍎⍞ be ⍎e
 
@BrianBED Why not?
 
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
that is the error that i get if i make it standalone
 
Did you check "Console application"?
 
8:49 AM
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
yes so still this error, and i made sure it was a console application
 
9:32 AM
@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.
 
10:29 AM
@xpqz Thanks for the report. Maybe log an issue against the kernel repo?
 
@Adám Done.
 
 
1 hour later…
11:39 AM
Asking again: is there a library for reading images in Dyalog? (all platforms, not just windows)
 
I don't think so
 
11:58 AM
I'll ask again too, are there any good GUI libraries where you can do drag+drop stuff like windows forms rather than with ⎕WC?
 
APL+ had something like that back in the '90s.
 
idea: APL Tk interface
 
idea 2: APL OpenGL interface
 
idea 3: APL Qt interface
 
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)
 
12:02 PM
Problem is the missing immediacy of bindings inside the browser.
 
the browser?
 
CEF is Chromium Embedded Framework.
 
oh, i see
 
@FawnLocke nice, but only windows
 
12:03 PM
right
 
also massively out of date
 
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.
 
can you not already do something similar with ⎕WC?
 
Yes, exactly, but that doesn't work cross-platform, nor exposed to the web.
 
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
 
12:05 PM
@Adám yeah :/
 
My recommendation is to use April :) much better if you can deal with worse performance/errors
 
so verdict, for windows guis there's nothing better than wc?
 
 
1 hour later…
2:24 PM
@Adám The Quests are proving to be good value.
 
Thanks! And thank you for your participation.
 
I can't join tomorrow, sadly. Will watch on catch-up.
 
:-)
 
2:41 PM
@Adám Do you envision that expression setting the background color to red being exposed to the web?
 
@PaulMansour Yes.
 
That is, are you writing that on a server in APL and it goes via a websocket to some client?
Got it.
 
Yes, either local (HTMLRenderer) or remote.
 
 
1 hour later…
3:53 PM
Announcement: BAA webinar in 7 minutes: Zoom 858 532 665, passcode: ×/1920 12 17
 
 
1 hour later…
5:05 PM
@Adám defect report: APLcart snippet for checking whether an array is a subarray of another doesn't always return 1 when invoked like v (1∊⍷) v
 
@KamilaSzewczyk What is the exact expression?
 
⋄⍬(1∊⍷)⍬
 
@KamilaSzewczyk 0
 
works for any other vector: ⋄v←1 2 3⋄v (1∊⍷) v
 
@KamilaSzewczyk 1
 
5:14 PM
@KamilaSzewczyk Nice catch. It should be ∨/⍤,⍷ or somesuch.
Pushed fix.
 
⋄⍬(∨/∘,⍷)⍬
 
@KamilaSzewczyk 0
 
Oh, d'oh, only ∧/ gives 1 one empty.
Hm, ≡∨1∊⍷ ?
 
one way to tell!
⋄⍬(≡∨1∊⍷)⍬
 
@KamilaSzewczyk 1
 
5:22 PM
Question was if there's a better way.
 
not sure. i think this explicit check to see if arrays are equal is required
 
@KamilaSzewczyk Without trying it, what do you think the result of ⍬⍷'abc' should be? ;-)
 
difficult question
it looks for the zilde in the array on the right
intuitively it would return a vector of ones
 
It does indeed.
 
and with the arguments switched it should return a zilde
 
5:33 PM
However, if you try to take all subarrays of length 0 of 'abc' you won't find among them.
 
 
5 hours later…
10:22 PM
I forgot something
3
 
@Fmbalbuena I forget things all the time. What did you forget?
 
b←{(⍴⍺)>(⍴⍵):⍺⋄∇∇⍵+⍵⍵}
u←⍎⍞
⎕←(u b⍎⍞⊢u)
NOT PERMITTED: Illegal token
      ⎕←(u b⍎⍞⊢u)
     ^
 
Yeah, not allowed on TryAPL.
 
@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 .
 
10:30 PM
Is there a way to fix?
 
It isn't clear to me what you're trying to do.
Ah, are you trying to solve this?
3
Q: Repeat List Until Longer

SegganThe 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...

 
@Adám I think I found the bug
 
@Fmbalbuena Like this?
 
@Adám Hmmm why "∇" instead of "∇∇"?
 
is a self-reference for a function. ∇∇ is a self-reference for an operator.
 
10:37 PM
@Adám thanks
but
@Adám 1 1 b 1 1 1 1 doesn't work
 
Ah right, you want to add the original list, not just double it.
 
@Adám yes
 
Your idea of carrying the original value as operand was good: Try it online!
 
@Adám ⎕←'thanks' × 2
 
thanks⍣2 :)
 
10:44 PM
@FawnLocke Wait, you need quotes?
 
@Fmbalbuena :-) You can golf it a bit: {⍺←⍺⍺⋄⍺>Ö⍴⍵:⍺⋄⍵∇⍨⍺,⍺⍺} Try it online!
 
Well, assuming thanks is a function
 
@Fmbalbuena You can't multiply a non-empty character vector by 2.
 
@Adám Oops, ⎕←{((⍴⍵)×3)⍴⍵}'thanks'
@Adám Why you need "Ö"?
 
@Fmbalbuena It should be a but TIO's old version doesn't have that.
⎕←,⍣2⍨'thanks'
 
10:48 PM
@Adám thanksthanksthanks
 
0
A: Repeat List Until Longer

FmbalbuenaAPL (Dyalog Unicode), 59 bytes b←{⍺←⍺⍺⋄⍺>⍥⍴⍵:⍺⋄⍵∇⍨⍺,⍺⍺} Try it online! Thanks to Adám for golfing some bytes in chat and helping me to fix errors.

@Adám ⎕←,⍣3⍨'thanks'
 
@Fmbalbuena thanksthanksthanksthanks
 
11:26 PM
⊣⍴⍨+⍥≢-|⍥≢ works I think
 
Or (+-|)⍥≢⍴⊣
 
yeah nice
 
You'll post?
 
Can't particularly be bothered tbh
I didn't come up with the shorter one anyway
 
Simple golf of yours.
 

« first day (1870 days earlier)      last day (791 days later) »