3 ms·
I appreciate the overall sentiment of the post, but I can't say I would choose anything like the implementation the author is suggesting. My takeaway is to avo
by ravenstine 3y ago
I appreciate the overall sentiment of the post, but I can't say I would choose anything like the implementation the author is suggesting.
My takeaway is to avoid relying too heavily on LLMs both in terms of the scope tasks given to them as well as relying too heavily on any specific LLM. I think this is correct for many reasons. Firstly, you probably don't want to compete directly with ChatGPT, even if you are using OpenAI under the hood, because ChatGPT will likely end up being the better tool for very abstract interaction in the long run. For instance, if you are building an app that uses OpenAI to book hotels and flights by chatting with a bot, chances are someday either ChatGPT or something by Microsoft or Google will do that and make your puny little business totally obsolete. Secondly, relying too heavily on SDKs like the OpenAI one is, in my opinion, a waste of time. You are better off with the flexibility of making direct calls to their REST API.
However, should you be adding compilers to your toolchain? IMO, any time you add a compiler, you are not only liable to add a bunch of unnecessary complexity but you're making yourself dependent upon some tool. What's particulry bad about the author's example is that it's arguably completely unnecessary for the task at hand. What's so bad about React or Svelte that you want to use a component cross-compiler? That's a cool compiler, but it sounds like a complete waste of time and another thing to learn for building web apps. I think every tool has its place, but just "add a compiler, bruh" is terrible advice for the target audience of this blog post.
IMO, the final message of the article should be to create the most efficient toolchain for what you want to achieve. Throwing tools at a task doesn't necessarily add value, nor does doing what everyone else is doing necessarily add value; and either can be counterproductive in not just working on LLM app integration but software engineering in general.
Kudos to the author for sharing their insight, though.
- reason5531 3y agoI agree with this. I do like the general points about AI in the original post but writing your own compiler doesn't seem like the best solution. Sure, it's unique and people can't just copy it but it will also be a massive amount of work to maintain it, considering all the languages it supports. For me this additional layer of abstraction does have a bit of the 'factory-factory-factory' vibe.
- fy20 3y agoSomething not explained in the article is that a big feature of Builder.io is that unlike Framer and other WYSIWYG editors, you can actually export the sites you have built as code. And you can choose what language / framework / CSS style you export the code as. I imagine they convert the Figma design into an intermediate form which is what you work with in their UI, and then when it generates code it is compiled with the options you choose.
- lamontcg 3y ago> What's particulry bad about the author's example is that it's arguably completely unnecessary for the task at hand. I entirely missed the compiler on the first read through and I don't know why so many commenters are fixated on that specifically. That wasn't what the blog post was actually about.
- goalieca 3y ago> run. For instance, if you are building an app that uses OpenAI to book hotels and flights by chatting with a bot, chances are someday either ChatGPT or something by Microsoft or Google will do that and make your puny little business totally obsolete. How many times have we been down the path of “travel website making it easy to find the best deal and book your flight”. I don’t see how AI will do it any differently and how AI won’t inevitably run into all the same constraints.
- bobsmooth 3y agoI can see the utility in being able to tell a chat bot "Get me tickets to somewhere warm sometime in October" and having it trim down the options by asking me questions. Obviously you wont get the best deal, but I can see the convenience.
- goalieca 3y agoTravel sites already have categories and they often have "escape" plans and everything.
- QkPrsMizkYvt 3y agoThis conversation sums up why HN would never ship a successful product.
- ravenstine 3y agoThe example I pulled out of my ass is imperfect, but it's not like the point of my comment was to make a pitch.
- iudqnolq 3y agoTheir advice isn't "just add a compiler, bruh". Their advice is to see how far you can get solving your problem with ordinary code, then add the most limited AI on top necessary to finish solving the problem. Their product is a tool to automatically translate a Figma design file to React code. So the ordinary code to solve the problem is a compiler. They're not telling everyone to write a compiler. Your general criticism of adding compilers doesn't make sense in this context. Their alternative would be using ChatGPT as a compiler, and they convincingly argue that'd be worse. Or are you arguing that it's bad to offer a product that generates react code?
- notahacker 3y ago> if you are building an app that uses OpenAI to book hotels and flights by chatting with a bot, chances are someday either ChatGPT or something by Microsoft or Google will do that and make your puny little business totally obsolete Think that's debatable. Firstly the same argument could apply to non-AI stuff - there are dozens of websites that do basically the same thing as Google Flights which are big businesses, and frankly "AI" gives a lot more room for specialisation than flight search. Secondly, the quality of the general language model really isn't the most important thing in a specialised task chatbot (now that baseline language parsing is good) . A travel booking chatbot that's attuned to my preferences and integrated with lots of APIs of relevant niche stuff isn't blown away by something that parses my questions slightly better but then tries to book everything through Expedia. Plus that's the sort of market where people are going to have brand loyalty or rejection of the notionally superior app because they once got a really good/bad recommendation, so I don't think it's anywhere near winner-takes-all.