The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Mar 5, 2023 14:22
@SilasPoulson If it works in the terminal but not in RIDE the rendering must be the issue, you could look at the RIDE notifications to see if ⎕SM is coming through at all.
Mar 4, 2023 21:08
Ah, I see. Found it in the docs should be able to figure it out from here
Mar 4, 2023 21:06
What are those?
Mar 4, 2023 21:03
@Adám I remember you demo-ing a way to customize the REPL, how would I go about implementing a post-execution function along those lines
Mar 3, 2023 16:52
It's written in a minimal flavour of C called C--
Mar 3, 2023 15:37
@xpqz The encoding of this interpreter is nice to look at :)
Mar 3, 2023 14:41
I need more sugar, one second
Mar 3, 2023 14:40
(⌊(2*-⍺)∘×)⍢((2⍴⍨≢⍵)∘⊥)
Mar 3, 2023 10:17
It is not in any APL
Mar 1, 2023 18:25
fair enough :)
Mar 1, 2023 18:25
aha
Mar 1, 2023 18:24
@Adám Depends what you mean. It wouldn't need a non RTL ordering
Mar 1, 2023 18:22
             :If 'Linux'≡(⊃# ⎕WG'APLVersion')~'-64'
             :AndIf ~0∊⍴⎕CMD'which git'
             :OrIf 'Windows'≡(⊃# ⎕WG'APLVersion')~'-64'
             :AndIf ~0∊⍴⎕CMD'where git'
Mar 1, 2023 18:22
How would write
Mar 1, 2023 18:21
:If
:AndIf
⍝ statement

vs

:If
:AndIf
:OrIf
:AndIf
⍝ statement
Mar 1, 2023 18:20
I suppose it can't know where you want to put the conditional statement, after the the first or second AndIf
Mar 1, 2023 18:19
Weird that you can't do

:If
:AndIf
:OrIf
:AndIf
Mar 1, 2023 18:12
thanks
Mar 1, 2023 18:11
Is :AndIf short-circuiting
Mar 1, 2023 16:22
@B.Wilson Sometimes logic is inevitable :) It would be nice if APL had more lispy constructs thoguh
Mar 1, 2023 16:09
:Else -> :ElseIf cond2
Mar 1, 2023 16:07
Is there a neater way to do

:If cond
  :Trap 0
     ⍝ dangerous expression
  :Else
    doThis
  :EndTrap
:Else
  doThis
:EndIf
Mar 1, 2023 08:34
Richard did a great job on ⎕R :)
Mar 1, 2023 06:37
sure
Mar 1, 2023 05:57
Updated my interpreter, I'll see if that resolves it. (It's already resolved a bunch of stuff, RIDE was fairly broken on my system previously)
Mar 1, 2023 05:28
No, I'll submit an issue if I can
Mar 1, 2023 05:25
And on disc the source is as typed
Mar 1, 2023 05:24
My only issue with it so far is that for mysterious reasons sometimes when I edit functions after I've created them they lose their formatting
Mar 1, 2023 05:23
LINK is pretty nice, I should've tried it earlier
Mar 1, 2023 03:24
Yes empties are very nice for avoiding conditional logic
Feb 28, 2023 06:37
I believe that is a logged issue
Feb 28, 2023 02:00
⎕R is one of my favourites
Feb 27, 2023 09:31
@Adám We should have a meeting about RIDE soon
Feb 27, 2023 08:44
Adám does a lot of work on the user commands/tools side of things, he's also the top source for language design. He has his fingers in a lot of pies
Feb 24, 2023 12:04
Is there a way to do a TAO comparison without grading?
Feb 22, 2023 11:37
I hadn't thought about it much yet, but if I have some interesting ideas I'll message you :)
Feb 22, 2023 11:25
The APL bookworms was a good idea, I have so many interesting APL books, I should be better read
Feb 22, 2023 11:24
@pmikkelsen Me too :)
Feb 22, 2023 07:31
With virtualization, a RIDE protocol file structure and some improvements to the netsurf fork it should be viable.
Feb 22, 2023 07:27
Ping me if you make progress :)
Feb 22, 2023 07:27
Some Dyalog-ers are trying to get the RIDE protocol on plan9, a few of us would like to use it for our jobs. It will likely never run natively and virtualization is hit or miss.
Feb 21, 2023 07:50
FYI - problems.tryapl.org and tacit.help, aswell as some other sites will be down for a while for server migration
Feb 19, 2023 23:33
@Adám Ah, cool
Feb 18, 2023 08:25
Maybe it should be documented that names referenced in assignment will be unaltered if the assignment fails
Feb 18, 2023 08:19
a←1 2 3
a[a⊣a+←1]←0
INDEX ERROR
a[a⊣a+←1]←0

a
1 2 3

Shouldn't a be 2 3 4?
Feb 18, 2023 08:17
@LdBeth It does work, can't remember if the installer lets you install the IME but not the interpreter, though.
Feb 17, 2023 07:20
Wow that's ugly :)
Feb 17, 2023 07:12
It would be nice to have the grammar documented
Feb 17, 2023 07:08
The syntax for the LHS is finicky, it would've taken me a few guesses