#adventofcode2022 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #adventofcode2022, aggregated by home.social.
-
I completed #Day14 of #AdventOfCode2022.
#Medium difficulty, because of the #ASCIIArt (I'm not using libs for that) and of the careful design of the program (to avoid most subtle bugs, thus loss of time). About 5 hours, total, between design, coding, and testing. Tiring, but not tricky.
I really need a good package of #iterable classes and methods; the standard #JavaScript classes are good, but not enough.
-
CW: Advent of code
I just completed "Distress Signal" - Day 13 - Advent of Code 2022 #AdventOfCode https://adventofcode.com/2022/day/13
Today is also the first day, I use external libraries. Using a real parsing library made things so much easier.
Additionally I started an "Aoc" Library of useful Aoc related functions, like `splitOn :: a -> [a] -> [[a]]`, that divides a list by some a.
Code is here: https://git.k-fortytwo.de/christofsteel/aoc2022/-/blob/main/day13.hs
#haskell #earley #adventofcode #adventofcode2022 #coding #code
-
I completed #Day11 of #AdventOfCode2022. It was the hardest of the #AdventOfCode problems, for now: almost 5 hours to solve!
Difficulty: #Medium.
Part 1 was easy-to-medium: code to the specs, take care of the always-mutating array lengths during the loops.
When, at part 2, numbers started overflowing, the difficulty shot up right to Medium: I had to use #BigInt. Then, even it overflowed!
(Spoiler in the reply...)
-
Racket meet-up Saturday 3 December at 18:00 UTC :racket:
The 'Racket Room': https://gather.town/app/wH1EDG3McffLjrs0/racket-users
At this meet-up:
- Advent of Code
- Show and tell
- News & rumours
- AOB
Racket meet-ups are on the first Saturday of EVERY Month at 18:00 UTC
Discourse and Discord are the most active places for Racketeers.
Pacific Time, PT Sat, 3 Dec 2022 at 10:00 PST
Mountain Time, MT Sat, 3 Dec 2022 at 11:00 MST
Central Time, CT Sat, 3 Dec 2022 at 12:00 CST
Eastern Time, ET Sat, 3 Dec 2022 at 13:00 EST
London, United Kingdom Sat, 3 Dec 2022 at 18:00 GMT
Prague, Czechia Sat, 3 Dec 2022 at 19:00 CET
Taipei, Taiwan Sun, 4 Dec 2022 at 02:00 CSTAnd remember - showing up at Racket Meetups helps you learn the news of the Racket world as they happen! It is informative, it is interesting, it is helpful, it is greatly appreciated by everyone involved and it is fun!
30 minutes but can overrun (it usually lasts ~1hr)
EVERYONE WELCOME
Stephen


#Racket #RacketLang #RacketLanguage #RacketMeetUp #FunctionalProgramming #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #lopmi
-
CW: re: Racket Advent of Code leaderboard (long)
Discussion is welcome on the Racket Discourse: https://racket.discourse.group/
If you prefer chat the Racket Discord has a dedicated #advent-of-code channel https://discord.gg/6Zq8sH5
EVERYONE WELCOME
#Racket #RacketLang #RacketLanguage #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #LOP
PS maybe try
#lang plait😁“The Plait language syntactically resembles the plai language, which is based on racket, but the type system is close to that of ML.”
-
And I've managed to complete it in #NodeRED as well just using core and contribution nodes (No #javascript or #jsonata) :)
https://discourse.nodered.org/t/advent-of-code-2022-day-1/71565
#AdventOfCode2022 #AdventOfCode -
CW: Racket Advent of Code leaderboard (long)
Thanks to
@samphillips we have an inclusive Racket leaderboard for AoCSam posted the details here:
https://racket.discourse.group/t/advent-of-code-2022-racket-leaderboard/1461?u=spdegabrielle (not a walled garden so you don need an account to view the page).Why inclusive?
Any language in the Racket ecosystem is allowed on our leaderboard, including languages that target other platforms like Urlang (aka Javascript with sane (parenthetical) syntax)You could try
- Typed Racket, Racket’s gradually-typed sister language which allows the incremental addition of statically-checked type annotations.
- Qi: A Functional, Flow-Oriented DSL
- RacketScript, the Racket to JavaScript Compiler
- Parenlog an implementation of a language very similar to pure Prolog, except with parenthetical notation.
- Datalog, a declarative logic programming language.
- PLAI-Typed (thanks to @shriramk)
- and many more
Choose the language(s) that suits the problem - you don’t have to pick just one.
OR take the ‘Language-Oriented Programming’ approach and make your own language(s): https://beautifulracket.com/appendix/why-lop-why-racket.html
Thanks to @Eutro for the
advent-of-codepackage to download puzzle inputs and post solutions:HAVE FUN
:racket::racket_running:#Racket #RacketLang #RacketLanguage #AdventOfCode #AdventOfCode2022 #LanguageOrientedProgramming #LOP