Advertisement · 728 × 90

Posts by sreedev

A potential solution to this would be to introduce some form of proof of stake requirement. The submitters must be required to pay a certain sum to make a submission that will be returned to them along with the promised bounty. If the report is found to be fake, the original sum can be forfeited.

7 months ago 1 0 0 0

went right over my head haha. my bad.

1 year ago 2 0 1 0

idk if you meant it sarcastically but there are some cool projects like supercollider and sonic-pi.

i recently also dicovered faust.grame.fr

1 year ago 0 0 1 0

the only O(1) solution. haha 😂

1 year ago 1 0 0 0

@tjdemuyt.bsky.social Thank you for that suggestion. Yes I did Fix that issue by using a custom type for each block that has an ID field. But the problem is the time complexity. I gotta try a different approach altogether.

1 year ago 0 0 0 0
GitHub - sreedevk/pocketbase-sdk-rust: Rust SDK for Pocketbase Rust SDK for Pocketbase. Contribute to sreedevk/pocketbase-sdk-rust development by creating an account on GitHub.

@ked1108.bsky.social that's awesome. go for it. Implementing libraries in rust is fun. I implemented an SDK for pocketbase a while back github.com/sreedevk/poc...

1 year ago 1 0 1 0

A 100%. I thought the antenna antinode problem was going to be the ultimate edge case city (that turned out fine) until I saw today's problem

1 year ago 2 0 0 0

@ked1108.bsky.social yeah I agree with you, I did reach for rust multiple times during AOC this year, but I wanted to just stick with gleam to learn it. I implemented (badly of course) a lot of the functions that other languages typically of provide in the stdlib

1 year ago 1 0 1 0
Advertisement

@ked1108.bsky.social it brings me peace knowing I am not the only one haha. I am trying other approaches now.

1 year ago 0 0 0 0
Preview
a man is sitting at a desk in a cubicle in front of a computer . ALT: a man is sitting at a desk in a cubicle in front of a computer .

#AdventOfCode Day 09: Disk Fragmenter #Gleam

github.com/sreedevk/adv...

Solution works on the example but not the input 😭

1 year ago 10 0 4 0
Post image

#AdventOfCode Day 08: Resonant Collinearity

This was a fun one, did not have to brute force anything today lol. #Gleam #BEAM

Still haven't optimized the solution, the solution in its current state runs in 676ms on average.

github.com/sreedevk/adv...

1 year ago 5 0 0 0

#AdventOfCode Day 07: Bridge Repair

Another day of parallelized brute forcing on the BEAM with #Gleam

github.com/sreedevk/adv...

I am gonna work on optimizing the solution. Right now Part 2 Execution Time is 28 seconds.

1 year ago 3 0 0 0

By only placing obstacles on the original path (Part 1), I was able to reduce the execution time to 1m. still working on optimizing it further.

1 year ago 1 0 1 0
htop screenshot showing core activity

htop screenshot showing core activity

My Solution for Day 6 Part 2 took 9m and 30s to run, but it worked! parallelization worked!

Thank you 14 cores and 20 threads.
Run the solution at your own risk, it may or may not leak memory.

github.com/sreedevk/adv...

#AdventOfCode #Gleam

1 year ago 2 0 1 0

Day 6 part 2 brute force works on the example but did not finish running on the input even after 2 minutes.

github.com/sreedevk/adv...

I could optimize the solution like a sane person, or I could use gleam/otp tasks and parallelize my problems.

parallelization it is!

#AdventOfCode #Gleam

1 year ago 0 0 1 0

Looks like #AdventOfCode Day 15 came early this year. My Part 1 Solution takes 6 seconds to run.

github.com/sreedevk/adv...

I don't have a solution for Part 2 so far, but I am leaning towards brute forcing. #Gleam #GuardGallivant

1 year ago 1 0 1 0
Advertisement
Preview
advent-of-code/src/utils/list.gleam at main · sreedevk/advent-of-code Advent Of Code Solutions. Contribute to sreedevk/advent-of-code development by creating an account on GitHub.

I did have to add a few list utility functions to make the solution look better. I didn't see any equivalents in the stdlib

github.com/sreedevk/adv...

1 year ago 0 0 0 0
Preview
advent-of-code/src/print_queue.gleam at main · sreedevk/advent-of-code Advent Of Code Solutions. Contribute to sreedevk/advent-of-code development by creating an account on GitHub.

Alright, #AdventOfCode Day 05 - Print Queue Done #Gleam

github.com/sreedevk/adv...

1 year ago 3 0 1 0
Preview
advent-of-code/src/ceres_search.gleam at main · sreedevk/advent-of-code Advent Of Code Solutions. Contribute to sreedevk/advent-of-code development by creating an account on GitHub.

#AdventOfCode #Day04 #Gleam Done!

I got a little carried away with this one.
readability? never heard of it

github.com/sreedevk/adv...

1 year ago 3 0 0 0
Preview
GitHub - stevendborrelli/bluesky-tech-starter-packs: A list of tech-related Bluesky starter packs A list of tech-related Bluesky starter packs. Contribute to stevendborrelli/bluesky-tech-starter-packs development by creating an account on GitHub.

@stefanoborrelli.bsky.social has put together a comprehensive list here github.com/stevendborre...

1 year ago 1 0 1 0

saved by a “.pub”

1 year ago 6 0 0 0
Post image

#AdventOfCode #Day03 #Gleam Done! I was very tempted to try nibble (the string parsing library), but settled for regular expressions.

github.com/sreedevk/adv...

1 year ago 4 0 0 0

i too rolled out my own list.combinations lol

bsky.app/profile/sree...

1 year ago 1 0 0 0

Looking at some of the other solutions, i just realised that I can replace the entire variants function with just

list.combinations(report, list.length(report) - 1)

1 year ago 0 0 0 0
Advertisement
Post image

#AdventOfCode #Day02 #Gleam Done!
github.com/sreedevk/adv...

1 year ago 2 0 1 1
Preview
advent-of-code/src/historian_hysteria.gleam at main · sreedevk/advent-of-code Advent Of Code Solutions. Contribute to sreedevk/advent-of-code development by creating an account on GitHub.

Just Completed #AdventOfCode 2024 Day 01 in @gleam.run ! github.com/sreedevk/adv...

1 year ago 5 0 0 0
Post image Post image Post image

Good day @sree.dev

1 year ago 1 1 0 0