On Wednesday, 4 January 2017 04:45:14 UTC+7, OvermindDL1 wrote:
>
> On Saturday, December 31, 2016 at 8:09:28 PM UTC-7, GordonBGood wrote:
>
>> I see that BuckleScript would work fine for JavaScript output and OCaml
>> can be fast, but wouldn't int64 with two int's be a bit slow? It's just
>>
On Saturday, December 31, 2016 at 8:09:28 PM UTC-7, GordonBGood wrote:
> I see that BuckleScript would work fine for JavaScript output and OCaml
> can be fast, but wouldn't int64 with two int's be a bit slow? It's just
> that i prefer Haskell syntax and capabilities more than OCaml as it just
Bucklescript's codegen looks really nice. Does it have any convenient way
of working with the DOM and generating HTML/SVG? I looked through the docs
and it seemed focused on writing javascript libraries rather than UI code.
martin
On Sat, Dec 31, 2016 at 8:09 AM, Bob Zhang
For the JS backend, `int` is always int32, we have int64 too which is
simulated by using two `int`. in OCaml float is always double which is
exactly the same as js number.
The cool thing is that OCaml already has a very optimized native backend,
and its type system is much more expressive (on
On Saturday, 31 December 2016 11:44:10 UTC+7, Bob Zhang wrote:
>
>
> Just for fun, I pasted the same code under BuckleScript playground:
>
>
> https://bloomberg.github.io/bucklescript/js-demo/?gist=efaf57aef9b37a38785681ded0ba35a9
>
> The generated code is below
>
> ```js
> function testProg(n) {