User loginNavigation |
How can be a interpreter faster than C (aka: kdb+)I read a submission on HN that talk about Kdb+. In the linked page it claim the interpreter is faster than C: Kdb+ is a testament to the rewards available from finding the right abstractions. K programs routinely outperform hand-coded C. This is of course, impossible, as The Hitchhiker’s Guide to the Galaxy likes to say. K programs are interpreted into C. For every K program there is a C program with exactly the same performance. So how do K programs beat hand-coded C? As Whitney explained at the Royal Society in 2004, “It is a lot easier to find your errors in four lines of code than in four hundred.” Now I'm a noob about compilers, but I understand that a)Interpreters are easier to code than compilers b)And them are slow, probably very very slow. How can be faster? How do it? I don't see how "“It is a lot easier to find your errors in four lines of code than in four hundred.”" can be the explanation. By mamcx at 2014-10-22 20:19 | LtU Forum | previous forum topic | next forum topic | other blogs | 50088 reads
|
Browse archives
Active forum topics |
Recent comments
22 weeks 6 days ago
23 weeks 2 hours ago
23 weeks 2 hours ago
45 weeks 1 day ago
49 weeks 3 days ago
51 weeks 10 hours ago
51 weeks 10 hours ago
1 year 1 week ago
1 year 6 weeks ago
1 year 6 weeks ago