Giter Club home page Giter Club logo

ace2's Introduction

Ace2

The Ace3 vanilla version is under development so there will probably be no more updates for the old Ace2 version

Some Notes:

Variable Arguments

In vanilla the variable arguments generate extra table so in Ace2 we see many function like

function foo(...<fixed args>..., a1, a2, a3, ..., a20)

to avoid extra table creating cost, but the PC today are much more powerful so I dont think it will be a big issue, sometimes we can reuse the table by rewriting the recursive functions:

function _foo(param, arg)
    ...
    _foo([param, arg)
    ...

function foo(param, ...)
    ...
    _foo(param, arg)  -- arg is the variable argument table
    ...

Recursive functions with loop

The iterator must be declared again as local if it will be passed as an argument in the recursive function

function recur(.....)
    for k, v in ....
        local v = v
        ...
        recur(..., v, ...)

This may caused by the scope/visibility problem of old version lua in vanilla

check the modification of function "copyTable" of AceDB-3.0 in Ace3 in this commit and the function "inheritDefaults" of AceDB-2.0 to see the detail

List of Ace2/Ace3 Components

Ace2 Ace3
AceAddon-2.0,AceModuleCore-2.0 AceAddon-3.0
AceComm-2.0 AceComm-3.0
AceConsole-2.0 AceConsole-3.0
AceDB-2.0 AceDB-3.0,AceDBOptions-3.0
AceDebug-2.0 -
AceEvent-2.0 AceEvent-3.0,AceBucket-3.0,AceTimer-3.0
AceHook-2.0,2.1 AceHook-3.0
AceLibrary LibStub
AceLocale-2.0,2.1,2.2 AceLocale-3.0,3.1
AceOO-2.0 -
AceTab-2.0 AceTab-3.0
- AceConfig-3.0
- AceGUI-3.0
- AceSerializer-3.0
- CallbackHandler-1.0

ace2's People

Contributors

zerosnake0 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.