Coder Social home page Coder Social logo

Comments (14)

 avatar commented on May 4, 2024

URL about glTF

https://github.com/KhronosGroup/glTF

from flatbuffers.

 avatar commented on May 4, 2024

JavaScript support is indeed very desirable, we just haven't gotten to it yet. If someone wants to contribute code for it, that be helpful too.

from flatbuffers.

 avatar commented on May 4, 2024

I wonder if the rust implementation can be compiled to JavaScript via emscripten.

from flatbuffers.

rodrigob avatar rodrigob commented on May 4, 2024

On paper, the generated C++ should work out of the box with emscripten (to be tried).

from flatbuffers.

 avatar commented on May 4, 2024

If anyone tries this, I'd love to hear their experience :)

from flatbuffers.

rodrigob avatar rodrigob commented on May 4, 2024

Just had flatbuffers working via emscripten. Works like a charm.

Moved from a custom serialization format (from dlib.net); the resulting file is smaller and it is parsing is much faster. Flatbuffers for the win !

Overall I only had excellent experiences with emscripten.
Get a zero dependencies project to compile with cmake. Then launch emcmake cmake . && make and tada!, you are good to go.
Since flatbuffers has no run-time dependencies (only needs to include flatbuffer.h at compilation time), it is a perfect fit for the emscripten scenario.

from flatbuffers.

 avatar commented on May 4, 2024

That's good to hear! thanks for testing :)

from flatbuffers.

louisremi avatar louisremi commented on May 4, 2024

Would it be possible to have the emscripten port distributed as an NPM package?

from flatbuffers.

 avatar commented on May 4, 2024

The JS implementation has been merged, please try it out. Currently lacking documentation however.

from flatbuffers.

joeblew99 avatar joeblew99 commented on May 4, 2024

@gwvo thanks. Will kick the tires

from flatbuffers.

ThePrimeagen avatar ThePrimeagen commented on May 4, 2024

Quick question, I see that --gen-mutable is not supported in JS. Is there a plan to support this? I see nothing in the issues. @gwvo

from flatbuffers.

 avatar commented on May 4, 2024

It may take me quite a while to get to, especially since I am not a JS expert :)
@evanw is the original author.
PR's welcome.

from flatbuffers.

ThePrimeagen avatar ThePrimeagen commented on May 4, 2024

I may have some time to explore for a bit. I'll see what I can come up with shortly.

from flatbuffers.

 avatar commented on May 4, 2024

Cool, thanks!

from flatbuffers.

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.