www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D emitter for Haxe?

reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench robertmuench.de> writes:
Hi, has anyone ever thought about a D emitter for Haxe (http://haxe.org)?

I can imagine that this would be nice booster for D to get known to a 
bigger community and used in real-life projects. I don't have any 
experience for Haxe nor how to do emitter for it, but maybe someone 
already started with such a thing.

-- 
Robert M. Münch
http://www.robertmuench.de
Jul 16 2011
parent reply Byakkun <byakkun myopera.com> writes:
On Sat, 16 Jul 2011 13:47:22 +0300, Robert M. M=FCnch  =

<robert.muench robertmuench.de> wrote:

 Hi, has anyone ever thought about a D emitter for Haxe (http://haxe.or=
g)?
 I can imagine that this would be nice booster for D to get known to a =
=
 bigger community and used in real-life projects. I don't have any  =
 experience for Haxe nor how to do emitter for it, but maybe someone  =
 already started with such a thing.
Not familiar with Haxe but try searching this newsgroup and D.announce f= or = "Dax". -- = Using Opera's revolutionary email client: http://www.opera.com/mail/
Jul 16 2011
parent reply Byakkun <byakkun myopera.com> writes:
On Sat, 16 Jul 2011 14:24:53 +0300, Byakkun <byakkun myopera.com> wrote:=


 On Sat, 16 Jul 2011 13:47:22 +0300, Robert M. M=FCnch  =
 <robert.muench robertmuench.de> wrote:

 Hi, has anyone ever thought about a D emitter for Haxe  =
 (http://haxe.org)?

 I can imagine that this would be nice booster for D to get known to a=
=
 bigger community and used in real-life projects. I don't have any  =
 experience for Haxe nor how to do emitter for it, but maybe someone  =
 already started with such a thing.
Not familiar with Haxe but try searching this newsgroup and D.announce=
=
 for "Dax".
Scrap that. Jus got to http://www.dsource.org/projects/dax for details. -- = Using Opera's revolutionary email client: http://www.opera.com/mail/
Jul 16 2011
parent reply "Nick Sabalausky" <a a.a> writes:
"Byakkun" <byakkun myopera.com> wrote in message 
news:op.vypl3jang1j16f petru-pc...
On Sat, 16 Jul 2011 14:24:53 +0300, Byakkun <byakkun myopera.com> wrote:
 On Sat, 16 Jul 2011 13:47:22 +0300, Robert M. Münch 
 <robert.muench robertmuench.de> wrote:

 Hi, has anyone ever thought about a D emitter for Haxe 
 (http://haxe.org)?

 I can imagine that this would be nice booster for D to get known to a 
 bigger community and used in real-life projects. I don't have any 
 experience for Haxe nor how to do emitter for it, but maybe someone 
 already started with such a thing.
Not familiar with Haxe but try searching this newsgroup and D.announce for "Dax".
Scrap that. Jus got to http://www.dsource.org/projects/dax for details.
Dax is for converting D to Haxe (D to Haxe -> Dax). And it's in it's *very* early stages, it outputs some *.hx files, but they don't contain anything other than some blank class/function definitions. There's a lot of work still to do on that. I am working on a Haxe -> D program, too, called Haxed (pronounced however you want to pronounce it ;) ) Unfortunately, Haxed is in its very early stages, too. I have Haxe's preprocessor implemented, and a GOLD/Goldie grammar written, but that's about it. But on the bright side, converting Haxe to D should be a *lot* easier than converting D to Haxe (Although don't expect Haxe's newer macro feature to be one of the earlier features implemented). The main site URL for it is here: http://www.dsource.org/projects/haxed But there's not much there right now, not even the source repo. I'm probably going to host the code on BitBucket (I won't use BitBucket for anything else, though). In fact, I'll try to get what I have up there today.
Jul 16 2011
next sibling parent reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench robertmuench.de> writes:
On 2011-07-16 21:40:00 +0200, Nick Sabalausky said:

 Dax is for converting D to Haxe (D to Haxe -> Dax). And it's in it's 
 *very* early stages, it outputs some *.hx files, but they don't contain 
 anything other than some blank class/function definitions. There's a 
 lot of work still to do on that.
Hi, I don't think that converting D to Haxe makes a lot of sense. But anyway YMMV.
 I am working on a Haxe -> D program, too, called Haxed (pronounced 
 however you want to pronounce it ;) )
Cool, I expected that someone else already thought about such a thing.
 Unfortunately, Haxed is in its very early stages, too. I have Haxe's 
 preprocessor implemented, and a GOLD/Goldie grammar written, but that's 
 about it.
Ok. I will take a look at the emitter stuff of Haxe to get a feeling for it. So, what are the hard parts to do?
 But there's not much there right now, not even the source repo. I'm 
 probably going to host the code on BitBucket (I won't use BitBucket for 
 anything else, though). In fact, I'll try to get what I have up there 
 today.
Great. I'll take a look and hopefully can contribute some stuff to it. -- Robert M. Münch http://www.robertmuench.de
Jul 17 2011
parent "Nick Sabalausky" <a a.a> writes:
"Robert M. Münch" <robert.muench robertmuench.de> wrote in message 
news:ivuaev$chu$1 digitalmars.com...
 On 2011-07-16 21:40:00 +0200, Nick Sabalausky said:

 Dax is for converting D to Haxe (D to Haxe -> Dax). And it's in it's 
 *very* early stages, it outputs some *.hx files, but they don't contain 
 anything other than some blank class/function definitions. There's a lot 
 of work still to do on that.
Hi, I don't think that converting D to Haxe makes a lot of sense. But anyway YMMV.
The idea is that, when finished, we could write web apps in D and *still* be able to run them even on [shared] servers that don't support natively-compiled CGI. (Which I unfortunately have to deal with now and then, which absolutely blows.) I've been using Haxe to deal with crappy PHP-only servers, which is FAR better than pure PHP, but I'd still much rather be able to use D instead (even if I still have to deal with the crappy PHP runtime).
 I am working on a Haxe -> D program, too, called Haxed (pronounced 
 however you want to pronounce it ;) )
