Skip to content

Latest commit

 

History

History
166 lines (122 loc) · 3.68 KB

README.md

File metadata and controls

166 lines (122 loc) · 3.68 KB

Céu-libuv supports the development of libuv applications in the programming language Céu:

libuv libuv is a multi-platform C library that provides support for asynchronous I/O based on event loops.

Céu is a reactive language that aims to offer a higher-level and safer alternative to C:

Céu-libuv empowers the development of libuv applications with the following extensions:

  • Awaiting events in direct/sequential style.
  • Parallel lines of execution with
    • safe abortion;
    • deterministic behavior (in contrast with threads).
  • Asynchronous loops for heavy computations.
  • Seamless integration with standard C (e.g., random, strlen, etc).

Install

Install libuv:

$ sudo apt-get install libuv1-dev

(Assuming a Linux/Ubuntu machine.)

Install Céu:

https://github.com/ceu-lang/ceu/

Clone Céu-libuv:

$ git clone https://github.com/ceu-lang/ceu-libuv
$ cd ceu-libuv/
$ git checkout v0.40

Configure:

Edit the Makefile.conf to set your configurations:

$ gedit Makefile.conf

Compile and Run

To compile and run an application, run make and set CEU_SRC:

$ make CEU_SRC=<path-to-ceu-application>

The samples/ directory contains a number of examples.

To run all examples one after another, run make samples:

$ make samples