Hi kindly suggest me any open source api for most of programming languages to compile online. I am looking for the api somewhat similar to codecademy

Suggest me open source api for compile programming languages online.

Sorry if I don’t understand, maybe it’s a language barrier thing.

A good many programming languages are not compiled but interpreted.

And for those programming languages that are compiled I don’t see how an online API would be applicable.

You mention Codeacademy as an example. Exactly what feature(s) of that site are you referring to?

Codeacademy is an e-learning platform for coding ( Python, HTML5, CSS, JavaScript, Java etc) and they provide an editor where we can write code online and get instantly output.

https://sphere-engine.com/demo/1-online-compiler Sphere Engine provide the same api but its costly. I am looking for open source api that can do the same job.

Python, HTML5, CSS and JavaScript are not compiled programming languages.

AFAIK most compiled languages have some sort of SDK that has what is needed to compile code included.

eg. the Java compiler javac is in the JDK

I’m thinking both of us are somewhat confused

1 Like

Kindly visit this link once :
https://sphere-engine.com/demo/1-online-compiler and choose any language, run the sample program.

You already posted the link, no need to post it again, thanks.

From what I can see, that site is not compiling code, it is running it.

So I finally understand why you are wrongly using the term “compiled”. Because that site is wrong, it could be misleading to others.

But I still don’t understand why you would want this. What is your use case?

Sorry to mislead you bcoz of the site.

In my case i am developing a project similar to this website where everyone can write their code and can run it. i need open source api for this.

I very much doubt that what you are looking for exists and certainly not for free. I have little doubt that sphere-engine have created their own interpreters for each of the languages they support.

Same with me.

What would be involved with having a form input go to a file that runs the code in the corresponding language and returns the output would be no easy thing to do,

AFAIK the typical approach is for a developer to install what is needed, be it PHP, Go, Perl, Java, Node, Ruby etc. etc. on their computer.

To install these on a single online web host would take a lot of sys-op savvy and a thorough understanding of each languages security issues before even considering doing it.

1 Like

Sir to do this i know one option that is i have to use sphere engines api, but their api is very costly. that why i am looking for open source alternate of sphere engine.

This at least to some extent has to do with with the fact that it is costly for them to operate and maintain.

I think your best bet for you to have a less expensive alternative is RYO

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.