Giter VIP home page Giter VIP logo

a2's Introduction

A2 alex-2.0

A interpreter is Based on the register the virtual machine. Similar lua and javascript.

Make it

make clean
make

# debug modle:   CFLAGS += -D _DEBUG_ -g -Wall   
# release modle: CFLAGS += -O2 -g -Wall   

How do use?

run make ,you will get a liba2.a library. you can write bound program by youself. or use test_a2 program interpreted scripts file at ./test/test_a2.

Performance Comparison

I did most of the scripting language test. for example: lua, python, perl, php, ruby.

test on 5000 data will be insertion sorted. the test case is :

A2 file at     ./test/vm.a2
perl file at   ./test/tp.pl
python file at ./test/tpy.py
php file at    ./test/th.php
lua file at    ./test/t.lua and ./test/tlua.c
ruby file at   ./test/tr.rb

Performance testing

my machine configuration:

cpu: 2.4GHz Intel Core 2Duo 
OS: mac osX 
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
A2     1.7143 s
lua    2.6443 s
perl   9.7350 s
python 8.5539 s
php    4.8107 s
ruby   15 s

Question?

send me an email: [email protected]

wiki

home wiki: https://github.com/lvzixun/A2/wiki

PS

英语老师死得早,各位就凑合这看吧 -_-!

a2's People

Contributors

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