MoI and emscripten
All  1-2  3-5

Previous
Next
 From:  immortalx
10136.3 
Thanks again Michael!
Just out of curiosity, if we were in a version of webkit that supported asm would it then be possible to interface with MoI like I think it would?
And do you think there would be any advantages (Speed? Usage of existing C libraries, like how Max Smirnov has integrated litegraph in NodeEditor?), other than just scripting in another language?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10136.4 In reply to 10136.3 
Hi immortalx, sorry I don't really know. I haven't spent any time working with emscripten before. I guess it gets converted into JavaScript essentially so I would guess it could access the same things as JS.

But typically programs have a different interface for a C/C++ API than the script one. The main advantage is that compiled C code is generally faster for intensive number crunching operations and can use other C/C++ libraries (and native OS APIs) directly.

I think that litegraph is made with all JavaScript, it was designed to run inside a web browser. So there wasn't any different language barrier to deal with.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  immortalx
10136.5 
OK Thank you very much.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-2  3-5