« first day (1620 days earlier)      last day (1024 days later) » 

RGS
12:14 AM
@user1027871 you should be able to post messages in this chatroom now.
Welcome to the APL Orchard :D
 
12:43 AM
If you have any further problems with user1027871's write permissions feel free to ping me :) I may not be around for a while tho D:
 
I am here now if anyone needs anything.
 
 
7 hours later…
7:58 AM
Are there any APL linting tools?
 
 
3 hours later…
RGS
10:57 AM
@Razetime dzaima/paste?
 
11:14 AM
that's just a storage/presentations space right
I'm talking about static code checking
 
RGS
I was mentioning dzaima/paste because I thought you could take a peek at the code there, but I confused linting with syntax highlighting
 
ah
I'd taken a peek already for aplgolf
 
@Razetime there is barely anything for static APL parsing, which is very much required to be able to analyze anything at all
 
hm interesting
so first there needs to be one of that
 
11:35 AM
@Razetime but that's impossible if you're using ⍺⍺/⍵⍵, , namespaces, or reading globals. (fwiw, Dyalog has a compiler, which does need static parsing, but it doesn't do anything if the things listed (and some others) are used)
 
11:48 AM
@Adám the C comment expression is broken
      '/*'∘(≠\⍷∨¯1⌽∘⌽⍷∘⌽) 'a /* world */ b c'
┌→────────────────────────────────┐
│0 0 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0│
└~────────────────────────────────┘
      '/*'∘(≠\⍷∨¯1⌽∘⌽⍷∘⌽) 'a /* world */'
┌→────────────────────────┐
│1 1 0 0 0 0 0 0 0 0 0 0 0│
└~────────────────────────┘
 
12:33 PM
@dzaima i suppose that can sorta be ignored
how do other languages with an eval function do it, then?
 
12:45 PM
they mark eval as a severe linter error :')
 
1:34 PM
neat
 
1:44 PM
@Razetime depending on the language, eval might not actually completely thrash all ability to statically parse - the type of a variable doesn't usually change its usage
(and, fwiw, i do plan on experimenting with some static analysis for BQN at some point)
 
2:28 PM
@dzaima yes please, I need more places to steal from
 
 
2 hours later…
4:41 PM
Can the scope of ⎕RL be limited within a Dyalog Class namespace, so reproducible numbers are generated on each call without being effected by use of Roll etc outside of the class?
 
@user3821550 does just adding ⎕RL←1 in the namespace not work?
 
yeah, and then you can access ? from inside the namespace with ns.?
just tested it and it does work
 
I have set ⎕RL to 1 1 within the top function in the class namespace, (which is being being run by MiServer) but on each call from MiServer, I don't get the same results. I will give ns.? a try. Thanks
 
4:56 PM
you have to set it within the namespace itself, not a function in it
alternatively, you could do something like this
 
5:17 PM
Setting ⎕RL to 1 1 in the class script and using ##.? appears to do the trick. Many thanks.
 
don't see why ##. would be needed
 
 
2 hours later…
6:54 PM
i posted a writeup on metaprogramming in APL, it's probably a bit lame but i like it: palaiologos.rocks/posts/dx-rewrite
 
RGS
7:35 PM
@KamilaSzewczyk Reading it, but I like the colour scheme
Is it correct to say that it is (inspired by?) the Dracula theme?
 
sort of
 
RGS
first paragraph “and then move onto implementing it C or C++∙" → “and then move onto implementing it in C or C++”
 
oh - i missed it :P
i'll fix that soon
 
RGS
The sentence “We check if this token '⍝'=” seems a bit odd to me. I think there is a word missing..?
woo, love the footnote functionality that allows you to jump back to where the footnote is
 
@RGS i mixed APL code with an english sentence
it's meant to say "if this token is '⍝'"
 
RGS
7:42 PM
@KamilaSzewczyk that I understand, but I would still expect something more in there. Something like “We check if this token is '⍝'” or “We check if this token is ='⍝'”
but hey, feel free to ignore wtv I say; I'm just trying to be helpful ○/
“We take find the index in the table”
 
should be fixed now
it seems like i accidentally messed up the stylesheets and firefox refuses to tell me what's wrong
 
RGS
@KamilaSzewczyk What's messed up?
Tangent; when you write “I also decided to borrow Adam Brudzewsky’s range function and translate the tradfn alternant from the dfns workspace into a more sane and modern version:”, what are you saying you rewrote?
 
i took Adam's range function nearly verbatim
and I copied+pasted the alternant code and turned it into a dfn.
 
RGS
If you are talking about alt, it is actually a dfn: dfns.dyalog.com/c_alt.htm
 
the algorithm, variable names, etc.. are still the same
 
RGS
7:48 PM
That is why it is called the dfns workspace :P
 
oh, well.
this was a tradfn
 
RGS
Cool blog post!
I liked the domain extension through unicode characters. I do have a question; how does 60⌶ tokenise series of unicode characters?
Are they split up by the tokeniser?
 
@RGS i tried to add APL386 to the pre code blocks, but the font was proportional for some reason...?
@RGS yes
      60⌶'⍭√⍢⍛⍙…⍗φ⍁ΦΦ⌂'
┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐
│⍭│√│⍢│⍛│⍙│…│⍗│φ│⍁│Φ│Φ│⌂│
└─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘
 
RGS
@KamilaSzewczyk I wish I could help, but unless you ask me to test specific things, I'm afraid I won't be able to help much.
 
you can take a peek in the devtools if you feel like it
 
RGS
7:53 PM
@KamilaSzewczyk Right, I figured I could've just opened the interpreter instead of bothering you 🙃🙃
 
RGS
yeah, I also have Fira Code; I also took a peak at "all fonts in the page" and APL 386 doesn't show up in there.
And also the stylesheets that are loaded for the page don't have any matches for the search "apl"
 
I removed it a second ago
because it didn't work
interestingly enough, this problem occurs only with APL386
 
RGS
So any other font works well?
Where are you loading the font from? Is it local or are you using some sort of CDN or wtv those things are called
 
i put it in my static folder
and i load it using @font-face { ...
that being said it's late for me already and i'll be heading to sleep.
⍤/
 
RGS
7:58 PM
Bye, thanks for sharing the blog post ○/
 

« first day (1620 days earlier)      last day (1024 days later) »