Live data from Hacker News

Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

github.com

41–50 of 94 posts

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#41
Hey this is neat!

I was telling my friend the other day. The way you learn programming is by typing code out by hand. And I suggested using LLMs to generate minimal educational examples aligned with his interests and needs.

I've tried the Zed Shaw method to learning programming (just typing out code examples by hand -- doing "studies", the same way you would with music or art). I tested it on a programming language I had been learning for a while and was struggling with. After just a few hours of typing my fluency had skyrocketed.

I realized that in several hours of typing I had written more code than in weeks of study. Because when you don't know a language yet, producing code is extremely slow and error prone. But typing out correct code is relatively straightforward.

So due to changing my approach to "just blindly typing", I got more practice (at least as far as reading and muscle memory goes) in a few hours than the previous few weeks.

Now of course understanding is important too, but it's a separate dimension, and largely comes after memory and fluency in my experience. (Understanding something theoretically and being able to use it are two very different things!)

The general principle here is Stephen Krashen's Input Hypothesis of language acquisition (https://en.wikipedia.org/wiki/Input_hypothesis) which says a baby learns language by just hearing stuff -- just being exposed to inputs -- and that adults can learn the same way too.

And I heard it on the excellent website (now defunct?) All Japanese All The Time, where the author tested the hypothesis on himself by mostly listening to a lot of Japanese and gained fluency in a year.

https://web.archive.org/web/20080705194055/http://www.alljap...

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#42

Earlier quoted context omitted.

How do you deal with context length degradation here? The harder questions will only arrive when the context is getting full.

If you have it question you for 1M tokens (aka the full length of the Wheel of Time series), I think your own context might get full before the LLMs.

Right, even a conservative 200k context length is on the order of 200 pages, which is more than enough context to arrive at an answer.

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#43
I have been using a similar skill (built over a few iterations) that builds whatever I ask, through a series of milestones, and then creates a full tutorial to follow in markdown and uses zola to turn it into a full static site.

90% of my Claude usage is getting it to write me guides, that I can then spend most of my time following to build the end results.

Keeps the brain healthy and also provides bespoke learning, rather than a generic course off the internet. Definitely a great use of AI.

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#44
It's very cool, and I can really see myself use that, but not in that form of deliverable.

See the best place I learn and read through materials is when I'm commuting. Far away from a console.

Could you envision a way to deliver this as a web app linked to e.g. an OpenRouter/Anthropic/OpenAI API key?

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#45
post #24

Earlier quoted context omitted.

This approach works well, I agree. But I keep wishing that I could invert it. The architecture I feel like I keep yearning for, is a traditional CLI program that encodes most workflow knowledge/decisions as real code; but which does "just a little bit of coding agent invocation" during one specific workflow step. Not sure how to accomplish this. Anyone have any suggestions? Are there libraries for this yet? (And how…

I reverted this due to impending billing changes, but Claude and most LLM providers to my knowledge do offer a way to directly fire a prompt to the LLM in a "headless" or non-interactive mode. Specifically "claude -p " is the way to do it with Claude Code. It allows for using the agent to do a one-off command with a given structured prompt. Originally Lathe would use this from the Go application to allow you to exten…

That's almost it, yes.

But in my experience, to actually get where they're going quickly (as opposed to spending hours and hundreds of dollars stumbling around in the dark), coding agents generally need more interactive hand-holding than that. If you just fire off one non-interactive session and wait for it to come to a stop, the problem usually isn't fully+correctly solved at the point at the LLM decides to "finish." And if you then start another non-interactive session to continue the work, the new session will have lost the old session's state/memory/context, and so will stumble through many of the same mistakes / misapprehensions.

What you really want, for a CLI program with a "use coding agent to do X" workflow-step, is for the CLI program to play the role of a human in a temporary durable coding-agent conversation session: prompting the agent; then waiting for it to finish responding (and side-effecting); then either asking the agent itself to evaluate an "am I done yet" predicate with a constrained output syntax; or having the CLI program do its own out-of-band validation of the changes made to the shared state by the agent; where, in either case, if the agent isn't "done yet", then the workflow step must continue poking it — or prompt the human to make a decision on how to proceed (possibly involving providing direct input to the LLM, but this is not ideal; ideally the CLI "abstracts away" the need for the end-user to understand the intricacies of the conversation the program is having with the LLM. Even more ideally, the conversation just whizzes by and the human doesn't have to think about an LLM being involved at all.)

Basically, think of this not as the CLI program saying to an agent "answer me this question" or "edit this file for me", but rather, the CLI program popping open a mini "guided + 99%-of-the-time automated" TUI coding-agent micro-IDE "inside" the workflow, in about the same way that git pops open your EDITOR inside `git commit`.

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#48

There is of course a degree of true usefulness to this. However I’ve been a technical educator for years and I’ve tried to do lots with LLMs. Even now, LLMs are terrible educators. They do not make coherent progressive curriculums. They hallucinate details which the student will not have the knowledge to challenge. If you use an LLM to make a tutorial you will get some benefit for sure, especially if you use it for S…

Part of why old tech articles are so instructive, is that they tend to have 1 command or feature thats out of date. You need to then go off and figure out how to resolve the missing piece of the tutorial yourself. I see this as a likely common feature of LLMs

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#49
post #41

Hey this is neat! I was telling my friend the other day. The way you learn programming is by typing code out by hand. And I suggested using LLMs to generate minimal educational examples aligned with his interests and needs. I've tried the Zed Shaw method to learning programming (just typing out code examples by hand -- doing "studies", the same way you would with music or art). I tested it on a programming language I…

[deleted]

Re: Show HN: Lathe – Use LLMs to learn a new domain, not skip past it

#50
I think there's going to be the exact and precise range of people there has always been: some people are curious, and want/need to understand what they're doing, some people are not and just want to do. That want/need is a fundamental personality trait what makes an expert.

LLM are a dream come true for these curious types. They'll only be accelerated by them. I don't think there's any real "loss" out there, just a bunch of people that don't care boing things easier. Good for them, good for the curious people. Net win.

Post reply on HN