Viewing profile — shakiba
shakiba
HN member- Joined
- Thu, Mar 21, 2013, 5:45 PM UTC
- HN karma
- 111
- Public activity
- 83 items
- HN profile
- View on Hacker News ↗
About shakiba
Recent public activity
-
story
Ask HN: Can we stop Coronavirus if enough people volunteer to catch it?
A virus would stop spreading in community if 40%-60% of people are immune, for example by catching it and producing antibody. So a radical approach would be to have people who are …
-
comment
Comment #22310764
That's right, it's only rendering and layout library.
- story
- story
-
story
Ask HN: How to Implement `toString` in JavaScript with Functional Programming?
I like Functional Programming, however in JavaScript I can't figure out how to use polymorphism with FP. For example how would you implement `toString` in JavaScript with Functiona…
- story
- story
-
comment
Comment #14056263
I guess I fixed the issue that you pointed out, it was a new bug in testbed. Thanks for reporting! You may need to force-reload the example to see the update. Please let me know if…
-
comment
Comment #14055387
Thanks! It is easy to integrate Planck.js with other liraries and dev tools.
-
comment
Comment #14055366
Thank you! I have not seen any problem with car example on my own laptop, but I will try it on some more different devices to find the issue. Regarding performance, because Planck.…
-
comment
Comment #14055302
The game is very cool! :)
-
comment
Comment #14055274
P2.js was a great effort and is a nice project. It is also inspired by Box2D and its API is very similar, however Box2D algorithm and architecture are more sophisticated and stable…
-
comment
Comment #14055199
Box2DJS is based on an old Flash port and as far as I remember it didn't work well when I tested it (for example second example on the website doesn't work currently, right click t…
-
comment
Comment #14054493
Awesome, thank you!
-
comment
Comment #14054485
Probably it would be easy, I would be happy to help with that, please feel free to open an issue on github.
-
comment
Comment #14054210
Those are changes to internals, there are only few API differences which are explained on readme page. Anyway, I agree with you, a new API doc would be very helpful.
-
comment
Comment #14054183
The main difference is that it is a hand-made rewrite, so the code is readable and improvable, so performance can be improved and optimized even if it is not fast enough in some ca…
-
comment
Comment #14053951
In JS, if you pass same input it will give you same results. With box2d/planck frequency needs to be constant anyway, and I have not seen any nondeterministic component in the code…
-
comment
Comment #14053837
Great work! I decided to directly rewrite Planck.js from Box2D C++ code, so that I can keep it updated (as far as I remember that flash port was few years old).
-
comment
Comment #14053808
Thanks! Repost from reddit: The main reasons that I decided not to use Emscripten port was usability: - First, it is generated and unreadable code, therefore it is impossible to un…
-
comment
Comment #14051845
Planck.js developer here! I have posted this to reddit before, so I'm just going to include it here too: I have ported/rewritten Box2D physics engine to JavaScript, for cross-platf…
-
comment
Comment #14051676
Thank you! Just fixed it! I actually LOLed very hard!
- story
-
comment
Comment #12842877
Author here! Thanks for troll comment!
-
comment
Comment #12842342
> when I look at an open-source codebase built on React + Redux, it's so easy to understand the application architecture. That's my point, I believe a library should not imply arch…