cleanup ideas document
This commit is contained in:
parent
1d14a89fb7
commit
732ff5fef8
|
@ -8,6 +8,11 @@ It provides:
|
||||||
- Extensive interoperation with the Wiremod addon
|
- Extensive interoperation with the Wiremod addon
|
||||||
- A text editor and assembler suite based on LLVM (for writing bare-metal LCPU programs in assembly)
|
- A text editor and assembler suite based on LLVM (for writing bare-metal LCPU programs in assembly)
|
||||||
|
|
||||||
# Building
|
# Building Native Module
|
||||||
|
|
||||||
TODO: Steps to build the LCPU native module on Windows and Linux
|
TODO: Steps to build the LCPU native module on Windows and Linux
|
||||||
|
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
|
||||||
|
This repository is set up in the exact directory structure a Legacy Addon; therefore once you have built the native module (TODO), adding it to a server should work fine.
|
||||||
|
|
61
ideas.md
61
ideas.md
|
@ -1,25 +1,48 @@
|
||||||
- cpu entities
|
# LCPU Idea/Working Model Sheet
|
||||||
- controllable paramaters (ram size, ...)
|
|
||||||
- admin controlled per-user max RAM size (default 32mb)
|
|
||||||
- possibly override for "respectful" users and admins (admins probably wouldn't even count)?
|
|
||||||
- admin controlled per-user max lcpu chip count (default 8)
|
|
||||||
- admins can override/do not count?
|
|
||||||
|
|
||||||
- admin controled global (affects all placed lcpus) scheduler timeslice.
|
This is basically the working ideas for the LCPU project.
|
||||||
- couldn't be faster than tickrate though or we might block source (and.. well, i dont think i have to explain)
|
|
||||||
|
|
||||||
- upload a raw binary (or elf? we could probably just imitate a "boot loader" and throw it into memory and move the given register to it?) to execute
|
## Core features
|
||||||
- or write assembly/maybe c code for tiny projects
|
|
||||||
|
|
||||||
- text editor for lcpu projects
|
- CPU SENTs
|
||||||
|
- RISC-V rv32ima core
|
||||||
|
- Would supporting more than one CPU core type be worthwhile? If so, the project is relatively setup for such workflow...
|
||||||
|
- Controllable paramaters (RAM size, ...)
|
||||||
|
|
||||||
- some example projects?
|
## Code upload/project workflow
|
||||||
|
|
||||||
- riscv rv32-ima cpu core
|
- Upload a raw binary to execute, generated from any user tooling
|
||||||
- llvm assembler used in this case
|
- Yes, this means you can run Linux in GMod. No, I'm not sorry.
|
||||||
- maybe clang integration? (this might make the addon unwieldly though)
|
- Or even an ELF? Would require less linker hell?
|
||||||
|
|
||||||
- wiremod interopability (to obsolete ZCPU at least for my purposes)
|
### Integrated simple project workflow
|
||||||
- gpio (which uses normal wire stuff)
|
|
||||||
- console screen
|
- Write assembly/maybe C code using a tiny project system (data for them would go in server data folder ?)
|
||||||
- gpu (if it's not painful to do so)?
|
- LLVM assembler is used
|
||||||
|
- Integrated clang for C code? (if it's not prohibitively expensive)
|
||||||
|
- In all cases (as/clang), the tools will all be firewalled to the given project data directory.
|
||||||
|
In the case of clang, an addional path will be allowed (clang freestanding headers), but that's the only exception.
|
||||||
|
|
||||||
|
- Text editor used to edit project source files
|
||||||
|
|
||||||
|
- Some example projects?
|
||||||
|
- I joke about it, but an RTOS would be really nice and a good stress test of the project system (for usage in "real" projects.)
|
||||||
|
|
||||||
|
## Moderation/administration tools
|
||||||
|
- Admin controlled per-user max RAM size (default 64mb)
|
||||||
|
- possibly override for "respectful" users and admins (admins probably wouldn't even count)?
|
||||||
|
|
||||||
|
- Admin controlled per-user max LCPU entity count (default 8)
|
||||||
|
- admins can override/do not count?
|
||||||
|
|
||||||
|
- Admin controled global (affects all placed LCPUs) scheduler timeslice.
|
||||||
|
- Couldn't be faster than tickrate though or we might block source (and.. well, i dont think i have to explain)
|
||||||
|
- I decided not to go with the cpu thread stuff just because its annoying, and would require more state tracking. just ticking in lua using `ENTITY:Think` should be more than good enough (even if theres a risk of hitching source, but I don't think it's that big of a problem...)
|
||||||
|
- Project compilations however will definitely end up in a different thread though. Running them in the engine thread would undoubtably cause issues.
|
||||||
|
|
||||||
|
## Addon interopability
|
||||||
|
|
||||||
|
- Wiremod interopability
|
||||||
|
- Wiremod GPIO (which uses normal wire stuff)
|
||||||
|
- Console Screen
|
||||||
|
- Wire GPU (if it's not painful to do so)?
|
||||||
|
|
Loading…
Reference in New Issue