Coder Social home page Coder Social logo

gasplund / aoc-2022 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44 KB

My attempt at the polyglot challenge for AoC 2022

PowerShell 1.53% Shell 4.92% SQL 3.79% Prolog 3.79% Lua 4.31% FreeBasic 2.09% MATLAB 4.38% Julia 4.85% Nim 6.21% TeX 4.84% Ruby 6.98% Perl 5.63% F# 6.69% Tcl 5.49% Clojure 4.03% R 7.37% TypeScript 5.07% Dart 4.67% C 5.43% Rust 7.93%

aoc-2022's Introduction

Advent of Code 2022

This is my personal repository with my attempts for AoC 2022. This year I will be doing the polyglot challenge, which means that I will be doing each day in different languages. I will also be documenting extraordinary or noteworthy solutions I come across, which may be seen below.

Day 4 - Prolog

This was more of a challenge than I'd expected. I've never coded in Prolog before, or in any logic-oriented language for that matter, so learning how to use variables and predicates was a bit of a challenge. The main challenge was to actually increment a variable and pass it on, which sounds simple enough, but given the reference orientation of Prolog it became more of a challenge than I expected.

Finding all internal functions and the proper syntax that I should use was also difficult, since the language did not have a lot of documentation and StackOverflow responses were downright confusing at times. In the end, I managed to get a working solution, but in its current state it's not very line efficient. However, I did not regret learning about logic-oriented programming, as it was a very interesting experience.

aoc-2022's People

Contributors

gasplund avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.