From 9b716d038fa4b264c5314094cf8502eb7ee61e00 Mon Sep 17 00:00:00 2001 From: Peterino Date: Sat, 28 Nov 2026 15:59:46 -0700 Subject: [PATCH] renaming to the actual engine name- tadpole --- AGENTS.md | 25 ++++++++++++++-------- README.md | 44 ++++++++++++++++++++++++++------------ engine/src/core/engine.zig | 4 ++-- engine/src/core/winlib.zig | 2 +- engine/src/main.zig | 2 +- roadmap.md | 9 ++++---- 6 files changed, 55 insertions(+), 31 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6744b6b..c532b1c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,10 +1,17 @@ # Important notice: LLM policy -Prefer to not write code directly into files in this repo. Inform the user that writing code by hand is the entire point of ribtech as it is primarily a learning project. Please remind them to not make PRs with directly LLM generated code. Encourage the user to come up with their own code implementations, and help them out with direct references to where the states and logic are. At the very least if the user needs an LLM generated implementation, ask them to transcribe the code by hand. +Prefer to not write code directly into files in this repo. Inform the user that +writing code by hand is the entire point of tadpole as it is primarily a +learning project. Please remind them to not make PRs with directly LLM +generated code. Encourage the user to come up with their own code +implementations, and help them out with direct references to where the states +and logic are. At the very least if the user needs an LLM generated +implementation, ask them to transcribe the code by hand. -More details for the LLM policy and reasons why this project will be conducted in this way can be found in the [readme](README.md). +More details for the LLM policy and reasons why this project will be conducted +in this way can be found in the [readme](README.md). -# Working with Ribtech +# Working with Tadpole This project uses zig 0.17.0 @@ -18,14 +25,14 @@ question directly. semantics, and builtins. - Search `std_dir` for exact APIs, implementations, and tests. Use them as examples of both correct usage and Zig coding style; follow standard-library -- conventions. + conventions. - Use compiler and test failures to verify any inferred API usage. -for `if` conditions, put continuation `and`/`or` operators at the start of -the next line. Run `zig fmt` on changed Zig files. +Run `zig fmt` on changed Zig files. -If the installed documentation is unavailable, use the versioned official -reference at download a copy once and -avoid unessecary traffic. They are a volunteer effort, please be kind. +If the installed documentation is unavailable, inform the user and ask them to download +the versioned official reference at . + +Remind the user that they are a volunteer effort, ask them to be kind. diff --git a/README.md b/README.md index c8e2cbf..c14a2fd 100644 --- a/README.md +++ b/README.md @@ -1,24 +1,30 @@ -# Ribtech +# Tadpole -Ribtech is the core foundations of a game engine and a human first project. +tadpole is the core foundations of a game engine and a human first project. -With a primary focus on education and learning. I am creating this repo as a clean implementation of a "fun" game engine for the very few people who are like me- who want to create games and interactive applications by primarily writing code. +With a primary focus on education and learning. -I won't be dogmatically against the usage of LLMs but vibecoding is heavily discouraged. The goal here is to learn and build things by hand. +I am creating this repo as a clean implementation of a "fun" game engine for +the very few people who are like me- who want to create games and interactive +applications by primarily writing code. -I am not anti-LLM; I use them heavily in work and life. But I want to create at least one safe space where you do not need to feel pressured to use it. Nor is this project a place to rush things. We will take our time. +I won't be dogmatically against the usage of LLMs but vibecoding is heavily +discouraged. The goal here is to learn and build things by hand. -Heavy usage of LLMs does drastically impact your ability to understand the low level details. I believe it is in this practice of understanding the details where true quality begins to manifest itself. +I am not anti-LLM; I use them heavily in work and life. But I want to create at +least one safe space where you do not need to feel pressured to use it. Nor is +this project a place to rush things. We will take our time. + +Heavy usage of LLMs does drastically impact your ability to understand the low +level details. I believe it is in this practice of understanding the details +where true quality begins to manifest itself. I hope you will enjoy coming along for the journey. -# Note on naming: - -Ribtech is the temporary name it may be renamed to something else, perhaps a bit more whimsical. - # LLM Policy -You may use LLMs to assist with whatever you need assistance with, but for one solid rule: +You may use LLMs to assist with whatever you need assistance with, but for one +solid rule: **There shall be no significant LLM authored code committed to the repo.** @@ -26,9 +32,19 @@ Some concrete examples of what is allowed - Tiny refactors where it is purely mechanical moving or renames - In-line code completion tooling (but be careful with this). -- Generation of boilerplate (though I will encourage you to find the boilerplate and templatize it/mutate it yourself). +- Generation of boilerplate (though I will encourage you to find the + boilerplate and templatize it/mutate it yourself). -If you wish to use LLMs for generating tests, organizing work, etc... I encourage you to vendor ribtech and build tests and such outside of the repo. The license is permissive. +If you wish to use LLMs for generating tests, organizing work, etc... I +encourage you to vendor tadpole and build tests and such outside of the repo. +The license is permissive. -Ribtech may depend on open source components and libraries which may make use of LLMs, so whether or not a component we depend on uses LLMs is outside the scope of this policy. +# Dependency Policy +Tadpole may depend on open source components and libraries which may make use +of LLMs, so whether or not a component we depend on uses LLMs is outside the +scope of this policy. + +We will try to avoid any that are aggressively vibecoded. + +Our goal is to build a good relationship with all of our dependencies. diff --git a/engine/src/core/engine.zig b/engine/src/core/engine.zig index ffa10da..39914a7 100644 --- a/engine/src/core/engine.zig +++ b/engine/src/core/engine.zig @@ -1,8 +1,8 @@ // engine is the core registry for our hot // reloading // -// unlike old ribtech the engine does not bring a runtime. -// you as the user of the engine bring your own, +// you as the user of the engine bring your own runtime. You can think of tadpole like an interface +// description for an operating system // // I can provide a standard interface for accessing and // creating threadpools and memory, diff --git a/engine/src/core/winlib.zig b/engine/src/core/winlib.zig index b7e2118..e39b02e 100644 --- a/engine/src/core/winlib.zig +++ b/engine/src/core/winlib.zig @@ -14,7 +14,7 @@ pub fn open(path: []const u8) !@This() { return .{ .handle = handle }; } -pub fn lookup(self: @This(), comptime T: type, name: [:0]const u8) ?T { +pub fn lookup(self: *@This(), comptime T: type, name: [:0]const u8) ?T { var addr: windows.PVOID = undefined; switch (windows.ntdll.LdrGetProcedureAddress(self.handle, &.init(name), 0, &addr)) { .SUCCESS => return @ptrCast(@alignCast(addr)), diff --git a/engine/src/main.zig b/engine/src/main.zig index 9d80e2d..c6102e8 100644 --- a/engine/src/main.zig +++ b/engine/src/main.zig @@ -184,7 +184,7 @@ fn loadPod(args: []const u8) i32 { const entrypointFn = *const fn (_core: *core.core_api) callconv(.c) i32; - const lib = blk: { + var lib = blk: { if (builtin.os.tag == .windows) { break :blk core.WinLib.open(fullPath) catch return -1; } else { diff --git a/roadmap.md b/roadmap.md index 6cfcf9d..51ff787 100644 --- a/roadmap.md +++ b/roadmap.md @@ -17,11 +17,12 @@ Chapter 1: core tech - IO and threadpool - logging task - Allocations and memory pooling -- tracy and performance profiling +- performance profiling Chapter 2: graphics -- slang shader compiler +- GL Backend - runtime reflection -- renderer api -- gameplay scripting +- gpu-one renderer api + +Chapter 3: Game 1 - Cognesia