frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Pasta/80 is a simple Pascal cross compiler targeting the Z80 microprocessor

https://github.com/pleumann/pasta80
99•mariuz•10h ago

Comments

benterix•8h ago
This made my heart melt:

https://github.com/pleumann/pasta80/issues/7#issuecomment-28...

ochrist•8h ago
For those that don't know it, Anders Hejlsberg is the guy behind Turbo Pascal, Delphi, J++, C# and TypeScript https://en.wikipedia.org/wiki/Anders_Hejlsberg
jacquesm•8h ago
That's like knowing that the gods are smiling down on your project.
BruceEel•2h ago
Good heavens. Comparable to getting one of those $0x1.00 cheques from Donald Knuth...
pjmlp•8h ago
This is really cool, I only managed to get a Pascal interpreter for a subset of the language as a type-in book, when I was already into PC land and naturally only kept the book as collection item.

Thanks for spoiling my upcoming weekend. :)

mati365•4h ago
Writing compilers for old CPUs has some real magic in it. It helps you see how processors really work and brings back the old days when hardware was simple and easy to understand. I miss that time. I once wrote a small C compiler in TypeScript for the Intel 8086 and 8087 ([1]), and I have huge respect for the people who coded for those chips. It’s super hard but also very rewarding.

[1] https://github.com/Mati365/ts-c-compiler

le-mark•3h ago
I think writing lexers and parsers is just fun, code generation I have not done; which is next level imo. I guess the next level after that is doing the lexing parsing and code generation on the chip. Then the need for multi pass compilation would become apparent quickly I presume!
zahlman•2h ago
> It helps you see how processors really work and brings back the old days when hardware was simple and easy to understand. I miss that time.

Just FWIW, you can still find Z80s listed for sale all over the usual e-merchants and people absolutely still design around them. It wasn't discontinued until last June, and there's an updated eZ80 design still made and sold by Zilog.

PaulHoule•40m ago
The Z-80 was one of the best compiler targets of that age, but the 8086 was even better. Everyone was amazed at the very fast Turbo Pascal compiler for the Z-80 that got ported to 8086. I had an 80286 computer and Turbo Pascal was my favorite programming language because the compiler was fast, execution was fast, and the language was extended enough that you could do most systems and applications programming in Pascal -- you could easily link assembly language procedures such as replacements for the stdlib zero and copy routines that took advantage of new instructions and wider paths to 2x those functions.
garganzol•3h ago
Pascal was the first structured high-level language I learned when I was a kid.

After I learned C and started using it, I noted that I experience five times more memory-related issues in C programs than in an equivalent Pascal code I was writing before.

During that era, Pascal had a remarkable advantage few other languages could match: it used a single-pass compiler that generated machine code as it parsed the source code. No intermediate representations or syntax trees - just a direct translation from source to machine code, all thanks to the well thought-out language syntax invented by Nicolas Wirth. That feature made Pascal compilers incredibly fast.

In turn, it allowed to tighten up a typical development cycle of the day: (edit -> compile -> run) x N times. Given typical CPU speeds of the time, it made a night and day difference. For example, given the same piece of software under development with a comparable number of lines, Turbo Pascal development cycle was about 5 seconds, while Turbo C gave you 40 seconds of a round-trip time at best.

Pascal was the right tool at the right time. Both Apple and Microsoft initially used Pascal to develop their operating systems.

When available CPUs started to become faster and faster, that particular Pascal advantage began to fade out and other languages commenced eating away its market share. Somewhere between 1986 and 1992, software houses were switching to C in flocks.

bluedino•2h ago
> After I learned C and started using it, I noted that I experience five times more memory-related issues in C programs than in an equivalent Pascal code I was writing before.

I wasted so much productive time learning/writing C for the sake of learning/writing C instead of just doing the work in Pascal back then.

Later on I had the same problem, I already knew Rails but wanted to do Python/Django just becuase.

acqq•2h ago
Another advantage of Pascal is that the programs written in it crashed much less, which also allowed for a much safe development on the machines of that time which didn't have any "memory write" protections. And safety in development actually translated in less crashy product too.
garganzol•2h ago
Pascal is very much like a managed language but without GC or borrow checker. It's not formally memory-safe, but its syntax discourages a developer from playing with fire unless it's really needed.
tasty_freeze•2h ago
I first learned programming in Wang BASIC on a Wang 2200 computer (8KB RAM!) in 1978. A year later a "Byte Shop" computer store opened up in town. I didn't have any money, but I would go by and look at the different computers on display and browse their books. While flipping throw a book on pascal, I remember being confused: is this the actual programming language, or is this pseudocode?
pjmlp•1h ago
Unfortunately it took until cyberattacks started to make an impact on companies budgets, or critical countries infrastructure, for governments and companies to finally realise there was something to programming with straightjacket (the usual criticism from C folks against Pascal back then).
luckys•1h ago
Great name. Names can be so generic but this hits the nail on the head

