sreedev's Avatar

sreedev

@sree.dev

Software Engineer. Music Distribution & Publishing. Radio Amateur // KD2ZWB Brooklyn, NY. www.sree.dev | www.devtechnica.com 0x{B8C4 02B1 6E80 E17C}

223
Followers
1,011
Following
26
Posts
04.02.2024
Joined
Posts Following

Latest posts by sreedev @sree.dev

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.

05.08.2025 22:25 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

went right over my head haha. my bad.

11.12.2024 01:21 ๐Ÿ‘ 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

11.12.2024 00:51 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

the only O(1) solution. haha ๐Ÿ˜‚

09.12.2024 16:48 ๐Ÿ‘ 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.

09.12.2024 16:11 ๐Ÿ‘ 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...

09.12.2024 15:04 ๐Ÿ‘ 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

09.12.2024 14:05 ๐Ÿ‘ 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

09.12.2024 14:02 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

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

09.12.2024 13:47 ๐Ÿ‘ 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 ๐Ÿ˜ญ

09.12.2024 13:40 ๐Ÿ‘ 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...

08.12.2024 14:05 ๐Ÿ‘ 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.

07.12.2024 14:32 ๐Ÿ‘ 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.

06.12.2024 18:15 ๐Ÿ‘ 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

06.12.2024 16:23 ๐Ÿ‘ 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

06.12.2024 14:27 ๐Ÿ‘ 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

06.12.2024 13:10 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
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...

05.12.2024 14:01 ๐Ÿ‘ 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...

05.12.2024 13:43 ๐Ÿ‘ 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...

04.12.2024 16:06 ๐Ÿ‘ 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...

03.12.2024 18:07 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

saved by a โ€œ.pubโ€

03.12.2024 16:23 ๐Ÿ‘ 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...

03.12.2024 13:20 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

i too rolled out my own list.combinations lol

bsky.app/profile/sree...

02.12.2024 20:49 ๐Ÿ‘ 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)

02.12.2024 14:33 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image

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

02.12.2024 13:46 ๐Ÿ‘ 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...

02.12.2024 02:04 ๐Ÿ‘ 5 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Post image Post image Post image

Good day @sree.dev

19.11.2024 14:38 ๐Ÿ‘ 1 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0