• 1 Post
  • 292 Comments
Joined 1 year ago
cake
Cake day: December 13th, 2024

help-circle


  • I made a sorting algorithm visualizer.

    https://sciactive.github.io/libsortjs/demo/

    It’s not really any different than a lot of other sorting algorithm visualizers. It has some additional features, like different visualizations, but it doesn’t have sound.

    I didn’t do it to make something better though, I did it to make it myself. I wanted to implement all of those sorting algorithms myself, which was very fun.

    I don’t know if you consider that art, but I think it can be beautiful, so maybe.

    (Btw, it will happily crash your browser if you try to sort an enormous list using a really inefficient algorithm, so be careful.)












  • Did you read it?

    As indicated in Figure 13, large truck fires were more likely to begin with the ignition of a tire than other items. Tire ignitions were also more common in bus fires than car fires. The two most common items first ignited among all highway vehicles were (1) electrical wire or cable insulation and (2) a flammable liquid or gas in or from the engine or burner. Incidents where the item first ignited included a flammable liquid or gas were the deadliest. An estimated 50 percent of the civilian deaths occurred in these incidents.

    Turns out, when a big tank of gasoline is set on fire, it’s deadly.





    • What AI is good for (boilerplate, tests, docs, refactoring) and what it’s not (security critical code, architectural changes, code you don’t understand)

    Incorrect. AI is only good for boilerplate. Letting it write tests will give you broken and incorrect tests. Letting it write docs will give you incorrect docs. Letting it refactor will give you bugs. AI is passable at generating boilerplate.

    Well, it’s also good at writing code to use as the “Incorrect” part of a Correct/Incorrect example.

    I asked Gemini to write just the most basic use case for my tokenizer library the other day (checking to see if a search query is found in a set of already computed tokens), and it couldn’t even get that right, but boy was it absolutely certain that it did. Pathetic. If it were an unpaid intern it would be fired.