4. General
By default five different data types
bool, char, float, int and string
Clear memory allocation sizes
int8, int16, int32, int64
float16, float32, float64
17.06.2016 4Philip Jurke
6. General
Pi is primarily a functional programming language
Shall be extendable to support other paradigms
17.06.2016 Philip Jurke 8
7. Classification of Functions
17.06.2016 Philip Jurke 9
Criterion Types
Functionality Converter
Extension
Operator
Language Pi-Language
IR-Language
Purpose Language
Logical
Mathematical
8. Conversion Functions
Convert one thing to another
For example:
toFloat(<int>) or maybe asFloat(<int>)
toModel(<function>)
17.06.2016 Philip Jurke 10
9. Extension Functions
Extend models and other functions
For example:
extendWithStatusUpdates(<function>)
extendWithObserverPattern(<model>)
17.06.2016 Philip Jurke 11
10. Operator Functions
Shall define the basic design of the language
As an example:
Language Design Integer + Integer
Operator Function operator int8 + int 8 => add(int8, int8)
Related Function add(int, int)
17.06.2016 Philip Jurke 12