Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
env
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

No description, website, or topics provided.

Resources

You can’t perform that action at this time.