Message from C, C++ talks

June 2019

— There are lot of good online compilers like wandbox, or services like codeanywhere with mobile apps

— Thanks, bros

— Give me a couple of days and I will make you a bot that compiles C code from telegram. I don’t know why you’d want it but ha.

Message permanent page

— Let it compile cpp also😀😀


I think the main problem here will be not to make bot, but to make it impossible to attack your machine using this bot.
Or you have a solution for that already?

— It's called docker

— I have a solution already, it will compile it and sent the compiled file back to the user.

— That’s the only way I can see it work

— Don't worry men

— I found a way

— That doesn't work in general case with telegram, unless you can build for any platform it can be runned on (including Android and iOS).

Message permanent page

— Ok, well I am just try to put ideas out there

— You got any idea

— No, sorry.
Actually Docker sounds promising, if you can limit cpu and memory that consumed by one instance, and won't allow to run some long calculations.

Message permanent page

— Ok, I was kinda thinking of having a python bot and that you would send a code file like example “test.c” and then it would get downloaded and compiled then added to share file on virtual machine and make a simple program to check the shared file on the virtual machine every 2 seconds and then send a temp link to display output.

Message permanent page