Comments (11)
Nice! Works really well, I can set breakpoints, look at variables, etc. You did a fantastic work. In my opinion, the close to one-to-one translation that you are doing, plus the source maps set Transcrypt apart from the other py-to-js solutions out there. I will be looking into exposing or porting JS frameworks. I'm particularly interested in backbone, because it has a class-based structure that I think translates well into Python.
from transcrypt.
This is something that has been on my wish list for some time. With the release out I think this is a good moment to take a look at that. Thanks for the suggestion, I'll do so on short term.
from transcrypt.
Thanks, I see that you already started working on this on a branch. If there is anything I can do to help without getting in your way please let me know!
from transcrypt.
Thank you for the offer! Although the principle is simple, it'll take some time working this out, avoiding one-off errors and dealing properly with multi-stage transformations.
Once it works it'll have to be tested. I would appreciate if you would do some of that, Upto now I do most of the testing myself, but I sure will have missed things.
An other thing that would be very useful are showcases and demo's. I have planned at least three websites using Transcrypt, one for myself and two for a third party, but this still some months off. If you use Transcrypt for production anywhere and it's allowed, send me a link to the site.
In the long run I hope people will start developing library wrappers for it or port CPython stuff. Can't do that all by myself.
Don't feel obliged in any way! But those are some points where my one man power falls short.
from transcrypt.
Hello, missing sourcemaps are the only thing that keeps me off
Not just for google chrome.... My ide pycharm supports javascript debug with sourcemaps.
Would be great to have them on transcrypt. Thanks.
from transcrypt.
Sourcemaps will be in without a doubt! Together with bugfixes this has the highest priority. Due to it's complexity with mixing multple source file and native JS code it will take some time though.
from transcrypt.
@miguelgrinberg
Sourcemaps are 95% ready. You can give them a first try at:
http://www.transcrypt.org/pong.html
NB1. The source of fabric.js is not yet included.
NB2. Multilevel sourcemaps are not yet supported, so you work from the non-minified js file.
from transcrypt.
It turned out to be quite hard to find a subset of the sourcemap syntax that actually worked in a multi module situation.
E.g. pure index maps with an URL rather than a submap seemed to work on no browser at all and I couldn't find any examples.
In the end I found a consistent subset that works at least on Chrome, which is widespread.
Would be great if you ported c.q. exposed libs that you judge important!
from transcrypt.
Multi-level sourcemaps now supported
from transcrypt.
from transcrypt.
Good action, thank you!
from transcrypt.
Related Issues (20)
- object() constructor HOT 7
- Support for regex library? HOT 1
- Missing types in the typing module
- List concatenation not working HOT 3
- Can't compile curly braces in format string
- parcel_demo needs to be updated to use Parcel V2
- Adding two lists converts to a string HOT 2
- 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
- How to compare two methods?
- ... in python code aborts compilation
- Add python 3.12 syntax support
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.