Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by JdeH on Wednesday February 10, 2016 @05:57PM
(#11076874)
Rapydscript came closest to what I was looking for. But I wanted multiple inheritance, assignment of bound functions, properties and recursive tuple assigment.
[ Parent
| on HN ]
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by yorak on Thursday February 11, 2016 @01:26AM
(#11078544)
Thanks. I already have an use case in mind for this kind of transpiler, therefore I asked. I've toyed with Rapydscript a bit but the things mentioned in this thread and in the documentation, such as relative simpilicity, traspilation (is that even a word?) that retains the pythonic code structure, flexible use of Javascript libraries etc., tempt me to try also Transcrypt. Looking forward to it.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by mpu on Wednesday February 10, 2016 @06:37PM
(#11077113)
So you rewrote the whole thing.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by JdeH on Thursday February 11, 2016 @03:01AM
(#11078861)
Yes, after programming ever since I was 15, I've learned that it has to be one of both:
_ Either I have to accept the basic design choices made in a piece of code as is, and build upon it in the same line of thought
- Or, if I really don't want to live with that, I start out completely fresh, not even looking at existing code, since it will just distract me from my path
In this case I opted for the second approach. Many transpiler projects out there are somehow related. As you can see by the source code Transcrypt isn't. I needed a fresh approach to reach my goals (the shopping list in the docs). People ask: why not add this or that to an existing project. Answer: because it isn't that simple. For me multiple projects existing alongside each other isn't a problem, but a fact of nature. There exist many C/C++ compilers, prog languages, OS'es, processor chips. Diversity and survival of a rich, diverse set of fit-enough creatures is what drives IT as well, in my view.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by sametmax on Thursday February 11, 2016 @03:06AM
(#11078876)
Exactly. There are currently is also brython.
Stop reinventing the wheel everytime something you want is missing from a lib. Try to contribute to said lib first.
Otherwise, this adds noise, wastes ressources and splits point of focus in the FOSS community.
I understand the appeal of writting your own baby, I understand the ego part too.
But remember this is a projet you then have to maintain and document. People will ask about their problems with it on stackoverflow, they will type "X vs Y vs Z" on Google.
Creting a new project has consequences.
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by JdeH on Thursday February 11, 2016 @03:17AM
(#11078913)
I don't mind supporting, maintaining and documenting it. I've taken a good look at Brython and it just isn't what I can use for my projects. Also the fact that there are cows and horses I don't consider a waste of Nature's effort. Building big banking offices is, in my view. But making something is just fun. The whole life is a waste of effort, afterall what's the purpose, unless you enjoy it... ;)
Re:Show HN: Transcrypt – Fast, small Python 3.5 to JavaScrip...
by Lofkin on Wednesday February 10, 2016 @07:02PM
(#11077226)
Does this work on windows? Rapydscript does not IIRC