Live data from Hacker News

Reason: A new interface to OCaml

facebook.github.io

71–80 of 294 posts

Re: Reason: A new interface to OCaml

#71
post #7

Earlier quoted context omitted.

Incredible, but you are correct. Pegs 1 CPU in FF and while it loads, it barely scrolls.

Pretty sure it was the gif. I've disabled it. Could you try again?

Nope. Site still completely saturates a core, but only during scroll, not during idle.

Re: Reason: A new interface to OCaml

#72
post #42

This page is completely unusable due to lag. From the other comments it seems this is FF specific. One would think FB would have the resources to test new pages at least on common browsers before publishing. Edit: The fix came quickly though.

Thanks, we're looking into how to fix the perf in FF. Meanwhile, it works on my tiny mobile cell phone.

Disabling the box shadow on .content-root fixes the performance bug (FF46.0).

Re: Reason: A new interface to OCaml

#73
post #7

Earlier quoted context omitted.

Incredible, but you are correct. Pegs 1 CPU in FF and while it loads, it barely scrolls.

Pretty sure it was the gif. I've disabled it. Could you try again?

Looks like something related to repaints caused by a jquery scroll event http://i.imgur.com/mFL9ZYN.jpg

Re: Reason: A new interface to OCaml

#75
post #7

Earlier quoted context omitted.

Incredible, but you are correct. Pegs 1 CPU in FF and while it loads, it barely scrolls.

Pretty sure it was the gif. I've disabled it. Could you try again?

1 CPU still pegged on firefox.

But otherwise, Reason looks very cool. A nice mashup of technologies to create something that certainly looks more useful than the status quo. I hope this takes off, but I think the biggest challenge nowadays, even for good technology, is finding an audience amidst a plethora of choices. Technology, as always, is a popularity contest.

Re: Reason: A new interface to OCaml

#76

I for one welcome the syntax. I run the OCaml meetup in Silicon Valley and syntax is definitely an issue for newcomers. This makes it easier for other programmers to instantly just jump into OCaml/ML rather than ask about what is `in` or what is `let foo = function`, etc etc. EDIT: Hosting a Meetup this friday at 6pm in San Francisco about Reason and how to instantly start using it, http://www.meetup.com/sv-ocaml/eve…

Will you stream or record the session?

Re: Reason: A new interface to OCaml

#77
post #5

Website fries the CPU (FF).

Sounds like FF can't handle gifs, but Chrome/Safari do a good job. I've disabled the gif on the main page just to be friendly to FF while I figure out a better approach. Thanks for the report.

It also doesn't even open in Edge.

Re: Reason: A new interface to OCaml

#78
The slowness in Firefox appears to be solely due to this:

  @media (min-width: 1180px) {
    body:not(.no-literate) .content-root {
      background-color: #fdfcfc;
      -webkit-box-shadow: inset 780px 0 #fff, inset 781px 0 #e7e7e7, inset 790px 0 3px -10px rgba(0,0,0,0.05);
      box-shadow: inset 780px 0 #fff, inset 781px 0 #e7e7e7, inset 790px 0 3px -10px rgba(0,0,0,0.05);
    }
  }
Removing it in the Firefox style editor restores normal performance.

Edit: And they have commented out the box-shadow! Hah.

Re: Reason: A new interface to OCaml

#80
post #37
post #10

Ok, it might be the end of the day for me and I'm denser than usual, but I can't understand what is this? Ocaml to JS transpiler? Checked this out, but the reason still eludes me: https://ocaml.io/w/Blog:News/A_new_Reason_for_OCaml (pun intended)

It plugs into the existing OCaml compiler toolchain [1], which is quite smart. So it's basically an interface to OCaml that shares the stability and features of the OCaml compiler and runtime. [1]: http://facebook.github.io/reason/#how-reason-works

I would rather say it's OCaml with a different syntax than a 'standalone language'.
Post reply on HN