Show newer

I got today's part one first on the merv aoc leaderboard and I did it in J!!! (1135 overall)

day 14 felt like it should have been super terse in J, but it ended up being my longest day yet in terms of lines! gist.github.com/jcmorrow/59e86

Still haven't finished part two of yesterday's AoC, but I learned a lot about J from it. Today's was... very ugly. Lots of brute forcing my way through affine transformations. For example:

```
turn =: dyad : '((>(4|x){ (0 1;1 0;0 1;1 0)) { y) * (>(4|x){ (1 1;_1 1;_1 _1;1 _1))'
```

That is not elegant 😂

jcmorrow boosted

I’m going to take my decades of experience writing software and uh... make twine games. Because that’s the level of software that’s actually fun for me

jcmorrow boosted

But he did not understand the price. Mortals never do. They only see the prize, their heart's desire, their dream... but the price of getting what you want is getting what you once wanted.

- Morpheus, The Sandman

jcmorrow boosted

Was able to finish all of today's . When all you have is a for loop, everything looks like a list

jcmorrow boosted

Most fun AoC 2020 day yet! Day 11 done :) Final time: 00:44:01

Just used plain C today.

However, short of making a custom stencil for each cell, I have absolutely no clue how to do part 2 in J, so that will have to wait!

Show thread

I'm pretty proud of my J solution to part one of today's advent of code.

gist.github.com/jcmorrow/b0426

It's probably not as terse as a seasoned J programmer might go, but the way that tile, is, pad, unpad and count all work together is really nice IMHO.

jcmorrow boosted

But I'm still not sure how to apply dyadic verbs to arrays 🤔

Show thread

Well, this problem wasn't bad, and it was my second day in a row of solving the problem in J in less than an hour, but it feels like I'm not quite doing things the proper J-way 😞

Show thread
jcmorrow boosted

Unix but audio streams are the standard interface between applications.

it was a good one! I have gotten *much* better at J in the past week. Although I did use `if`s a bit more than I would have liked.

Show thread
Show older
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.