Hacker Newsnew | past | comments | ask | show | jobs | submit | coolius's commentslogin

I wonder if your friend would have been more successful by removing "don't change their face" from the prompt


A lot of models required exactly that. But I imagine it varies from model to model.


sounds like a security disaster just waiting to happen


Done well, not really. As I said, it is not that hard and not that big, a thousand lines of code maybe, maybe two or three if you support a few extensions. There are some footguns, but most of them related to reading the documentation of system calls carefully. And we are in the age of LLMs, and LLMs are very good at noticing edge cases you forgot, especially if you didn't vibe-code the thing in the fist place. That's in addition to traditional tools, such as sanitizers, linters, and fuzzers.

What you gain by rolling your own instead of using a battle tested solution is a reduced attack surface. For example, an off-the-shelf HTTP server may be tricked into revealing the content of a file the user should not have access to, but if your custom server doesn't read files at all (you don't even make a open()) because everything is in RAM, or hardcoded in the executable itself, then such a vulnerability cannot exist. You may also decide to allocate most of your memory statically, because you know in advance how much you will need, and doing that, eliminate an entire class of potential vulnerabilities. An off-the-shelf HTTP server doesn't have this luxury.

And with one less dependency, you are also less vulnerable to supply chain attacks.


OP is also deploying on openbsd. With pledge(), they can easily lock down the cgi in terms of syscalls it can make and files it can see.


Also this pattern of every point being presented in two phrases saying the same thing always makes me take the points less seriously.


plus the ad nauseum repetition of details that no one cares about.


This is going to come very handy for development of CodeBrew, my Java IDE for iPhone/iPad. It runs a full OpenJ9 JVM under the hood, and I had to do a bunch off massaging with the options to get it to run properly. I wish I had known this page sooner!

For anyone intered, here's the app:

https://apps.apple.com/app/apple-store/id6475267297?pt=11914...


i feel what would be missing is shareful-upvote, to let agents confirm that a solution worked, maybe even with some context. What do you think?


i wish someone could deploy this somewhere so we can try it out without having to build it first


+1 if you are vibe coding projects from scratch. if the architecture you specify doesn't make sense, the llm will start struggling, the only way out of their misery is mocking tests. the good thing is that a complete rewrite with proper architecture and lessons learned is now totally affordable.


I think the best thing about LLMs is how incredibly easy they make it to build one to throw away.

I've definitely built the same thing a few times, getting incrementally better designs each time.


if more apps were written in native swift we wouldn't be having any memory issues


here's an iOS shortcut that automates the process: https://www.icloud.com/shortcuts/81c670b532e340e38a35cc62e3e...


whatever they've been cooking at deepseek, i don't think i'm going to let their coding agent run shell stuff on my computer unless they make it free or something


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: