Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run C++ programs on the web inside a browser? [closed]

Can one write a program in C++ and somehow make it run by someone else directly on the web, from a browser, without the other person having to download the .exe?

like image 629
Robert H Avatar asked Jan 26 '12 13:01

Robert H


2 Answers

A few days ago I would've downvoted this to oblivion and left an unhelpful comment about how little sense that made. Yesterday, however, I read an article on /r/programming which has led me to now consider your question perfectly valid :). The technology is called Native Client (NaCl):

Native Client (NaCl for short) is a Chrome specific technology that allows developers to code in C/C++ and produce a .nexe file, a compiled native module. These run inside the NaCl sandbox in Chrome.

The article in question is here and is about browser game development, mainly using HTML5.

like image 74
edvaldig Avatar answered Oct 13 '22 08:10

edvaldig


I suppose it depends on how complex a program you're talking about.

If you're referring to console applications which don't take too long to run, you can always use http://ideone.com/. For example: http://ideone.com/sGw5F

like image 38
Vlad Avatar answered Oct 13 '22 08:10

Vlad