Facts About HMGSCRIPT

Moderator: Rathinagiri

User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Facts About HMGSCRIPT

Post 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
BPD
Convert Dream into Reality through HMG
mruizcanete
Posts: 16
Joined: Sat Apr 19, 2014 10:17 am

Re: Facts About HMGSCRIPT

Post 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/
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: Facts About HMGSCRIPT

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

Roberto


(Veritas Filia Temporis)
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: Facts About HMGSCRIPT

Post 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
Angel Pais
Web Apps consultant/architect/developer.
User avatar
Roberto Lopez
HMG Founder
Posts: 4012
Joined: Wed Jul 30, 2008 6:43 pm

Re: Facts About HMGSCRIPT

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

Roberto


(Veritas Filia Temporis)
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: Facts About HMGSCRIPT

Post by apais »

Very interesting !
Angel Pais
Web Apps consultant/architect/developer.
Post Reply