* TCP proxy (~200)
* Win32 GUI TOTP authenticator (~230)
* GIF decoder (~300)
* PNG decoder (~470)
* JPEG decoder (~770)
* H.261 decoder (~740)
* H.263 decoder (~1100)
* MPEG-1 decoder (~1100)
All of the above I would consider a "complete C application".Edit: looks like some people just have no respect for craftsmanship.
Personal insults are not acceptable here.
You sound like you really know what you're doing, if you can, please share some of this for our edification and don't take things personally.
With baseless claims, no code, no other consideration? I would not imply that, I would assume that.
This is what things like DPDK and io_uring attempt to solve.
Also, you most likely are a liar. Just the matrix tables you need for MPEG-1 are 500+ lines.
Unless of course you used 1100 lines to call ffmpeg. Then you don't need the tables.
But that being said: Yes, writing a TCP proxy in 200 lines is indeed possible. But it will use standard socket calls. You might want to read up about what io_uring is all about, and why it's worth going the extra mile.
Or, as an alternative, you could STFU :)
and yeah, this is why you don't abuse side-by-side divs ... actually, that's a table ... and instead just make your number unselectable (there are several ways to do this).
Needs .linenumbers { line-height: 12pt } but I think vertical line spacing within text node cannot be precisely controlled and is browser dependent.
The weird thing is both are controlled by a single CSS rule,
div#cgit pre {
font-family: "Source Code Pro", "Courier New", monospace;
}
(Changing to just `monospace` fixes it.)I'm not sure how two elements could have different fonts with that. I'm possibly missing something obscure, but it really feels like a browser bug.
div#cgit pre, div#cgit code { ... }
(The buggy CSS is not present in the the official cgit repository, so I assume the owner of kernel.dk is running a patched version of cgit.)
1300 lines...
also, the line numbers dont actually align with the lines:
https://git.kernel.dk/cgit/liburing/tree/examples/proxy.c#n1...