Share your cool programs!

  • slippyferret@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    7
    ·
    9 days ago

    A long time ago I wrote a little web app that takes a search string and finds all the words in the dictionary that have overlap with its spelling. Sort of a portmanteau generator. It was just a fun project at the time, but I have used it on countless occasions to brainstorm unique names for projects, websites, etc.

    You can try it from the link below. Just type any word or name and it will populate the results.

    https://dev.djdupriest.org/name-combinator/index.html

  • xthexder@l.sw0.com
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    8 days ago

    I’ve been working on my own game engine for years, and there’s all sorts of cool stuff it can do, but recently I’ve been expanding the scripting to be capable of streaming images to the GPU.

    Today I got Doom running inside my engine as a hot-reloadable plugin script:
    Video: https://wednesdayos.sw0.com/share/2025-12-13_00-25-14.mp4

    The engine has real-time bounce lighting using a highly modified voxel cone tracing algorithm I developed (doesn’t require ray tracing hardware), which I’ve been able to get running even on my Steam Deck! Video: https://wednesdayos.sw0.com/share/2025-03-21 23-50-29.mp4

    The whole thing is open source here: https://github.com/frustra/strayphotons

    • mindbleach@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      8 days ago

      Software path-tracing has been on my bucket list, mostly to test a concept: physically based instant radiosity. If an eye-ray goes camera, A, B, C, then the light C->B forms an anisotropic point source. The material at B scatters light from C directly into onscreen geometry. This allows cheating akin to photon mapping, where you assume nearby pixels are also visible to B. Low-frequency lighting should look decent at much less than one sample per pixel.

  • KiranWells@pawb.social
    link
    fedilink
    arrow-up
    7
    ·
    8 days ago

    https://github.com/KiranWells/corgi

    Like a lot of graphics programmers, I fell into the rabbit hole of rendering fractals. However, I never stopped - over the past couple of years I have slowly been building one of the most sophisticated Mandelbrot/Julia rendering programs that I am aware of. It has a mostly intuitive user interface, and does all of the calculations on the GPU. It has to use a bunch of mathematical tricks to get around the limits of single-point precision available in shaders. Because of the GPU rendering algorithm, I’ve managed to view fractal locations at around 10^250 times magnification with near real-time performance.

    I also built a really in-depth compositing/coloring system, allowing you to make some really crazy images and get a lot of variation even for the same location:

    A grid of 9 rendered fractals, each one with the same rendered location but drastically different coloring styles.

    Although it has only been me working on it, I think it is in a pretty mature state so far, and I would gladly take PRs/issues if anyone happens to be interested. It should support any OS if you compile it from source, but I don’t have binary releases set up yet.

  • arty@feddit.org
    link
    fedilink
    arrow-up
    4
    ·
    8 days ago

    When Google Reader was alive, I wanted to improve its UI, so I wrote a userscript which completely replaced everything in the browser but still spoke to the Reader’s backend for data. When Reader was turned off, I only had to provide my own backend.

  • JakenVeina@midwest.social
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    Not QUITE a program, but I’d have to say my own little GBA ROM hacks for the original Fire Emblem. On account of the following story…

    IIRC, it was 2007, and I was a senior in high school, reorganizing some of the stuff for the robotics team, in the cabinets in the big science classroom where we met. There were some freshmen interested in the team (season wouldn’t start for a while yet) who’d taken to hanging out there, after school.

    They all had laptops and I recognized the menu theme when one of them pulled up Fire Emblem in an emulator, from across the room, and immediately called out “Who’s playing Fire Emblem?”. When I went over and saw he was using Virtual Boy Advance, it occurred to me what I had in my pocket. Or rather what happened to be ON the flash drive in my pocket.

    At the time, I didn’t have my own laptop, so my flash drive had years worth of random crap on it. And over the years, I spent a LOT of time tinkering with ROMs and VBA over the years. In addition to a few copies of different hacked ROMs and save files, I had a portable hex editor, and a LOT of text files with hex tables and memory maps and other research I’d collected over the years.

    So, yeah, I pulled out the flash drive, said “Wanna see something cool?” and proceeded to apply many crazy hacks as I could think of, in the most obtuse manner possible, just editing hex values directly in memory as the game was running. Free XP, free items, end game equipment, sprite swaps, etc. At one point, one of them says something like “What kind of wizard ARE you?!”

    It’s what comes to mind for me when you say “cool” because I like to think I inspired those kids to get into software and programming themselves, or at least consider it as an option. They certainly stuck around with the team for the rest of the year. Also, it inspired ME to really realize how much I’d grown just by tinkering and being curious, and how much you can accomplish through incremental effort.

  • maxy@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 days ago

    I’m still proud of my rendering of the logistic map. It was mostly just to learn more Rust, but it rendered this beatuiful picture with relatively little code. And mostly by accident, I didn’t know I would get those cool shadows!

    image

  • Poik@pawb.social
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    Coolest thing is hard… I’m a bit of a nerd, but let’s go from a few angles.

    As a kid I had made and recreated a number of games on my TI-83+ and did don’t fun optimization challenges to get as much in the pure BASIC code as possible. I was working in an ARG into it. But all that code is lost because I didn’t know how to back up that stuff back then. (And I was a bit lazy even when I knew I should.)

    I’m proud of how fun my Football mod for Binding of Isaac is. It’s just an item that give Isaac randomly bouncing projectiles, like how a football kind of sporadically bounces in real life. I meant to release a challenge where you get ipecac and football to start, and all explosion immunities are removed from the pool. With a short goal since I think that’s enough chaos.

    But probably from a different angle PySpeedup and DriveLink are libraries I designed to improve code as invisibly to the end user as possible because I got tired of taking PhD coders’ code and making it actually work because they don’t understand swap space or scheduling. (I’ve worked with brilliant algorithms at times, but had to correct critical misunderstandings of the computer at times.) I haven’t touched the libraries in years, but a lot of time and research went into it, and there was a full test suite and documentation. I don’t think the idea is fully without merit yet as the multiprocessing in Python is better but still has oddities, and I don’t think there’s an RAM aware abstraction in the base language yet? I forget what state I left things in. I know the CI I was using doesn’t exist (for free users) anymore though.

  • CameronDev@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    9 days ago

    Archery app. Basically zero users, and got purged from the play store earlier this year because I refused to jump through their hoops.

    It was was meant for use with scopes, you would put in some distance and scope settings pairs into it, and it would fit a line allowing you to estimate intermediate scope settings.

    It also had an AR mode, where you could save a targets GPS position, and get the distance and angle to the target, and the pin setting.

    Sadly, never got any users. So its just for me now. And I deleted the AR stuff.

  • 1hitsong@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    8 days ago

    The code I wrote that I use most often is music playback in the Jellyfin Roku client.

    I use it almost every day and think it’s pretty cool 🤘

  • Quicky@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 days ago

    In the 2010s I had a Windows Phone which I thought was amazing. I bought the original Surface Pro too, because at the time I thought it was incredible. A full operating system in a tablet form factor that was incredibly fast and touch screen.

    In the IT office I worked in, we had a dartboard. It was great for just stepping away from your desk if a problem had stumped you, throwing a few darts to take a break, and inevitably the answer would come to you. It was our rubber duck.

    Trouble was, all of us were terrible at the basic maths involved with darts matches. So I thought, what if we mounted the Surface to the wall, and could just tap where the dart had hit, and get scores instantly.

    So I wrote this darts score-keeping app that worked on everything from Windows Phones to tablets, and even an Xbox at one point, thanks to the way Microsoft had implemented their cross-device app deployment.

    We used it every day in the office. I think in 10 years it’s sold about 3 copies.

    Lovely Darts

  • dgdft@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    9 days ago

    In high school, we used to play a game colloquially called Spoons/Assassins/Spoon Assassin/Marker tag. Long story short, everyone playing gets assigned another player as a target. You tag your target on the back of the neck with a spoon or marker to “kill” them + take over their assignment. Rinse and repeat until only the winner is standing.

    Major catch here is that for the game to work properly, the targets have to be chained in a loop, so there usually has to be a trusted individual running the game who can validate the assignment list.

    So I scraped the online school directory to pull names, emails, and school photos of everyone. Then I built a Java Swing app to track a list of who was playing, and the app would shuffle a random list and email everyone their assignments blindly, photos included. Flash forward a few months, and eventually we had a full roster of ~80 people playing across grades, which was ~10% of the student body.

    Unfortunately, a group of freshmen started their own take on the game, which devolved into mauling one another with Crayola markers and Sharpies. The principal catches word that I’ve been running a ring, and brings me into his office to tell me to shut it down.

    Uncharacteristically for my teenage years, I went all-in on diplomacy. I plead my case, tell him I’m not involved with the freshmen, hear out his concerns, volunteer to modify the game rules, and point out that our group been playing for months without issues. No dice; the dude was a jackass with a chip on his shoulder. So we come to an impasse, staring at one another in silence.

    Eventually, to break the silence, he asks about a stray bandage I have sticking out the top of my shirt. I’d had a small melanoma removed from my collarbone that week, which was caught as early as possible and removed without issue. Seizing the opportunity, I tell the principal “I have cancer”, and immediately walk out before he could formulate a response. Poor dude went white as a sheet. Good times.

    Bit of a lame ending for the app, but building it taught me the skills I used to jump-start my career, and drove home the point that software isn’t an end unto itself — it’s the way people use it to come together that makes things great.

  • Undertaker@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 days ago

    I implemented a self made or at least adapted ant based algorithm to solve a mathematical problem. Each ant walks a route which represents a possible solution. The shortest path is the best solution. It takes advantage of swarm intelligence.