Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webbertakken/advent-of-code

Me participating in Advent of Code
https://github.com/webbertakken/advent-of-code

advent-of-code aoc

Last synced: 12 days ago
JSON representation

Me participating in Advent of Code

Awesome Lists containing this project

README

        

# Advent of Code

Me participating in Advent of Code.

To practice, I will try to solve the problems in different languages.

## TypeScript (Bun)

### Prerequisites

- [Bun](https://bun.sh/)
or
- [Node](https://nodejs.org/)

### Run

Change directory to the TypeScript folder

```bash
cd 2022/typescript
```

Run the solution for a specific day

```bash
bun run day01.ts
```

Run the tests

```bash
bun test # note that this runs bun native stuff underneath, as opposed to "bun run test"
# or
yarn test
```

Benchmarks

```bash
bun run bench # bun bench fails with "error: Failed to due to error: spawn() is not yet implemented on Windows"
# or
yarn bench
```

## Rust

### Prerequisites

- [Rust](https://www.rust-lang.org/tools/install)

### Run

Change directory to the Rust folder

```bash
cd 2022/rust
```

Run the solution for a specific day

```bash
cargo run --bin day01
```

## Go

### Prerequisites

- [Go](https://golang.org/doc/install)

### Run

Change directory to the Go folder

```bash
cd 2022/go
```

Run the solution for a specific day

```bash
go run . day01
```