Coder Social home page Coder Social logo

"no runtime"? about website HOT 4 CLOSED

babel avatar babel commented on May 10, 2024
"no runtime"?

from website.

Comments (4)

sebmck avatar sebmck commented on May 10, 2024

By "no runtime" it just means that you don't need to include a 80KB blob as with Traceur etc. Basically instead of having a very heavy runtime/polyfill 6to5 will insert lightweight helpers.

Relevant section from compare.

Sometimes there are little inline functions that 6to5 needs. These are placed at the top of your file much like coffee-script does. If these bother you then you can use the optional runtime. We promise that these inline functions will never be significant and will always be used as little as possible.

These helper functions are only really excessive in the case of classes. It's due to needing to be 100% spec compliant. You can alternatively use loose mode that has some caveats but outputs significantly reduced code.

from website.

sebmck avatar sebmck commented on May 10, 2024

I feel like I dodged the question a bit but in the context of "no runtime" it refers to the inclusion of an external script in order for your transpiled code to work.

from website.

Daniel15 avatar Daniel15 commented on May 10, 2024

Thanks for the quick response @sebmck, I really appreciate it :)

I've never used Traceur before so I didn't know that it had a heavy runtime like that. I'm considering trying out 6to5 rather than Facebook's JSXTransformer/jstransform as 6to5 is more complete with its ES6 features.

I feel like I dodged the question a bit but in the context of "no runtime" it refers to the inclusion of an external script in order for your transpiled code to work.

Your answer totally made sense to me. However I think it'd be good to change the site from "no runtime" to "no external scripts" or something like that to clarify it for n00bs like me. I'm used to "runtime" referring to a VM or something similar, rather than just meaning an external chunk of code.

from website.

sebmck avatar sebmck commented on May 10, 2024

@Daniel15

I think it'd be good to change the site from "no runtime" to "no external scripts" or something like that to clarify it for n00bs like me. I'm used to "runtime" referring to a VM or something similar, rather than just meaning an external chunk of code.

Ah yeah that's true. The site currently needs some work done on copytext as there have been some changes lately that have made it a bit flaky. I'm not very used to writing technical documentation so I have difficulty simplifying concepts, definently hope to fix it up soon. Thanks for bringing it to my attention though!

from website.

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.