News for hackers. Stuff that matters.
Re:Show HN: Céu, Structured Synchronous Reactive Programming by fsantanna on Tuesday January 31, 2017 @02:20PM (#13534224)
- Dynamic typing for fast prototyping. The compiler is full of dynamic tricks for testing, stripping parts of it, etc.

- LPeg support [1]. PEGs are great!

- The creator of Lua was my advisor since undergrad. :) (Which means that I program in Lua for a long time...)

http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html

Re:Show HN: Céu, Structured Synchronous Reactive Programming by zerr on Tuesday January 31, 2017 @02:31PM (#13534341)
And this means that the performance is not the first (or second) reason to use Ceu, right? In other words, is it somewhat slow?
Re:Show HN: Céu, Structured Synchronous Reactive Programming by fsantanna on Tuesday January 31, 2017 @02:37PM (#13534402)
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

Re:Show HN: Céu, Structured Synchronous Reactive Programming by fenollp on Wednesday February 01, 2017 @04:16AM (#13539451)
Why not plug into LLVM? Just generate an LLVM backend.
Re:Show HN: Céu, Structured Synchronous Reactive Programming by fsantanna on Wednesday February 01, 2017 @04:35AM (#13539522)
- Céu can embed blocks in C and call it directly

- C is more portable

- C is easier to generate