Giter Club home page Giter Club logo

luvco's Introduction

luvco

Lua + libuv + coroutine

一个Lua的库,使用C语言编写了一个协程调度运行时,可以用Lua编写Go风格 的代码,表面同步,实则依靠运行时异步运行。摆脱回调,拥抱有栈协程。

进度

目前只完成了网络的一小部分,示例程序echo服务器见lua/test.lua。

使用方法

mkdir build && cd build
CMake ..
make

运行./main-test可以运行测试程序

运行./driver可以通过参数载入Lua文件。

TODO

  • Eventloop Graceful quit

  • Chan1 send

  • waiting data refactor

  • closed lua state unregister

luvco's People

Contributors

lin-guanguo avatar

Stargazers

niandi zhou avatar  avatar likun123687 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.