frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Go, PET, Let Hen - Curious adventures in (Commodore) BASIC tokenizing

https://www.masswerk.at/nowgobang/2025/go-pet-let-hen
14•masswerk•5h ago

Comments

OhMeadhbh•2h ago
This takes me back a few years. I spent HOURS writing BASIC programs to analyze other BASIC programs as a kid. My favourite PET trick was to hide the basic source by putting a comment (REM statement) at the beginning and end of the program. Then POKEing the address of the ending comment in the "next line" link in the first line. It turns out that when the interpreter was running the program, it didn't use the "next line" link, it just assumed the bytes following the current line were the beginning of the next line. But the LIST command //did// use the link. So you could get a program to run perfectly fine, but when someone did a LIST, the only thing they saw were the two comments.

I can't remember if this worked on the C64, but it worked on the 4016 and 4032's in our high school's computer lab.

jim_lawless•33m ago
You could do similar things on a C64 and other computers. You might try this out on a C64 emulator such as VICE.

10 REM NOTHING TO SEE HERE

20 PRINT "HELLO!"

POKE 2049,1

Run it. You'll see HELLO! LIST it and you'll continuously see line 10. If you try to LIST 20 the machine pretty much locks up.

Screen image is here:

https://jimlawless.net/images/remtrick.gif

(note that in the above image, you'll see two RUN lines ... it appears that I captured the screen as it was in mid-scroll... )

jklowden•21m ago
Why do I remember that every C64 BASIC keyword was a 2-byte integer? A typing shortcut was to enter the first letter, followed by a "shifted" high-bit character. Every keyword was represented that way.

Variables were also 2-bytes, but ASCII. The user could enter a longer name, but only the first two characters were significant.

DuckLake v0.2

https://duckdb.org/2025/07/04/ducklake-02.html
1•tanelpoder•17s ago•0 comments

How the Pacific got its bend (2017)

https://www.mn.uio.no/geo/english/about/news-and-events/news/from-the-archive/2017/bend-in-the-pacific.html
1•kensey•1m ago•1 comments

The job juggler the tech world can't stop talking about speaks out

https://www.businessinsider.com/soham-parekh-tech-world-abuzz-worked-multiple-startups-simultaneously-overemployed-2025-7
1•acmeian•1m ago•0 comments

How to Search for Theorems in Lean 4

https://lakesare.brick.do/how-to-search-for-theorems-in-lean-4-WXebAQkXVmx1
2•lakesare•4m ago•0 comments

Ask HN: Is Labelling AI Output as AI-Slop Just AI-Phobia?

1•franze•5m ago•0 comments

European Cloud Modules

https://berthub.eu/articles/posts/european-cloud-modules/
1•Sami_Lehtinen•9m ago•0 comments

Financial 'stretch' for UK to join Europe's Starlink rival, says minister

https://www.theregister.com/2025/07/05/uk_budget_to_join_iris_not_there/
1•rntn•14m ago•0 comments

The biggest health transformation in US history might start at Dollar General?

https://foodishealth.substack.com/p/futurecast-heartland-mart-how-a-dollar
2•jcarterwil•15m ago•2 comments

Wikipedia is no longer up to date and contains many errors (German, Paywall)

https://www.faz.net/aktuell/wirtschaft/wikipedia-ist-nicht-mehr-aktuell-und-hat-viele-fehler-110575350.html
1•doener•16m ago•1 comments

The Peculiar and Biting Calvin Coolidge Wit

https://newenglandhistoricalsociety.com/the-mordant-humor-of-calvin-coolidge/
1•Y_Y•16m ago•0 comments

Planned Obsolescence

https://forum.hearingtracker.com/t/planned-obsolescence/104884
1•madspindel•19m ago•0 comments

Windows 11 Notepad's rich text formatting (Markdown) is now available

https://www.windowslatest.com/2025/07/02/windows-11-notepads-rich-text-formatting-markdown-is-now-available/
1•ksec•19m ago•1 comments

Ask HN: Requests for Software – have something you want built?

2•NewUser76312•20m ago•0 comments

How U.S. Tourists Are Dealing with a New Animosity Overseas

https://www.wsj.com/lifestyle/travel/american-international-travel-tips-0a70af73
4•bookofjoe•20m ago•1 comments

Software Engineering Teams Need an AI Maturity Model

https://github.com/Gigacore/AI-Maturity-Model
1•Gigacore•21m ago•0 comments

Show HN: Intentflow – YAML-based UX engine with flags, tooltips, and LLM routing

https://github.com/mixpeek/intentflow
1•Beefin•21m ago•0 comments

Mobotoys – Museum of Battery Operated Toys

https://www.mobotoys.org/home
1•Tomte•23m ago•0 comments

How Can AirPods Be Tracked Without GPS?

1•ghttp•24m ago•1 comments

Heart attacks aren't as fatal as they used to be

https://www.vox.com/future-perfect/418849/heart-attack-deaths-cardiovascular-disease-progress-medicine
3•lr0•24m ago•0 comments

Comet 3I/Atlas

https://science.nasa.gov/solar-system/comets/3i-atlas/
1•tanelpoder•25m ago•1 comments

macOS Icon History

https://basicappleguy.com/basicappleblog/macos-icon-history
2•ksec•26m ago•0 comments

The Most Powerful Medium Has No Rulebook

https://thereader.mitpress.mit.edu/the-most-powerful-medium-has-no-rulebook/
1•EA-3167•28m ago•0 comments

Eumetsat Data Store

https://data.eumetsat.int/search?query=
1•doener•28m ago•0 comments

Words to Avoid: AI

https://www.gnu.org/philosophy/words-to-avoid.html#ArtificialIntelligence
2•lr0•29m ago•0 comments

New Versions of HercPrt and HercGUI Released – SoftDevLabs

http://www.softdevlabs.com/news.html
1•rbanffy•30m ago•0 comments

The Revolution Will Be Cognitive – By Caroline Orr Bueno

https://weaponizedspaces.substack.com/p/the-revolution-will-be-cognitive
2•rbanffy•32m ago•0 comments

Underwater archaeologist reveals the stories behind haunting shipwrecks

https://www.cbsnews.com/news/underwater-archaeologist-james-delgado-stories-behind-historys-most-haunting-shipwrecks/
1•Brajeshwar•33m ago•0 comments

CVEs in Bluetooth Headphones and Earbuds

https://insinuator.net/2025/06/airoha-bluetooth-security-vulnerabilities/
1•n_plus_1_acc•34m ago•0 comments

Inside a Utah desert facility preparing humans for life on Mars

https://www.cnbc.com/2025/07/05/utah-mars-desert-research.html
1•pseudolus•34m ago•0 comments

New synthetic polymer is light, hard and kills viruses

https://www.heise.de/en/news/New-synthetic-polymer-is-light-very-hard-and-kills-viruses-10474503.html
1•doener•35m ago•0 comments