pezi_pink
2019-12-4 10:10:03

hi all, is the AOC supposed to be mostly for #lang racket? I have many out-there languages … :slightly_smiling_face:


yfangzhe
2019-12-4 10:31:44

The private leaderboard pinned in this channel, requires using racket for all the 25 days. :disappointed:


pezi_pink
2019-12-4 10:35:33

right, but what is “racket” ? :slightly_smiling_face:


pezi_pink
2019-12-4 10:35:57

pretty sure someone above had used Rosette!


yfangzhe
2019-12-4 10:38:14

Oh, no, I forgot we have so many #lang in Racket!


pezi_pink
2019-12-4 10:39:29

I have #lang ranging from FPGA programming to Commodore 64 6502 and .NET code !


pezi_pink
2019-12-4 10:40:33

I guess the language used should be “suitably rackety” and not running on a C64, that makes the most sense.


pezi_pink
2019-12-4 10:42:49

though I like the idea that for the puzzles involving virtual machines, you build the actual computer in an FPGA :slightly_smiling_face:


kamil.beker
2019-12-4 11:36:58

@kamil.beker has joined the channel


spdegabrielle
2019-12-4 14:39:29

I’m pretty sure ANY Racket #lang(too many to list), languages that target other architectures (FPGA,6510) and derivatives like RacketScript, Pyret & Urlang.Even Hackett is ok. :grinning:


spdegabrielle
2019-12-4 14:47:13

@pezi_pink :point_up:


samdphillips
2019-12-4 15:30:51

Yes any #lang show us more #langs!!!


pezi_pink
2019-12-4 16:11:51

today I wrote AoC day 2 part 1 in my new language Squirrel, which is a CLI IL assembler / .net language building toolkit. https://twitter.com/pezi_pink/status/1202253927200243712


pezi_pink
2019-12-4 16:12:42

at this point it is still simply an assembler with no enforced language semantics whatsoever. that is a job for derived languages :wink:


pezi_pink
2019-12-4 16:21:01

@samdphillips :point_up:


samdphillips
2019-12-4 23:16:34

@mbutterick has powerful match skillz


wanderley.guimaraes
2019-12-5 03:26:44

@wanderley.guimaraes has joined the channel


wanderley.guimaraes
2019-12-5 03:31:12

I didn’t find list* in the match docs. But even though, that was a neat trick.


wanderley.guimaraes
2019-12-5 03:32:11

(Maybe a dumb question) is it possible to use match to check if the list is a list of numbers in increase order?


sorawee
2019-12-5 03:35:49

Not strictly with match


sorawee
2019-12-5 03:36:04

But you can use #:when to guard each case


sorawee
2019-12-5 03:37:01

(match xs [(list _ ... x x _ ...) #:when (apply <= xs) "hello"] [_ "world"])


wanderley.guimaraes
2019-12-5 03:38:20

Ouch! I wrote for/and for that.


sorawee
2019-12-5 03:42:23

Personally I would separate non-decreasing? and has-double? from each other though. Then join them with conjoin


sorawee
2019-12-5 06:39:40

Today I tried solving things without writing tests, hoping to gain speed. Turns out I’m very bad at it, and it’s so painful to debug.