git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update intro.rst
commitd48306c9f920be07f3b6f8a1f7d96d9bec608816 authorPhil Freeman <paf31@cantab.net> dateThu 23 Jan 2014, 08:57 (13 years ago) parent9c360d1
1 file changed+12
docs/source/intro.rst+12
docs/source/intro.rst+12
@@ -119,3 +119,15 @@ The generated Javascript looks like this::
119119 function showPerson(_1) {
120120 return _1.value.name + ", aged " + numberToString(_1.value.age);
121121 };
122+
123+Related Projects
124+----------------
125+
126+PureScript might be compared to other AltJS projects such as Roy, Haste, Fay, Elm and GHCJS. Certainly, there is a lot of overlap in terms of syntax, but the goals of PureScript listed above separate it in one or more ways from each of these languages.
127+
128+Roy is probably the most similar language on the list, and was a large influence on the development of PureScript. There are however, key differences in the foreign function interface, the type system and the choice of development language (Haskell vs. Javascript)
129+
130+Projects such as Haste, Fay and GHCJS aim to use some combination of the GHC compiler itself and/or its intermediate representation, Core, to perform some of the tasks involved in compilation such as parsing and type checking. This usually gives the advantage that tools and libraries can be shared with Haskell, but often at the cost of the size of the generated Javascript. This is the main practical difference between PureScript and these projects.
131+
132+Elm also shares a lot in terms of functionality with PureScript. Elm is designed for functional reactive programming, and focusses on tools and language features suitable for that domain, while PureScript focusses on the development of purely functional core application logic. Another difference between PureScript and Elm is PureScript's lack of a runtime system.
133+