ChatGPT Atlas

https://chatgpt.com/atlas
118•easton•23m ago•111 comments

Neural audio codecs: how to get audio into LLMs

https://kyutai.org/next/codec-explainer
214•karimf•4h ago•70 comments

Fallout from the AWS Outage: Smart Mattresses Go Rogue and Ruin Sleep Worldwide

https://quasa.io/media/the-strangest-fallout-from-the-aws-outage-smart-mattresses-go-rogue-and-ru...
69•jerlam•50m ago•70 comments

Foreign hackers breached a US nuclear weapons plant via SharePoint flaws

https://www.csoonline.com/article/4074962/foreign-hackers-breached-a-us-nuclear-weapons-plant-via...
37•zdw•1h ago•4 comments

The Greatness of Text Adventures

https://entropicthoughts.com/the-greatness-of-text-adventures
28•ibobev•1h ago•21 comments

LLMs Can Get "Brain Rot"

https://llm-brain-rot.github.io/
97•tamnd•3h ago•42 comments

Flexport Is Hiring SDRs in Chicago

https://job-boards.greenhouse.io/flexport/jobs/5690976?gh_jid=5690976
1•thedogeye•40m ago

Public trust demands open-source voting systems

https://www.voting.works/news/public-trust-demands-open-source-voting-systems
116•philips•1h ago•76 comments

StarGrid: A Brand-New Palm OS Strategy Game in 2025

https://quarters.captaintouch.com/blog/posts/2025-10-21-stargrid-has-arrived,-a-brand-new-palm-os...
152•capitain•5h ago•26 comments

The Programmer Identity Crisis

https://hojberg.xyz/the-programmer-identity-crisis/
12•imasl42•54m ago•15 comments

Our modular, high-performance Merkle Tree library for Rust

https://github.com/bilinearlabs/rs-merkle-tree
77•bibiver•4h ago•20 comments

AI Is Making Us Work More

https://tawandamunongo.dev/posts/2025/10/ai-work-more
131•elcapithanos•2h ago•139 comments

Ilo – a Forth system running on UEFI

https://asciinema.org/a/Lbxa2w9R5IbaJqW3INqVrbX8E
77•rickcarlino•4h ago•26 comments

Katakate: Dozens of VMs per node for safe code exec: K8s+Kata+Firecracker

https://github.com/Katakate/k7
24•gbxk•2h ago•9 comments

Apple alerts exploit developer that his iPhone was targeted with gov spyware

https://techcrunch.com/2025/10/21/apple-alerts-exploit-developer-that-his-iphone-was-targeted-wit...
91•speckx•1h ago•40 comments

Diamond Thermal Conductivity: A New Era in Chip Cooling

https://spectrum.ieee.org/diamond-thermal-conductivity
102•rbanffy•6h ago•28 comments

Ask HN: Our AWS account got compromised after their outage

54•kinj28•1h ago•9 comments

The Emulator's Gambit: Executing Code from Non-Executable Memory

https://redops.at/en/blog/the-emulators-gambit-executing-code-from-non-executable-memory
9•thewavelength•4d ago•2 comments

UA 1093

https://windbornesystems.com/blog/ua-1093
164•c420•3h ago•71 comments

Do not accept terms and conditions- the game

https://www.termsandconditions.game/
6•halflife•3d ago•2 comments

AWS multiple services outage in us-east-1

https://health.aws.amazon.com/health/status?ts=20251020
2172•kondro•1d ago•1969 comments

Language Support for Marginalia Search

https://www.marginalia.nu/log/a_126_multilingual/
149•Bogdanp•10h ago•12 comments

RF Shielding History: When the FCC Cracked Down on Computers

https://tedium.co/2025/10/20/computers-fcc-rf-interference-history/
28•shortformblog•3h ago•17 comments

Weekend projects: Chicken Squisher 3000

https://lcamtuf.substack.com/p/weekend-projects-chicken-squisher
46•robinhouston•1w ago•9 comments

Show HN: Clink – Bring your own CLI Agents, Ship instantly

https://clink.new
19•aaronSong•2h ago•20 comments

Quantum dynamics on your laptop? New technique moves us closer

https://www.buffalo.edu/news/releases/2025/10/quantum-dynamics-on-your-laptop.html
50•ceolin•1w ago•16 comments

KDE Connect: Enabling communication between all your devices

https://community.kde.org/KDEConnect
321•snthd•1w ago•137 comments

Pasta/80 is a simple Pascal cross compiler targeting the Z80 microprocessor

https://github.com/pleumann/pasta80
99•mariuz•10h ago•16 comments

Show HN: I'm making a detective game built on Wikipedia

https://detective.wiki/
269•jasonsmiles•4d ago•41 comments

OpenAI Set to Challenge Google with New ChatGPT Atlas Browser

https://www.bloomberg.com/news/articles/2025-10-21/openai-set-to-challenge-google-with-new-chatgp...
14•coloneltcb•37m ago•3 comments