Facts About HMGSCRIPT

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 943
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 117 times
Been thanked: 42 times

Re: Facts About HMGSCRIPT

Post by bpd2000 » Sat Dec 20, 2014 4:34 am

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
BPD
Convert Dream into Reality through HMG

mruizcanete
Posts: 16
Joined: Sat Apr 19, 2014 10:17 am

Post by mruizcanete » Sat Dec 20, 2014 7:19 pm

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/

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Sat Dec 20, 2014 11:41 pm

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...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
apais
Posts: 254
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 20 times
Been thanked: 14 times
Contact:

Post by apais » Mon Dec 22, 2014 2:31 am

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

User avatar
Roberto Lopez
HMG Founder
Posts: 3897
Joined: Wed Jul 30, 2008 6:43 pm
Has thanked: 13 times
Been thanked: 132 times

Post by Roberto Lopez » Mon Dec 22, 2014 2:57 am

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
Regards/Saludos,

Roberto


(Veritas Filia Temporis)

User avatar
apais
Posts: 254
Joined: Fri Aug 01, 2008 6:03 pm
Location: uruguay
Has thanked: 20 times
Been thanked: 14 times
Contact:

Post by apais » Mon Dec 22, 2014 11:07 am

Very interesting !

Post Reply