This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Interserve - Abusing HTTP to get around net.* limits. | |
Initial Concept Version, do not use on production servers. | |
Contact: https://github.com/eprosync | |
Prerequisite: https://github.com/eprosync/interstellar_gmod | |
]] | |
local interserve = {} | |
_G.interserve = interserve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if SF and SF.Libraries and SF.Modules then | |
local Libraries = SF.Libraries | |
local Modules = SF.Modules | |
local function SF_Lib(name, callback) | |
Libraries[name] = true | |
Modules[name] = { | |
[name] = { | |
source = "interserve", | |
init = function(instance) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local mono = {} | |
_G.mono = mono | |
function mono.initialize(module) | |
mono.module = module | |
-- You could use FFI here but for now FFI isn't cross-compatible with memory | |
local subroutine = {} | |
mono.subroutine = subroutine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Proposal for an Updated GC, for the current 2.1.0-beta3 stable under gmngc. | |
Generational Tri-Color GC, a non-copy GC with a rememberance and deferral set. uhhh... I might be wrong in a bit about the "non-copy" part. | |
# Added Struct Format | |
GCState->tiers[TIERS] - List of collectable objects graded per tier. | |
GCState->currentwhite[TIERS] - Current white color per tier. | |
GCState->deferral[TIERS-1] - Deferral linked list, objects marked already black are to be scanned in the higher tier cycle. | |
GCState->remembered[TIERS-1] - Used as a reference link between two different tier objects. (TBD) | |
GCheader->tier - Current tier this object is in |