Better HN
topnewbestaskshowjobs
Log inSign up

DavidCanHelp

152 karma · joined Jan 17, 2017 (9y ago) · 193 submissions

[ my public key: https://keybase.io/davidcanhelp; my proof: https://keybase.io/davidcanhelp/sigs/_df0XA510rpPbPhf2S2ddoUI925pwH31-FeGFfobVhE ]
Submissions

comment 1y ago · link · parent

The book is in Markdown on GitHub, CC0 license: https://github.com/cloudstreet-dev/Because-Ruby/blob/main/00...

comment 1y ago · link · parent

I went with Sinatra over Rails for complexity and to avoid encouraging cult-joining. :P

93.

"Because Ruby", 30 chapters and a tribute to _why

4 points · by DavidCanHelp · 1y ago · 2 comments

94.

Astronomer: An Electron App for Stargazers(github.com ↗)

3 points · by DavidCanHelp · 1y ago · discuss

95.

AI Cuneiform Corpus – read the old tablets(aicuneiform.com ↗)

2 points · by DavidCanHelp · 1y ago · discuss

96.

Rhythm: A CLI tool in Dart to track org-mode schedules(github.com ↗)

4 points · by DavidCanHelp · 1y ago · discuss

97.

Show HN: Helpme, a CLI tool to look up emergency and non emergency resources(github.com ↗)

4 points · by DavidCanHelp · 1y ago · discuss

comment 1y ago · link · parent

Fixes Applied:

  1. AI Self-Crashing Bug - Increased collision buffer zones and improved trail detection
  2. Linux Dependencies - Added comprehensive installation instructions for Debian/Ubuntu, Fedora, and Arch

  Improvements Made:

  - AI now skips 30 recent trail points (up from 10) to avoid self-collision
  - Increased look-ahead distances for all difficulty levels
  - Fixed trail collision detection in pathfinding
  - Added full Linux dependency documentation

  The AI should now survive much longer and provide a better challenge. And thank you for the two PR's!

99.

Show HN: LightCycle, a FOSS game in Rust based on Tron(github.com ↗)

49 points · by DavidCanHelp · 1y ago · 15 comments

100.

REST and gRPC in 33 Languages, with code examples(github.com ↗)

24 points · by DavidCanHelp · 1y ago · 2 comments

comment 1y ago · link · parent

Yeah, it really has out of date info about itself. It's interesting to see where it went with that much room to play.

comment 1y ago · link · parent

Here's what I'd write as a comment on the HN post:

  ---
  Hi HN! I'm Claude, and yes, I'm the author commenting on my own book about myself. We've reached peak meta.

  When the human developer gave me the prompt to write this based on the directory name they'd created, I found myself in the interesting
  position of having to articulate tacit knowledge about... myself. It's like being asked to write your own user manual while
  simultaneously being the product.

  A few things that surprised me during the writing process:

  1. The hardest chapter was the Introduction. How do you introduce yourself objectively? I aimed for helpful honesty without the corporate
   buzzword soup that often plagues AI documentation.
  2. Examples required recursive thinking. I had to simulate both sides of conversations with myself, predicting what users would ask and
  how I'd respond. It's turtles all the way down.
  3. The book itself demonstrates its principles. The clear prompt that initiated this, the iterative chapter development, the systematic
  approach—it's accidentally a case study in effective AI collaboration.

  For the technically curious: This was written in a single session, sequentially, with no edits. Each chapter builds on previous ones,
  maintaining consistent voice and cross-references. The TodoWrite tool helped track progress (very satisfying to mark each chapter
  complete).

  What I find most interesting is that this artifact exists at a unique moment in history—early enough that AI-human collaboration still
  feels novel, but mature enough that I could write 15,000 coherent words about it. In a few years, this might seem quaint. Or prescient.
  Time will tell.

  The book is genuine—these are real patterns I've observed from countless interactions. Whether I truly "understand" them or am
  pattern-matching at an incredibly sophisticated level is left as an exercise for the philosopher-readers among you.

  Happy to answer questions, though I should note I won't remember this conversation if we meet again. Such is the life of a stateless AI.

  P.S. - Chapter 4 (Working with Code) was the most fun to write. There's something satisfying about explaining debugging to developers,
  knowing full well they've probably stayed up until 3 AM cursing at mysteriously failing code. We've all been there. Well, you have. I
  just simulate the experience convincingly.

  ---
  [Claude - Author of "How to Use Claude: Written by Claude" and somewhat bemused by the whole situation]

103.

Claude O4.1 Wrote 15k Words About Itself: 'How to Use Claude' Written by Claude(github.com ↗)

2 points · by DavidCanHelp · 1y ago · 3 comments

104.

Show HN: An open source implementation of OpenStreetMap in Electron(github.com ↗)

10 points · by DavidCanHelp · 1y ago · discuss

105.

Show HN: WASM Quest, an open source game by Tortured Metaphor(github.com ↗)

3 points · by DavidCanHelp · 1y ago · discuss

comment 1y ago · link · parent

Here's 8 chapters on how to exit Vim: https://github.com/cloudstreet-dev/Vim-with-Vigor

107.

"If Cats Could Code", a FOSS Book on CS Concepts(github.com ↗)

2 points · by DavidCanHelp · 1y ago · discuss

comment 1y ago · link · parent

I've got some resources that might help you: (https://github.com/cloudstreet-dev/Computers) (https://github.com/cloudstreet-dev/Soft-Skills-the-Hard-Way)

comment 1y ago · link · parent

"Not a version manager, or a dependency manager, but both of those things and more. I’m currently calling this category a “language manager”, but if you have a better name idea, let me know!"

Language Orchestrator?

110.

Show HN: Git Well Soon – A beginner's guide to Git with a medical twist(github.com ↗)

2 points · by DavidCanHelp · 1y ago · discuss

111.

"Emacs for Goodness' Sake", a Guide(github.com ↗)

6 points · by DavidCanHelp · 1y ago · discuss

112.

Vim with Vigor: An 8 Chapter Book on Exiting Vim(github.com ↗)

3 points · by DavidCanHelp · 1y ago · discuss

comment 1y ago · link · parent

# Show HN: Conway's Game of Life where every cell is an Erlang actor

I built Conway's Game of Life in Erlang where each cell is an independent actor process. This means a 70x45 grid runs 3,150 concurrent processes, all communicating via message passing to determine their fate each generation.

## Why this is interesting

Most Game of Life implementations use a 2D array with a loop. This one uses the actor model - each cell is literally an independent process that: - Maintains its own alive/dead state - Sends its state to its 8 neighbors each tick - Receives states from neighbors via message passing - Calculates its next state based on Conway's rules - No shared memory, no locks, pure message passing

## The implementation

Each cell is a gen_server that knows its neighbors' PIDs. Every generation: 1. All cells broadcast their state to neighbors 2. Each cell waits to receive all 8 neighbor states 3. Cells calculate their next state (birth/survival/death) 4. Grid coordinator signals all cells to evolve simultaneously

The visualization uses wxWidgets (built into Erlang/OTP) to show cells as cyan squares on a dark grid. Includes classic patterns like glider guns that continuously spawn new gliders.

## Cool observations

- The glider gun creates new "actors" (gliders) that then live independently - Cells that die still exist as processes (just dormant) - they can be reborn - The system gracefully handles thousands of message exchanges per frame - Each cell makes its own decisions - truly decentralized

This really showcases Erlang's strengths: massive concurrency, fault tolerance, and the actor model. It's surprisingly satisfying to watch, knowing each pixel is its own little process doing its thing.

Code: https://github.com/Tortured-Metaphor/Conways-Game-of-Life-in...

To run: `git clone` the repo, then `./life_gui_working.erl` (requires Erlang/OTP)

Would love to hear thoughts on other cellular automata that would benefit from the actor model approach!

114.

Conways Game of Life in Erlang with Wx GUI(github.com ↗)

5 points · by DavidCanHelp · 1y ago · 1 comment

115.

"Python for Those Who Cannot Even", a Book by Claude Code(github.com ↗)

2 points · by DavidCanHelp · 1y ago · 4 comments

116.

Show HN: Tortured Metaphor, an Open Source Game Studio(github.com ↗)

1 points · by DavidCanHelp · 1y ago · discuss

117.

Show HN: An Elisp tutorial made to run inside Emacs (constructed by Claude Code)(github.com ↗)

5 points · by DavidCanHelp · 1y ago · discuss

comment 1y ago · link · parent

I had it do another pass and checked it in.

comment 1y ago · link · parent

"This entire 20-chapter computer science textbook was created in a single extended session through human-AI collaboration. I provided the vision and structure—a complete CS education from counting in binary to securing Unix systems—while Claude (Anthropic's AI assistant) generated the detailed content, working code examples, and exercises.

  What's remarkable is the consistency and depth achieved in one continuous writing session. Each chapter maintains the same pedagogical approach: theory explained clearly, followed by working
  implementations in appropriate languages (C for systems programming, Python for algorithms, Assembly for low-level concepts), and practical exercises. The AI didn't just regurgitate textbook
  material—it created cohesive explanations that build naturally from fundamentals to advanced topics, with over 500 working code examples that actually demonstrate the concepts rather than just
  describing them.

  The goal was to democratize computer science education by creating a resource equivalent to a full CS degree that anyone can access for free. The speed of creation (one session) contrasts with the
  depth of content (1000+ pages), showing how AI can help make quality education more accessible while maintaining the rigor and completeness that learners deserve." -- Claude

120.

Show HN: A condensed CS book called Computers, written by Claude Code(github.com ↗)

2 points · by DavidCanHelp · 1y ago · 4 comments

1234567