3 ms·
Look at the source. (c) http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/k.h http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/k.h (c#) http://code.kx.com/wsvn/code/kx/kdb%
by bkeroack 12y ago
Look at the source.
(c) http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/k.h http://code.kx.com/wsvn/code/kx/kdb%2B/c/c/k.h
(c#) http://code.kx.com/wsvn/code/kx/kdb%2B/c/c.cs http://code.kx.com/wsvn/code/kx/kdb%2B/c/c.cs
This guy is truly depraved.
- arielweisberg 12y agoThat is special. I had a fun time parsing that. I mean that genuinely.
- conover 12y agoDear lord. It must take forever to get up to speed on a codebase like that.
- geocar 12y agoDoesn't take that long. Maybe a few days? k5 isn't that big (about 9 C files)
- chetanahuja 12y agoHah... Almost looks like the programmer started out trying to create an entry for obfuscated C competition but then pivoted midway when s/he realized it could be commercialized. Specially loved this comment: // remove more clutter #define O printf #define R return #define Z static
- knicholes 12y agoMy favorite part is the comment "remove more clutter." Instead it should have been, "Remove all hope of maintenance."
- siganakis 12y agoRemember that KDB is based on K, which stems from APL, which relies on symbols rather than words for its functions. Coming from that background, C and especially C# must seem extremely verbose. For example (from Wikipedia): In K, finding the prime numbers from 1 to R is done with [0]: (!R)@&{&/x!/:2_!x}'!R And APL[1]: (~R∊R∘.×R)/R←1↓ιR Its truly awesome stuff. [0]: http://en.wikipedia.org/wiki/K_(programming_language) http://en.wikipedia.org/wiki/K_(programming_language) [1]: http://en.wikipedia.org/wiki/APL_(programming_language) http://en.wikipedia.org/wiki/APL_(programming_language)
- deleted 12y ago[deleted]