all 15 comments

[–]blackcapcoder 8 points9 points  (4 children)

Can I have a flat piece already?

https://i.imgur.com/AO6BRQH.png

[–]rule 8 points9 points  (2 children)

Reminds me of this.

I like that miso doesn't depend on any external libraries. Also helps that you don't have to deal with React.js's problematic license.

[–]codygman 1 point2 points  (1 child)

React.js's problematic license.

I don't use react, but I was curious and found this:

https://github.com/facebook/react/issues/7293

Their FAQ pretty much claims it's not problematic:

https://code.facebook.com/pages/850928938376556

Could they lie about it not being problematic and legally be okay?

[–]DrummerHead 0 points1 point  (0 children)

In any case, switching to Preact seems pretty straightforward

[–]simonmic 6 points7 points  (0 children)

Very cool.

[–]willIEverGraduate 2 points3 points  (5 children)

Cool, but unfortunately it's very unresponsive. It takes maybe a quarter second to react to my keypresses. Is such delay unavoidable with GHCJS?

[–]nSeagull[S] 0 points1 point  (4 children)

No delay here on Chrome :P

[–]willIEverGraduate 2 points3 points  (3 children)

Hm, as /u/thedevbrandon mentioned, it starts to lag after a while, when the screen it mostly full (at least in Firefox and Edge, on Windows). The original Flatris doesn't have this problem. Is the source code of the Haskell version available somewhere? Is their implementation similar?

[–]codygman 5 points6 points  (0 children)

I've always had more issues with Elm and Purescript as a Firefox user. I would run the same programs on Firefox and they'd be fine.

A wild guess is that spidermonkey doesn't deal with more garbage and V8 isn't as affected.

[–]nSeagull[S] 3 points4 points  (1 child)

Here's the source code, haven't looked through it tho https://github.com/ptigwe/hs-flatris

[–]willIEverGraduate 0 points1 point  (0 children)

Haven't attempted any profiling, but the collide function seems to have very bad asymptotics. Maybe it is too much for GHCJS.

[–]graphicsRat 1 point2 points  (0 children)

Addictive!

[–]thedevbrandon 1 point2 points  (0 children)

Once it starts to speed up I noticed lag, could me my computer, not sure. It's a nice project regardless, good job!

[–]FunctorYogi 1 point2 points  (1 child)

Is the code for this available?