Skip to content

Solutions for games, projects on packages, authorship notice - #1

Merged
MarcT1me merged 9 commits into
masterfrom
develop
Nov 18, 2026
Merged

MarcT1me merged 9 commits into
masterfrom
develop

Conversation

@MarcT1me

Copy link
Copy Markdown
Member

Games and libraries take the engine from packages and keep their own bin/obj; stellar solution sync; NOTICE names the author behind QuantumDevTeam.

… the resources

The file system
- FilePath: domain://path as a value, one form for every path (FileSystemNames).
- Domains mounted by drivers of open schemes (DomainScheme); IDomain holds the
  state of its source, DomainCapabilities says what it can do.
- IFileSystem routes paths to domains; FileEntry with a revision, ContentType,
  atomic writes, random access, memory without a copy, watches.

The resources
- IResource: a lease with a reference count, a snapshot of the data.
- IResourceSystem: policies Stream, Cache, Keep; a cache budget.

Versions
- Orchestra, Kernel, Core and Runtime 0.9.0; new modules start at 0.9.0.

Docs
- Modules: an entry point is optional for a module, required for the application.
Identifiers
- Stellar.Kernel.Identifier: a blittable value of 16 bytes, never registered;
  New, Parse, TryParse, ToBytes, FromBytes, Empty. No Guid in the API of the
  engine: code works with identifiers.
- The registries of identifiers are gone: native, exports, both wrappers.
  MetaQuant makes its identifier without a native call.

Labels
- Stellar.Kernel.Label: an identifier and a name, a value. No registry, no
  lookup by name, no string converted into a label.
- IEventType is a labeled meta quant; the entry point has its own label.

ABI
- P/Invoke exports 3.0: stellar_identifier_register, _unregister, _contains,
  _count, _snapshot and stellar_label_* are gone. StellarNativeAbiVersion 3.

Docs
- Migration-0.9: identifiers, labels, the file system. NativeAbi: identifiers.
Registration
- IRegistrableQuantumObject has no Register or Unregister: registries take and
  let go of objects and tell them; Registrations lists where an object is, and
  Dispose leaves every registry, of whatever engine.
- IRegistry: the untyped part (Keys, Exists, Unregister); IRegistry<T> with
  Get<TItem>, a checked cast.
- Registry<T> replaces ConcurrentRegistry, QuantsRegistry, MetaQuantsRegistry,
  DataContainerRegistry and RegistryBinding.

Registries by type
- CoreEngine.Registry.Of<T>() for any registrable type, bases and contracts.
- Implicit registration: into the registry of the home type and of every type
  of the hierarchy marked [StellarRegistry]; RegistersImplicitly turns it off.
- Failure levels live in the container of their dispatcher.

Engine scope
- EngineScope.Resolve() and DetachedPolicy: code outside any engine gets the
  default instance (tools, tests) or an error, which StellarRuntime.Run sets.

Docs
- Runtime: registries, code outside any engine. Migration-0.9: both.
Catalogs
- ICatalog<TKey, TValue> and IReadOnlyCatalog<TKey, TValue> in the Kernel;
  Catalog<TKey, TValue> in Core, with hooks for the form of keys, the values it
  refuses and what a missing key throws. A registry is only what holds objects
  by their identifiers.

Services
- IServiceCatalog: a catalog of Type to object, refusing a service that does not
  fulfil its contract; Set<T>, Find<T>, Get<T>, Remove<T> are extensions.

The file system
- IFileSystem: the catalogs Drivers, Domains (read-only, DomainNotFoundException)
  and ContentTypes (IContentTypeCatalog); AddDriver.

Docs
- Migration-0.9 and Runtime: catalogs.
Native
- The mirror of the membership of containers is gone: ContainerRegistry,
  stellar_container_*, CoreContext.Containers in both wrappers. The native core
  keeps its collections for native code.

Collections
- ConcurrentList, ConcurrentMap and ConcurrentSet: safe from any thread, reads
  without a lock, a snapshot shared until the next change, Changed with what
  changed. Slices and pops as in Python; GetOrAdd; set operations.
- Catalog is a ConcurrentMap that is an engine catalog.

Containers
- DataContainer<TKey, TValue>: registered, sealable; IDataContainer and
  IDataContainer<TKey, TValue> in the Kernel.
