Giter Site home page Giter Site logo

state of js compilation about revery HOT 3 CLOSED

revery-ui avatar revery-ui commented on May 1, 2024
state of js compilation

from revery.

Comments (3)

bryphe avatar bryphe commented on May 1, 2024 2

Worked through a few issues here:

  • bryphe/reason-glfw#48 - Fix caml_glfwDefaultWindowHints
  • bryphe/reason-glfw#49 - Implement JSOO strategy for glfwSetKeyCallback
  • bryphe/reason-glfw#52 - fix bug with image loading in WebGL

Now we're hitting errors like:

Uncaught TypeError: runtime.caml_fk_new_face is not a function

This is expected since reason-fontkit doesn't support JSOO yet - have https://github.com/bryphe/reason-fontkit#10 tracking. It'd be great to just have a stub implementation there for now!

from revery.

bryphe avatar bryphe commented on May 1, 2024

I'm personally interested in using js_of_ocaml for full stack dev, so very curious about the root cause here and steps to debug and solve.

Cool, I'm in the same boat 👍

The core library we use for all of our OpenGL / rendering stuff actually works to be built via js_of_ocaml as well - and runnable in the browser: https://github.com/bryphe/reason-glfw

There is a gap today to get Revery working completely in the browser - the library we use for parsing / rendering font characters only works on native today: revery-ui/reason-fontkit#3 - we'll definitely need to fix that.

But it looks like there is a bug there - I think it's a bug with reason-glfw - specifically, the way we define that stub: https://github.com/bryphe/reason-glfw/blob/master/src/glfw_stubs.js

from revery.

bryphe avatar bryphe commented on May 1, 2024

With the work @jchavarri did to bring reason-fontkit over, and the fixes in reason-glfw, I believe the JSOO strategy is completely unblocked now (aside from some bugs). Closing this, but feel free to open new issues tracking particular bugs.

from revery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.