Live data from Hacker News

Show HN: Python-to-Python compiler for some 3.6 features in older versions

github.com

111–113 of 113 posts

Re: Show HN: Python-to-Python compiler for some 3.6 features in older versions

#111

Serious question: Why would anyone still be doing anything with Python 2.7 except porting the last remnants of their code base to 3.X?

Because sometimes the amount of work required to port a 2.7 project to 3.x isn't worth it.

Ansible currently only supports Python 2.7....

Re: Show HN: Python-to-Python compiler for some 3.6 features in older versions

#112
post #54

Earlier quoted context omitted.

I never understood the insistence in this. A transpiler is "a compiler that targets a high-level language." It's a term that adds information above and beyond compiler. All transpilers are compilers, not all compilers are transpilers.

> A transpiler is "a compiler that targets a high-level language." So rustc is a transpiler when using the emscripten backend but not when using the native backend? How does that even make sense?

You say it doesn't make sense, and yet you were able to figure out how to apply it correctly to the example you gave, so you have to have some understanding of the idea.

Like, in most American homes, there's a bathtub with a showerhead in it. When we're using the showerhead, we'll say, "I was in the shower..." When we're using the faucet, we'll say "I was in the bathtub." This sort of thing happens all the time. It makes plenty of sense that something is a transpiler when it's transpiling and not when it isn't.

Re: Show HN: Python-to-Python compiler for some 3.6 features in older versions

#113
post #112

Earlier quoted context omitted.

> A transpiler is "a compiler that targets a high-level language." So rustc is a transpiler when using the emscripten backend but not when using the native backend? How does that even make sense?

You say it doesn't make sense, and yet you were able to figure out how to apply it correctly to the example you gave, so you have to have some understanding of the idea. Like, in most American homes, there's a bathtub with a showerhead in it. When we're using the showerhead, we'll say, "I was in the shower..." When we're using the faucet, we'll say "I was in the bathtub." This sort of thing happens all the time. It m…

Does prominent compiler literature use the term "transpiler"?
Post reply on HN