Readit News logoReadit News
gitonthescene commented on Klong: A Simple Array Language   t3x.org/klong/... · Posted by u/tosh
thomasmg · 3 months ago
I appreciate the features of these languages (J, K, and Klong), but I do not understand the reason why they have such a hard to read syntax. I think it is a pity; I could see myself using it otherwise. Maybe it is by design, but I do not understand it.
gitonthescene · 3 months ago
You could say you enjoy toodling on the piano but don’t understand why reading music has to be so hard. It doesn’t _stay_ hard and it opens up new avenues.
gitonthescene commented on APL Interpreter – An implementation of APL, written in Haskell (2024)   scharenbroch.dev/projects... · Posted by u/ofalkaed
ofalkaed · 3 months ago
The logic of the system instead of the pieces of the system; how the language's core data structure applies/relates towards expressing that system. I could very well be overthinking things and seeing some sort of magic which is not there but this line in the previous response to me, makes me think I am still missing a piece of the puzzle:

>organize application state as a global database of inverted tables and progressively normalize them such that short APL expressions carry the domain semantics you want.

gitonthescene · 3 months ago
I may be reading too much into this but it sounds like you’re searching for templates to stimulate ideas similar to how there are examples for smaller puzzle type problems.

I think most sizable stuff is proprietary. I implemented an lsp in an open source K which uses json/rpc. But the open source K is probably best considered a hobby project.

https://github.com/gitonthescene/ngnk-lsp/blob/kpath/k/lsp.k

You might consider joining one of the APL forums if you haven’t already.

gitonthescene commented on APL Interpreter – An implementation of APL, written in Haskell (2024)   scharenbroch.dev/projects... · Posted by u/ofalkaed
howerj · 3 months ago
Is there an implementation of an APL language (or other any other array language) written in *readable* C that is around 1000 LoC? There are for LISP, FORTH, Prolog, TCL and the like.
gitonthescene · 3 months ago
Readable is probably in the eye of the beholder but here’s a partially expanded version of ngn/k https://codeberg.org/growler/k/src/branch/expand/a.c

The expansion is mechanical and thus not really at attempt at readability.

gitonthescene commented on APL Interpreter – An implementation of APL, written in Haskell (2024)   scharenbroch.dev/projects... · Posted by u/ofalkaed
0xTJ · 3 months ago
Seeing "all built-in functions and operators are single unicode symbols" stood out to me, given that APL existed well before Unicode did. It's not that it's wrong today, but that wasn't always the case. My father used APL back in high school, and that was before the earliest year mentioned in the "History" section of the Unicode Wikipedia article.
gitonthescene · 3 months ago
It wasn’t Unicode but it wasn’t ASCII either. I think here unicode is probably shorthand for not ASCII.
gitonthescene commented on What about K?   xpqz.github.io/kbook/Intr... · Posted by u/tosh
cppandjava · 7 months ago
Hmm. I work in finance writing C++ and Java and I doubt other people in finance make 50-150% more than me because they know `q`.
gitonthescene · 7 months ago
I don't know. If you're writing Java you may not be working on the same types of problems.
gitonthescene commented on What about K?   xpqz.github.io/kbook/Intr... · Posted by u/tosh
bobthepanda · 7 months ago
The original comment is a joke
gitonthescene · 7 months ago
This comment would seem to address the point of that joke
gitonthescene commented on Two Bites of Data Science in K   blog.zdsmith.com/posts/tw... · Posted by u/crux
gitonthescene · 8 months ago
I had a similar-ish project a while ago. I enjoy doing the "Spelling Bee" game in The NY Times Games section. In the comments someone worried that there weren't enough arrangements to keep the game going very long. I used an open source dictionary to generate all possible puzzles restricted by some basic heuristics like never using the letter S, having the total number of possible words in some reasonable range, etc. I found about 23,000 possible puzzles. My next idea was to use google's n-gram statistics to add some sort of "commonly known" heuristic, but my energy for the project petered out.

In any event these languages are great for exploring data in projects like these.

gitonthescene commented on Two Bites of Data Science in K   blog.zdsmith.com/posts/tw... · Posted by u/crux
gitonthescene · 8 months ago
The readme has links to various resources including tutorials: https://codeberg.org/ngn/k
gitonthescene · 8 months ago
Oh, sorry. I misunderstood the question.
gitonthescene commented on Two Bites of Data Science in K   blog.zdsmith.com/posts/tw... · Posted by u/crux
evertedsphere · 8 months ago
is there a website or similar for this language? couldn't find anything with a quick google
gitonthescene · 8 months ago
The readme has links to various resources including tutorials: https://codeberg.org/ngn/k
gitonthescene commented on Why was the 1959 album "Kind of Blue" by Miles Davis such a big deal?   old.reddit.com/r/AskHisto... · Posted by u/nabla9
ipunchghosts · a year ago
I really enjoy this record. What others would one recommend that are similar?
gitonthescene · a year ago
Chet Baker - Let’s get lost Gerry Mulligan - Night Lights

Also check out Bossa Nova by João Gilberto for a similar vibe but a different style.

u/gitonthescene

KarmaCake day51May 13, 2022View Original