Re:Ask HN: What DB to use for huge time series?
by bkeroack on Thursday September 25, 2014 @03:35PM
(#8369245)
Look at the source.
(c) 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
This guy is truly depraved.
Re:Ask HN: What DB to use for huge time series?
by siganakis on Thursday September 25, 2014 @04:50PM
(#8369670)
Remember 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) [1]: http://en.wikipedia.org/wiki/APL_(programming_language)
Re:Ask HN: What DB to use for huge time series?
by chetanahuja on Thursday September 25, 2014 @03:49PM
(#8369329)
Hah... 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
Re:Ask HN: What DB to use for huge time series?
by knicholes on Thursday September 25, 2014 @03:52PM
(#8369353)
My favorite part is the comment "remove more clutter." Instead it should have been, "Remove all hope of maintenance."
Re:Ask HN: What DB to use for huge time series?
by arielweisberg on Thursday September 25, 2014 @03:47PM
(#8369319)
That is special. I had a fun time parsing that. I mean that genuinely.
Re:Ask HN: What DB to use for huge time series?
by conover on Thursday September 25, 2014 @03:48PM
(#8369328)
Dear lord. It must take forever to get up to speed on a codebase like that.
Re:Ask HN: What DB to use for huge time series?
by geocar on Thursday September 25, 2014 @04:30PM
(#8369572)
Doesn't take that long. Maybe a few days?
k5 isn't that big (about 9 C files)
Re:Ask HN: What DB to use for huge time series?
by scottlocklin on Thursday September 25, 2014 @10:59PM
(#8371112)
Jd (the J database) isn't as powerful as KDB+, but it's pretty good and only costs if you want to pay for support.
Re:Ask HN: What DB to use for huge time series?
by alexcash on Saturday September 27, 2014 @09:30AM
(#8376959)
If you want a quick video guide to getting started, there's: http://www.timestored.com/kdb-guides/getting-started-kdb
Even the java driver is written similar to the C code :) http://code.kx.com/wsvn/code/kx/kdb%2B/c/jdbc.java
Re:Ask HN: What DB to use for huge time series?
by geocar on Thursday September 25, 2014 @04:42PM
(#8369633)
I'd also recommend KDB+
I find my code very clear and readable in it.
Re:Ask HN: What DB to use for huge time series?
by MasterScrat on Thursday September 25, 2014 @05:16PM
(#8369785)
What is the price range of the full version?
I have no affiliation, other than being a customer. Its as close to a standard as you can find in finance.
There are many useful tutorials out there that let you try it out and you can usually get an eval version to try before you buy.
http://code.kx.com/wiki/Startingkdbplus/contents If you find something that is comparable in terms of performance and features, but cheaper, please mail me!! I would be very grateful.