On Thursday, 30 June 2016 at 10:28:03 UTC, Stefan Koch wrote:
Hi,

I recently had a breakthrough in my CTFE work.

Though because habits die hard.
I am writing the bytecode-engine in a CTFEable style.
Therefore I can be used as a quite comfortable IR for CTFE things as well.

It should be fairly easy to generate a inline-asm-string from the byteCode at compiletime. And thereby creating the possibility of generating optimized code at compile-time.

I was wondering if such a thing would fit in phobos.

Please share your opinions with me :)

Regards,
Stefan

Any sufficiently complicated C or Fortran [or D] program contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp. –Greenspun's tenth rule

Ok, seriously, it sounds like an awesome feat, but I don't think it is necessary to put it into Phobos. First, a dub package, please.

Off-topic: Is it possible/feasible/desirable to let dmd use dub packages? I guess it would make sense to extract parts of dmd into dub packages. As a next step, dmd could use those packages instead of duplicating code.

Reply via email to