Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
acidx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
acidx
11y ago
The presentation gutomaia did on PyNES at PythonBrasil had a slide deck written using this tool.
62.
▲
by
acidx
11y ago
Not sure if something like this should be part of glibc. Just recently there was an ABI break due to the fact that jmp_buf is exposed in the headers to allow embedding the struct[1]. [1] https://lwn.net/Articles/605607&
63.
▲
by
acidx
11y ago
Yeah, that's how you end up doing this: store coroutine state in a struct, with an integer that lets you decide where to jump to when you resume the coroutine. With compiler support that can be pretty efficient (gcc has computed goto,
64.
▲
by
acidx
11y ago
setjmp()/longjmp() will work, but they're sort of inefficient as, at least under POSIX, they will save and restore the signal mask, which makes for two round-trips to the kernel just for a coroutine context switch. My web server u
65.
▲
by
acidx
11y ago
Read Adam Dunkels' paper on Protothreads.
66.
▲
by
acidx
11y ago
The desock.c patch could use a return statement (not sure what's going to happen there: maybe that's the reason no problems were found?). Otherwise, nice writeup -- I'm trying to fuzz Lwan right now using preeny.
67.
▲
TechEmpower's Web Framework Benchmarks Round 10
(techempower.com)
30 points
by
acidx
11y ago
|
5 comments
68.
▲
by
acidx
12y ago
As the author, I would really appreciate if you could elaborate on this comment. I'm genuinely curious, because it's the first time I hear someone saying it's poorly written to the point that it's used as an example of h
69.
▲
by
acidx
12y ago
Awesome! If you ever open source it, Show HN. Or write a blog post about it, maybe I can get around implementing HTTP/2 in Lwan as well. :)
70.
▲
by
acidx
12y ago
That article is a year old. Lwan now uses ~9MiB in the same configuration instead of ~32MiB.
71.
▲
by
acidx
12y ago
You're right. Thanks for pointing it out. Will fix it tonight, although the title can't really be changed (and will look like some fishy click bait). In my defense, the first paragraph states that I never get things right the firs
72.
▲
by
acidx
12y ago
Surprised to see that my blog post about Lwan made to such list.
73.
▲
by
acidx
12y ago
This is surprisingly similar to the story of home computers in Brazil. From 1984 (during which time we were under a military dictatorship) to 1991, we were under a market reserve. Because of this, the computers we had were either cloned fro
74.
▲
by
acidx
12y ago
Not planned ATM. Still need to read more about it before giving it a go.
75.
▲
by
acidx
12y ago
No chance for MIT or BSD, although LGPL with a static linking exception might be doable.
76.
▲
by
acidx
12y ago
These are easy things to fix: feel free to issue a few pull requests. :) Regarding rawmemchr(): both are pretty well optimized. Both are implemented in glibc using the same technique (reading a byte at a time until it is aligned, then movin
77.
▲
by
acidx
12y ago
GPLv2 (or later) at the moment. Might change to LGPLv2 (or later) soon, though.
78.
▲
by
acidx
12y ago
Apart from sharing the "wan" suffix and choice of language, there's no relationship whatsoever.
79.
▲
by
acidx
12y ago
Performance isn't the only thing that you should look for in a web server. Nginx is probably the best choice for most applications, yes, as Lwan lacks lots of important features, real world testing, and community. And I say that having
80.
▲
by
acidx
12y ago
If I recall correctly, a literal translation is used ("reticulando os splines"). But it's been years since the last alien invasion.
81.
▲
by
acidx
12y ago
Author here. This gave me a chuckle. :) And, yes, that's pretty much it, although "rebimboca da parafuseta" is less obscure than "reticulation of the splines" (if you're Brazilian, anyway). It is used to denote
82.
▲
by
acidx
12y ago
It was supposed to be linking to the Coroutine article on Wikipedia. Fixed.
83.
▲
by
acidx
12y ago
Author here. Yes, you're right -- the whole structure is larger than 64 bytes, but the pointers to the child nodes all fit in 8 pointers only (in contrast with the previous version, which had 256 pointers instead). Maybe I need to adju
84.
▲
by
acidx
12y ago
Ah, yes, I'm familiar with these tools. They're indeed pretty good. In addition to them, I also use Coverity (they offer free licenses for open source projects) and Coccinelle (although it's a tool to refactor/create sem
85.
▲
by
acidx
12y ago
As I've been following posts on PVS Studio for a while, I'm sort of familiar with the kind of errors it finds. I was able to spot 13 of these errors -- although the page only counted that as 10 as it's very picky of which tok
86.
▲
by
acidx
12y ago
As I'm writing a web server as well (just for hobby, won't be big and professional like nginx), I did glance at Nxweb's code a few months ago. It's pretty hard to grasp, and I consider myself to be a pretty experienced C
87.
▲
by
acidx
13y ago
The title remembers me of the Sosumi sound that came with Mac System 7 onwards: https://en.wikipedia.org/wiki/Sosumi
88.
▲
by
acidx
13y ago
A few years ago myself and a friend wrote a simulator for a 90's toy called "Smart Start" ("Pense Bem" in Brazil), which has a crude piano (square wave only) mode as well. It is still online at http://lab
89.
▲
by
acidx
14y ago
Pretty useful. Although it would be better if you could just send the diff over the wire when trying to look a previous version -- it takes way too much time to download the whole model. Being able to continue inspecting the model in the sa
90.
▲
SMS Reader in JavaScript using Tizen APIs
(giscaro.wordpress.com)
3 points
by
acidx
15y ago
|
0 comments
More ›