Hello All,
For a while, i've been searching for a programming language suitable for small-ish devices. The main purpose of this language is scientific computing.
The implementation will byte compile and interpret, rather than native compilation. so the availability of existing compilers is not an issue.
However, one of the key capabilities of this language would be the ability to define new data types and operators on that type so that, once defined, the new type could be used rather like any existing type.
For example in C++, say, you can define `class Complex' a complex number and provide operators on `Complex' like "+" so that "a = b + c;" is a valid and useful statement when a, b and c are complex.
Unfortunately, C++ is rather too complicated to parse. i need something smaller.
The other idea is to take an existing language and extend it. For example LUA is a nice small language - only a handful of "C" files as implementation, but does not have a proper type system. AFAIK, all numbers are the same (ie floating point). There's no integer type, for example.
i'm wondering if anyone has encountered something small with a rich type system.
thanks for any suggestions,
-- hugh.
For a while, i've been searching for a programming language suitable for small-ish devices. The main purpose of this language is scientific computing.
The implementation will byte compile and interpret, rather than native compilation. so the availability of existing compilers is not an issue.
However, one of the key capabilities of this language would be the ability to define new data types and operators on that type so that, once defined, the new type could be used rather like any existing type.
For example in C++, say, you can define `class Complex' a complex number and provide operators on `Complex' like "+" so that "a = b + c;" is a valid and useful statement when a, b and c are complex.
Unfortunately, C++ is rather too complicated to parse. i need something smaller.
The other idea is to take an existing language and extend it. For example LUA is a nice small language - only a handful of "C" files as implementation, but does not have a proper type system. AFAIK, all numbers are the same (ie floating point). There's no integer type, for example.
i'm wondering if anyone has encountered something small with a rich type system.
thanks for any suggestions,
-- hugh.