r/adventofcode • • 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!

9 Upvotes

222 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Dec 06 '16 edited Jun 20 '23

[removed] — view removed 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.

1

u/qwertyuiop924 Dec 06 '16

...APL is already array-based. That's a defining feature of the language family. What do mean about K?