Cool, I expected that someone else already thought about such a thing.
 Unfortunately, Haxed is in its very early stages, too. I have Haxe's 
 preprocessor implemented, and a GOLD/Goldie grammar written, but that's 
 about it.
Ok. I will take a look at the emitter stuff of Haxe to get a feeling for it. So, what are the hard parts to do?
Finding the time for it ;) I expect Haxe's macro system may be difficult, but I'm not really planning to get to that until the rest is done. Other than that, I'll be able to say what the hard parts are when I get to them ;) Keep in mind, I'm not actually using the official Haxe program to to this - that's written in OCaml, and I don't understand one word of OCaml, or ML for that matter. This is written from-scratch in D.
 But there's not much there right now, not even the source repo. I'm 
 probably going to host the code on BitBucket (I won't use BitBucket for 
 anything else, though). In fact, I'll try to get what I have up there 
 today.
Great. I'll take a look and hopefully can contribute some stuff to it.
The repo's up on BitBucket now: https://bitbucket.org/Abscissa256/haxed
Jul 17 2011
prev sibling parent Byakkun <byakkun myopera.com> writes:
On Sat, 16 Jul 2011 22:40:00 +0300, Nick Sabalausky <a a.a> wrote:

 "Byakkun" <byakkun myopera.com> wrote in message
 news:op.vypl3jang1j16f petru-pc...
 On Sat, 16 Jul 2011 14:24:53 +0300, Byakkun <byakkun myopera.com> wro=
te:
 On Sat, 16 Jul 2011 13:47:22 +0300, Robert M. M=FCnch
 <robert.muench robertmuench.de> wrote:

 Hi, has anyone ever thought about a D emitter for Haxe
 (http://haxe.org)?

 I can imagine that this would be nice booster for D to get known to=
a
 bigger community and used in real-life projects. I don't have any
 experience for Haxe nor how to do emitter for it, but maybe someone=
 already started with such a thing.
Not familiar with Haxe but try searching this newsgroup and D.announ=
ce
 for "Dax".
Scrap that. Jus got to http://www.dsource.org/projects/dax for detail=
s.

 Dax is for converting D to Haxe (D to Haxe -> Dax). And it's in it's  =
 *very*
 early stages, it outputs some *.hx files, but they don't contain anyth=
ing
 other than some blank class/function definitions. There's a lot of wor=
k
 still to do on that.

 I am working on a Haxe -> D program, too, called Haxed (pronounced  =
 however
 you want to pronounce it ;) ) Unfortunately, Haxed is in its very earl=
y
 stages, too. I have Haxe's preprocessor implemented, and a GOLD/Goldie=
 grammar written, but that's about it. But on the bright side, converti=
ng
 Haxe to D should be a *lot* easier than converting D to Haxe (Although=
=
 don't
 expect Haxe's newer macro feature to be one of the earlier features
 implemented).

 The main site URL for it is here: http://www.dsource.org/projects/haxe=
d

Sorry for the confusion. Should have double checked.

 But there's not much there right now, not even the source repo. I'm  =
 probably
 going to host the code on BitBucket (I won't use BitBucket for anythin=
g
 else, though). In fact, I'll try to get what I have up there today.
I'm not really interested but good luck with that. Apparently you alread= y = have an audience for your work, so I hope it turns out good for those = interested. -- = Using Opera's revolutionary email client: http://www.opera.com/mail/
Jul 17 2011