Another awful JavaScript design: parseInt/parseFloat can accept arrays. The arrays can be nested infinitely.
parseFloat( [5, 9] ) => 5
parseFloat( [[[5]]] ) => 5
array = []
array[0] = array
parseFloat( array ) => NaN
Why would anyone EVER want this? Implementing it is wasteful and useless.
Posts by nemmy.net
Zig called this darn function that wasn't implemented in my WASI runtime. So I implemented it, and guess what? Zig used it to make the most useless syscall ever.
I accidentally ran "npm i" instead of "bun i" and everything looked broken. I was just about to publicly proclaim my hatred for JavaScript tools before I realized what I did.
I just fixed so many more bugs and annoyances yippee!!!
I can't release this if it flickers on Chrome. That would be humiliating and borderline unusable.
I just fixed some NASTY bugs, but there's more work to do. It flickers in Chrome. In Firefox, these mysterious white pixels creep in over time. How? I have no idea.
We should ship Wine apps on Linux like we ship Electron apps on Windows. Yup, we're gonna give you a copy of the full Wine runtime with the app. It's a massive improvement over Electron:
- Fast native code
- Works on all operating systems
- One system API. Write once, run everywhere!
React? Tailwind? Nah, I use my native GUI with CSS syntax.
I wrote a 200-line CSS parser in Zig. The following CSS gets replaced with static code when Zig compiles the app.
Video/audio codecs account for a lot of bloat. The solution is to use the browser's built-in codec APIs, except Firefox Android still doesn't have these for some reason. I use Firefox Android every day. Such a pain in the butt.
The unfortunate reality of webdev is that JavaScript is the most low-level and lightweight option (in that context). That's why I'll probably use three.js for a 3D game rather than dumping megabytes of Godot engine runtime and video/audio codecs into the browser.
I was sitting on this unfinished code for a while. It's really not exciting but every little change counts.
The old tagging UI was so obnoxious and tags didn't do anything yet except add a jumble of words on the page.
The new update makes galleries behave a little more like Toyhouse
nemmy.net/thread/28530...
I can't lie, reading input and opening a window is hard to do from scratch for all platforms and devices. So, all the SDL "bloat" is actually kinda useful.
Finally fixed this OpenGL code. My bad! You see, when making a texture according to the docs, there are *extra* functions (NOT according to the docs) that must be called with very specific parameters!
I just spent hours writing OpenGL code (and then fixing it)... I could've finished a dozen other tasks by now. And this is the *simple* solution! Imagine if I used Vulkan or the SDL GPU library (which requires platform-specific shader bytecode).
Sites like battleofthebits.com are so rare and beautiful. Thousands of little widgets, badges, social features, and more.
It's sad to see this site suffer from AI scraping. Pages take 3 seconds to render. It's built on PHP from 2005 which surely adds lots of overhead. It's a product of its time.
SDL in a nutshell:
- Takes forever to build and link
- No audio support built in, so I use minaudio instead (it's Simple and Direct)
- Rendering vertices is broken, so I use OpenGL instead
- The darn thing doesn't even give you OpenGL APIs
At this point, SDL only makes a window and reads input. WOW
The JavaScript spec is hard to follow sometimes. Where does it define the operation `x[y]` for arrays? What happens to y? y must be an integer but I only figured this out through experimentation. Additionally, there are 5 different ways JS will convert a string to a number. Which one do I use?
Benefits of using SQLite:
> user reports bug
> i download the site database to my PC
> run the site in a debugger
> log into user's account
> set breakpoint
> find the error
We fixed bugs and added notifications and mentions
Come try out my indie website
There's a link and a Discord. Let's invent a bunch of random features!
nemmy.net
discord.gg/5AVP5tXKXt
Writing more and more tests. Tests tests tests it's never enough testing
Site is perpetually 2 seconds away from blowing itself up and aggressively erasing all files.
How did Mark Zuckerberg make Facebook in 2 days
Over 1.5 million profiles though! That's an interesting change in stats.
Back to 40,000 artists, or 74% of the last known record
Nemmy is up and running again!
Soon I will re-index 1.5 million Bsky accounts for the commission browser.
It's actually literally gone lol. The backups failed.
Thankfully none of that lost data is very meaningful.
Nemmy update: All our harddrives gone..