-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a Rust compiler #286
Comments
So, I like the idea :-) One question is whether we should go for a full generative approach like in C compiler, or a "semi-generative" approach like in other compilers, which rely on a framework for state machines. Also, the biggest question is who is going to implement it :-) |
It's a very good question. At Tellu we do not know Rust yet. |
Let's wait for a concrete use case, and a common project for this use case :-) Happy @ffleurey ? But we keep the issue open ;-) |
I did my first Rust Hello World yesterday, so things are going pretty well I would say. |
Good, good :-) We might discuss that around lunch tomorrow as I'll be at Tellu in the morning for another project. |
@vetlevo and I are trying to convince @ffleurey to use a modern programming language to replace his C deployments whenever possible. Safety and more specifically memory safety are the main concerns with C and C++.
We are facing some resistance with moving towards Go, Java, or JavaScript. Java or JavaScript are too heavy and not low level enough. Go is perhaps too simple and still has a garbage collector.
At the same time,
It offers similar performances to C and C++ while offering more memory safety (as long as you don't use the
unsafe
keyword) and a more modern API.We think it could be a good fit for ThingML and the Rust compiler could replace the C compiler with only positive impacts in many deployments.
The text was updated successfully, but these errors were encountered: