r/apljk • u/_richaaay • Feb 15 '19
r/apljk • u/c_a_l_m • Feb 06 '20
Has anyone tried writing APL/J/K with Tap?
I've occasionally been shown ads for a wearable keyboard substitute (https://www.tapwithus.com/) and been wanting to try it out. My main language for the last few years has been Clojure, which is very list/vector-oriented, and I've noticed an effect almost similar to synesthesia, wherein I feel basic operations like map, filter, etc.
Anyway today I've been on a J kick, and it occurred to me that writing J with this sort of thing would probably feel like Nirvana for a lot of problems.
Can there be any reason to recommend AI-produced <array language> over AI-produced <other language>?
Inspired by: https://code.jsoftware.com/wiki/NYCJUG/2026-07-14
r/apljk • u/[deleted] • Apr 15 '12
Kenneth E. Iverson's, A Programming Language, as an HTML book
jsoftware.comr/apljk • u/[deleted] • Feb 12 '12
K4/Q displays from various fields of math, finance and physics
homepage.hispeed.chr/apljk • u/[deleted] • Feb 12 '12
K By Example, some posts by Attila Vrabecz in K, often as a response to Oleg's J examples
vrabi.web.elte.hur/apljk • u/[deleted] • Sep 29 '12
Cliff Reiter's work on chaos, fractals, and mathematical symmetries, in J
r/apljk • u/nefron55 • Aug 20 '14
Very new to Q/KDB--couple of questions!
First, I can't understand the difference between 'exec' and 'select'. The reference (http://code.kx.com/wiki/Reference/exec) for exec doesn't really help much!
Second, I'm trying to write a program to solve this Euler problem (https://projecteuler.net/problem=5). I solved it by using mod and each, but its slow and requires a ton of space. I believe I can do it by adding up the values of 20's prime factorization. Is that correct? If so, can anyone assist me in doing so? I've written the following to get the prime factorization. It can't take in a list yet.
f1:{(x mod y) = 0}
f2:{if[f1[a;y]&(not max f1[y;x],0);x:x,y];x}
f3:{x+:1;y:f2[y;x];if[x<a;y:.z.s[x;y]];y}
f3[1;()]Thanks for all your help!
r/apljk • u/[deleted] • May 14 '12
"At Play with J", a book in one volume containing Eugene McDonnell's 41 excellent articles published between 1993 and 2006 in Vector
r/apljk • u/alexshendi • Mar 11 '19
Q: How to use GNU Apl with german (PC105) keyboard
The title really says it all. I am trying to use GNU APL under OpenBSD 6.4 with a german keyboard. Setting the keyboard to US layout via "setxkbmap us" doesn't help. On machines with an US layout I have succeeded in entering APL characters. How have others solved this problem?
Many thanks in advance.
r/apljk • u/sicr0 • Jul 26 '21
Thought on J language name
Hi, it's just a thought I had, no critique of the language itself (which is genius by the way).
Looking up for J on most web browsers is quite difficult since Java obliterates it in terms of popularity (think of jconsole as another example being unusable as a terminal command for J since it shares names with Java's console).
Wouldn't it be a better idea if the team behind J changes it name to something more unique?
In no means I'm putting down J (I love it), but if it had a more distinguished name it would probably be easier for it's community to find materials online. I was just wondering if I'm not the only one who had this opinion, and also if the development team had said anything on that matter.
Thanks for your time!
r/apljk • u/EmilioPujol • Jul 29 '21
Anyone want a Dyalog keyboard?
I got a new one because the Enter and Shift key were a little sticky. Removing the keys and blowing air into them seems to help but they still stick from time to time. I suspect it can be corrected by someone more knowledgeable. It’s just going to waste so I’m offering it free to a good home of a fellow enthusiast!
r/apljk • u/codesections • Dec 20 '22
Sigils are an underappreciated programming technology
r/apljk • u/[deleted] • Apr 12 '20
Array thinking for lexing/parsing
(NB. I am aware that array languages themselves may be implemented by comparing a stack of characters taken from the rightmost end of the input string against a table of options. I'm not asking how to parse an array language using a language like C; I'm asking how you'd parse another language using an array language in an idiomatic way.)
There are many approaches to lexing/parsing but the ones I know don't involve thinking in terms of operations on whole arrays. How does one use array thinking to deal with this kind of problem?
(If it was just a matter of turning:
123 $ abcinto:
123
$
abcI could use character classes to mask the original input (e.g.assuming class 0 is white space, 1 is digits, 2 is lowercase letters, 53 happens to be $,...):
1 1 1 0 0 53 0 2 2 2and then I can tokenise based on when the numbers change.)
But how does one interpret input that depends on previous input in complex ways?
e.g.1 a number may have a decimal point, but not initially and no more more than one, such that 1.23 is well-formed but .123 and 1.2.3 are malformed.
e.g.2 You may have heredocs where it has an arbitrary input from earlier in the array of characters:
a=<<ANYTHING
...text...
ANYTHINGThe concepts I'm missing are how to use whole-array operations to handle this sort of intricate dependence on what has already occurred in the same array. Is anyone willing to explain?