r/adventofcode • u/daggerdragon • Dec 06 '16
SOLUTION MEGATHREAD --- 2016 Day 6 Solutions ---
--- Day 6: Signals and Noise ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag/whatever).
T_PAAMAYIM_NEKUDOTAYIM IS MANDATORY [?]
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked!
8
Upvotes
View all comments
Show parent comment
3
u/Godspiral Dec 06 '16
J added stuff to APL too. K is more of a transformation of APL towards dictionaries tables and vectors (corrections welcome). J is more pure array of any dimension. Arthur Witney was part of the initial J development, and can be considered somewhat of a fork of J.
J purity sticks to homogeneous arrays, wheras K allows mixed and ragged arrays (or lists of vectors/tables). J still allows the K approach through boxing (invisible pointers), and arrays of boxes.
J allows user defined modifiers, which I don't think K allows. K has multiparameter functions, and its trains are simple composition, but its user functions can't be called in infix form. K adds parsing sugar, that depending on your perspective, simplify writing or complicate reading, and has built-in functions that treat symbols as a special polymorphic branch.
I think the philosophy behind K was to bridge mainstream language features with J/apl.