home.social

Search

762 results for “taywee”

  1. CW: Advent of Code Day 12 Spoilers

    2023 Day 12

    Oh my god, I had too much trouble with this. Haven't done in years, so I completely spaced it until my solution was taking forever.

    Memoization gave at a considerable speed boost. It's not the best solution, and it's far from readable, but it gets the job done and still takes under a second on my machine.

    codeberg.org/Taywee/AdventOfCo

  2. CW: Advent of Code Day 6 Spoilers

    Day 6

    Very easy day. Used my whiteboard to suss out that this was a (yes, I had to use my whiteboard to do this, and I'm not ashamed of being an embarrassment). Naturally, my solution uses the to find the answers.

    codeberg.org/Taywee/AdventOfCo

  3. of done in : gitlab.com/Taywee/adventofcode

    Parsing SNAFU was pretty simple, but building it was harder. It's been a long time since I worked in number bases, and the negative digits really threw me for a loop. I ended up needing to get some help to figure out the proper way of building my SNAFU numbers, and I think it'll probably still be broken for negatives.

    First AoC completion! :partyparrot:

  4. of done in : gitlab.com/Taywee/adventofcode

    Done just in time. I went with a pretty straightforward A*, but because the accessible tiles change with time, I had each node be the tile's position as well as the entire field state at that point in time. The pathfinding crate is very powerful: docs.rs/pathfinding/latest/pat

    Still took about 10 seconds. I could probably optimize it a lot, but it's done.

    Part 2 was just doing it 3 times.

  5. of done in : gitlab.com/Taywee/adventofcode

    Not a hard one. Part 2 takes over a full second to run, which could be improved a lot, but this was way nicer than day 22.

  6. of done in : gitlab.com/Taywee/adventofcode

    Part 1 was super easy.

    Part 2 was so hard I gave up and hardcoded the cube shape. 14 match cases, and it works on multiple input sizes but not on different shapes. I wanted to actually walk and find the next position, or to fold the cube and link them in a mesh of Rc<RefCell<_>>, but I already put too many hours into this and the idea of keeping track of orientation sounded like a pain.

  7. of done in : gitlab.com/Taywee/adventofcode

    Part 1 was straightforward: just build a tree and execute it.

    I had a solution in mind for part 2 of solving the side of the root tree that I knew, then recursively running down the other side until I get to humn with a solution, but I decided to cheat and just used an equation solver library instead.

  8. of done in : gitlab.com/Taywee/adventofcode

    This one was shockingly easy, even part 2. The toughest part was trying to figure out a way to keep track of what order to move the numbers in, particularly when there are duplicates. I gave up and just attached the original index to them and scanned each time. Far from perfect, but it got the job done without too much trouble.

  9. of done in : gitlab.com/Taywee/adventofcode

    Really similar to the elephants and valves one. Just a DFS for the maximum with some optimizations to reduce the search space. Interestingly enough, it runs in 0.33 seconds on my actual input, but takes 15 seconds on the example, which is different from a lot of problems that take way longer on the real input. I think it's because the smaller costs on the example balloon the search space.

  10. of done in : gitlab.com/Taywee/adventofcode

    Quick and easy one. For part one, just ran from the min to max for all axes in turn, incrementing each time a pair had one droplet and one air voxel. Part 2 was the same, but also with a pathfinding check between the air voxel and a known outside voxel.

    Got sick of implementing my own coordinate types and just pulled in nalgebra.

  11. of done in : gitlab.com/Taywee/adventofcode

    Another very difficult one. Once it occurred to me that there would be probable cycles in the tower, I came upon a solution. It's not the nicest, but it's not too bad either. Some pessimistic input could probably still get the wrong answer, too.

  12. of done in : gitlab.com/Taywee/adventofcode

    Oh my god. This problem was challenging and my code is hideous and full of redundancies. I'm not cleaning it up. I'm lucky I finished it at all.

    I built my graph by calculating the shortest path between all non-zero valves and then discarding zeros. Then I just traversed with an inexact heuristic.

    Part 2 was harder, having to track two routes at the same time. It was an absolute headache.

  13. CW: Eye contact

    Made an Akko from Little Witch Academia in Blender. Followed along with a video tutorial a bit ( youtube.com/watch?v=AWocxbVD3C ), but spent a fair bit of time just trying to achieve a similar result without following too closely. Took probably about 10 hours of work to get to this point.

    Might finish making the boots and rigging it eventually, as well as cleaning up the hair.

    Will make a turntable animation soon.

    #Blender3D #3DArt #Blender #Akko #LittleWitchAcademia

  14. I was able to massively improve on yesterday's rendering of one #Kepler's representation of the #PlatonicSolid of Earth. Done in #Blender using hair curves for the grass.

    I redid the grass with fewer control points (down from 8 to 3), then reduced the spline resolution from 12 to 3, and reduced the resolution of the profile curve from 12 to 2. Using some napkin math, each blade of grass was about 4608 verts before, and is now 72 now, so I could add 64 times as many blades as before.

  15. A rendering of one #Kepler's representation of the #PlatonicSolid of Earth. Done in #Blender using hair curves for the grass.

    Really feeling the limits of my hardware on this one. Blender crashed 4 times due to me running out of memory, and I had to make my grass way bigger than I wanted. There's probably a more optimal way I missed.

    A transparent version will be posted in the replies when it's finished rendering.

  16. Started reading "Gödel, Escher, Bach", and couldn't resist a quick and easy reproduction of the cover. Boolean modifiers made this cake.

    #Blender #Blender3d #3DArt #GödelEscherBach

  17. Nearly finished all the sculpting and retopo for my #Kumatora from #Mother3. Not really finished with her, but I'm going to take a break for a while before doing more hair and cloth work or rigging and posing.

    I'm pretty happy with what is there, though. It's far from perfect, but it's about the best I've done so far, and most of her face looks downright OK. The hands aren't as good as I'd like, but the topology is a mess, so there's only so much I can do without redoing them.

    #Blender

  18. Was supposed to be a week-long project but this is taking forever. According to my time tracking, this is about 14 hours of work so far, and I probably have at least another 10 hours before I'll be happy with it. Just used #GeometryNodes to whip up a zipper, and I really need to dip into them more. Procedural generation is a powerful time-saver, and as a programmer, I really should have cracked into them much earlier.

    No idea how rigging is going to go.

    #Kumatora #Blender #WIP

  19. Been working on making work with import functions. I was stuck for a while before I realized that I need to do it entirely through callbacks. Now I can run async code using JavaScript's event loop. It's wonky, but it gets the job done alright.

    I know I could have leaned on , but I need a really defined interface that can be supported from multiple languages, including C and C++, so I did it by hand.

  20. "Well. I shall have to go into exile, never to be seen again."

    "Fear not, my love. I shall accompany you."

    "There's no need—"

    "You have my #unwavering devotion. I shall remain by your side until the end."

    "Damn."

    "Could you grace my ears with that statement again, dearest? I didn't quite comprehend."

    "Nothing..."

    #MastoPrompt #MicroFiction @tanweerdar

  21. "Well. I shall have to go into exile, never to be seen again."

    "Fear not, my love. I shall accompany you."

    "There's no need—"

    "You have my #unwavering devotion. I shall remain by your side until the end."

    "Damn."

    "Could you grace my ears with that statement again, dearest? I didn't quite comprehend."

    "Nothing..."

    #MastoPrompt #MicroFiction @tanweerdar

  22. "Well. I shall have to go into exile, never to be seen again."

    "Fear not, my love. I shall accompany you."

    "There's no need—"

    "You have my #unwavering devotion. I shall remain by your side until the end."

    "Damn."

    "Could you grace my ears with that statement again, dearest? I didn't quite comprehend."

    "Nothing..."

    #MastoPrompt #MicroFiction @tanweerdar

  23. @tanweerdar

    The English have an #unwavering faith
    In their exceptionalism, at a time
    When their empire crumbles away
    & only its blood dust remains. The
    Old guard remains staunchly racist
    With that ingrained
    Hatred of all people who are the wrong
    Colour. They fall over each
    Other & onto their knees at the
    Prospect of a new coronation. Such
    Inflated importance, when all they are,
    The royals included, little limited
    People with no skills, no languages,
    & no compassion.
    #MastoPrompt #Poetry

  24. @tanweerdar

    The English have an #unwavering faith
    In their exceptionalism, at a time
    When their empire crumbles away
    & only its blood dust remains. The
    Old guard remains staunchly racist
    With that ingrained
    Hatred of all people who are the wrong
    Colour. They fall over each
    Other & onto their knees at the
    Prospect of a new coronation. Such
    Inflated importance, when all they are,
    The royals included, little limited
    People with no skills, no languages,
    & no compassion.
    #MastoPrompt #Poetry