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

Question: compiling purescript-in-purescript #5

Open
paf31 opened this issue Apr 5, 2015 · 3 comments
Open

Question: compiling purescript-in-purescript #5

paf31 opened this issue Apr 5, 2015 · 3 comments
Labels

Comments

@paf31
Copy link
Contributor

paf31 commented Apr 5, 2015

We previously put the purescript-in-purescript self-hosted compiler project on hold even though it was functional, because the generated JS was too slow. Rewrites might be a good way to speed it up, but I think that pure11 could be another good approach. If we could get it to compile, then the C++11 target could be a good way to distribute a cross-platform self-hosted compiler.

It would require porting some FFI libraries, so it would require quite a lot of work, but I'm pretty excited at the idea.

Would you be interested in working towards this as one long term goal, once we get the multiple backends/FFI stuff out of the way, and hopefully pure11 merged into psc?

@andyarvanitis
Copy link
Owner

Yeah, definitely. My goal is to eventually get everything that works in regular PureScript working in Pure11, so self-hosting is a good and classic way to prove it out.

Not entirely related, but as an FYI, I've also been starting to think of the other memory management options (user-configurable) I've alluded to in the readme, specifically the Boehm GC.

@bbarker
Copy link
Contributor

bbarker commented Mar 15, 2019

Just curious what the status of this is, and any pointers. Would this also apply to purescript (original JS compiler), so that one could potentially compile purescript directly in the browser? Though perhaps web assembly might be another route that, while less portable, is likely to be good enough for most people wanting to compile purescript in the browser.

@andyarvanitis
Copy link
Owner

@bbarker I think the purescript maintainers stopped working on it some time ago, but I might be wrong. It was indeed the main purescript compiler (ps-to-js) they were working on, nothing specifically targeting the C++/native or any other backend. Original work was here. Phil's idea in this report was to get a native exe compiler (targeting js, etc), instead of running it in node or maybe the browser.

joprice pushed a commit to joprice/purescript-native that referenced this issue Oct 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants