When comparing PharoJS vs Haste, the Slant community recommends PharoJS for most people. In the question“What are the best languages that compile to JavaScript? ” PharoJS is ranked 13th while Haste is ranked 19th. The most important reason people chose PharoJS is:
For people who enjoy programming in Smalltalk, Pharo allows developers to use Smalltalk for web development as well, since it transpiles Smalltalk code to JavaScript.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Program the web in Smalltalk
For people who enjoy programming in Smalltalk, Pharo allows developers to use Smalltalk for web development as well, since it transpiles Smalltalk code to JavaScript.
Pro Support for Phonegap to go directly to iOS/Android mobile App
Pro Compiles to very efficient Javascript, with almost perfect Smalltalk semantics
Pro Great IDE support
Pro Seamless integration with JavaScript libraries
Can directly call to / be called from JavaScript and can use foreign JavaScript objects.
Will soon have ability to generate and use AMD modules.
Pro Client and Server as the same application
Haste was designed to allow both the client and server to be written as parts of the same, type-safe application. This is in stark contrast to most other options, where the client and server are considered two separate entities, resulting in extra manual validation code and more chances for type errors.
Pro Almost full power of Haskell
Haste supports the Haskell 2010 standard except for Template Haskell as well as most GHC extensions.
Pro Automatic, type safe program slicing
Haste lets you write client and server as a single program, automatically generating code for the server as well as the client, giving you full type safety even across the Internet.
Pro Generates small, reasonably performant code
Cons
Con Lacks some minor Haskell functionality
Lacks support for Template Haskell.