Page 2 of 2

Re: Facts About HMGSCRIPT

Posted: Sat Dec 20, 2014 4:34 am
by bpd2000
Roberto Lopez wrote:To clarify a little more, here is this interesting article:

http://blog.4psa.com/an-intro-into-sing ... tions-spa/
Thank you

Re: Facts About HMGSCRIPT

Posted: Sat Dec 20, 2014 7:19 pm
by mruizcanete
Sorry if this does not suit this topic, but I've found this tool on the internet and I think it could be helpful. This utility can compile C and C+ into a javascript file.
http://kripken.github.io/emscripten-site/

Re: Facts About HMGSCRIPT

Posted: Sat Dec 20, 2014 11:41 pm
by Roberto Lopez
mruizcanete wrote:Sorry if this does not suit this topic, but I've found this tool on the internet and I think it could be helpful. This utility can compile C and C+ into a javascript file.
http://kripken.github.io/emscripten-site/
Very interesting... I still hoping that someday we have the same for Harbour...

Since Harbour generates C code, such code could be compiled to JavaScirpt, so, we could have Harbour running on our web browsers...

Re: Facts About HMGSCRIPT

Posted: Mon Dec 22, 2014 2:31 am
by apais
Correction: Harbour generates pcode enclosed in C stubs for the most part of it.
pcode enclosed in Javascript modules is very possible.
Just no very shure about its speed and performance.
I would be like a VM machine inside the V8 VM machine. mmmm

Re: Facts About HMGSCRIPT

Posted: Mon Dec 22, 2014 2:57 am
by Roberto Lopez
apais wrote:Correction: Harbour generates pcode enclosed in C stubs for the most part of it.
pcode enclosed in Javascript modules is very possible.
Just no very shure about its speed and performance.
I would be like a VM machine inside the V8 VM machine. mmmm
If you read the docs of 'asm.js' you'll see that speeds of about half of the native-compiled versions were achieved. IMHO, that is a fair price to pay to have Harbour running on our browsers.

Things like unreal engine 3, SQLITE or MESS emulator has been successfully compiled to JavaScript, so, I guess that Harbour should not be a problem.

http://en.wikipedia.org/wiki/Asm.js

http://asmjs.org/faq.html

Re: Facts About HMGSCRIPT

Posted: Mon Dec 22, 2014 11:07 am
by apais
Very interesting !