Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The main problem with (GNU) APL for me is the line editor: I can't feel comfortable using a REPL to write a program without keybindings like ctrl-a, ctrl-w. Everytime I try to learn APL I eventually give up.


I implemented Emacs support to handle exactly this. It also provides several other useful features such as formatting and code navigation.

It's available on MELPA as gnu-apl-mode, or you can get it here: https://github.com/lokedhs/gnu-apl-mode

As poor as this video is (and the last time I posted it I believe I said I was going to make a new one), it does illustrate some of the features: https://www.youtube.com/watch?v=yP4A5CKITnM


I don't know if this is helpful for you, but I map <c-p> to run the open buffer in Vim in the buffer's filetype's interpreter (or compile and run, etc.). For GNU APL, this is:

  nnoremap <buffer> <C-P> :write !cat - <(echo ")OFF") \| apl --script<CR>
It took some time to figure that out, but combined with https://github.com/ngn/vim-apl, it is not too bad of an editing experience.


I haven't tried it out, but maybe rlwrap can help here.


Unfortunately it doesn't seem to work.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: