repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Developer/branch.luau | luau | .luau | return {
Name = "branch",
Aliases = { "build" },
Group = "DefaultAdmin",
Description = "Teleport to a specific development branch.",
Args = {
{
Type = "branch",
Name = "branch",
Description = "The branch to teleport to."
},
{
Type = "players",
Name = "players",
Description = "Players who wi... | 100 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Developer/branchServer.luau | luau | .luau | local TeleportService = game:GetService("TeleportService")
local GetBranches = shared("GetBranches") ---@module GetBranches
return function(_, branch: string, players: { Player })
if not branch then
return
end
local branches = GetBranches()
local branchId = nil
for _, branchInfo in branches do
if string.lo... | 151 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/ban.luau | luau | .luau | return {
Name = "ban",
Aliases = {},
Group = "DefaultAdmin",
Description = "Bans a player using Roblox's BanService",
Args = {
{
Type = "players",
Name = "Players",
Description = "The player or group of players to ban."
},
{
Type = "number",
Name = "Duration",
Description = "How long to ban... | 235 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banServer.luau | luau | .luau | -- Services
local Players = game:GetService("Players")
return function(_, players: {Player}, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean)
if #publicReason > 400 then
return "Public reason is too long. Please keep it under 400 characters."
end
if #privateReason > 1000 then
... | 244 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banid.luau | luau | .luau | return {
Name = "banid",
Aliases = {},
Group = "DefaultAdmin",
Description = "Bans a player by ID using Roblox's BanService",
Args = {
{
Type = "number",
Name = "UserId",
Description = "The ID of the player to ban."
},
{
Type = "number",
Name = "Duration",
Description = "How long to ban the... | 237 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banidServer.luau | luau | .luau | -- Services
local Players = game:GetService("Players")
return function(_, userId: number, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean)
if #publicReason > 400 then
return "Public reason is too long. Please keep it under 400 characters."
end
if #privateReason > 1000 then
re... | 234 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banuser.luau | luau | .luau | return {
Name = "banuser",
Aliases = {},
Group = "DefaultAdmin",
Description = "Bans a player by username using Roblox's BanService",
Args = {
{
Type = "string",
Name = "Username",
Description = "The username of the player to ban."
},
{
Type = "number",
Name = "Duration",
Description = "How... | 237 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/banuserServer.luau | luau | .luau | -- Services
local Players = game:GetService("Players")
return function(_, username: string, duration: number, publicReason: string, privateReason: string, alsoBanAlts: boolean)
if #publicReason > 400 then
return "Public reason is too long. Please keep it under 400 characters."
end
if #privateReason > 1000 then
... | 234 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanid.luau | luau | .luau | return {
Name = "unbanid",
Aliases = { "unban" },
Group = "DefaultAdmin",
Description = "Unbans a player by ID using Roblox's BanService",
Args = {
{
Type = "number",
Name = "UserId",
Description = "The ID of the player to unban."
},
}
} | 80 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanidServer.luau | luau | .luau | -- Services
local Players = game:GetService("Players")
return function(_, userId: number)
Players:UnbanAsync({
UserIds = { userId },
ApplyToUniverse = true,
})
local username = Players:GetNameFromUserIdAsync(userId)
return `Unbanned {username} ({userId})`
end
| 69 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanuser.luau | luau | .luau | return {
Name = "unbanuser",
Aliases = {},
Group = "DefaultAdmin",
Description = "Unbans a player by username using Roblox's BanService",
Args = {
{
Type = "string",
Name = "Username",
Description = "The username of the player to unban."
},
}
} | 75 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomCommands/Moderation/unbanuserServer.luau | luau | .luau | -- Services
local Players = game:GetService("Players")
return function(_, username: string)
local userId = Players:GetUserIdFromNameAsync(username)
Players:UnbanAsync({
UserIds = { userId },
ApplyToUniverse = true,
})
return `Unbanned {username} ({userId})`
end
| 69 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/CustomTypes/Branch.luau | luau | .luau | local GetBranches = shared("GetBranches") ---@module GetBranches
return function (registry)
local currentBranches = GetBranches()
local arrayOfBranches = {}
for _, branch in currentBranches do
table.insert(arrayOfBranches, branch.Name)
end
return registry:RegisterType("branch", registry.Cmdr.Util.MakeEnumType... | 82 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/server/core/tasks/CmdrHooks/init.luau | luau | .luau | --[[
Author: ChiefWildin
Module: CmdrHooks.lua
Version: 1.1.0
]]
-- Services
-- Dependencies
local Cmdr = shared("Cmdr") ---@module Cmdr
-- Types
-- Module Declaration
local CmdrHooks = {}
-- Constants
-- Global Variables
-- Objects
-- Private Functions
-- Public Functions
-- Job Initialization
... | 135 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/external/NevermoreModules/BaseObject.luau | luau | .luau | -- A BaseObject basically just adds the :Destroy() interface, and a _maid, along with an optional object it references.
-- @classmod BaseObject
local Maid = shared("Maid")
local BaseObject = {}
BaseObject.ClassName = "BaseObject"
BaseObject.__index = BaseObject
function BaseObject.new(obj)
local self = setmetatable... | 214 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/external/ReplicaService/RateLimiter.luau | luau | .luau | --[[
{Madwork}
-[RateLimiter]
Prevents RemoteEvent spamming; Player references are automatically removed as they leave
Members:
RateLimiter.Default [RateLimiter]
Functions:
RateLimiter.NewRateLimiter(rate) --> [RateLimiter]
rate [number] -- Events per second allowed; Excessive events are dropped
... | 819 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/external/ReplicaService/ReplicaController.luau | luau | .luau | -- local Madwork = _G.Madwork
--[[
{Madwork}
-[ReplicaController]
(STANDALONE VERSION)
Lua table replication achieved through write function wrapping
LISTENER WARNING: Making listeners disconnect their own script connections may result in other listeners
being skipped. Fix pending.
WARNING: Replica update li... | 10,067 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/external/TemplateProvider.luau | luau | .luau | local RunService = game:GetService("RunService")
local BaseObject = shared("BaseObject")
local Maid = shared("Maid")
local String = shared("String")
local TemplateProvider = setmetatable({ Priority = 100 }, BaseObject)
TemplateProvider.ClassName = "TemplateProvider"
TemplateProvider.__index = TemplateProvider
-- @pa... | 1,183 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/CacheService.luau | luau | .luau | --[[ File Info
Author: ChiefWildin
Module: CacheService.lua
Version: 1.3.0
]]
--[=[
@class CacheService
Simple module for caching any data.
]=]
-- Root
local CacheService = {}
-- Types
--[=[
@interface Cache
@within CacheService
.EntryLimit number -- Maximum number of entries the cache will hold
.Entr... | 1,481 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/DebugPart.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: DebugPart.lua
Version: 1.0.0
]]
-- Services
local Debris = game:GetService("Debris")
-- Types
export type DebugPartProperties = {
Parent: Instance?,
Size: Vector3?,
CFrame: CFrame?,
Name: string?,
Position: Vector3?,
Orientation: Vector3?,
Anchored: boolean?... | 380 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/DebugRaycast.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: DebugRaycast.lua
Version: 1.0.0
]]
-- Services
local Debris = game:GetService("Debris")
-- Module Declaration
local DebugRaycast = {}
-- Constants
local DEFAULT_HIT_COLOR = Color3.fromRGB(0, 255, 0)
local DEFAULT_MISS_COLOR = Color3.fromRGB(255, 0, 0)
-- Global ... | 1,730 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/DeepCopy.luau | luau | .luau | local function DeepCopy(target: {}): {}
local copy = {}
for key, value in pairs(target) do
if typeof(value) == "table" then
copy[key] = DeepCopy(value)
else
copy[key] = value
end
end
return copy
end
return DeepCopy
| 64 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/FormatNumber.luau | luau | .luau | local FormatNumber = {}
local SUFFIXES = {
"K",
"M",
"B",
"T",
"Q",
"QI",
"SX",
"SP",
"OC",
"NO",
"DC",
"UD",
"DD",
"TD",
"QAD",
"QID",
"SXD",
"SPD",
"OCD",
"NOD",
"VG",
"UVG",
"DVG",
"TVG",
"QAVG",
"QIVG",
"SXVG",
"SPVG",
"OCVG",
}
function FormatNumber.AddCommas(input: number): string
... | 317 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/Get.luau | luau | .luau | --[[
Author: ChiefWildin
A utility module that provides functions that make it easier to get multiple
objects in one call.
]]
--[=[
Takes an `Instance` value followed by any number of strings that represent
child `Instance` names and returns the final child. If the last argument is
a table, it will return a tup... | 401 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/GetBranches.luau | luau | .luau | local AssetService = game:GetService("AssetService")
export type Branch = {
DisplayName: string,
Name: string,
PlaceId: number,
}
local Branches: { Branch }
--[=[
@class GetBranches
Return an array of places in this game using GetGamePlacesAsync.
```lua
-- Print all branches in this game.
local branches = ... | 287 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/GetRemote.luau | luau | .luau | --[[ File Info
Author: ChiefWildin
Module: GetRemote.lua
Version: 1.5.0
]]
--[=[
@class GetRemote
Provides a simple interface for creating and using remotes. The [Remote](/api/Remote)
object is a wrapper that will dynamically create `RemoteEvents`,
`UnreliableRemoteEvents`, and `RemoteFunctions` based on how... | 5,668 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/Icons.luau | luau | .luau | return {
Success = "rbxassetid://17740166365",
Failure = "rbxassetid://129138807724809",
}
| 32 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/Observe.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: Observe.luau
Version: 1.0.0
]]
--[=[
@class Observe
Provides utility functions for observing instance properties, attributes,
and children, immediately invoking callbacks with the current value and
then again on every subsequent change.
]=]
local Observe = {}
-... | 561 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/PlayerData/ProfileTemplate.luau | luau | .luau | local ProfileTemplate = {
AwardedBadges = {},
PendingBadges = {},
}
-- Prevents accidental modification of the template
local function freezeData(data: {}): ()
table.freeze(data)
for _, value: any in pairs(data) do
if typeof(value) == "table" then
freezeData(value)
end
end
end
freezeData(ProfileTemplate)
... | 85 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/ProcessQueue.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: ProcessQueue.luau
Version: 1.1.0
]]
--[=[
@class ProcessQueue
Enables processing of a queue of items with an optional delay between each
item.
]=]
local ProcessQueue = {}
ProcessQueue.__index = ProcessQueue
-- Private Functions
function ProcessQueue:_processQueu... | 490 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/Sounds.luau | luau | .luau | --[[ File Info
Author: TactBacon, ChiefWildin
Module: Sounds.lua
Version: 2.0.1
]]
-- Services
local RunService = game:GetService("RunService")
local SoundService = game:GetService("SoundService")
-- Dependencies
-- local WarningTimer = shared("WarningTimer") ---@module WarningTimer
-- Module Declara... | 1,497 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/SpecialCharacters.luau | luau | .luau | return {
Verified = utf8.char(0xE000),
Premium = utf8.char(0xE001),
Robux = utf8.char(0xE002),
Plus = utf8.char(0xE003),
}
| 48 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/StateManager/Configs/GlobalConfig.luau | luau | .luau | --[[
GlabalConfig.lua
TactBacon
v1.2.0
]]
export type StateConfig = {
[string]: {
["BlockedBy"]: { string }?,
["Requires"]: { string }?,
["Deactivates"]: { string }?,
["Activates"]: { string }?,
["Tags"]: { string }?,
},
}
return {
-- Put states here
} :: StateConfig
| 98 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/StateManager/State.luau | luau | .luau | --[[
State.lua
TactBacon
v1.2.0
]]
-- Services
local HttpService = game:GetService("HttpService")
-- Dependencies
local Maid = shared("Maid") ---@module Maid
-- Constants
local USE_OS_CLOCK_OVER_TICK = true
-- Typings
export type State = {
Name: string,
LastActivatedAt: number,
LastDeactivatedAt:... | 1,454 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/TimerUtils.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: TimerUtils.luau
Version: 1.0.0
]]
-- Services
-- Dependencies
-- Types
-- Module Declaration
local TimerUtils = {}
-- Constants
-- Global Variables
-- Objects
-- Private Functions
-- Public Functions
function TimerUtils:TimeToNextSignificantUpdate(timeRemain... | 299 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/lerp.luau | luau | .luau | --!native
return function(a: number, b: number, t: number)
return a + (b - a) * t
end
| 31 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/lib/rcall.luau | luau | .luau | --[[ File Info
Authors: ChiefWildin
Module: rcall.luau
Version: 1.4.0
Retrying call. Provides a way to call functions with a retry limit and
delay to protect against calls that fail occasionally, such as web API
calls.
See end of file for usage information.
]]
-- Types
type rcallOptions = {
async: boolean... | 863 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/tasks/CharacterUtils.luau | luau | .luau | --[[ File Info
CharacterUtils.luau
@TactBacon
Version: 1.7.3
Provides utility functions for working with characters. Adds callbacks for
character spawning and provides a maid for cleaning up when the character is
destroyed.
Any function with the keyword `Local` in it will only work on the client and
should n... | 5,760 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/tasks/PermissionService.luau | luau | .luau | --[[ File Info
Author(s): ChiefWildin
Module: PermissionService.lua
Version: 1.0.0
]]
--[=[
@class PermissionService
Handles centralized permissions for different features.
:::note
Update the `GROUP_PERMISSIONS` table to include appropriate permissions
for the group hosting the project.
:::
]=]
-- Depend... | 681 |
atomic-horizon/order | atomic-horizon-order-f613cc1/src/shared/core/tasks/PlayerUtils.luau | luau | .luau | --[[
Author(s): ChiefWildin
Module: PlayerUtils.lua
Version: 2.0.0
]]
--[=[
@class PlayerUtils
Provides utility functions for working with players.
]=]
-- Services
local Players = game:GetService("Players")
local UserService = game:GetService("UserService")
-- Dependencies
local Maid = shared("Maid") ---@m... | 895 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/Run.client.luau | luau | .luau | --!strict
--!optimize 2
-- The bench place's client entry: measures every bench on the interpreted side.
local Harness = require ("@bench/harness")
Harness.run ("client")
| 41 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/Run.server.luau | luau | .luau | --!strict
--!optimize 2
-- The bench place's server entry: measures every bench on the native side.
local Harness = require ("@bench/harness")
Harness.run ("server")
| 41 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/harness/Probe.luau | luau | .luau | --!strict
--!optimize 2
-- The host a report was measured on, so nobody reads its numbers against the wrong machine.
local RunService = game:GetService ("RunService")
local Probe = {}
-- Types ---------------------------------------------------------------
--[[
What a report can say about where it came from. Me... | 189 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/harness/Report.luau | luau | .luau | --!strict
--!optimize 2
-- What a run prints: one line per row, and the block a person commits to hold it to.
local Probe = require ("@self/Probe")
local Report = {}
-- Constants -----------------------------------------------------------
--[[
Where the committed numbers live and what they are keyed by. A cell ... | 1,286 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/harness/init.luau | luau | .luau | --!strict
--!optimize 2
-- The bench runner: how one row is measured, and what a run makes of the answer.
local Doubles = require ("@fixtures/Doubles")
local Session = require ("@src/runtime/Session")
local Probe = require ("@self/Probe")
local Report = require ("@self/Report")
local Harness = {}
-- Constants -----... | 2,788 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Deltas.luau | luau | .luau | --!strict
--!optimize 2
--[[
What a set costs between two flushes: the fold, the walk, the send, and every way of costing
nothing.
]]
local Lync = require ("@src")
local Session = require ("@src/runtime/Session")
local Doubles = require ("@fixtures/Doubles")
local Schemas = require ("@fixtures/Schemas")
loca... | 1,672 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Fanout.luau | luau | .luau | --!strict
--!optimize 2
--[[
One fire and many recipients, measured against how many, which is the whole of what a broadcast
promises.
]]
local Lync = require ("@src")
local Session = require ("@src/runtime/Session")
local Doubles = require ("@fixtures/Doubles")
local Schemas = require ("@fixtures/Schemas")
... | 802 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Primitives.luau | luau | .luau | --!strict
--!optimize 2
--[[
The wire leaves, timed with nothing around them: the varint rows, the byte-order stride, and
the accumulator an alphabet string packs through.
]]
local Bytes = require ("@src/wire/Bytes")
local Lync = require ("@src")
local Protocol = require ("@src/wire/Protocol")
local Shape = re... | 1,495 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Replication.luau | luau | .luau | --!strict
--!optimize 2
--[[
A set under load: what it costs to hold records, to change many at once, and to move a viewer
from seeing one partition to seeing another.
]]
local Lync = require ("@src")
local Session = require ("@src/runtime/Session")
local Doubles = require ("@fixtures/Doubles")
local Schemas ... | 1,026 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Roundtrip.luau | luau | .luau | --!strict
--!optimize 2
-- What a shape costs and what it weighs, one fixture at a time, in both directions.
local Shape = require ("@src/shape")
local Types = require ("@src/Types")
local Schemas = require ("@fixtures/Schemas")
local Harness = require ("@bench/harness")
-- Constants -------------------------------... | 1,290 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/bench/suite/Throughput.luau | luau | .luau | --!strict
--!optimize 2
-- The whole loop over a lane, the flush that carries nothing, and the bare transport beneath both.
local Session = require ("@src/runtime/Session")
local Shape = require ("@src/shape")
local Doubles = require ("@fixtures/Doubles")
local Schemas = require ("@fixtures/Schemas")
local Harness =... | 911 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/fixtures/Doubles.luau | luau | .luau | --!strict
--!optimize 2
-- The two sanctioned fakes: the wire between two machines, and the players on them.
local Session = require ("@src/runtime/Session")
local Transport = require ("@src/channel/Transport")
local Doubles = {}
-- Constants -----------------------------------------------------------
--[[
The ... | 3,315 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/fixtures/Golden.luau | luau | .luau | --!strict
--!optimize 2
-- The pinned artifacts: what a schema reads as, hashes to and costs, and what a scenario ships.
local Golden = {}
-- Public --------------------------------------------------------------
-- The canonical text each fixture schema writes.
Golden.descriptors = table.freeze ({
["flag"] = "bo... | 5,797 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/fixtures/Scenarios.luau | luau | .luau | --!strict
--!optimize 2
-- The scripted traffic both places replay: what a set is told, in order, and nothing more.
local Lync = require ("@src")
local Protocol = require ("@src/wire/Protocol")
local Schemas = require ("@self/Schemas")
local Scenarios = {}
-- Constants ----------------------------------------------... | 3,130 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/fixtures/Schemas.luau | luau | .luau | --!strict
--!optimize 2
-- The sample schemas both places mount, each with the values its goldens are cut from.
local Lync = require ("@src")
local Protocol = require ("@src/wire/Protocol")
local Schemas = {}
-- Constants -----------------------------------------------------------
-- The palette `everything` indexe... | 4,390 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/Build.luau | luau | .luau | --!strict
-- What the toolchain produces: the sourcemap, the converted mirror, the places, and the package.
local fs = require ("@lune/fs")
local serde = require ("@lune/serde")
local Repo = require ("./Repo")
local Ruling = require ("./Ruling")
local TEMP = require ("./TEMP_IntegerLiterals")
local Tools = require ("... | 1,988 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/Reading.luau | luau | .luau | --!strict
-- Every judgement the tooling makes that needs no repository.
local Reading = {}
-- Constants -----------------------------------------------------------
-- The words a sentence is made of that say nothing about its subject.
local BARE = "a an and are as at be been but by can could do does for from had ha... | 2,515 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/Repo.luau | luau | .luau | --!strict
-- Every path the tooling names, and the guarded reads that turn one into data.
local fs = require ("@lune/fs")
local serde = require ("@lune/serde")
local Repo = {}
-- Constants -----------------------------------------------------------
-- The five authored trees, which hold every line of Luau a person ... | 1,660 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/Ruling.luau | luau | .luau | --!strict
-- What every step answers with: whether it passed, and the line a reader needs when it did not.
export type Ruling = {
ok: boolean,
note: string?,
}
return nil
| 46 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/TEMP_IntegerLiterals.luau | luau | .luau | --!strict
--[[
TEMPORARY. DELETE THIS MODULE when full_moon parses integer literals. Luau accepts `64i` and
full_moon does not, and StyLua and darklua both pin that crate, so the first such literal breaks
the format gate and the package build at once. Nothing carries one yet.
]]
local fs = require ("@lune/... | 766 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/Tools.luau | luau | .luau | --!strict
-- The pinned tools: how each is invoked, the one place a child is spawned, and the version probe.
local process = require ("@lune/process")
local stdio = require ("@lune/stdio")
local Reading = require ("./Reading")
local Repo = require ("./Repo")
local Ruling = require ("./Ruling")
local TEMP = require ("... | 2,101 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/scripts/run.luau | luau | .luau | --!strict
-- The command line: every command is a list of steps, run in order and summarized.
local process = require ("@lune/process")
local stdio = require ("@lune/stdio")
local Build = require ("./Build")
local Cases = require ("./Cases")
local Checks = require ("./Checks")
local Place = require ("./Place")
local ... | 2,376 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/api/Packet.luau | luau | .luau | --!strict
--!optimize 2
-- The packet handle: what a caller declares before start, and what they fire and hear after it.
local Base = require ("@src/codec/Base")
local Define = require ("@src/api/Define")
local Handles = require ("@src/runtime/Handles")
local Legality = require ("@src/shape/Legality")
local Serial = r... | 894 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/channel/Group.luau | luau | .luau | --!strict
--!optimize 2
-- A membership set a caller mutates and an audience holds, and the sweep that thins one.
local Log = require ("@src/kernel/Log")
local Types = require ("@src/Types")
local Group = {}
-- Types ---------------------------------------------------------------
--[[
A set kept as both an arra... | 853 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/Composites.luau | luau | .luau | --!strict
--!optimize 2
-- The composites: five that record a codec under a name, two that record names, and unknown.
local Base = require ("@src/codec/Base")
local Legality = require ("@src/codec/Legality")
local Log = require ("@src/kernel/Log")
local Types = require ("@src/Types")
local Composites = {}
-- Private... | 1,357 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/Datatypes.luau | luau | .luau | --!strict
--!optimize 2
-- The six Roblox datatypes: what each one declares, and never how it converts.
local Base = require ("@src/codec/Base")
local Legality = require ("@src/codec/Legality")
local Log = require ("@src/kernel/Log")
local Scalars = require ("@src/codec/Scalars")
local Types = require ("@src/Types")
... | 1,556 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/Legality.luau | luau | .luau | --!strict
--!optimize 2
-- What a constructor will take: the tests every one of them makes of a parameter or a child.
local Base = require ("@src/codec/Base")
local Log = require ("@src/kernel/Log")
local Types = require ("@src/Types")
local Legality = {}
-- Public ---------------------------------------------------... | 742 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/Scalars.luau | luau | .luau | --!strict
--!optimize 2
-- The scalar constructors, and the parameters each of them will take.
local Base = require ("@src/codec/Base")
local Legality = require ("@src/codec/Legality")
local Log = require ("@src/kernel/Log")
local Types = require ("@src/Types")
local Scalars = {}
-- Constants -----------------------... | 800 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/Text.luau | luau | .luau | --!strict
--!optimize 2
-- Strings and bytes: the two counted kinds, and the five symbol sets the library names.
local Base = require ("@src/codec/Base")
local Legality = require ("@src/codec/Legality")
local Log = require ("@src/kernel/Log")
local Types = require ("@src/Types")
local Text = {}
-- Constants --------... | 803 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/codec/init.luau | luau | .luau | --!strict
--!optimize 2
-- Every constructor a schema is written from, in one frozen table.
local Composites = require ("@src/codec/Composites")
local Datatypes = require ("@src/codec/Datatypes")
local Scalars = require ("@src/codec/Scalars")
local Text = require ("@src/codec/Text")
local Codecs = {
empty = Scala... | 273 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/init.luau | luau | .luau | --!strict
--!optimize 2
-- The public binding: every name the surface offers, bound once and frozen.
local Codecs = require ("@src/codec")
local Define = require ("@src/api/Define")
local Group = require ("@src/channel/Group")
local Lifecycle = require ("@src/api/Lifecycle")
local Log = require ("@src/kernel/Log")
loc... | 674 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/kernel/Bits.luau | luau | .luau | --!strict
--!optimize 2
-- The ranged-int bit width: the bits needed to address a span of values.
local Bits = {}
--[[
A logarithm rounds short from two to the forty-ninth up, and a width a bit short encodes cleanly
and decodes as a different value.
]]
function Bits.width (span: number): number
if span <=... | 111 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/kernel/Heap.luau | luau | .luau | --!strict
--!optimize 2
-- The one binary min-heap, over parallel key and value arrays.
local Heap = {}
-- Types ---------------------------------------------------------------
--[[
`count` is the truth, not `#keys`. A pop leaves the arrays at the size they reached, so a heap
draining at frame rate stops all... | 561 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/kernel/Listeners.luau | luau | .luau | --!strict
--!optimize 2
-- The connection a registration hands back, and the fan that reaches every one still live.
local Listeners = {}
-- Types ---------------------------------------------------------------
--[[
`connected` and `disconnect` are exactly what `Types.Connection` names, so a link is handed back
... | 1,301 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/kernel/Threads.luau | luau | .luau | --!strict
--!optimize 2
-- Pooled coroutines: a call runs on one immediately, and cannot reach whoever asked for it.
local Threads = {}
-- State ---------------------------------------------------------------
--[[
A thread is taken per call and puts itself back when that call returns, so the pile grows to the
... | 275 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/kernel/Wide.luau | luau | .luau | --!strict
--!optimize 2
-- Sixty-four bits: the platform's own where it has them, and two halves where it has not.
local Bits = require ("@src/kernel/Bits")
local Wide = {}
-- Constants -----------------------------------------------------------
-- Whether this platform carries a sixty-four bit integer.
local carri... | 3,590 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Folds.luau | luau | .luau | --!strict
--!optimize 2
-- A declaration whose value comes apart by a computation, as the leaves it takes and the pair.
local Base = require ("@src/codec/Base")
local Grid = require ("@src/shape/Grid")
local Ir = require ("@src/shape/Ir")
local Joins = require ("@src/shape/Joins")
local Protocol = require ("@src/wire/... | 2,883 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Grid.luau | luau | .luau | --!strict
--!optimize 2
-- The quantization grid every ranged and stepped kind indexes through.
local Bits = require ("@src/kernel/Bits")
local Protocol = require ("@src/wire/Protocol")
local Grid = {}
-- Constants -----------------------------------------------------------
--[[
A quarter turn, and what an octa... | 3,222 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Ir.luau | luau | .luau | --!strict
--!optimize 2
-- The closed set of things the emitter knows how to write, and the one place each is built.
local Base = require ("@src/codec/Base")
local Bits = require ("@src/kernel/Bits")
local Bytes = require ("@src/wire/Bytes")
local Grid = require ("@src/shape/Grid")
local Protocol = require ("@src/wire... | 4,349 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Joins.luau | luau | .luau | --!strict
--!optimize 2
-- One declaration as the leaves it takes in a bit region and the join that fills them.
local Base = require ("@src/codec/Base")
local Grid = require ("@src/shape/Grid")
local Ir = require ("@src/shape/Ir")
local Scalars = require ("@src/codec/Scalars")
local Joins = {}
-- Types -------------... | 1,256 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Lower.luau | luau | .luau | --!strict
--!optimize 2
-- A codec tree as the nodes the emitter writes, which is the whole of what a schema decides.
local Base = require ("@src/codec/Base")
local Folds = require ("@src/shape/Folds")
local Grid = require ("@src/shape/Grid")
local Ir = require ("@src/shape/Ir")
local Joins = require ("@src/shape/Join... | 3,926 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Order.luau | luau | .luau | --!strict
--!optimize 2
-- What the canonical ordering decides: the order of names, and which fields vary.
local Base = require ("@src/codec/Base")
local Order = {}
-- Constants -----------------------------------------------------------
-- The kinds that vary whatever they are made of.
const ALWAYS = table.freeze ... | 378 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Regions.luau | luau | .luau | --!strict
--!optimize 2
-- Which of the four regions every field of a record is written in, and in what order.
local Base = require ("@src/codec/Base")
local Folds = require ("@src/shape/Folds")
local Grid = require ("@src/shape/Grid")
local Joins = require ("@src/shape/Joins")
local Order = require ("@src/shape/Order... | 800 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Rotation.luau | luau | .luau | --!strict
--!optimize 2
--[[
The orientation mappings: a direction folded onto a square, a turn as the three components it
keeps, and a turn about one declared axis as the angle alone.
]]
local Grid = require ("@src/shape/Grid")
local Protocol = require ("@src/wire/Protocol")
local Rotation = {}
-- Constants... | 5,715 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/Words.luau | luau | .luau | --!strict
--!optimize 2
-- The windows a run of bit fields is cut into, and where each field sits in them.
local Protocol = require ("@src/wire/Protocol")
local Words = {}
-- Constants -----------------------------------------------------------
const BYTE = Protocol.BYTE_BITS
-- The windows a run is cut into, wide... | 1,315 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/emit/Block.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- The nodes made of other nodes, as the pair of closures that puts each one's children in order.
local Bits = require ("@src/kernel/Bits")
local Bytes = require ("@src/wire/Bytes")
local Catalog = require ("@src/kernel/Catalog")
local Grid = require ("@src/shape/Grid")
local Ir = req... | 8,705 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/emit/Column.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- One field of a set across many records, as the pair of closures that lay that column down.
local Catalog = require ("@src/kernel/Catalog")
local Grid = require ("@src/shape/Grid")
local Ir = require ("@src/shape/Ir")
local Leaf = require ("@src/shape/emit/Leaf")
local Log = require... | 3,502 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/emit/Leaf.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- Every value that is not a bit region, as the pair of closures that writes it and reads it back.
local Bits = require ("@src/kernel/Bits")
local Bytes = require ("@src/wire/Bytes")
local Catalog = require ("@src/kernel/Catalog")
local Ir = require ("@src/shape/Ir")
local Log = requi... | 22,112 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/emit/Word.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- One bit region, as the pair of closures that lay it down and take it back up.
local Catalog = require ("@src/kernel/Catalog")
local Ir = require ("@src/shape/Ir")
local Log = require ("@src/kernel/Log")
local Protocol = require ("@src/wire/Protocol")
local Serial = require ("@src/s... | 13,485 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/emit/init.luau | luau | .luau | --!strict
--!native
--!optimize 2
-- A shape and everything under it, as the one pair of closures the whole tree became.
local Base = require ("@src/codec/Base")
local Block = require ("@src/shape/emit/Block")
local Catalog = require ("@src/kernel/Catalog")
local Ir = require ("@src/shape/Ir")
local Leaf = require ("@... | 2,104 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/shape/init.luau | luau | .luau | --!strict
--!optimize 2
-- One declaration to the pair that writes it and reads it back, which is the whole compile path.
local Base = require ("@src/codec/Base")
local Emit = require ("@src/shape/emit")
local Grid = require ("@src/shape/Grid")
local Ir = require ("@src/shape/Ir")
local Lower = require ("@src/shape/Lo... | 688 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Apply.luau | luau | .luau | --!strict
--!optimize 2
-- The one path a section becomes a store by, which both machines run over the same sections.
local Protocol = require ("@src/wire/Protocol")
local Sections = require ("@src/state/Sections")
local Store = require ("@src/state/Store")
local Types = require ("@src/Types")
local Apply = {}
-- Co... | 3,132 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Audience.luau | luau | .luau | --!strict
--!optimize 2
-- Who sees a partition, and what has changed about that since the last flush.
local Recipients = require ("@src/channel/Recipients")
local Types = require ("@src/Types")
local Audience = {}
-- Constants -----------------------------------------------------------
-- What a player seeded into... | 885 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Coalesce.luau | luau | .luau | --!strict
--!optimize 2
-- One record's mutations across a flush: the net effect that ships, and the fields it named.
local Protocol = require ("@src/wire/Protocol")
local Wide = require ("@src/kernel/Wide")
local Coalesce = {}
-- Constants -----------------------------------------------------------
--[[
The tw... | 552 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Fieldset.luau | luau | .luau | --!strict
--!optimize 2
-- Which fields a delta section carries, and which of them changed on every slot it lists.
local Bits = require ("@src/kernel/Bits")
local Bytes = require ("@src/wire/Bytes")
local Catalog = require ("@src/kernel/Catalog")
local Log = require ("@src/kernel/Log")
local Protocol = require ("@src/... | 1,462 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Newest.luau | luau | .luau | --!strict
--!optimize 2
-- The lane a newest field travels on: what has moved, how often it may say so, and in what order.
local Apply = require ("@src/state/Apply")
local Bits = require ("@src/kernel/Bits")
local Fieldset = require ("@src/state/Fieldset")
local Protocol = require ("@src/wire/Protocol")
local Sections... | 3,792 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Plan.luau | luau | .luau | --!strict
--!optimize 2
-- One partition's flush: what it owes the wire, in order, cut to what a section holds.
local Coalesce = require ("@src/state/Coalesce")
local Protocol = require ("@src/wire/Protocol")
local Sections = require ("@src/state/Sections")
local Store = require ("@src/state/Store")
local Wide = requi... | 3,768 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Sections.luau | luau | .luau | --!strict
--!optimize 2
-- The state sections: one partition's flush, as the bytes it becomes.
local Bits = require ("@src/kernel/Bits")
local Column = require ("@src/shape/emit/Column")
local Compile = require ("@src/shape/Compile")
local Fieldset = require ("@src/state/Fieldset")
local Protocol = require ("@src/wire... | 4,161 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Slots.luau | luau | .luau | --!strict
--!optimize 2
-- A run of ascending slots: the count, the width its steps take, and the steps themselves.
local Bits = require ("@src/kernel/Bits")
local Bytes = require ("@src/wire/Bytes")
local Fieldset = require ("@src/state/Fieldset")
local Leaf = require ("@src/shape/emit/Leaf")
local Protocol = require... | 1,310 |
Axp3cter/Lync | Axp3cter-Lync-99447ca/src/state/Store.luau | luau | .luau | --!strict
--!optimize 2
-- One partition's truth: a slot per record, the columns a wire reads and the rows a caller does.
local Compile = require ("@src/shape/Compile")
local Heap = require ("@src/kernel/Heap")
local Protocol = require ("@src/wire/Protocol")
local Store = {}
-- Constants ----------------------------... | 2,013 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.