... | ... | @@ -68,10 +68,12 @@ Currently, GHC relies on the system-installed [ C-preprocessor](http://en.wikipe |
|
|
Probably not as easy to extend/evolve to be more Haskell-syntax-aware
|
|
|
Plan 2: Embed Malcom's `cpphs` into GHC**Advantages**`cpphs` has been widely used, hence it's proven code
|
|
|
It's already more Haskell-aware than system-`cpp``cpphs` is actively maintained
|
|
|
no more `fork(2)/exec(2)`**Disadvantages**`cpphs` is licensed as "LGPLv2 w/ static linking exception" (see below)
|
|
|
no more `fork(2)/exec(2)` ([ avoids substantial overhead on Windows](http://permalink.gmane.org/gmane.comp.lang.haskell.ghc.devel/8869))
|
|
|
**Disadvantages**`cpphs` is licensed as "LGPLv2 w/ static linking exception" (see below)
|
|
|
GHC's total licence agreement getting extended (TODO show concrete change)
|
|
|
The `ghc` package would be tainted by this license augmentation. (But no more tainted than it is already, by the LGPL'd GMP library (Gnu multi-precision arithmetic).)
|
|
|
Plan 3: Write native BSD-licenced Haskell implementation from scratch**Advantages**no more `fork(2)/exec(2)`Tailored to GHC's needs
|
|
|
Plan 3: Write native BSD-licenced Haskell implementation from scratch**Advantages**no more `fork(2)/exec(2)` ([ avoids substantial overhead on Windows](http://permalink.gmane.org/gmane.comp.lang.haskell.ghc.devel/8869))
|
|
|
Tailored to GHC's needs
|
|
|
**Disadvantages**Requires menpower and time
|
|
|
Additional long-term maintenance effort for GHC-HQ
|
|
|
Plan 4: Bundle `cpphs`-based executable with GHC
|
... | ... | @@ -91,7 +93,7 @@ Currently, GHC relies on the system-installed [ C-preprocessor](http://en.wikipe |
|
|
The `ghc` package which can be linked into programs currently depends on the packages
|
|
|
`array`, `base`, `binary`, `bin-package-db`, `bytestring`, `containers`, `deepseq`, `directory`, `filepath`, `ghc-prim`, `hoopl`, `hpc`, `integer-gmp`, `pretty`, `process`, `rts`, `template-haskell`, `time`, `transformers`, and `unix` whose collated `LICENSE` have been pasted as [ http://lpaste.net/131294](http://lpaste.net/131294)
|
|
|
jQuery.loadStyleSheet("/trac/ghc/pygments/trac.css", "text/css");
|
|
|
Download in other formats:[Plain Text](/trac/ghc/wiki/Proposal/NativeCpp?version=16&format=txt)[](http://trac.edgewall.org/)Powered by [Trac 1.2.2](/trac/ghc/about)
|
|
|
Download in other formats:[Plain Text](/trac/ghc/wiki/Proposal/NativeCpp?version=17&format=txt)[](http://trac.edgewall.org/)Powered by [Trac 1.2.2](/trac/ghc/about)
|
|
|
|
|
|
By [Edgewall Software](http://www.edgewall.org/).Visit the Trac open source project at
|
|
|
[http://trac.edgewall.org/](http://trac.edgewall.org/) |
|
|
\ No newline at end of file |