Advertisement · 728 × 90

Posts by 49pctber

I have only used Rust for a few hours maybe a year ago, but I really like how you can put unit tests directly in each file with `#[cfg(test)]`. This is especially handy during #AdventOfCode for the example inputs.

4 months ago 1 0 1 0

My first internship in college involved programming a microcontroller using VBA. Why that even exists, I'm not sure...I wish I could see what I had written now. It was probably horrible.

4 months ago 1 0 1 0

Which kind of algorithm did you use?

4 months ago 0 0 1 0

New "language" each day? (Quotes for Excel)

4 months ago 1 0 1 0

For #AdventOfCode Day 2, were you Team String Manipulation or Team Immediately Convert To Integer?

4 months ago 1 0 1 0

Yeah, these puzzles are harder than the typical first few days imo

4 months ago 0 0 0 0

Is "low-allocation" a general term for reducing system calls to allocate memory, or is that a C# specific term?

4 months ago 0 0 0 0

How did you implement it?

4 months ago 0 0 1 0

How do you like typer? How does it compare to argparse?

4 months ago 0 0 1 0

Amazing.

4 months ago 0 0 0 0
Advertisement

I got a 404 from your repo :(

4 months ago 0 0 1 0

What sort of runtime did you get operating on strings directly?

4 months ago 0 0 0 0

I would be surprised if strong manipulation would be faster, but let me know if you find out otherwise!

4 months ago 0 0 0 0

I appreciate how flexible the puzzles are to experiment with new languages, techniques, algorithms, etc.

4 months ago 1 0 0 0

What sort of runtime did you get using the hash set? I generated every possible invalid id, sorted the list, and ignored identical adjacent numbers. I would like to try a hash set to compare

4 months ago 0 0 1 0

Any tips for learning functional programming? I am curious to learn a functional language, but I haven't really had a reason to yet

4 months ago 0 0 1 0

How do you measure runtime?

4 months ago 1 0 1 0

It's time for #AdventOfCode! This year I'm using #C #neovim #makefile. I'm going to focus on performance, using #SIMD instructions where possible on a #RaspberryPi

4 months ago 0 0 0 0

A really aggressive butterfly net

11 months ago 1 0 0 0
sys.getsizeof(0) returns 28.
sys.getsizeof(0.0) returns 24.

sys.getsizeof(0) returns 28. sys.getsizeof(0.0) returns 24.

A #Python int is (at minimum) 28 bytes. A Python float is 24.

1 year ago 0 0 0 0
Advertisement

As I understand it, there is quite a variety of thought within the flat earth community. Some think the earth is semi-infinite, so there is just more earth with no other side. Some people think it's a flat disk with nothing but rock or dirt. Others think it's a snow globe with nothing outside.

1 year ago 1 0 1 0

Oh, maybe I misunderstood. I would like seeing the diagram on the left if it weren't presented as a way to solve the problem, just as a way to illustrate what's happening on the right.

1 year ago 0 0 0 0

My main concern is if x is negative, 2x will be to the left of x, and there isn't a way to know that a priori. So from a student's perspective, they'd be really confused half the time when trying to think in terms of the diagram.

1 year ago 0 0 1 0

If I were a student learning this for the first time, I would find this incredibly confusing for 2x+4=-4. Start at -4, move left four to -8, then... right back to -4? Shouldn't I be at -16 or -12 or something? This assumes you know the relative sizes and positions of things, but you generally don't.

1 year ago 0 0 1 0

It absolutely blows my mind that my laptop can execute hundreds of *trillions* of cycles per day, and easily does many *quadrillions* per week. Numbers like that are huuuuge

1 year ago 0 0 0 0

Which latch circuit would you use?

1 year ago 0 0 1 0
Video

I couldn't find any good games for my password manager. So I made one.

1Crossword connects to your 1Password vault and generates a crossword entirely out of your passwords!

The crosswords are fun, simple, and great for sharing on social media when you finish. Enjoy!

1 year ago 312 85 11 13
Advertisement
Day 11 - Advent of Code 2016

I just completed "Radioisotope Thermoelectric Generators" - Day 11 - Advent of Code 2016 #AdventOfCode adventofcode.com/2016/day/11
This one is was tough for me. I'm not sure how to get my part 2 to under a second. Any ideas for pruning my search? I'm at about 45 seconds currently.

1 year ago 1 0 0 0
Preview
GitHub - NoelJacob/advent-and-other-calandars: Seasonal coding challenges like Advent of Code Seasonal coding challenges like Advent of Code. Contribute to NoelJacob/advent-and-other-calandars development by creating an account on GitHub.

I finished #AdventOfCode this year and loved it. Does anyone have any thoughts on other similar challenges, like those listed in the following GitHub repository? github.com/NoelJacob/ad...

1 year ago 0 0 0 0

It's been over 24 hours since #AdventOfCode 2024 ended!

This AoC season:
- 273,313 users collected at least one star
- 3,654,949 stars were collected

Since 2015:
- 779 users have all 500 stars
- 1,077,226 users collected at least one star
- 23,170,305 were collected

1 year ago 272 20 17 0