Code Monkey home page Code Monkey logo

meta-loader's Introduction

meta-loader

A webpack loader to achieve transpile-time metaprogramming with pure JavaScript

Playground

TODO

  • Seamless bridge to TypeScript
    • .d.ts generation
  • operator overloading, syntactic sugar, short-hand, intentional, declarative programming (much like a DSL?)
    • safe-programming
      • static libraries
        • number-safe
        • markdown or any other markup languages as syntactic sugar - Some of them need constexpr - support runtime + compile time
          • Math symbols
          • Calculated graphics
          • ORM
          • JSX
        • compile-time wrapper
        • transpile-time types
        • matrixA + matrixB = matrixC
      • polyfills
      • transpile-time code elimination
        • Build variant
  • As a test-case like constraint in code
    • Much like an assertion
    • However, different to test cases, test cases simulates user action and check the outcomes, constraints statically check if program flow is robust
  • transpile-time evaluation
  • reduce overhead (inline functions, compile-time wrapper, etc...)
  • Never try to do spaghetti code pattern
    • treat .metajs and normal .js separately
    • ultimate goal is to move all .js code to .metajs

Reference

meta-loader's People

Contributors

dirkarnez avatar

Stargazers

 avatar

Watchers

 avatar

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.