You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hi,
Has anyone entertained the thought of writing a C++-to-Haxe compiler?
Take a look at Emscripten. It's a C++ to JS compiler, so you get things like SQLite running in-browser (which is pretty awesome).
I imagine if a C++-to-Haxe compiler existed, it could be sold as "well convert your code to Haxe and immediately you can run it in-browser (Flash), on mobile (Android via Lime), etc." which seems like a pretty big thing.
--Ashiq
Juraj Kirchheim
unread,
Jul 10, 2015, 6:40:59 AM7/10/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Given that C++ already has an LLVM frontend, I'm not sure how this level of indirection helps. You can run C++ on Flash with Alchemy, in the browser with Emscripten and on mobile (with native code) as well.
A decent C++ to Haxe converter would be interesting, but I think in general C++ code cannot really be translated to readable Haxe code ;)
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
You could probably write a parser for the emscripten output reasonably easily - but as Juraj says, it's not going to look great - a bunch of functions that act on a global byte-array. Still, might be interesting.
Ashiq A.
unread,
Jul 13, 2015, 5:11:32 AM7/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Like other Haxe code, I don't expect the generated code to be useful. I expect the end-result to be useful (eg. SQLite in Flash).
Maybe it's a good academic/weekend exercise for someone to try if they're interested.
Cristian Baluta
unread,
Jul 13, 2015, 6:56:26 AM7/13/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message