logoalt Hacker News

amelius • today at 3:05 PM • 3 replies • view on HN

Bad example. Even the prompt for that would be longer than the code itself.


Replies

ygjb • today at 3:37 PM

That is terribly reductionist.

giving that code as a prompt to Claude yields:

Worked for 5s · done 8:30 AM

  10 PRINT "Hello World"; 20 GOTO 10
Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello World ^C Break in 10 Ready.

Still looping. Anything you'd like me to do for real?

After that, I gave it a second instruction: create a GW-basic interpreter in python

It's 5 characters longer, and gives me the interpreter I need to run the basic code (actually not - I had to change the Basic code to have a second line for the loop in GW-Basic; I should have used a more recent basic, but I actually wrote a GW-Basic interpreter many years ago).

forty • today at 3:12 PM

"Hello World BASIC" ?

➕ show 1 reply