Comments (9)
P.S. If you would rather discuss this in private, you can find my email address at the top of https://github.com/kovidgoyal/rapydscript-ng/blob/master/src/lib/elementmaker.pyj
from transcrypt.
Hi Kovid, you should have received my reply. If not, let me know.
Kind regards, Jacques
from transcrypt.
I got it and replied, feel free to close this bug report, if you want to.
from transcrypt.
Do you guys mind sharing the outcome?
from transcrypt.
JdeH decided he wanted to continue to work on Transcrypt, and not merge efforts. But he is open to collaborating on implementing libraries from the python ecosystem for python-to-javascript transpilers in the future.
from transcrypt.
Correct. I think there's room for diversity in the transpiler area. There's a whole range of projects from PyPyJs on one hand via Brython to RapydScript. Transcrypt fits somewhere between Brython and RapydScript, but nearer to RapydScript. I hope users compare the featureset and choose what fits them best. I agree with the philosophy behind RapydScript that a transpiler should live in the JS ecosystem and generate lean, understandable JS. Still in programming it I wanted to start out from the Python world rather than JS world: native CPython parser, code generator programmed in Python 3.5, Transcrypt distributed via PyPi. I want the syntax to be pure Python, even the pragma's are syntactically just function calls.
from transcrypt.
I've been checking out both transpilers (+ pyscript, which I'm not sure where to fit), awesome to see a collaboration effort.
If it's ok to ask - for a minimal overhead over regular JavaScript, which transpiler would you say is more suitable currently? aka which to use if performance is a high priority?
Thanks!
from transcrypt.
See kovidgoyal/rapydscript-ng#46 for some benchmarks
from transcrypt.
Hi!
I went over the project and while I was looking at python side I was delighted, but JS-side upset me.
My 2 cents of thoughts:
If I want to write a more or less large app using the existing JS-framework I should understand how it works including JS itself! So, If I know JS (but love Python, I really love it) which transpiler will I use? - I think, it will be one which is closer to JS as possible with no magic and JS-basics modification (like Array.prototype.append = ... - are you sure that some JS-libs doesn't do the same?).
If I will want to write some awesome JS-lib/framework, then it should be suitable for pure JS contributors, what shall I use?
Just for example: Autobinding makes the classes unsuitable to use with Vue (at least). I mean the following will not work:
Class Foo:
def __init__(self):
self.methods = { 'bar': bar}
def bar(self):
...
v_foo = new Vue( Foo() )
So, I can't imagine how I could use this project(
P.S. JS has the fatal drawback - it's not Python.
from transcrypt.
Related Issues (20)
- Is Transcrypt Dead? HOT 5
- nodejs_demo doesn't work as described on web site; does via readme HOT 2
- Compile error when importing a long (path and class) name HOT 2
- Feature: `__` private members/name mangling in classes HOT 1
- No error is thrown in list.pop(idx) when the index is out of range
- Can you please maintain directory structure in __target__/ ? HOT 1
- A boolean operator is translated to a bitwise operator, not a boolean operator HOT 1
- A method in the second base class is not called even when the first base class is empty.
- Minification error on del[] HOT 1
- Python built-in map() to support more than one iterable HOT 3
- How to compare two methods?
- ... in python code aborts compilation HOT 1
- Add python 3.12 syntax support HOT 1
- sorted(x) modifies the argument x (bug?) HOT 3
- math.copysign() is not a function (missing?) HOT 2
- Handling JSON Module Compatibility in Transcrypt HOT 2
- How to write a module and test it HOT 1
- problems when running the autotests HOT 1
- Multiline literal JS that is ignored by CPython HOT 3
- % (modulus) operator returns a plus value when a minus operand is given HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transcrypt.