HNHacker News
TopNewBestAskShowJobs

cpeterso

44,304 karma · joined January 6, 2011

submissionscomments
cpeterso··on Go Naming Conventions: A Practical Guide
> Wisdom I received from, IIRC, the Perl documentation decades ago

Perl is a language renowned for being difficult to read and maintain.

cpeterso··on OpenCode – Open source AI coding agent
OpenCode's creator acknowledged that the ease of shipping has let them ship prototype features that probably weren't worth shipping and that they need to invest more time cleaning up and fixing things.

https://x.com/thdxr/status/2031377117007454421

cpeterso··on Drugwars for the TI-82/83/83 Calculators (2011)
I was curious why some expressions in the code used the character ù, such as “If Zù500”. It looks like a character encoding error, but the code presumably works correctly. ChatGPT says the byte value for ≤ in TI-BASIC is the same as ù in ANSI/Windows-1252 (0xF9).
cpeterso··on When AI writes the software, who verifies it?
Looks like LLMs also find Dafny easier to write than Lean. This study, “A benchmark for vericoding: formally verified program synthesis”, reports:

> We present and test the largest benchmark for vericoding, LLM-generation of formally verified code from formal specifications … We find vericoding success rates of 27% in Lean, 44% in Verus/Rust and 82% in Dafny using off-the-shelf LLMs.

https://arxiv.org/html/2509.22908v1

cpeterso··on "Cancel ChatGPT" movement goes mainstream after OpenAI closes deal with U.S. Dow
And they can get “too build to fail” bailouts from the US government after they are dependent on ChatGPT.
cpeterso··on I am directing the Department of War to designate Anthropic a supply-chain risk
Good PR for Anthropic: the DoD already has contracts with OpenAI and xAI, but is still so eager to use Claude that they must threaten Anthropic.
cpeterso··on Show HN: Hacker Smacker – Spot great (and terrible) HN commenters at a glance
> Version two: hide foes?

That's a good idea.

Here's my bad idea: the extension auto downvotes foes and auto upvotes friends. :)

cpeterso··on Palm OS User Interface Guidelines (2003) [pdf]
If you haven't already, check out Microsoft's "The Windows® 95 User Interface: A Case Study in Usability Engineering" report summarizing some of the Windows 95 designers' user research:

https://dl.acm.org/doi/fullHtml/10.1145/238386.238611

cpeterso··on Nearby Glasses
Can the app run on smart glasses, warning you of other smart glasses users nearby? You might not see the notification on your phone.
cpeterso··on IBM Plunges After Anthropic's Latest Update Takes on COBOL
There are a few tools to compile COBOL code to .NET without needing to rewrite in a different programming language.
cpeterso··on AI is destroying open source, and it's not even good yet [video]
GitHub recently added new repository settings to turn off pull requests or limit them to approved contributors. The announcement doesn't mention AI agents, but that's certain relevant.

https://github.com/orgs/community/discussions/187038

cpeterso··on Why is Claude an Electron app?
Or they could write native client apps using Qt to handle that “last 10%” of native app polish.
cpeterso··on Coccinelle: Source-to-source transformation tool
> So I gave up.

Try your mobile browser’s reader view mode.

cpeterso··on Lil' Fun Langs
No shift key needed for square brackets!

Curl was a proprietary Lisp that {curly brackets} and was designed in the 1990s to build web applications.

https://en.wikipedia.org/wiki/Curl_(programming_language)

cpeterso··on Windows NT/OS2 Design Workbook
> The first release of NT is planned as a workstation product that will provide a strong competitor to UN*X based workstations.

UN*X spelling for trademark reasons or a joke that UNIX is verboten at Microsoft?

cpeterso··on Matplotlib Truce and Lessons Learned
Link to discussion of the matplotlib PR: https://news.ycombinator.com/item?id=46987559
cpeterso··on The $100B megadeal between OpenAI and Nvidia is on ice
And Google and Microsoft have huge distribution advantages that OpenAI doesn’t. Google and Microsoft can add AI to their operating systems, browsers, and office apps that users are already using. OpenAI just has a website and a niche browser. To Google and Microsoft, AI is a feature, not a product.
cpeterso··on How I estimate work
I like Basecamp’s framing of software development time as management’s “appetite” for a new feature, how much time they are willing to spend on a project, as opposed to an estimate. This helps time box development and control project scope.

https://basecamp.com/shapeup/4.5-appendix-06

cpeterso··on Banned C++ features in Chromium
> using u8 prefixes would obligate us to insert casts everywhere.

Unfortunately, casting a char8_t* to char* (and then accessing the data through the char* pointer) is undefined behavior.

cpeterso··on Vibe a Guitar Pedal
I don’t have a specific recommendation, but a quick search found threads on Reddit and the Line 6 forums about generating patches with ChatGPT.
cpeterso··on Vibe a Guitar Pedal
My guitar teacher has a Line 6 HX Stomp multieffects pedal. In addition to programming effects patches use Line 6’s HX Edit desktop application, he also uses ChatGPT to generate patch files (they’re just JSON) by describing the effect or referencing a specific artist or song by name.
cpeterso··on Which AI Lies Best? A game theory classic designed by John Nash
Similar: here is a YouTube video of an amusing reverse Turing test with four LLMs and a human. To make the test more interesting, the players pose as famous historical characters (Aristotle, Mozart, da Vinci, Cleopatra, and Genghis Khan) on a train in Unity 3D.

https://youtu.be/MxTWLm9vT_o

cpeterso··on Apple picks Gemini to power Siri
I see what you mean, though I think “these models” refers to Apple’s Foundation Models, which “will be based on Google's Gemini models and cloud technology.” I guess it depends on wrist “based” means.
cpeterso··on Apple picks Gemini to power Siri
Neither Apple's nor Google's announcement says Siri will use Gemini models. Both announcements say, word for word, "Google’s technology provides the most capable foundation for Apple Foundation Models". I don't know what that means, but Apple and Google's marketing teams must have crafted that awkward wording carefully to satisfy some contractual nuance.
cpeterso··on Show HN: B-IR – An LLM-optimized programming language
If a new programming language doesn’t need to be written by humans (though should ideally still be readable for auditing), I hope people research languages that support formal methods and model checking tools. Formal methods have a reputation for being too hard or not scaling, but now we have LLMs that can write that code.

https://martin.kleppmann.com/2025/12/08/ai-formal-verificati...

cpeterso··on Ask HN: What are you working on? (Jan 2026)
The website doesn’t scroll in Safari on iOS.
cpeterso··on T-Ruby is Ruby with syntax for types
Is there an advantage for trb code to use colons for type annotations like:

  def greet(name: String): String
Instead of arrows like rbs files? Why diverge from precedent?

  def greet: (name: String) -> String
cpeterso··on Mozilla appoints new CEO Anthony Enzor-Demeo
Chromium uses the BSD license. Google could take Chromium closed source tomorrow without needing to change the license.
cpeterso··on My productivity app is a never-ending .txt file (2020)
I used Notational Velocity for years. I loved its free form approach to note taking and searching, but I needed a cross platform solution with files that could be shared using Dropbox.

https://notational.net/

I now just use three text files open in Sublime Text: todo-today.txt, todo-this-week.txt, and todo-later.txt. I review them daily and promote todos to the next file when appropriate.

cpeterso··on Scala 3 slowed us down?
Do you mean the ‘register’ keyword?
← PreviousPage 3 of 34Next →