Giter Site home page Giter Site logo

Comments (4)

csgordon avatar csgordon commented on August 29, 2024

This is a complicated question. It is not generally true (e.g., across languages) that AOT should always be faster than a JIT, as there are additional optimizations available to JITs (from profiling data) that are not available AOT (even with profile guided optimization, since application profiles can change across inputs).

The paper was mostly focused on how to do AOT compilation at all for JavaScript (type inference), with the primary intended gains being reduced memory consumption (which we did well on). That said, we did believe there was room for improvement in performance, possibly beyond what JITs (at the time) were capable of, but the project dissolved for various reasons before that could be pursued (not for any technical reasons).

I would not recommend using this for production, not because of performance concerns (the reduced memory consumption could balance that out in some contexts), but because we never did conformance testing against test suites for the standard. Some of course would be ruled out by the type system, but we didn't get the chance to study the subset that should be permitted before the project dissolved. It would be viewed as a research project that was sinking for eventual production use, but didn't get there (which is what it is).

from sjs.

mavavilj avatar mavavilj commented on August 29, 2024

Okay.

I have been torn between focusing on TypeScript or contributing to this stump project. I do think that the way TypeScript does static types is not the correct way though, but more like a workaround after JavaScript. So if we wanted a statically typed JS, then SJS would be it.

from sjs.

csgordon avatar csgordon commented on August 29, 2024

You might find the following more recent projects of interest:

from sjs.

mavavilj avatar mavavilj commented on August 29, 2024

I do not understand why AOT should not outperform JIT, because AOT should have more data available.

This is not a core issue though, but the issue is that SJS is slower than V8.

OTOH, since those links mention STS by Microsoft, then possibly that project has more prospects for production.

from sjs.

Related Issues (2)

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.