Git Product home page Git Product logo

Comments (2)

qm3ster avatar qm3ster commented on September 1, 2024

Do you mean "readable JS" transpiration, like ReScript (ex Reason) or , or asm.js-style compilation (WASM precursor, the fastest JS subset, a target for compiling, say, C)?
Both are outside the scope of just this one framework, but I'm curious which one you meant.
As for performance of JS glue code, it seems acceptable.
The reason includes optimizations such as what is described here.
Once the situation with caching of already-compiled WASM modules improves in browsers, the worst part (startup time) will also be eliminated.

As for Percy specifically... Percy uses a virtual DOM. The vdom strategy has an unavoidable intrinsic cost.
JS Libraries like React, Preact, Inferno have spent years optimizing the performance of that, yet React is beaten by Yew (including current WASM overheads), which uses a vdom, but does that computationally intensive work in WASM.

Perhaps there is still a meaningful overhead to WASM-JS ffi, which is how solid.js still beats rust-dominator, despite not even having a SignalVec equivalent.

However, they both beat the fastest vdom libraries, such as Inferno, for updates, because they avoid a vdom entirely, and instead use reactive signals, which necessarily provide a slightly different end-user API than vdom libraries tend to. (This actually gives a mindful user even more optimization potential.)

from percy.

chinedufn avatar chinedufn commented on September 1, 2024

@L1lith thanks for sharing lots of ideas, excited to have you around!

I agree with @qm3ster that transpilation would be out of scope, so I'm going to close this.

But I'd like to repeat that I really appreciate you coming to the table with your ideas!

from percy.

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.