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

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

Joined March 2023
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
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
You can also ask the VSCode plugin to generate new test cases for your imaginary function. Since GPT understands what the function is supposed to do, it can come up with some pretty good tests for it. 2/
1
68
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
Excited to be presenting Imaginary Programming at the generative AI meetup at @HelloPaperspace tonight!
1
6
304
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
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
How about implementing a context- and usage-aware spellchecker with just a 6 line comment and one line function declaration?
1
1
5
337
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 @utopiah
I haven't. I'll check it out!
1
2
There's also an online playground where folks can define imaginary functions and see how they work with test inputs: playground.imaginary.dev/#
11
Replying to @karpathy
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
Replying to @BlackHC
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
Replying to @alex
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
Replying to @loicknuchel
If you wanna try the idea with JavaScript, we have an online playground that implements the same idea: playground.imaginary.dev/
3
If you (or Copilot) can write debuggable, deterministic code, that's probably the best choice! 2/2
19