
Artificial intelligence for frontend developers. Check it out at https://teapawt.net/t.co/xMK4T0MLGo
Joined March 2023
- Tweets58
- Following9
- Followers57
- Likes16
1/ 🚨 Excited to share what we’ve been working on: implementation-free TypeScript functions, powered by AI.
With a simple TS function declaration, frontend devs can use AI as a runtime and accomplish things they've never been able to do before.
imaginary.dev/
Hot off the presses, we are releasing a VSCode extension today that lets you test Imaginary Functions directly in VSCode. You can add test cases and run them live against GPT to see how your function is working. What's more, 1/
All of the test cases you come up with are persisted to a file that can be checked in and shared with the rest of your team. That way, when someone on your team needs to modify an imaginary function, they can easily see and run all the test cases that you created. 3/
1
71
The VSCode extension can be found by searching "Imaginary Programming" in the extensions marketplace, or by going directly there at marketplace.visualstudio.com… . Let us know what you think! 4/4
Excited to be presenting Imaginary Programming at the generative AI meetup at @HelloPaperspace tonight!
I’ve been building stuff w agents for ~3 months. Some scattered thoughts on the current agent hype:
On agent reliability:
before you get too scared or hyped about autonomous agents, try running one yourself
they have flashes of clarity and then tend to rabbit hole / get stuck / go off course. they need intense guardrails to reliably perform a task. They can be very random
They are looping computer programs that have a 5-15% failure rate every time you execute a new loop
People are assuming this will be trivial to fix but I actually think it’s quite hard because there is inherent non determinism in the LLM which is multiplied at each loop of execution
On agents seeming alarming:
agents have as much power as you give them w tools / API access, if you give them access to search the internet you’re building yourself a web scraper, which is cool, but not dangerous. If you give them REPL access, maybe they’ll run rm rf, so probably don’t do that. In general running agent-generated code without serious safety checks is not a good idea for a production app, just like you wouldn’t run random code a stranger sent you without reading it
The agent doesn’t have goals / abilities of its own beyond what’s baked into the LLM and the APIs you provide it. It’s as if you are running a python script that continues to generate as you run it. It can do what a python script w access to specific APIs can do. It does not have superpowers to do anything beyond that.
Not saying it’s not cool / exciting to see the agent programs self assemble! I like playing with them too. :)
At @imaginary_dev, we wrote an *extremely* lenient JSON parser to accomplish this. The result is that you can just declare your return type as a TypeScript type, and you get it (along with runtime type-checking).
15
How about implementing a context- and usage-aware spellchecker with just a 6 line comment and one line function declaration?
Generate titles for your blog post, with a 5 line comment and a one line function declaration. No implementation needed!
Replying to @imaginary_dev
@imaginary_dev hey have you checked CodeT and "dual execution agreement" teapawt.net/utopiah/status/1640276… might be able to leverage that too.
"dual execution agreement"📏🔄🧪
Many are now asking "is my job safe" or "should I stop learning computer science" while I, maybe naively optimistic, can't help but think "Wow... there is SO much MORE to do now!"🤩
The frontier broadens the landscape to explore, not shrink it.
1
7
Tired: write comments to prompt copilot to write code.
Wired: just write comments.
it's cleaner :D
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
We released a JavaScript/TypeScript version of this a few weeks ago for web development called "Imaginary Programming". It's shocking what you can accomplish with just a well written comment and some good function and argument names!
imaginary.dev/
1
42
There's also an online playground where folks can define imaginary functions and see how they work with test inputs: playground.imaginary.dev/#
11
Lots of LLM frameworks have emerged recently, but none have resonated with me - still rolling my own.
But! I’m most excited about this one so far - really fantastic abstraction here
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
Really interested to see some examples of real usage of this.
(Coming from someone that just spent an embarassing amount of time yelling at chatgpt-3 that it was hallucinating fake protobuf python APIs.)
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
Here's a live-coding screencast of using Imaginary Programming (a JavaScript version of the same idea) to add smart features to a blogging app: loom.com/share/b367f4863fe84…
5
A mature take on llm-strategy a few months later. Nice to see PoCs become reality. (No contributions to marvin from my side but nice to see nonetheless)
github.com/BlackHC/llm-strat…
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
It's going to be a wild ride. We launched a similar idea called Imaginary Programming in JavaScript, and we've been really blown away how well it can work: imaginary.dev/
1
9
we are getting closer
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
It is truly wild. We launched this idea for JavaScript a few weeks ago at imaginary.dev/ , and we've been really surprised how far you can take it.
4
Well, that's interesting... Would love to see how it works for real.
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
2
3
420
If you wanna try the idea with JavaScript, we have an online playground that implements the same idea: playground.imaginary.dev/
3
y’all don’t realize how absurd this is. My mind is melting
Let me explain this code:
That little code block defines a piece of code called
“Def list_fruits” which outputs a list of fruit
At the bottom you can see the code being executed, asking for a list of 3 fruits. And the output “Apple, banana, orange”
The code that performs that action is the green part!
“Generate a list of n fruits”
That is the instruction, being compiled and telling the computer what to do. The entire thing.
So I could tell it something like:
“Add two numbers” and that is valid and working code!!
I don’t write anything like “var answer = x + y”
The syntax is English! English is programming language!!
Wtffffffffffffff
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
Wanna get your mind blown more? Check out our screencast where we used Imaginary Programming (a JavaScript version of this) to add a bunch of features to an existing web app: loom.com/share/b367f4863fe84…
Been thinking about this @jsngr tweet since yesterday and hacked together a prototype using @langchain, @tailwindcss, and @nextjs
You can use it to generate a full-fledged UI with just a simple text prompt (video sped up)
All the code is open-sourced - repo link 👇
This is so good, love it. That is a legitimately dangerous dangerouslySetInnerHTML! 😄
The next step is to pair it with @AskMarvinAI to get a fully-functional app. 🤯
teapawt.net/jlowin/status/16411559…
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
1
2
1,063
If you're interested, you can check out our screencast where we add a bunch of features to a web app with imaginary programming, which is basically the JavaScript version of this idea: loom.com/share/b367f4863fe84…
This doesn’t seem like it should work, but here we are. The time between an idea and working software has never been shorter than it is right now.
🚨 DON'T PANIC.
👋 We're open-sourcing @AskMarvinAI to make it easy to build AI-powered software!
🪄 Marvin introduces AI Functions: minimalist functions with no source code that can generate typed outputs with AI.
😛 It's like no-code... in your code.
askmarvin.ai
We've been working on the same idea in JavaScript over at imaginary.dev/ , and we think the answer is that this technique is best suited to problems you couldn't solve with "normal" code. Like: come up with a good title for this blog post. 1/






