- Table<T> with Get<TItem> and Seal; Roster<T> with branches, Find through them,
  never holding itself; DataTable<TRow>, rows by name.
- Gone: FastConcurrentIdentifierMap, ConcurrentIdentifierMap, ConstantTable,
  WritableTable.

Docs
- Migration-0.9: collections and containers; NativeAbi without containers.
… catcher everywhere

Kernel
- FailureLevel: NonCritical, Warning, Error, CriticalError as an ordered enum.
- FailureKind: an open set of where a failure comes from; FailureReaction: Log,
  StopExecution, StopEngine, with defaults per level.
- Failure: one class, reported once; FailureException carries it, and errors of
  the engine derive from it (DomainNotFoundException).
- IFailureSystem: reactions in catalogs by level and by kind, handlers with
  filters.
- Catcher: a scope with catch blocks; Run, Try with a fallback, async; a reaction
  that stops the work throws the failure on, as if the call were not caught;
  Guard and Report never throw.

Core
- FailureSystem, published by the Core module; Engine.Failures. Gone: the levels
  as classes, the dispatcher, the reporter, the handler providers, FailureCatch.

Runtime
- RuntimeCatchers of plain catchers and MustStop; RuntimeCatcher and CatchResult
  are gone.

Docs
- Runtime: failures and the catcher. Migration-0.9: failures.
…emory and lists, profiler foundations

Runtime
- The main loop keeps a list per phase and the clock frame on each participant: no
  lookups, no LINQ, no allocations in a frame; the frame index is read once.
- A participant is not called for a phase it only has the empty default of.
- Phases are plain calls: Update(in FrameContext); FrameContext is in the Kernel.
- The runtime catchers keep the last 16 failures.
- Profiling: frames, phases, timers, posted work and stages are marked; every call
  of a participant at ProfilerDetail.Participants.

Core
- SnapshotEnumerator: foreach over collections, containers and registrations
  allocates nothing; Keys, Values and Snapshot are arrays shared until a change.
- A map that does not normalize keys looks up without a virtual call or a try.
- Registrations without locks; the registries of a type are worked out once.
- Quant: no array of metas until a second one; no lock(this).
- Memory: NativeList<T> with one owner, ConcurrentNativeList<T> with a lock in its
  header, shared with C++.

Native
- Abi/Memory.h: StellarAllocator, StellarMemoryApi, StellarNativeList.
- Abi/Profiling.h: StellarProfilerEvent.
- Memory::Allocator, counted by references, one per CoreContext.
- Exports 3.1: the memory table and the allocator of a context.
- NativeAllocator in both wrappers; NativeListView<T> in include/Kernel/memory.h.

Kernel
- Identifier.New: random bytes in batches per thread, still a version 4 UUID.
- Catcher.Keeps and FailureCount; Failure is marked reported without a lock.
- NativeMemoryStats.
- Profiling: ProfilerMarker, ProfilerCounter, ProfilerCategory, ProfilerMarkers,
  IProfilerSession, Profiler.Attach per engine, ProfilerEvent.

Docs
- NativeAbi: native memory, the profiler event. Runtime: phases, profiling.
  Migration-0.9: phases, native memory, profiling, enumerators, Keeps.
…that are not files

SDK
- The catalog says how a module is linked with LinkMode, not Link: Link is the
  display path of a file to MSBuild and the IDEs, and the references to the engine
  showed up as files of the project. A catalog written before is still read.

Tools and CLI
- stellar project new makes a solution: the .sln and .stellar.solution at the root,
  the project in a folder of its own, the engine sources the build references in
  the solution folders Engine and Modules, built by Debug only; --flat for the
  project alone. The templates keep their project in __ProjectName__/.
- stellar run: from anywhere in the solution, by profile or project; a profile may
  run several projects at once, built in turn first.

Docs
- Formats: .stellar.solution and the layout of a solution. Tools: the commands.
…r solution sync, dependencies as a property

A game or a library takes the engine from packages in every configuration and keeps bin/ and obj/ next to itself. The engine sources come back in Debug with Engine: Sources in the .stellar.solution and stellar solution sync. Modules are listed in <StellarDependencies>, or as a PackageReference that the NuGet window can add. The package cache is cleaned when the same version is packed again.
@MarcT1me
MarcT1me merged commit 6089758 into master Nov 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant