On Wed, 15 Sep 2021 12:41:24 +0300 Shlomi Fish <[email protected]> wrote:
> Hi Jesper, > > On Wed, 15 Sep 2021 00:40:01 -0700 (PDT) > Jesper Taxbøl <[email protected]> wrote: > > > Hi, > > > > I am very new to emscriptem and I have been struggeling with porting a > > function from c++ to javascript. > > > > I have created a public repo with my sample function, and I aim to > > implement feedback into it. > > > > https://github.com/taxfromdk/wasm-glm-nlohmann > > > > My overall mission is that I have some vector mathematics, that I would > > like to implement once and use on c++ and javascript platforms. I am using > > GLM as the vector-math-backbone, and I am under the impression that json is > > a good compromise for the languages involved. I have therefore chosen > > nlohmann's json library. > > > > I prepared a fixed version here: > > https://github.com/taxfromdk/wasm-glm-nlohmann/compare/master...shlomif:shlomif1?expand=1 > > hope that helps. > Some additional notes: 1. The active file is compute-tweaked.html. 2. Your source files had some trailing whitespaces and mixed "\t"-and-space indentation: https://github.com/shlomif/Freenode-programming-channel-FAQ/blob/master/FAQ_with_ToC__generated.md#what-are-some-best-practices-in-programming-that-i-should-adopt -- Shlomi -- Shlomi Fish https://www.shlomifish.org/ Perl Humour - https://perl-begin.org/humour/ ANSI C - There is usually one way to do it, but there’s more than one way to optimise it. — https://www.shlomifish.org/humour/ways_to_do_it.html Please reply to list if it's a mailing list post - https://shlom.in/reply . -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/20210915130454.3540dd5e%40telaviv.shlomifish.org.
