TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I asked ChatGPT to write a pf.conf to spec

17 pointsby cjgalmost 2 years ago

4 comments

williamcottonalmost 2 years ago
The author is not aware that GPT-3.5 does not look up information from HTTP links.<p>They should try again but with GPT-4 and manually pasting in the man pages.
评论 #36228408 未加载
jupedalmost 2 years ago
Yeah, I think pf.conf might be beyond it.<p>It can perform simple translation tasks; I&#x27;ve had success getting it to output graphviz dot format. But writing that pf.conf requires a (simple) mental model, where it&#x27;s approaching it as a translation task: one pf.conf section for each line given, translated semi-plausibly.
Zetobalalmost 2 years ago
&quot;A be concise&quot; and &quot;document every step.&quot; in the prompt did the trick for me.
dt2malmost 2 years ago
Give LLMs five more years and this won&#x27;t be an issue. The fact that it even gets close is seriously impressive.<p>For people like me who aren&#x27;t sysadmins, but simply have to do maintenance tasks on VPSes from time to time, something like this would be a godsend.