cda-group / arc

Programming Language for Continuous Deep Analytics
https://cda-group.github.io/arc/
44 stars 6 forks source link

RFC: Create initial standard library and prelude #306

Closed segeljakt closed 3 years ago

segeljakt commented 3 years ago

This issue is about deciding what should initially be in the standard library and what should be implicitly imported into all arc-scripts.

Currently the module system is a bit broken and needs repair, so importing files might not work as intended. We could still start by defining what needs to be in the standard library / prelude, and make so that the prelude is just prepended to all arc-scripts.

The things which come to mind for the prelude are:

We also need to have a prelude of Rust code (arcorn) which gets imported into the generated code.

segeljakt commented 3 years ago

304 added a prelude which includes strings and standard operators. Vectors will be addressed by #290