Live data from Hacker News

Ask HN: What's the most creative 'useless' program you've ever written?

news.ycombinator.com

101–110 of 422 posts

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#101
I wrote a bot / agent in Go that after installing it once in an AWS EC2 instance would starting checking and bidding on AWS spot instances and replicate itself there.

It would check the API, “buy” a spot instance and inject a startup scrip to download itself.

Totally useless. But fun.

Code is here: https://github.com/tnolet/tatanka

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#102
post #76

A long time ago I wrote a useless, but fun program that attempts to programmatically recreate a source image by randomly placing randomly sized, randomly coloured rectangles onto a canvas. If the result of this random application of colour is closer to the source image, it's kept, otherwise the changes are discarded. Over time, it gets reasonably close to the source image. https://ajxs.github.io/pbp/

Isn’t this basically how stable diffusion works?

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#103
post #76

A long time ago I wrote a useless, but fun program that attempts to programmatically recreate a source image by randomly placing randomly sized, randomly coloured rectangles onto a canvas. If the result of this random application of colour is closer to the source image, it's kept, otherwise the changes are discarded. Over time, it gets reasonably close to the source image. https://ajxs.github.io/pbp/

Isn’t this basically how stable diffusion works?

No.

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#104
post #13
post #8

I learned in college Geometry class that you can transform a square to an equilateral triangle in 11 cuts or so So I wrote a matlab program to draw the shapes, and cut them out, and it works It’s mathematically exact, not just approximate Still surprises me after 20 years, so I want to find this old program again lol

This got a downvote and I wonder if it’s from a person who doesn’t think it’s true

Some men just want to watch the world burn.

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#105
I'm predominantly a backend Python Web developer, and I implemented a match 3 engine in Pygame.

See example gifs on my blog here: https://johnscolaro.xyz/blog/pygame-match-3

When I say "match3", I don't mean "candy crush" style, I mean more like "YMBAB" or "chuzzle style".

The main learning I had was how much more "stateful" a game is vs something like the backend of a webserver. I'm used to writing code with no/few side effects, but when you're juggling 50+ gems in different states of falling/idle/ exploding, different frames of animation, and different states of user input, it made me thing differently about state, testing, and probably exposed me a little to the problems gave devs grapple with day-to-day.

I have a lot more respect for the original creators of these slightly modified match 3 games like "Chuzzle".

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#106

Earlier quoted context omitted.

Isn’t this basically how stable diffusion works?

No.

I’m pretty sure it is, except instead of comparing the result to a source image, it is analyzed and scored by a model that was trained to recognize images.

Re: Ask HN: What's the most creative 'useless' program you've ever written?

#108
I once had an idea of turning Conway's Life into music, but never finished it. I wanted to make it interactive but never figured out how to make it user friendly. Also, I haven't figured out how to use audio compressor in browser, so some positions were clipping very hard.

So I left it in the state where the only thing you can do is to listen to ten descending gliders and that's it :)

Surprisingly, it still works, except now you have to click/tap anywhere on the screen to make the sound play. I think that 9 years ago browsers didn't have this feature and allowed sound to play right away.

Here is the link (CAREFUL, can be VERY LOUD): https://vovanz.github.io/conways_live_music/

Post reply on HN