Advertisement · 728 × 90

Posts by nemmy.net

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.

18 hours ago 1 0 0 0
Post image Post image

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.

2 days ago 0 0 0 0
Post image

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.

2 days ago 2 0 1 0

I just fixed so many more bugs and annoyances yippee!!!

5 days ago 0 0 0 0

I can't release this if it flickers on Chrome. That would be humiliating and borderline unusable.

6 days ago 0 0 1 0

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.

6 days ago 1 0 1 0
Video
1 week ago 1 0 0 0
Advertisement
Video
1 week ago 1 0 1 1

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!

1 month ago 4 0 0 0
Post image

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.

1 month ago 4 0 0 0

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.

1 month ago 0 0 0 0

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.

1 month ago 4 0 1 0

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.

2 months ago 1 0 0 0
Post image

The new update makes galleries behave a little more like Toyhouse
nemmy.net/thread/28530...

2 months ago 9 3 1 0

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.

2 months ago 0 0 0 0

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!

2 months ago 0 0 0 0

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).

2 months ago 1 0 1 0
Advertisement
Post image Post image

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.

2 months ago 2 0 1 0

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

2 months ago 2 0 2 0

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?

2 months ago 1 0 0 0

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

5 months ago 0 0 0 0
Post image

We fixed bugs and added notifications and mentions

5 months ago 0 0 0 0
Video

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

5 months ago 29 8 1 1

Writing more and more tests. Tests tests tests it's never enough testing

6 months ago 0 0 0 0
Post image

Site is perpetually 2 seconds away from blowing itself up and aggressively erasing all files.

How did Mark Zuckerberg make Facebook in 2 days

6 months ago 0 0 1 0

Over 1.5 million profiles though! That's an interesting change in stats.

7 months ago 0 0 0 0
Advertisement

Back to 40,000 artists, or 74% of the last known record

7 months ago 0 0 1 0

Nemmy is up and running again!

Soon I will re-index 1.5 million Bsky accounts for the commission browser.

7 months ago 1 0 1 0
Post image

It's actually literally gone lol. The backups failed.
Thankfully none of that lost data is very meaningful.

7 months ago 0 0 0 0

Nemmy update: All our harddrives gone..

7 months ago 0 0 1 0