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 | 44845 reads
|
Browse archives
Active forum topics
|
Recent comments
16 weeks 2 days ago
20 weeks 4 days ago
22 weeks 1 day ago
22 weeks 1 day ago
24 weeks 6 days ago
29 weeks 3 days ago
29 weeks 3 days ago
29 weeks 6 days ago
29 weeks 6 days ago
32 weeks 5 days ago