<div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
(I'm assuming we won't have JS backend for GHC anytime soon)</blockquote><a href="https://github.com/ghcjs/ghcjs" target="_blank">You would be somewhat mistaken.</a> Just beware of compiling huge packages with it.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 11, 2013 at 11:28 AM, Ömer Sinan Ağacan <span dir="ltr"><<a href="mailto:omeragacan@gmail.com" target="_blank">omeragacan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Sorry for off-topic question, I'm asking this question here because as<br>
Haskell community we invent lots of new Haskell-like(sometimes a<br>
subset of Haskell like Fay, sometimes different languages with Haskell<br>
syntax and Haskell-like features like Elm and recent language with row<br>
polymorphic records -- I don't remember it's name) languages. What I'm<br>
wondering is that js_of_ocaml project looks like solving all problems<br>
we have. It's supports 100% of OCaml(it translates OCaml bytecode),<br>
and OCaml is arguably better than all languages we invented(awesome<br>
module system, records, strict by default, all OCaml libraries(except<br>
FFI ones) work, like functional data structures, parser generators<br>
etc.)<br>
<br>
(I'm assuming we won't have JS backend for GHC anytime soon)<br>
<br>
So in short, I don't understand why use Haskell like compile-to-js<br>
languages instead of js_of_ocaml (other than learning purposes -- JS<br>
may be a nice high-level target language to practice writing compilers<br>
etc.)<br>
<br>
Please note that I'm not using any compile-to-js languages in my work,<br>
so I may not be able to make a fair comparison, but to me all other<br>
compile-to-js langauges look worse after seeing js_of_ocaml. Of<br>
course, if I had a JS backend for GHC(which would mean compiling<br>
Haskell to JS with all extensions) it would be best solution, but for<br>
now I think js_of_ocaml is superior to all other solutions.<br>
<br>
I'm wondering your opinions about this.<br>
<br>
Thanks,<br>
<br>
---<br>
Ömer Sinan Ağacan<br>
<a href="http://osa1.net" target="_blank">http://osa1.net</a><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>