PJ (pyxc)

Languages and libraries

transpiler

SHOW HN2010

32points
18comments
#55of 370 in 2010
Top 15%of 2010 by points

How HN took it

DebatedReal support and real criticism

2 positive, 3 neutral or asking, 0 mixed, 3 critical, out of 8 comments about the project. Thread score -0.22.

Execution: 0 for, 2 againstIdea: 2 for, 0 againstDocs: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Neat idea and good competition for compilers

    From 3 comments
    • This is a really neat idea, and I'm definitely going to look into this more when I have time, but I have a small nit to pick. print(...) is a common debugging, or output call in…
      tjarratt on HN
    • This would be fantastic to write validation code, because the same code can be used on both the server and client sides. Thanks endian for sharing this with us, I can't wait to…
      plinio_silva on HN
    • Better way of writing javascript (just like coffe script). You can embed this in a web app and write your client-side code in python-syntax. Would work specially well if you…
      hasenj on HN

Objections

  • Python and JavaScript differ enough that docs and scaffolding are needed

    From 2 comments
    • I think that python is sufficiently different from javascript that you'll need to provide your own documentation beyond explaining the transformation. Coffeescript is mostly just…
      jiaaro on HN
    • I wrote one of these for a project. The trouble is that to write functioning python code, even for just the primitives, you have to add a lot of extra scaffolding. I eventually…
      JeffJenkins on HN
  • print() may not work in all browsers or server-side JS

    From 1 comment
    • This is a really neat idea, and I'm definitely going to look into this more when I have time, but I have a small nit to pick. print(...) is a common debugging, or output call in…
      tjarratt on HN

Requests

  • Document which Python features count as syntax versus runtime

    From 1 comment
    • I guess defining what you consider syntax features vs. Python language/runtime would be appropriate for the docs. ie. 2 * * 1024? print object.__mro__? slice objects? __call__?…
      s3graham on HN

Questions

  • Which use cases is this compiler helpful for

    From 1 comment
    • For which use cases this compiler would be helpful? I believe python and JavaScript are typically used for different purposes. That being said, it looks fantastic. :) Disclaimer…
      random42 on HN

Alternatives named

  • CoffeeScript

    From 2 comments
    • I think that python is sufficiently different from javascript that you'll need to provide your own documentation beyond explaining the transformation. Coffeescript is mostly just…
      jiaaro on HN
    • At first blush, I'd say this similar to Coffeescript in that it's meant to be javascript shorthand also.
      s3graham on HN
  • Pyvascript

    From 1 comment
    • I built something similar a while back (guess it's been in use for about two years now -- built it to support my company's product): http://github.com/daeken/Pyvascript Key…
      daeken on HN
  • Pyjamas

    From 1 comment
    • I wrote one of these for a project. The trouble is that to write functioning python code, even for just the primitives, you have to add a lot of extra scaffolding. I eventually…
      JeffJenkins on HN
  • pythonicjavascript

    From 1 comment
    • A more conservative (i.e. closer to the generated javascript) approach is pythonicjavascript (http://code.google.com/p/pythonicjavascript/). Personally I prefer making Javascript…
      reinhardt on HN
  • prettyscript

    From 1 comment
    • Here's my thing like this for Ruby: http://github.com/jedediah/prettyscript I abandoned it when CoffeeScript appeared, but you might find something interesting there.
      extension on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/1848643)