4 ms·
Would a transpiler kind of be like rosetta code?
by thenipper 10y ago
Would a transpiler kind of be like rosetta code?
- mywittyname 10y agoYeah, I mean I use that word because it conveys the result I'd like to see. A syntax database is not terribly useful. A concept database is where the real value is. The idea is that a language is much more than just raw syntax. C++, Python, and awk are all so fundamentally different that explaining the differences in terms of syntax is ultimately worthless. Even something like "array in C++" vs. "arrays in python" is not very valuable because they really mean totally different things. There's a lot of unknown-unknowns for a Python programmer whose never seen C++ code in their life. They would never think that arrays are fixed length and accept only one data type because lists in Python have neither limitation, likewise, a C++ programmer might be looking something to that behaves like std::vector not understanding that Python lists are perfectly appropriate. It would be perfectly acceptable to have people write the "same" (ideally, non-trivial) code in different languages and link them together. In fact, that's probably what they should seek to do.
- thenipper 10y agoYou might not see this but I totally get what you mean. It'd be interesting to see something that broke programming down to that sort of core level. I'm sure it exists somewhere in some CS lab right?