renaming to the actual engine name- tadpole

This commit is contained in:
Peterino 2026-11-28 15:59:46 -07:00
parent 7a9efb28f3
commit 9b716d038f
6 changed files with 55 additions and 31 deletions

View File

@ -1,10 +1,17 @@
# Important notice: LLM policy # 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 This project uses zig 0.17.0
@ -18,14 +25,14 @@ question directly.
semantics, and builtins. semantics, and builtins.
- Search `std_dir` for exact APIs, implementations, and tests. Use them as - Search `std_dir` for exact APIs, implementations, and tests. Use them as
examples of both correct usage and Zig coding style; follow standard-library 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. - Use compiler and test failures to verify any inferred API usage.
for `if` conditions, put continuation `and`/`or` operators at the start of Run `zig fmt` on changed Zig files.
the next line. Run `zig fmt` on changed Zig files.
If the installed documentation is unavailable, use the versioned official If the installed documentation is unavailable, inform the user and ask them to download
reference at <https://ziglang.org/documentation/0.17.0/> download a copy once and the versioned official reference at <https://ziglang.org/documentation/0.17.0/>.
avoid unessecary traffic. They are a volunteer effort, please be kind.
Remind the user that they are a volunteer effort, ask them to be kind.

View File

@ -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. 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 # 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.** **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 - Tiny refactors where it is purely mechanical moving or renames
- In-line code completion tooling (but be careful with this). - 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.

View File

@ -1,8 +1,8 @@
// engine is the core registry for our hot // engine is the core registry for our hot
// reloading // reloading
// //
// unlike old ribtech the engine does not bring a runtime. // you as the user of the engine bring your own runtime. You can think of tadpole like an interface
// you as the user of the engine bring your own, // description for an operating system
// //
// I can provide a standard interface for accessing and // I can provide a standard interface for accessing and
// creating threadpools and memory, // creating threadpools and memory,

View File

@ -14,7 +14,7 @@ pub fn open(path: []const u8) !@This() {
return .{ .handle = handle }; 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; var addr: windows.PVOID = undefined;
switch (windows.ntdll.LdrGetProcedureAddress(self.handle, &.init(name), 0, &addr)) { switch (windows.ntdll.LdrGetProcedureAddress(self.handle, &.init(name), 0, &addr)) {
.SUCCESS => return @ptrCast(@alignCast(addr)), .SUCCESS => return @ptrCast(@alignCast(addr)),

View File

@ -184,7 +184,7 @@ fn loadPod(args: []const u8) i32 {
const entrypointFn = *const fn (_core: *core.core_api) callconv(.c) i32; const entrypointFn = *const fn (_core: *core.core_api) callconv(.c) i32;
const lib = blk: { var lib = blk: {
if (builtin.os.tag == .windows) { if (builtin.os.tag == .windows) {
break :blk core.WinLib.open(fullPath) catch return -1; break :blk core.WinLib.open(fullPath) catch return -1;
} else { } else {

View File

@ -17,11 +17,12 @@ Chapter 1: core tech
- IO and threadpool - IO and threadpool
- logging task - logging task
- Allocations and memory pooling - Allocations and memory pooling
- tracy and performance profiling - performance profiling
Chapter 2: graphics Chapter 2: graphics
- slang shader compiler - GL Backend
- runtime reflection - runtime reflection
- renderer api - gpu-one renderer api
- gameplay scripting
Chapter 3: Game 1 - Cognesia