Skip to content
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

Support Lustre Language #928

Closed
hbourbouh opened this issue May 17, 2018 · 4 comments
Closed

Support Lustre Language #928

hbourbouh opened this issue May 17, 2018 · 4 comments
Labels
new-language probably-wont-happen PRs are welcomed, but we do not currently plan on implementing this request Request for something waiting Waiting for something

Comments

@hbourbouh
Copy link

Hi,

I have added the Lustre language to your project and I am using it locally, do you think it will be interesting to make a pull request to add it?

Thanks,
Hamza

@mattgodbolt
Copy link
Member

Hi @hbourbouh ! Does Lustre compile to native code? I couldn't find a quick answer via Google? Are the compilers open source? I found https://github.com/coco-team/lustrec which implies lustre compiles to C?

If that's the case, then we have the same problem we have for #206 - namely there's then a "which C compiler do we compile with". I'd like to solve that problem too, so this isn't a way of saying "no", rather another consideration.

There's not a direct guide for adding new languages, but taking a look at the docs for adding a compiler, plus a change like ac8d24a gives an idea of the scope of a change. Syntax highlighting would need to be added too, that's usually not too tricky though.

Thoughts?

@hbourbouh
Copy link
Author

Hi @mattgodbolt, sorry for replying late. Let me answer your questions first: lustrec compiler that you found is compiling Lustre to C, Horn or another Lustre with annotations (MCDC for example).
I am using the lustrec compiler to generate C and Horn clauses (SMT2). It helps me to show people how Lustre works by showing the generated C code for example.
I am not interested to compile C. I already added the lustrec compiler to your project locally.
So I am wondering if it is out of the scope of your project?

Thanks!

@mattgodbolt
Copy link
Member

Compiling to C is interesting, although it's definitely not on the scope currently. I would not be against it; it would mean configuring the compiler output window slightly differently (in terms of not trying to look up ASM opcodes, and to use C syntax highlighting, plus disabling most of the filters). If you have a proof of concept I'd be happy to take a look at it!

@mattgodbolt mattgodbolt removed their assignment Oct 1, 2018
@mattgodbolt mattgodbolt added the waiting Waiting for something label Oct 1, 2018
@partouf partouf added the probably-wont-happen PRs are welcomed, but we do not currently plan on implementing this label Mar 29, 2021
@jeremy-rifkin jeremy-rifkin added request Request for something and removed question labels Jun 10, 2023
@jeremy-rifkin
Copy link
Member

I'll go ahead and close this for now

@jeremy-rifkin jeremy-rifkin closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-language probably-wont-happen PRs are welcomed, but we do not currently plan on implementing this request Request for something waiting Waiting for something
Projects
None yet
Development

No branches or pull requests

5 participants