Hacker News new | ask | show | jobs
by zerr 3430 days ago
And this means that the performance is not the first (or second) reason to use Ceu, right? In other words, is it somewhat slow?
1 comments

I wrote in Lua the source-to-source compiler that takes a ".ceu" and generates a ".c" (the code is a single-threaded state machine), which is then compiled with gcc.

The compiler is slow, but not the final binary.

We wrote a paper [1] that compares flash,RAM,CPU usage from Céu vs hand-written event-driven code in C. The differences are negligible.

[1] http://www.ceu-lang.org/chico/ceu_sensys13_pre.pdf

Why not plug into LLVM? Just generate an LLVM backend.
- Céu can embed blocks in C and call it directly

- C is more portable

- C is easier to generate