Giter Site home page Giter Site logo

recreational's Introduction

This repository for little things I coded just for the sake of it

Advent of Code

https://adventofcode.com/

I've deliberately written a lot of the code in a deliberately convoluted or unusual style to make it more interesting, so it's very far removed from code I'd ever write for production or for other people to work on. Most frequently, I've tried to force Java to look like Haskell, to varying degrees of success... But generally speaking you can expect to find

  • The most expressive code in Haskell
  • The most performant code in C
  • A general tend towards expressiveness over performance, except in C

Commentary for each year is in docs/Advent of Code/YEAR.md

The table below shows my progress and the languages that I want to do this in. Lots of the problems lend themselves nicely to Haskell. The main holdup is that I don't know much about IO or QoL stuff like regex in Haskell.

Each year has 50 stars available, two parts for each day of advent.

Language 2015 2016 2017 2018 2019 2020 2021 2022 2023
Java 10 - - - - 14 16 14 8
Haskell - - - - - - 2 - -
Python - - - - - - - - -
Typescript - - - - - - - - -
C - - - - - - 2 - -

I also did the 2017 event live, though never finished, and got 29 stars. I don't still have the source but I recall using both Haskell and Python

recreational's People

Contributors

markhenrick avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

recreational's Issues

Reduce amount of data allocated in static fields

The current approach would probably make sense for a real application, but in this context it just leads to a spike in memory usage at test suite init, that is used a few times then never freed. This also hides the runtime of important work

Proposed solution: Make each day a class, and use instance fields, except perhaps for primitive and string constants

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.