Imaginary Dev (@imaginary_dev) header
Imaginary Dev (@imaginary_dev) profile picture

Artificial intelligence for frontend developers. Check it out at https://teapawt.net/t.co/xMK4T0MLGo

Joined March 2023
Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)Photo by Imaginary Dev (@imaginary_dev)
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/
2
8
9
34
13,546
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/
1
4
9
1,513
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
Excited to be presenting Imaginary Programming at the generative AI meetup at @HelloPaperspace tonight!
1
6
304
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. :)
52
150
58
1,315
513,565
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?
1
1
5
337
The fun thing about this is that it doesn't work great with GPT-3, but with GPT-4 it's been pretty flawless, and it's especially good at finding words that are correctly spelled words but incorrectly used, like when you say "they cast there lot with the powers that be".
3
51
Generate titles for your blog post, with a 5 line comment and a one line function declaration. No implementation needed!
2
4
419
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
I haven't. I'll check it out!
1
2
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
31
66
8
686
267,927
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
5
3
2
45
15,336
Cool! Is this project open source?
1
21
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
3
1
9
2,322
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
1
1
11
2,598
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
1
2
15
4,105
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
3
2
30
5,426
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 👇
i call this the Dynamic Interface raw notes:
7
56
10
370
174,369
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
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
1
3
23
4,636
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/
1
1
90
If you (or Copilot) can write debuggable, deterministic code, that's probably the best choice! 2/2
19