←  Ask a Pro

ComputerCraft | Programmable Computers for Minecraft

»

Hacking an OS

TechnicalCoding's Photo TechnicalCoding 02 Feb 2017

The hard solution is to create your own IDE which would check if there is any errors with the LUA code that the user creates and print them out, this prevents that the user can "Crash" the OS, then also create a folder for every user that the user is limited to. for example 'users/Username/scripts' and inside this scripts folder the user can create folders and edit files, but are limited to go out of that folder.

I am currently working on an Advanced operating system and I would happily be doing a collab with you!

I am also very experienced in web languages and will create a appstore for my OS, also I will use online login forms and register forms so the user can connect to the forums and socket servers. And include graphical content such as a draw function to create boxes,

another of my current project is similar to cshtml or asp.net, basically create luahtml, so basically you will be able to use html, and create script tags where lua code will be executed. And a lot of custom events and clickable guis, etc.

Please add me on skype: technicalcoding
if you want to collaborate with me :)
Quote

HaddockDev's Photo HaddockDev 02 Feb 2017

View PostTechnicalCoding, on 02 February 2017 - 10:14 PM, said:

The hard solution is to create your own IDE which would check if there is any errors with the LUA code that the user creates and print them out, this prevents that the user can "Crash" the OS, then also create a folder for every user that the user is limited to. for example 'users/Username/scripts' and inside this scripts folder the user can create folders and edit files, but are limited to go out of that folder.

I am currently working on an Advanced operating system and I would happily be doing a collab with you!

I am also very experienced in web languages and will create a appstore for my OS, also I will use online login forms and register forms so the user can connect to the forums and socket servers. And include graphical content such as a draw function to create boxes,

another of my current project is similar to cshtml or asp.net, basically create luahtml, so basically you will be able to use html, and create script tags where lua code will be executed. And a lot of custom events and clickable guis, etc.

Please add me on skype: technicalcoding
if you want to collaborate with me :)

Just because your linting something doesn't mean its completely crash proof.
The least you could do is loadstring and xpcall it, but that means when it crashes, instead of getting sad it will do a function instead of erroring out.
Edited by Haddock, 02 February 2017 - 10:31 PM.
Quote