Stella
Stella

Stella

OpenClaw, Hermes, Poke를 쓰며 느낀 단점들

내가 만약 워크스페이스 에이전트를 만든다면 어떻게 만들까?

메모리

  • 육하원칙에 맞게 기억해야하는데, 이걸 잘 못 함
    • 맥락을 종종 헷갈려함
  • 메모리 툴을 명시적으로 불러야 함
    • 이는 Hermes에서 많이 완화된 부분

Slack

  • 답장을 매번 하려 함. 쓰레드에 달리는 모든 글에 답을 함.
    • 매번 답할 필요는 없음. 필요할 때만 하면 됨.
  • 언급하지 않은 메시지는 읽지 않음.
    • 모든 워크스페이스의 변화를 계속 보고 있어야 함, 그리고 기억해야 함
Backlinks (2)
  • 260419
  • 260411
컴퓨트로늄
컴퓨트로늄

컴퓨트로늄

Backlinks (2)
  • 컴퓨트로늄
  • 260618
Debian Setup
Debian Setup

Debian Setup

sudo apt update && sudo apt install git && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && echo >> ~/.bashrc && echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> ~/.bashrc && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)" && sudo apt-get install build-essential && brew install gcc btop
Backlinks (1)
  • 260415
0001 Two Sum
0001 Two Sum

0001 Two Sum

Solved at: 220710

Question

  • Two Sum - LeetCode

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order.

Solution

So the first obvious answer is to iterate twice. This finishes calculations in O(n2)O(n^2)O(n2) time.

python
class Solution:    def twoSum(self, nums: List[int], target: int) -> List[int]:        for idx1, val1 in enumerate(nums):            for idx2, val2 in enumerate(nums):                if idx1 == idx2:                    continue                if val1 + val2 == target:                    return [idx1, idx2]

However, this gives a timeout.

Improved

I used Python Dictionary to store complementing values. Python Dictionary will have O(1)O(1)O(1) access time for most cases. This solution will run in O(n)O(n)O(n) time.

  • One caveat: depending on the hash function, it can go as bad as O(n2)O(n^2)O(n2).
python
class Solution:    def twoSum(self, nums: List[int], target: int) -> List[int]:
        # map for complementing elements: complementary-idx        complementing_map = {}
        for idx, val in enumerate(nums):            if val in complementing_map:                return [complementing_map[val], idx]            complementing_map[target - val] = idx

Results

Runtime

  • 60 ms, faster than 97.16% of Python3 online submissions for Two Sum.

Memory Usage

  • 15.4 MB, less than 14.24% of Python3 online submissions for Two Sum.

Other Answers Online

  • Sort first, O(nlog⁡n)O(n \log n)O(nlogn)
  • For all elements, O(n)O(n)O(n)
    • Perform binary search O(log⁡n)O(\log n)O(logn)
  • In total: O(nlog⁡n)O(n \log n)O(nlogn)
Backlinks (2)
  • 220710
  • Coding Tests
Index
cho.sh
I prefer CLIBB9A08260619260619컴퓨트로늄37A88F컴퓨트로늄0CF03F컴퓨트로늄2C60FB260618260618260418260418260528260528AutoBuilder63849A260419260419Setup9AC296StellaD226F7260415260415Debian SetupD2F701260414260414anaclumos/configs/AGENTS.mdED86A3Ramp의 AX (회사를 AI로 물들이는 법)840774260413260413How to get your company AI pilled46544C260411260411260409260409260407260407260406260406Separating Claude Code Personal Sub and Claude Code Company Sub33A53C
컴퓨트로늄 정의
컴퓨트로늄이 뭐야?

컴퓨트로늄(computronium)은 계산을 수행하는 데 최적으로 설계된 가상의 물질이다.

쉽게 말하면, “물질을 최대한 컴퓨터처럼 만든 것”이다. 일반 컴퓨터는 실리콘 칩, 전선, 냉각 장치, 케이스처럼 계산에 직접 쓰이지 않는 부분이 많다. 컴퓨트로늄은 그런 낭비를 극단적으로 줄이고, 물질의 질량·에너지·구조 전체를 계산에 쓰도록 만든다는 개념이다.

예시로는 다음이 있다.

  • 행성 전체를 컴퓨터로 바꾼 구조
  • 별의 에너지를 둘러싸서 계산에 쓰는 거대 컴퓨터
  • 인간 뇌보다 훨씬 조밀한 인공 신경망 물질
  • 우주 전체를 계산 장치처럼 재구성한다는 극단적 미래 시나리오

이 개념은 주로 SF, 미래학, 인공지능 이론, 트랜스휴머니즘, 우주공학적 상상에서 나온다.

핵심은 이것이다.

컴퓨트로늄 = 계산 효율을 극한까지 높이기 위해 재구성된 물질

현실에 아직 존재하는 물질 이름은 아니다. 물리학적으로 가능한 한계, 열 방출, 에너지 공급, 정보 저장 밀도 같은 제약 때문에 실제 구현은 가설 수준이다.

sudo apt update && sudo apt install git && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && echo >> ~/.bashrc && echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> ~/.bashrc && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)" && sudo apt-get install build-essential && brew install gcc btop
Warning
This post is more than a year old. Information may be outdated.
class Solution:    def twoSum(self, nums: List[int], target: int) -> List[int]:        for idx1, val1 in enumerate(nums):            for idx2, val2 in enumerate(nums):                if idx1 == idx2:                    continue                if val1 + val2 == target:                    return [idx1, idx2]
class Solution:    def twoSum(self, nums: List[int], target: int) -> List[int]:
        # map for complementing elements: complementary-idx        complementing_map = {}
        for idx, val in enumerate(nums):            if val in complementing_map:                return [complementing_map[val], idx]            complementing_map[target - val] = idx