Skip to content

Instantly share code, notes, and snippets.

View fire's full-sized avatar

K. S. Ernest (iFire) Lee fire

View GitHub Profile

GDScript Feature Implementation Status

Based on commit 3e901f6d30e6b50f56686c8cc09bd1319050423a (GDScript-to-RISC-V compiler), this document provides an exhaustive list of GDScript features and their implementation status.

Priority List (Features to Implement)

Features are prioritized by importance, impact, and implementation difficulty. Higher priority features should be implemented first.

⚠️ Important Note: Before adding new language features, the register allocation system needs significant improvements. The current implementation doesn't properly save registers on the stack and isn't register-aware. This foundational issue should be addressed first to avoid technical debt.

type description
Always
The Principle

Plan Trajectories, Judgment, Then Act Pattern

The Principle

For complex architectural or refactoring tasks in umbrella projects, systematically generate multiple implementation trajectories, provide objective judgment criteria, and execute only the user-selected path. This ensures comprehensive exploration while maintaining focused, efficient implementation. The core planning engine remains timeless by avoiding premature commitment to specific use cases; trajectories separate generic capabilities from domain-specific extensions.

@fire
fire / grpo_demo.py
Created February 1, 2025 02:57 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset

Comparing a Planner (like GTPyhop) to a Behavior Tree

GTPyhop is a planning framework based on Hierarchical Task Networks (HTNs). It focuses on decomposing high-level goals into smaller, actionable tasks dynamically, similar to how a planner works. Here's a comparison between GTPyhop and a behavior tree, explained using an example of an AI interacting with a chair in a game.


GTPyhop (Planner)

GTPyhop starts with a high-level goal (e.g., "make the room secure") and breaks it into subtasks. It dynamically evaluates how to achieve those goals based on the current state of the game.

Example with a Chair:

extends Node
# Generate a synthetic audio stream
func generate_test_stream(sample_rate: int = 48000, duration: float = 5.0) -> AudioStreamGenerator:
var generator = AudioStreamGenerator.new()
generator.mix_rate = sample_rate
var playback = AudioStreamGeneratorPlayback.new(generator)
var t = 0.0
while t < duration:
% ./bin/godot.macos.editor.double.arm64 --test -tc="[JSON][Native][SceneTree]*"
[doctest] doctest version is "2.4.11"
[doctest] run with "--help" for options
ERROR: Parameter "obj" is null.
at: get_property_list (core/variant/variant_setget.cpp:1297)
ERROR: Parameter "obj" is null.
at: get_property_list (core/variant/variant_setget.cpp:1297)
ERROR: Parameter "obj" is null.
at: get_property_list (core/variant/variant_setget.cpp:1297)
ERROR: Parameter "obj" is null.

Verifying GitHub Attestations with Sigstore

GitHub's attestations are Sigstore bundles under the hood. You can verify them using any Sigstore client. Here are a few options that support verifying GitHub attestations:

Using sigstore-python

@fire
fire / test.md
Created January 22, 2024 03:06
Proposed: Overcoming a V-Sekai limit with Documentation

Proposed: Overcoming a V-Sekai limit with Documentation

Metadata

  • Status: Proposed
  • Deciders: V-Sekai
  • Tags: V-Sekai

The Backdrop

@fire
fire / install.cmd
Last active December 31, 2023 07:19
Install the latest commands for Windows 11.
scoop install git
scoop update
scoop install sudo
scoop bucket add extras
scoop bucket add games
scoop bucket add java
scoop bucket add dorado https://github.com/chawyehsu/dorado
sudo scoop install https://gist.githubusercontent.com/fire/49648c067a79bfb9c6b41c324b5d44ba/raw/5afb90a1656c09794111766718436194bd8ecb92/listOfApps.json
clink autorun install
scoop uninstall listOfApps
[00:00.000 -> 00:04.080] First of all, thank you very much, TJ and
[00:02.000 -> 00:06.240] François, to give this opportunity.
[00:04.080 -> 00:08.960] My name is Kristof. I am the principal
[00:06.240 -> 00:10.480] technical artist at Remedy Entertainment,
[00:08.960 -> 00:12.560] and today we're going to talk about how
[00:10.480 -> 00:14.320] we're using USD in our next generation
[00:12.560 -> 00:15.520] game development pipelines.
[00:14.320 -> 00:17.040] I will be presenting today's
[00:15.520 -> 00:18.960] presentation, but our director of
[00:17.040 -> 00:20.480] technology, Mika Vähkala, is also in this