InertiaRSS Track and read blogs, news, and tech you care about
Read Original Open in InertiaRSS

Recommended Feeds

Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
M
MIT News - Artificial intelligence
博客园 - 叶小钗
MyScale Blog
MyScale Blog
V
Visual Studio Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
I
InfoQ
有赞技术团队
有赞技术团队
阮一峰的网络日志
阮一峰的网络日志
Jina AI
Jina AI
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
博客园 - Franky

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Show HN: Flint – A 30B model fine-tuned for less repetition Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages
GitHub - lionello/han64: Handling Chinese text on the Commodore 64
lionello · 2026-05-25 · via Hacker News: Show HN

C64 GB2312 Text Renderer (han64)

A GB2312 Chinese text renderer for the Commodore 64, using 8×8 bitmap fonts with dynamic character caching.

Chabuduo rendered on C64

Scope v1 (Rendering)

  • 2501+ Simplified Chinese characters (GB2312 rows $B0-$D7)
  • 8×8 pixel bitmap font (8 bytes per glyph)
  • GB2312-encoded text display from binary files
  • Dynamic character caching (256 character slots)
  • Rank-based GB2312 → glyphID lookup
  • Offline table generation in Python
  • Runtime rendering on C64 in 6502 assembly (ACME)

Scope v1.5 (Current: multiple charsets)

  • Dual charset support (512 character slots) using raster IRQ
  • 8×7 pixel bitmap font (7 bytes per glyph) to save space

Scope v2 (Future: IME)

  • Pinyin input method with candidate selection
  • Interactive text editing
  • Cursor movement and scrolling
  • See "Future Work" section below

Core Architecture (v1)

GB2312 text file (chabuduo.bin)
  ↓
GB2312 → glyphID lookup (rank-based tables)
  ↓
Cache check (2502-byte cache array)
  ↓
Copy glyph bitmap (8×8) if not cached
  ↓
Write character code to screen RAM
  ↓
VIC-II renders using custom charset

Key Principles

  • No Unicode at runtime
  • Dense internal glyphID (0..2500)
  • GB2312 used only for I/O
  • All heavy processing offline
  • Self-modifying code for fast glyph copies

Glyph Set

Exactly 2501 Hanzi

All are:

  • GB2312 encodable
  • BMP Unicode (no UTF-16 surrogates)

Additional characters:

  • ~70 ASCII
  • 8 GB2312 punctuation/symbols (rows 1–15)

Glyph Storage

font8.bin or font7.bin (for v1.5)

Layout:

  • glyphID × 8 bytes (or 7 bytes for v1.5)
  • 1 byte per row, 8 bits used: 8×8 bitmap (or 8×7 for v1.5)

glyphID Ordering (Important)

glyphID is assigned in GB2312 row/column order

Why:

  • Simplifies GB2312 encoding/decoding
  • Enables reuse of a single glyphID → gb2312 table
  • Improves locality when rendering text
  • Avoids a second reverse-mapping table

Frequency is handled inside IME candidate ordering, not glyphID numbering.

Encoding: GB2312

  • ASCII: 0x00–0x7F (currently skipped in v1)
  • Hanzi: 2 bytes
    • hi byte (row): 0xB0–0xD7 (40 rows supported)
    • lo byte (col): 0xA1–0xFE (94 columns per row)
  • Unused / invalid: Other byte ranges
  • No BOM
  • Stateless, streaming-friendly

GB2312 is strictly an I/O format, not used for internal logic.

GB2312 Lookup Implementation

The runtime uses a rank-based encoding to compress the GB2312 → glyphID mapping:

Each row ($B0-$D7) has a table with:

  • Base glyphID (2 bytes): Starting glyphID for this row
  • Rank array (94 bytes): For each column ($A1-$FE), stores rank (0..count-1) or $FF if missing

This allows missing characters to be represented efficiently without allocating glyphIDs for unused GB2312 codes.

Runtime Tables (v1)

Generated offline via Python (tools/gb40.py).

gb40_rows.asm

Contains 40 row tables (gb_row_B0 throughgb_row_D7), each with:

!word baseGlyphID       ; 2 bytes
!byte rank[94]          ; 94 bytes: rank or $FF if missing

Referenced by pointer tables gb_row_ptr_lo and gb_row_ptr_hi in main.asm.

Character Cache

cache (2501+ bytes in main.asm)

  • Indexed by glyphID (0..2501)
  • Stores character slot (0-255) if glyph is loaded, or 0 if not cached
  • When cache fills (chrptr reaches 256), subsequent characters show as space

This limits visible unique characters to 256 at once, but allows documents with 2501+ total characters through caching.

Python Build Pipeline

Inputs:

  • gb2312_chars.txt (2501 Chinese characters with GB2312 codes)
  • Font bitmap data (8×8 bitmaps)

Outputs:

  • font8.bin (2501 × 8 bytes)
  • font7.bin (2501 × 7 bytes for v1.5)
  • gb40_rows.asm (40 row tables with rank encoding)

All tables are included in assembly using !binary and !source.

Runtime (C64 / 6502)

  • No UTF-8
  • No Unicode at runtime
  • No dynamic memory
  • All tables are read-only
  • Assembler: ACME
  • Build: acme main.asm (or see Makefile)

Rendering path (v1):

  1. Read GB2312 byte pair from text stream
  2. Lookup glyphID via GB2312_LookupGlyphID (rank-based)
  3. Check cache array indexed by glyphID
  4. If not cached, copy 8×8 bitmap via CopyGlyph8 to custom charset
  5. Write character slot to screen RAM
  6. VIC-II displays using custom charset at $3000

What This Is Not

  • Not UTF-16
  • Not Unicode runtime
  • Not dictionary-based (yet)
  • Not Traditional Chinese
  • Not GBK/GB18030 runtime (but compatible offline)

Future Work (v2 - IME)

Pinyin IME Features

  • Pinyin input method with syllable parsing
  • Initial buckets (b, p, m, f, d, t, n, l, etc. + Ø for vowel-initial)
  • Candidate selection UI
  • Phrase dictionary (2–4 chars)
  • Jianpin abbreviation mode
  • MRU learning
  • Frequency-based candidate ordering

Enhanced Rendering

  • Dual charset support (512 character slots via raster IRQ)
    • Charset1 for top half of screen
    • Charset2 for bottom half
    • Raster IRQ at row 13 (scanline 104) to switch
    • Second IRQ at row 25 (scanline 200) to switch back
  • Scrolling support (row copy + IRQ adjustment)
  • Cursor movement (color-based or dedicated glyph)
  • Interactive text editing

Data Sources

  • Unihan Database for pinyin mappings
  • SUBTLEX-CH or Jun Da for frequency data
  • UTF-8 import/export tools

Design Philosophy

  • Structure beats cleverness
  • Offline complexity, runtime simplicity
  • Encoding is not language
  • 6502 first, modern tooling second

Text Rendering (v1)

  • VIC-II text mode with custom charset
  • 40×25 characters
  • Custom charset at $3000 (bank 6)
  • Screen RAM at $0400
  • Color RAM at $D800 (currently set to light gray $0F)
  • Character limit: 256 unique glyphs on screen at once

IME Rendering (v2 - Future)

  • Top line: IME input and candidate area
  • Show max 10 candidates: ying 1英 2婴 3鹰 4应 5营 6蝇 7迎 8赢 9盈 0影
  • Next/prev page markers if >10 candidates
  • Lower 24 lines: normal text view area
  • Cursor moves in text area, not IME area