Giter Site home page Giter Site logo

Comments (11)

miguelgrinberg avatar miguelgrinberg commented on May 18, 2024 1

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.

JdeH avatar JdeH commented on May 18, 2024

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.

miguelgrinberg avatar miguelgrinberg commented on May 18, 2024

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.

JdeH avatar JdeH commented on May 18, 2024

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.

Brakkar avatar Brakkar commented on May 18, 2024

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.

JdeH avatar JdeH commented on May 18, 2024

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.

JdeH avatar JdeH commented on May 18, 2024

@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.

JdeH avatar JdeH commented on May 18, 2024

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.

JdeH avatar JdeH commented on May 18, 2024

Multi-level sourcemaps now supported

from transcrypt.

Brakkar avatar Brakkar commented on May 18, 2024

from transcrypt.

JdeH avatar JdeH commented on May 18, 2024

Good action, thank you!

from transcrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.