I built a micro web framework (Enid) on top of my own runtime and for the first time it responded to `curl localhost:8080`. And then immediately panicked. Progress!
#buildinpublic #rustlang #python
We have 3 users, all of whom are myself.
We have 3 users, all of whom are myself.
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...
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...
What time does the carriage return?
What time does the carriage return?
The first is `UNPACK_SEQUENCE n`.
The first is `UNPACK_SEQUENCE n`.
Not far away though, so maybe this will give me a nudge!
Not far away though, so maybe this will give me a nudge!
I had accidentally registered two implementations of float.__sub__, when one of them was supposed to be float.__mul__.
memphis 0.1.0 REPL (engine: treewalk) (Type 'exit()' to quit)
>>> 4.1 - 3.01
12.340999999999998
I had accidentally registered two implementations of float.__sub__, when one of them was supposed to be float.__mul__.
About 30 students attended, and we built a simple CRUD API together from scratch.
Grateful for the opportunity to be in the room!
About 30 students attended, and we built a simple CRUD API together from scratch.
Grateful for the opportunity to be in the room!
memphis 0.1.0 REPL (engine: treewalk) (Type 'exit()' to quit)
>>> 4.1 - 3.01
12.340999999999998
memphis 0.1.0 REPL (engine: treewalk) (Type 'exit()' to quit)
>>> 4.1 - 3.01
12.340999999999998
`type(4) is int`
`type(4) is int`
Found a bug that's existed for a couple years!
Found a bug that's existed for a couple years!
Below is the before and after bytecode for this Python snippet.
s = 0
for i in [2,3,11]:
s = s + i
`JUMP -7` is now `JUMP -> L0`, and `FOR_ITER 6` becomes `FOR_ITER -> L1`. No more mental offset math!
Below is the before and after bytecode for this Python snippet.
s = 0
for i in [2,3,11]:
s = s + i
`JUMP -7` is now `JUMP -> L0`, and `FOR_ITER 6` becomes `FOR_ITER -> L1`. No more mental offset math!
One must be a valid identifier and the other can do whatever it wants!
One must be a valid identifier and the other can do whatever it wants!
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.
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?
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.
fromscratchcode.com/blog/write-y...
fromscratchcode.com/blog/write-y...
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?
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?
Since I'm not sharing the details about when or where, I expect to see none of you there.
In the biz, we call this wOrD oF mOuTh.
Since I'm not sharing the details about when or where, I expect to see none of you there.
In the biz, we call this wOrD oF mOuTh.