Code Monkey home page Code Monkey logo

Comments (5)

jorgebucaran avatar jorgebucaran commented on April 27, 2024

@tunnckoCore Do you mean change the order of the arguments?

from hyperapp.

jorgebucaran avatar jorgebucaran commented on April 27, 2024

@tunnckoCore Nothing actionable here. If you can simplify the current algorithm, be my guest! :)

from hyperapp.

tunnckoCore avatar tunnckoCore commented on April 27, 2024

I actually did it before few days. Decoupled everything to separate local file module. Diffing is ~200-300 bytes.

It looks like

const microdiff = require('./microdiff')
const update = microdiff(root, 0)

// update later is used in the `onRoute` like that
// signature newEl, oldEl
update(view(model, actons), el)

But anyway :) I'll come up with something soon.

from hyperapp.

jorgebucaran avatar jorgebucaran commented on April 27, 2024

PR welcome.

from hyperapp.

tunnckoCore avatar tunnckoCore commented on April 27, 2024

Damn, my fault, bad mind. it is 650, with umd and soucemap comment.

PR welcome

yea

from hyperapp.

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.