Hacker News new | ask | show | jobs
by clvv 5077 days ago
I wonder if there're any plans to make it self-hosting. It would be more appealing if it can run in browsers and node like CoffeeScript.
3 comments

Not sure if I understand your suggestion... I suppose if one wants to write server-side code in a Haskell-ish language then one would simply use standard Haskell plus Yesod or another web framework.
It is always better to have alternatives. Being self-hosting and compiling to a widely-used language like javascript is definitely a plus. Another useful case is that an interactive "Try Fay" page can be setup (like "Try CoffeeScript" page).
Elm is actually self-hosting by your standard.

If the average IQ of the world population is higher, I think Haskell will become a widely-used language. Haskell is a language much more than its syntax, and takes a lot of effort to learn.

That's why it sucks, sir.
I do have some plans to make a JSON Fay-in-JS-out service. Possibly with some “export compressed as .tar.gz” feature to give you a production-ready export.

It would even be quite cool to make a REPL and development environment, but that's a little far off.

There is no reason it would not work in node and browser currently is there?

    The Fay compiler is written in Haskell,
    so you will need the Haskell platform
    installed (or at least Cabal).
I don't know if it is a Fay-compatible subset of Haskell, but I would not bet on it :)
I think the compiler would already be available in javascript if that's the case.