TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How we built Townie – an app that generates fullstack apps

175 点作者 stevekrouse9 个月前

10 条评论

devbent9 个月前
One problem that I run into with LLM code generation on large projects is that at some point the LLM runs into a problem it just cannot fix no matter how it is prompted. This manifest in a number of ways. Sometimes it is by bouncing back and forth between two invalid solutions while other times it is bouncing back and forth fixing one issue and while breaking something else in another part of the code.<p>Another issue with complex projects is that llms will not tell you what you don&#x27;t know. They will happily go about designing crappy code if you ask them for a crappy solution and they don&#x27;t have the ability to recommend a better path forward unless explicitly prompted.<p>That said, I had Claude generate most of a tile-based 2D pixel art rendering engine[1] for me, but again, once things got complicated I had to go and start hand fixing the code because Claude was no longer able to make improvements.<p>I&#x27;ve seen these failure modes across multiple problem domains, from CSS (alternating between two broken css styles, neither came close to fixing the issue) to backend, to rendering code (trying to get character sprites correctly on the tiles)<p>[1] <a href="https:&#x2F;&#x2F;www.generativestorytelling.ai&#x2F;town&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;www.generativestorytelling.ai&#x2F;town&#x2F;index.html</a> notice the tons of rendering artifacts. I&#x27;ve realized I&#x27;m going to need to rewrite a lot of how rendering happens to resolve them. Claude wrote 80% of the original code but by the time I&#x27;m done fixing everything maybe only 30% or so of Claude&#x27;s code will remain.
评论 #41337130 未加载
评论 #41336359 未加载
评论 #41335779 未加载
评论 #41337305 未加载
hebejebelus9 个月前
Reviving my long-dead account to say that I built a perfectly functional small site to help schedule my dungeons and dragons group within about 5 minutes, on my phone, from my bed. If this isn&#x27;t the future I don&#x27;t want to go there. Fantastic work.
评论 #41334349 未加载
评论 #41333877 未加载
anonzzzies9 个月前
Whenever there is a &#x27;big new AI model&#x27; launch, I try to build one of my side projects fully with the new AI. So I do not touch anything myself, I only talk english to it. I do read the generated code and instructions so I can correct them in English; no code at all. It worked twice; with chatgpt4 and the sonnet launch. All the others did not manage without significant code or ops help.<p>It is a very annoying experience even if you know what you are doing; it is still much faster than what you would get done writing code but it is very frustrating getting the last 10% right; you spend a day on 80%, two days on 10 and a week on the last 10%. If I just jump in and fix the code myself, it is about 1 day for the same project, which is still amazing (and not imaginable before).<p>People complaining that it sucks and it cannot figure things out often are right, however, it is a lot better than what we had before, which was doing all this by hand (causing many people to procrastinate over even starting a side project while have 1000s in mind every day).<p>These types of services are important and I like this val.town idea. Well done and keep going.
评论 #41337001 未加载
osigurdson9 个月前
LLMs are massively useful, just not in the way that people think they should work. No, you are not the manager with AI doing the work. Instead, it is more like someone to bounce ideas off of, a teacher (who is often wrong) and a reviewer. The human, ironically, is the specialist that can get details right, not AI (at least not for now).
deckiedan9 个月前
I just played with townie AI for an hour or so... Very cool! Very fun.<p>There&#x27;s still some glitches, occasionally the entire app code would get replaced by the function the LLM was trying to update. I could fix it by telling it that&#x27;s what had happened, and it would then fill everything in again... Waiting for the entire app to be rewritten each time was a bit annoying.<p>It got the initial concepts of the app very very quickly running, but then struggled with some CSS stuff, saying it would try a different approach, or apologising for missing things repeatedly...and eventually it told me it would try more radical approaches and wrote online styles... I wonder if the single file approach has limitations in that respect.<p>Very interesting, very fun to play with.<p>I&#x27;m kind of concerned for security things with LLM written apps - you can ask it to do things and it says yes, without really thinking if it&#x27;s a good idea or not.<p>But cool!<p>And anything which helps with the internet to be full of small independent quirky creative ideas, the better.
评论 #41337527 未加载
wonger_9 个月前
The author&#x27;s bit about &quot;IterateGPT&quot; reminds me of this &quot;AI in a loop&quot; post from last year: <a href="https:&#x2F;&#x2F;til.simonwillison.net&#x2F;llms&#x2F;python-react-pattern" rel="nofollow">https:&#x2F;&#x2F;til.simonwillison.net&#x2F;llms&#x2F;python-react-pattern</a><p><pre><code> prompt = &quot;&quot;&quot; You run in a loop of Thought, Action, PAUSE, Observation. At the end of the loop you output an Answer Use Thought to describe your thoughts about the question you have been asked. Use Action to run one of the actions available to you - then return PAUSE. Observation will be the result of running those actions. ...&quot;&quot;&quot; </code></pre> Seems like a really powerful technique to have LLMs act on their own feedback.
评论 #41338619 未加载
janpaul1239 个月前
Post author here! Happy to answer any questions.
thelastparadise9 个月前
Couldn&#x27;t this essentially be used as a training data generator?<p>E.g. have humans + LLMs generate a bunch of prompts that goes into <i>this</i> system, and it spits out a bunch of fully-fledged applications, which can be used to train an <i>even bigger</i> model.
syspec9 个月前
Does fullstack here mean using javascript on the backend? Is it able to generate code for other backend languages?
评论 #41333010 未加载
01HNNWZ0MV43FF9 个月前
And they can&#x27;t be self-hosted?
评论 #41334598 未加载