Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tveita
3 days ago
|
parent
|
context
|
favorite
| on:
Making a Python interpreter in 1024 bytes
As they say in TDD, write a test, then write the simplest code that will make it pass.
Clearly supporting multiple functions starting with 'p' would be overengineering.
help
bloppe
3 days ago
[–]
By that standard, this is totally over-engineered. Just hardcode it.
reply
fizzbuzzbarbazz
3 days ago
|
parent
[–]
Good idea. Write a python script, and then code the minimal c interpreter possible to make that specific script work, utilizing the script itself as string reference (and any other way one can manage to utilize it in the interpreter itself).
reply
EGreg
3 days ago
|
root
|
parent
[–]
Someone actually testing Kolmogorov Complexity LOL
reply
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Clearly supporting multiple functions starting with 'p' would be overengineering.