Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acidx
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
acidx
4mo ago
If I understood this comment correctly, this approach wouldn't work with a single possible tombstone value. If the table has, for instance, a tophashes array that looks something like VVVVVVdVVVV, where "V" is any value, and
2.
▲
by
acidx
11mo ago
Yes! The JSON library I wrote for the Zephyr RTOS does this. Say, for instance, you have the following struct: struct SomeStruct { char *some_string; int some_number; }; You would need to declare a descriptor,
3.
▲
by
acidx
11mo ago
The Linux man page ( https://man7.org/linux/man-pages/man3/atoi.3.html#VERSIONS ) says that POSIX.1 leaves it unspecified. As you found out, it's really something that should be avoided as much as possible
4.
▲
by
acidx
11mo ago
One thing to note, too, is that `atoi()` should be avoided as much as possible. On error (parse error, overflow, etc), it has an unspecified return value (!), although most libcs will return 0, which can be just as bad in some scenarios. Al
5.
▲
by
acidx
1y ago
Programs running under any Valgrind tool will be executed using a CPU emulator, making it quite a bit slower than, say, running the instrumented binaries as required by sanitizers; it's often an order of magnitude slower, but could be
6.
▲
by
acidx
1y ago
Go has had its own version of msan and asan for years at this point.
7.
▲
by
acidx
1y ago
I wrote the Lwan web server, which similarly to Go, has its own scheduler and makes use of stackful coroutines. I have spent quite a bit of time Valgrinding it after adding the necessary instrumentation to not make Valgrind freak out due t
8.
▲
by
acidx
1y ago
I recently wrote one, in C, using tail calls to implement dispatch with CPS: https://tia.mat.br/posts/2025/08/30/forth-haiku.html It's already pretty efficient but I'm working on it to make it
9.
▲
by
acidx
1y ago
I recently implemented a Forth, compatible with the Forth Haiku dialect used by https://forthsalon.appspot.com/ -- it uses a tail call/continuation-passing dispatching method, and performs some rudimentary optimization
10.
▲
by
acidx
2y ago
There's another small one in Campinas, near the Nipo-Brazilian Institute: https://viajantesemfim.com.br/rua-camargo-paes-um-pedacinho-... (or on GMaps: https://maps.app.goo.gl/P17sBzkNG3Gk4frq5 ) I'
11.
▲
by
acidx
2y ago
Also in Brazil: https://en.wikipedia.org/wiki/Nova_Iorque
12.
▲
by
acidx
2y ago
Thank you!
13.
▲
by
acidx
2y ago
Reminds me of this sample from the Lwan project: https://time.lwan.ws/blocks -- where the clock is rendered on the server, and new frames are sent to the client using chunked encoding.
14.
▲
by
acidx
2y ago
Details are hazy as this was a long time ago, but at some point you could make parts of messages not render in Outlook and Outlook Express by writing "begin something" (two spaces after "begin") by itself in a single li
15.
▲
by
acidx
2y ago
This is roughly what my JSON parser does. It does type-checking, albeit without using JSON-schema, but an object descriptor that you have to define to parse and generate JSON. It's been developed for embedded systems (it was written or
16.
▲
How async/await works in the Lwan web server
(tia.mat.br)
1 points
by
acidx
3y ago
|
0 comments
17.
▲
by
acidx
3y ago
Yes, that's the library! It's something I've been slow cooking for over 10 years at this point. :)
18.
▲
by
acidx
3y ago
It's collected after 15min, give or take. The hash isn't random, it's the SHA-1 hash of the base64-encoded data, so it's predictable -- if something keeps accessing the base-64 encoded URL, the /s/... URL won&#
19.
▲
by
acidx
3y ago
On the client. Data is already stored in the ZIP file deflated, so I can just send whatever is inside the ZIP file back to the client if they accept that encoding (which is pretty much always the case, given how ubiquitous deflate is). The
20.
▲
by
acidx
3y ago
I love this!
21.
▲
by
acidx
3y ago
Then it would require JavaScript and wouldn't be a nice demonstration for my web server library. :)
22.
▲
by
acidx
3y ago
Oh, this is a cool experiment!
23.
▲
by
acidx
3y ago
That's why we can't have nice things. :(
24.
▲
by
acidx
3y ago
Files are not decompressed in the server: it sends the unmodified deflate stream back to the user.
25.
▲
Show HN: Host a Website in the URL
(smolsite.zip)
602 points
by
acidx
3y ago
|
181 comments
26.
▲
by
acidx
4y ago
Lwan: https://lwan.ws Been working on this for exactly 11 years today! It's just a webserver on the outside but it has become an umbrella for experimentation.
27.
▲
Converting GW-BASIC to the Z80
(tia.mat.br)
32 points
by
acidx
6y ago
|
4 comments
28.
▲
by
acidx
7y ago
Lwan ( https://lwan.ws ) can also be used like this, although I wouldn't call it a "one liner" like many of the examples listed there: lwan -r /path/to/files/to/serve
29.
▲
Lwan Web Server: 5 years in snippets
(tia.mat.br)
2 points
by
acidx
7y ago
|
0 comments
30.
▲
by
acidx
8y ago
Nice article and analysis! I'm actually considering scrapping the trie used in my project to something based off of this one, with some modifications: For instance, find_node(c, Node48) could avoid the branch if a non-existing index p
More ›