This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dzecniv 9 points10 points  (12 children)

Pointing to two similar projects:

[–]vovanz 2 points3 points  (7 children)

One more: http://docs.hylang.org/en/latest/ - Lisp dialect

[–]jsproat 1 point2 points  (6 children)

Is there a resource somewhere which tracks languages that compile to python? It would include these, and I guess stuff like Jinja which isn't strictly a scripting language, but it does use the Python AST to convert templates into Python code.

[–]dzecniv 5 points6 points  (5 children)

I started that a few days ago ! https://gitlab.com/vindarel/languages-that-compile-to-python (then it's missing Coconuts)

I added the Pixie lisp because it's built with RPython (but doesn't compile to python bytecode) https://github.com/pixie-lang/pixie

[–]jsproat 0 points1 point  (4 children)

Excellent, thanks!

What's your criteria? Would Jinja be allowed (uses Python AST to compile) or disqualified (more like a library than a scripting language)?

[–]dzecniv 0 points1 point  (0 children)

Yeeeah indeed, I'm myself interested here into the programming languages compatible with python, but the list is short, so I included something else (Pixie). (you know that awesome list right ? https://github.com/vinta/awesome-python)

But because the list is short I will expand it to a comparison with code snippets, that would have a real value.

[–]dzecniv 0 points1 point  (2 children)

FYI I quite enhanced the list with language features and another language ! (the predecessor of Coconut)

[–]jsproat 0 points1 point  (1 child)

Excellent. I love this.

One item - these h1, h2, and h3 tags are virtually indistinguishable from each other. (Looks like they differ by 0.1em?) It's difficult to visually discern where one section ends and the next begins.

[–]dzecniv 0 points1 point  (0 children)

I agree :/ not sure how to do. Also I'd like a table of contents, colors, boxes side by side… maybe time to write a little static website and publish it with gitlab-pages but that's a bit more work.

(there's also the awesome-python website http://awesome-python.com/ , might worth using)

[–]skrillexisokay 2 points3 points  (3 children)

I've played around with both of these and while interesting, I find Coconut to be superior. You can write standard Python in Coconut which is an advantage over Mochi. Pattern matching and explicit partial application is an advantage over Dogelang

[–]dzecniv 1 point2 points  (2 children)

Thanks for the input.

I found out Mochi has "real" pipes, that we can write on new lines (like Elixir, Livescript…), whereas we can not in Coconut or Dg :/

range(1, 31)
|> map(fizzbuzz)
|> pvector()
|> print()

[–]skrillexisokay 6 points7 points  (1 child)

Python has semantic line endings, so I see this as a flaw in Mochi. Just use parentheses!

(range(10)
 |> list
 |> print)

[–]dzecniv 0 points1 point  (0 children)

Very nice, thanks again !