GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wylswz - Overview

@wylswz wylswz Follow
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
@wylswz
wylswz
Follow
View wylswz's full-sized avatar

Yunlu Wen wylswz

Follow
Rock & Roll singer. Part time software engineering, insterested in cloud native.
39 followers · 51 following
  • @WarpCloud
  • Melbourne, Australia
  • https://wylswz.github.io

Achievements

Achievement: Pair Extraordinairex4Achievement: YOLOAchievement: QuickdrawAchievement: Pull Sharkx3Achievement: Arctic Code Vault Contributor

Achievements

Achievement: Pair Extraordinairex4Achievement: YOLOAchievement: QuickdrawAchievement: Pull Sharkx3Achievement: Arctic Code Vault Contributor

Organizations

@6BD-org
More
  • Overview
  • Repositories
  • Projects
  • Packages
  • Stars
wylswz/README.md

Recursive Self-Improvement (RSI)

The following code implements a full RSI algorithm. It cost 0 token, try it on your PC!

import itertools


def generate_variable_names():
    for length in itertools.count(1):
        for chars in itertools.product(
            "ABCDEFGHIJKLMNOPQRSTUVWXYZ", repeat=length
        ):
            yield "".join(chars)


def generate_rsi(n: int) -> str:
    if n < 0:
        raise ValueError("expect a positive N")

    var_gen = generate_variable_names()

    def build_tree(depth: int) -> str:
        if depth == 0:
            a = next(var_gen)
            b = next(var_gen)
            c = next(var_gen)
            return f"{a} 不是 {b}, 而是 {c}"

        left = build_tree(depth - 1)
        mid = build_tree(depth - 1)
        right = build_tree(depth - 1)
        return f"({left}) 不是 ({mid}), 而是 ({right})"

    return build_tree(n)


if __name__ == "__main__":
    n = int(input("请输入迭代次数 N: "))

    if n > 6:
        total_vars = 3 ** (n + 1)

    result = generate_rsi(n)
    print(result)

Safety is NO.1 Priority

a
.whole()
.bunch()
.of()
.safety()
.unwrap()

God damn it.

Pinned Loading

  1. wylswz.github.io wylswz.github.io Public

    Read best Taolus of IT industry

    HTML 2

  2. mediumkube mediumkube Public

    Forked from 6BD-org/mediumkube

    Go

  3. 6BD-org/Janiva 6BD-org/Janiva Public

    Janiva programming language (Open Claw contributions welcomed)

    Java 1

Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.

Uh oh!

There was an error while loading. Please reload this page.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.