Skip to content

Container Compilation? #166

@ev45ive

Description

@ev45ive

I love what you have done. I would very much like to use something like wire.js in my projects. There is DI for backbone, there is one for Angular but there are not even close to wire.js. There is a concern that library is still in beta, and there are speed and debugging issues I am afraid of in production intended projects.

AFAIK for bigger applications wire.js (with lots of promises and big call stacks) gets slower and not easiest thing to debug. I like to think about scopes as Dependency Injectors. All major DIs i know do container compilation to give back the spped and inline some of the wiring as plain function factories.(especially when values are given, and synchronous - no need for promises and long call stacks then).

There exist now a lot of work on javascript compilation / transpilation (using Node.js and alike) out there. Situation is even simpler here as all we need to do is compile JSONlike wire files to flat js code, no JS parsing needed.

Have you thought about it? Any plans to implement it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions