The cib project did compilation and linking to an emscripten context: 
https://tbfleming.github.io/cib/

But doesn't look maintained anymore. And that example build has problems 
with streams, if you change to printf instead of cout it runs.
I took a quick and dirty stab at decoupling it from the UI to behave like a 
standalone library with reasonable success: 
https://rajsite.github.io/cib/CIB.gcomp/test.html

The cib project handled fancy things like dynamically fetching zips with 
additional C++ source libraries to link against, it's pretty neat.


On Monday, November 4, 2019 at 6:41:31 PM UTC-6, Jozsef Hegedus wrote:
>
> ok, i just read about it.... this is pretty decent !
>
> hmm... then Stan can be ported to the browser ... nice...
>
> On Tuesday, 5 November 2019 02:35:27 UTC+2, Jozsef Hegedus wrote:
>>
>> hmm!!!
>>
>> this is interesting... i think i really need to start to figure out what 
>> the hell is wasm, is it the same as JS ?
>>
>> what do you mean by emscripten part ?
>>
>> still this is quite a cool thing... at least so it sounds !
>>
>> On Monday, 4 November 2019 22:15:01 UTC+2, Floh wrote:
>>>
>>> Ben Smith got clang running in the browser quite recently, basically a 
>>> "client-side godbolt":
>>>
>>> https://binji.github.io/wasm-clang/
>>>
>>> But this is just the "naked" WASM generation, the emscripten part is 
>>> missing.
>>>
>>> Clang is pretty big though, that page downloads nearly 80 MB data :/
>>>
>>> On Monday, 4 November 2019 14:17:59 UTC+1, Jozsef Hegedus wrote:
>>>>
>>>> Hi,
>>>>
>>>> Is it possible to compile em++ to JS and then use the compiled em++.js 
>>>> to compile C++ code to .js, inside the browser?
>>>>
>>>> I am asking this because I am thinking of porting Stan it JS : 
>>>>
>>>>
>>>> https://discourse.mc-stan.org/t/compiling-cmdstan-to-https-webassembly-org-how-to-make-one-large-c-file-for-a-model-a-c-file-that-contains-everything-needed-including-stan-and-math-routines/10012/23
>>>>
>>>> Cheers
>>>>
>>>> Jozsef
>>>>
>>>>
>>>>

-- 
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/1776d265-0114-4535-8b09-1a7ff63b02be%40googlegroups.com.

Reply via email to