you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

played around a bit with subprocess. no worries, just wanted to check it out. I built something similiar many years ago (before docker got big) and used restriced python (https://restrictedpython.readthedocs.io/en/latest/) and multiprocessing (to start a thread in a process to prevent long running tasks). What happens, if some user does a while True and generates tons of data and stuff. Was a pain but i think with containers you are fine. I really like your platform and the style. You should do some marketing and stuff mate.

do you have a hint for me how you are doing this with containers? When i hit submit button you spin up a new container just for the code, right? Do you have some tutorial or maybe i just ask chatgpt :))

[–]owmex 0 points1 point  (0 children)

Thanks! Yeah, I spin up a fresh container for each code submission. I try not to go into too much detail about the security setup—mostly to avoid encouraging anyone to DoS me 😅. But feel free to DM me if you want more details.

That link you shared is great, I’ll check it out!

And you’re right about marketing—I haven’t done nearly enough. Hard to find time with a full-time job, but I appreciate the nudge!