lambdaclass / concrete

Concrete is a simple programming language specifically crafted for creating highly scalable systems that are reliable, efficient, and easy to maintain.
Apache License 2.0
123 stars 11 forks source link

initial progress for multiple packages #123

Closed edg-l closed 4 months ago

edg-l commented 4 months ago

The project builder now allows to have a binary and a library at the same time via a main.con and lib.con.

I also changed the way file discovery is done, it starts from lib.con and main.con and via the "mod <name>" declarations it imports and parses the requested modules

# mylib.con
mod mylib {
    mod hello; // this includes the file hello.con to the compilation process, maybe we should use a diferent syntax?

    pub fn mylib() -> i32 {
        return 0;
    }
}

I think with this we can start to structure a stdlib

github-actions[bot] commented 4 months ago

Benchmarking factorial

Compiling factorial (factorial.con) Finished release in 30.662722ms Running 5000000 iterations Using input value: 20 Concrete Result = 2432902008176640000 Time taken : 59.28 ms Rust Result = 2432902008176640000 Time taken : 60.06 ms

Benchmarking fib

Compiling fib (fib.con) Finished release in 27.270584ms Running 5000 iterations Using input value: 20 Concrete Result = 6765 Time taken : 136.08 ms Rust Result = 6765 Time taken : 85.23 ms

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 0% with 85 lines in your changes are missing coverage. Please review.

Project coverage is 61.74%. Comparing base (56a8221) to head (b19ba57).

Files Patch % Lines
crates/concrete_driver/src/lib.rs 0.00% 69 Missing :warning:
crates/concrete_check/src/lib.rs 0.00% 16 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #123 +/- ## ========================================== + Coverage 61.71% 61.74% +0.02% ========================================== Files 25 25 Lines 4532 4530 -2 ========================================== Hits 2797 2797 + Misses 1735 1733 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.