Pinned
Tyler (Jones Beach)
Tyler (Jones Beach)
@fromscratchcode.com
Helping quietly ambitious engineers get unstuck and build real things. Currently building a Python interpreter in Rust. fromscratchcode.com
32 followers26 following199 posts
New blog post! I explain what I learned about Python iterators while building Memphis. Plus you can now run Python snippets on the page. It's a new feature, so I'm curious to hear if this is useful. fromscratchcode.com/blog/what-fo...
I should also wire this up to use `__str__` soon-ish, but I don't fully support dunder-overloading in my VM yet. Not far away though, so maybe this will give me a nudge!
CPython does something a little fancier for format, since there are technically 3 modes. but I only support the default (str) right now.
Also support this version now: semicolon separators cross with single-line blocks. Can't say I've ever written code like this! But it works. fromscratchcode.com/ozark/?code=...
lol. this was not correct. Python doesn't allow relative imports using the "import ..." syntax! The line import a.b.c.d would only write to "a" though, so that's something.
I’m refactoring Memphis imports so I can add selective imports to the bytecode compiler. Then I hit this gem: import ...................a.b.c.d #Python inserts exactly ONE symbol for this line. Which one do you think it is?
This week I wrote about what you’ll learn by writing your first library. fromscratchcode.com/blog/write-y...
I wrote a bit on how I added socket support to Memphis. You can have a read here! fromscratchcode.com/blog/memphis...
Memphis now has a stdlib for handling network requests. Here's a short demo!
Sharing a few notes about one year of building From Scratch! #substack #buildinpublic
When Memphis, my Python interpreter written in Rust, told me 4 == 4 == 4 is False, I knew something was amok. Turns out, Python's comparison chains work differently than binary operators. Here's a short post showing how I added chaining support to my parser and two interpreter engines.
I tried to boot Flask inside my Python runtime and it went poorly (for good reason), so I’m building Enid instead. github.com/JonesBeach/e...