Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very cool except it has no NodeJS example. By the way, JavaScript does not suck. It has module and package systems, check out NPM, and OneJS for using all NodeJS utilities in client-side; http://github.com/azer/onejs


"Very cool except it has no NodeJS example."

Fay will never be used for Node.js. If you're going to write Haskell to run in a multithreaded code environment, you'd simply run it in the superior-in-every-way GHC runtime, which has proper 21st century support for a wide variety of modern concurrency constructs, instead of warmed over event-loop ideas from the 1980s. (Or 1970s.) Haskell : Node :: Node : raw select loop code.


Of course it sucks, in lots of ways. That doesn't mean it isn't also good in lots of other ways. Don't get so attached to your tools, recognise that most things suck in at least a few ways and life will be easier :)

Once you recognise the suckyness you can start thinking about ways it might be reduced. You can also start reasoning about whether things that reduce some dimensions of suck are worth the cost of the other dimensions of suck that they increase.


> By the way, JavaScript does not suck.

The depths to which JavaScript sucks are well documented & well understood: http://wiki.theory.org/YourLanguageSucks#JavaScript_sucks_be...:


Well, yes actually. But most of how JavaScript sucks are fixable. The core of how the language works (imperative, prototypical) is great.


> The core of how the language works (imperative, prototypical) is great.

Some might disagree with this assertion. I don't think I'd ever put imperative in the pros column for JS, and in any case its imperative nature doesn't really distinguish it from most popular languages.


Well, being that 'sucks' is subjective, and every language 'sucks' under different scrutiny, then this statement is as useful as "Javascript is a programming language". Useful in almost no contexts, but completely inane and irrelevant when having a discussion on web programming.


Technically the console.hs example works in node, and node is how I test Fay and run my test suite and benchmark. Example:

    $ fay -autorun examples/console.hs
    $ node examples/console.js
    Hello, World!
You're free to use it on node if you like.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: