Skip to content

Comment on Making a Python interpreter in 1024 bytes

Comments

The author lost me right away.

> I started with the most basic code I could think of: 1 + 2

OK, how did you fit that into 512/1024 bytes??? Did you try print(3 * * 1000)?

It's not real Python. It's essentially a made-up language that resembles a subset of Python.

That said, if I was building a small ugly toy Python implementation, I would probably also not implement long integers. Or the power operator. At least not in the first iteration.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.