Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tnelsond4
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
tnelsond4
5mo ago
I meant to reply to John who was asking where someone was getting the 32768 number from. No idea if it's true, but that's the significance of that number. Yeah that's the lore page does look like there's no downvoting su
32.
▲
by
tnelsond4
5mo ago
It's the maximum value of a signed 16 bit integer. But there's a GitHub page that explains hn lore.
33.
▲
by
tnelsond4
5mo ago
Tvtropes really just categorizes and explains every possible archetype whether that's character, plot, or just anything that appears in a story. People lose a ridiculous amount of time reading all the tropes. A trope is like a cliché b
34.
▲
by
tnelsond4
5mo ago
For individual notes there's https://tvtropes.org
35.
▲
by
tnelsond4
5mo ago
I was writing emscripten and getting lots of errors and problems and it wouldn't run at all, but rust with bindgen just kinda worked automatically. My theory is that LLMs have the brains of hipster coders with their proclivity for rust
36.
▲
by
tnelsond4
5mo ago
I was trying to get my c wasm module down in size and emmalloc is pretty small, but it requires a lot of js glue to make it work, but using a small allocator like walloc requires no glue and it's insanely small. I got my module down fr
37.
▲
by
tnelsond4
5mo ago
People have to talk about what's new and LLMs are new and they accelerate the creation of new things. And with that comes the appropriate backlash. The hate plus the love makes AI topics more and more discussed. But I hear you, it feel
38.
▲
by
tnelsond4
5mo ago
Yeah that's probably the only thing in the world that could be scarier than the electron app they were replacing
39.
▲
by
tnelsond4
5mo ago
Yeah, last year I discovered that AI writes better rust than C, so I switched to rust and it made some quick good code that it couldn't do in C. But when I wanted to optimize and edit and reorganize bthe code it was difficult, so I did
40.
▲
by
tnelsond4
5mo ago
If you want a language that doesn't change it's hard to beat C which has only added extremely minor non-compatibility-breaking features every 15 years or so. Not sure what the author is on about about it being difficult or not pra
41.
▲
by
tnelsond4
5mo ago
Nice resource. Makes me want to make a full game using JavaScript inside an SVG image.
42.
▲
by
tnelsond4
5mo ago
Yeah, C is king right now.
43.
▲
by
tnelsond4
5mo ago
If we could get jbig2 native support in browsers we could do monochrome black and white images at ridiculously small file sizes. A page of sheet music can be as small as 8kb. I'm using a wasm decoder right now, but I could forsee using
44.
▲
by
tnelsond4
5mo ago
And this is how everything becomes a crappy pwa apps. (Though let's be honest, most Android apps already are)
45.
▲
by
tnelsond4
5mo ago
Yeah, I had Claude generate me the jbig2 to 1-bit png wasm module from the jbig2 source so that there'd be no dependencies on zlib or libpng. Then I aggressively removed functions from 97kb down to 17kb. So if it's missing functio
46.
▲
by
tnelsond4
5mo ago
Little endian. x86 and wasm have the same endianness so it's very straightforward. If I wanted to enable support for reading and writing on big endian systems I could patch a few lines very easily, but it seems to be a consideration un
47.
▲
by
tnelsond4
5mo ago
Yes this does seem almost exactly like what PeakSlab is doing. I'll have to investigate more how SSTables and memtables work to see if there's any improvements or anything to glean from them. I'm storing null delimited sorted
48.
▲
by
tnelsond4
5mo ago
Even on warm start PeakSlab is twice as fast. It's not just download size, it's execution speed, zero copy, database decompression, etc. That's why PeakSlab is written in c, because what's faster than casting the whole d
49.
▲
by
tnelsond4
5mo ago
I'll definitely have to look at this. I'm using binary search right now because it's fast enough and I understand it better, but I might replace it with hashes at some point.
50.
▲
by
tnelsond4
5mo ago
I must've messed something up, but I remember some joins (was it full outer join?) being unbelievably slow? Was I doing something wrong?
51.
▲
by
tnelsond4
5mo ago
I'm solving a simpler problem. Just making cross platform dictionary progressive web apps with indexes and full text search and HTML tags and uppercase letters inserted back into the text on render so they don't interfere with sea
52.
▲
by
tnelsond4
5mo ago
Works on my wife's old iphone. I don't have a mac to test things on.
53.
▲
by
tnelsond4
5mo ago
Even BerkeleyDB tries to be mutable. What I'm doing doesn't need the mutability so it's much more similar to dictionary formats (though probably simpler) than it is to a database. Though a lot of people do use full databases
54.
▲
by
tnelsond4
5mo ago
Yeah, that was my experience with Grok, whenever I gave it a file with over 400 lines it would just fail to comprehend it or be too lazy to write too much at a time. Splitting stuff up into separate files helped.
55.
▲
by
tnelsond4
5mo ago
I love using zstd, it's so fast to decompress. I especially like that the JavaScript decoder is 8kb and still really fast. Though the 25kb wasm decoders are about twice as fast. What are the advantages or reasons to use zstd in a 7z co
56.
▲
by
tnelsond4
5mo ago
Yes, because originally when I started PeakSlab it used the SQLite wasm build.
57.
▲
by
tnelsond4
5mo ago
Generate it one time from a source tsv file or folder of media.
58.
▲
by
tnelsond4
5mo ago
Believe me, I tried sticking to SQLite or aard2 or stardict, they just were fundamentally inadequate with no good pwa cross platform tooling.
59.
▲
by
tnelsond4
5mo ago
I'm always inspired by SQLite. Overall I like it, but if you're not doing writes it's really overkill. So I made a format that will never surpass SQLite, except that it's extremely lighter and faster and works on zstd co
60.
▲
by
tnelsond4
6mo ago
I'm just hearing about Graphite now. Looks pretty cool with a desktop and web client. Nodes, vector graphics and raster, and even animation and compositing.
More ›