Compiled vs interpreted language? #1368
Replies: 3 comments 3 replies
-
Hi @sloanlance -- some thoughts ... TL;DR:
More info:
|
Beta Was this translation helpful? Give feedback.
-
P.S.
Got it! 😎 I have two biases ... One is: for ease of use I want interpreted languages. Which is one reason I enjoy using Miller. And Python can give me this too. The second bias is, for internal implementation details I want raw performance, and in my experience Python cannot give me this -- except with the unacceptable-to-me overhead of Python-with-C++ and all its package-ownership challenges. So it seems the best way to go is to use languages like C++, Go, Rust (first bias) as the internal implementation with which to build languages that have a nice interpreted UX (second bias). |
Beta Was this translation helpful? Give feedback.
-
@sloanlance in #1372 I updated the old 2015 sketch to Python 3 and re-ran some numbers -- TL;DR it's about 4-5x slower than Miller-in-Go at least on the tests below. 8M-line test-data file:
Time a CSV cut:
Time DKVP to XTAB with cut:
|
Beta Was this translation helpful? Give feedback.
-
I've read, and @johnkerl recently explained to me, that Miller was originally written in C. Then, in the last few years, it was rewritten using Go. I've only recently started developing with Go (see #1366), but I already like it better than C. Therefore, the rewrite was a good move.
My favorite programming language is Python, but I also like PHP, to some degree Perl, and various other languages. Overall, I enjoy interpreted languages more than compiled ones. I used to use C and Java in my work, but I'm very happy I no longer use those on a regular basis.
I think that makes my bias clear. 😉
My questions are…
I ask these questions largely for academic purposes. I don't expect anyone to suddenly port Miller to Python.
Beta Was this translation helpful? Give feedback.
All reactions