14 Tweets Apr 14, 2023
Don’t write code often?
Been a while?
Worry no more!
Introducing the “Fuzzy Compiler” 🧮
Just make up your own code, no worrying about syntax. Translates to working code w comments.
See example 1:
As you can see, I build a Flask app simply with this:
Flask app
/
index.html
/summarize
template = “summarize the following:”
prompt = template + data
openai completion text-davinci-003
return result
run app
Works with front-end as well, see example #2 here.
It’s not quite production ready, but this could be improved on with tuning.
Zooming in here. Imagine writing code like this. And having it work.
I haven’t tested the limits but sharing because it’s more fun that way!
Try it here: fuzzy.yohei.me
Right now not storing data. Will likely take down later to fix it up a bit.
Haha just one more (example 3).
You can literally “make up” code and have it compile (in this case into Python).
Okay, got the indentation and formatting cleaned up a bit.
...I just added "use perfect formatting and indentation" to the prompt.
Ohhh look how pretty that is ✨
Added a copy button for copying the output...
...wrote the code w the Fuzzy Compiler!
Ugh copy button loses line breaks. GPT haaaalp
Just added ability to turn comments on or off.
Turn comments off if you're just using it for speed.
Use comments if you're not familiar with the language.
Right: No Comments.
Left: With Comments.
So clean!
I don't write solidity but this looks pretty good I think
Made an "Error Analyzer + Fixer" to pair with this:

Loading suggestions...