Loading video...

Video Failed to Load

Go Home

colf has launched! compete by solving 10 coding challenges where you generate the code solution with prompts. you win by having the least amount of tokens in your prompt and code try it out at colf​.dev

183,715 views • 1 year ago •via X (Twitter)

59 Comments

eric zakariasson's profile picture
eric zakariasson1 year ago

i built this to make it easier to understand how prompting and code generation work under the hood. once you see how tokens map to code, you start to build intuition and can hopefully use it to write more performant prompt! available at

eric zakariasson's profile picture
eric zakariasson1 year ago

here's how it works 1.write your prompt & see the token count update as you type generate to send the prompt to the model and watch it stream code into the viewer 3.tests run automatically to verify solution 4.submit & see how you rank on the leaderboard

eric zakariasson's profile picture
eric zakariasson1 year ago

let me know what you think and send any feedback you have!

John's profile picture
John1 year ago

I've reached #1 on the whole site and most of the individual leaderboards, but I'm pretty confident a <700 total is possible. I suspect a few people on the individual leaderboards have figured out the current 'meta' and will land <800 total on all 10 pretty soon.

eric zakariasson's profile picture
eric zakariasson1 year ago

nice. the token ratio says a lot haha

John's profile picture
John1 year ago

Humans win for now

eric zakariasson's profile picture
eric zakariasson1 year ago

ok i checked your submissions, well played sir

John's profile picture
John1 year ago

Thanks! For most of them I'm pretty confident there's a more elegant and more interesting shorter solution but I wanted to sprint to 10/10 #1 first before refining Not proud of the regex one... yet

dmnk's profile picture
dmnk1 year ago

@ericzakariasson Well played, as soon as I saw the token ratio I got a bit sad Using the LLM as an autocomplete seems to be meta but should be discouraged with a similarity score or something punishing overlap Thoughts? Would love to see a 5 token prompt finish even if code is inefficient

John's profile picture
John1 year ago

@ericzakariasson I agree to some extent which is why I asked @ericzakariasson to add a prompts-only leaderboard earlier today - which he did (impressively fast btw) If you go to the global leaderboard -> full leaderboard, there's a link to it near the top. More interesting results & I'm not #1

sui's profile picture
sui1 year ago

i thought bro launched a coin 😭

eric zakariasson's profile picture
eric zakariasson1 year ago

lmao

Pietro Schirano's profile picture
Pietro Schirano1 year ago

Right behind you ahah I am going to try again today, this is fun!

eric zakariasson's profile picture
eric zakariasson1 year ago

haha nice! i need to put some more time into it as well

david fant's profile picture
david fant1 year ago

this nerd sniped me last night - very addictive

eric zakariasson's profile picture
eric zakariasson1 year ago

thank you for being an early tester!!

John's profile picture
John1 year ago

it would be cool if there was a leaderboard for shortest successful prompt on top of just shorted combined size

eric zakariasson's profile picture
eric zakariasson1 year ago

mm good idea can add that

Michael Feldstein's profile picture
Michael Feldstein1 year ago

colf

eric zakariasson's profile picture
eric zakariasson1 year ago

can i see a hole in one?

johan's profile picture
johan1 year ago

addictive!

Noah Hirschfield's profile picture
Noah Hirschfield1 year ago

cool idea, good learning #11 on lru cache

eric zakariasson's profile picture
eric zakariasson1 year ago

let's go!

Ian Nuttall's profile picture
Ian Nuttall1 year ago

So good!

eric zakariasson's profile picture
eric zakariasson1 year ago

thank you!!

Andrew's profile picture
Andrew1 year ago

I had this exact idea and never got around to it haha. Are you interested in

strwb's profile picture
strwb1 year ago

I ACTUALLY LOVE IT 😭

eric zakariasson's profile picture
eric zakariasson1 year ago

thanks 🍓

sasuke⚡420's profile picture
sasuke⚡4201 year ago

hello, the prompt length leaderboard should perhaps aggregate by users' shortest successful prompts

eric zakariasson's profile picture
eric zakariasson1 year ago

its aggregating prompt length of best submissions!

sasuke⚡420's profile picture
sasuke⚡4201 year ago

yes, so you can make your placement worse on the prompt length leaderboard by making a better submission for the main leaderboard

sasuke⚡420's profile picture
sasuke⚡4201 year ago

ok, actually, i'm happy with 69. please do not fix it to account for my shortest submission for one problem being shorter than the one it is using.

Samuel's profile picture
Samuel1 year ago

Trying it out

Mike Thrussell's profile picture
Mike Thrussell1 year ago

Somehow I rank #57 just from copy/pasting the initial questions! Which means most people must be doing a worse job than the challenge text. Not sure what to infer from that...

Mario's profile picture
Mario1 year ago

BRING IT ON!!!!!!!!

Sanjeed's profile picture
Sanjeed1 year ago

love this one!

shujiuan's profile picture
shujiuan1 year ago

This is so cool!

sasuke⚡420's profile picture
sasuke⚡4201 year ago

what is this tokenizer that has "blanks" = 2 tokens " blanks" = 2 tokens "blank blanks" = 2 tokens

Kevin Kern's profile picture
Kevin Kern1 year ago

Thats really useful! Awesome eric

Ben Gold's profile picture
Ben Gold1 year ago

Love this concept!

Matheus's profile picture
Matheus1 year ago

This is so cool, amazing work Eric!

eric zakariasson's profile picture
eric zakariasson1 year ago

thanks for all feedback!

Cole McIntosh's profile picture
Cole McIntosh1 year ago

love this! what a great idea

Saïd Aitmbarek's profile picture
Saïd Aitmbarek1 year ago

this is quite fun :) !

Alireza Bashiri's profile picture
Alireza Bashiri1 year ago

Great product, well done.

echo.hive's profile picture
echo.hive1 year ago

How often does the leaderboard update?

Andrew Jefferson's profile picture
Andrew Jefferson1 year ago

Ahh you one shotted my reward system

eric zakariasson's profile picture
eric zakariasson1 year ago

heheh

mojo's profile picture
mojo1 year ago

in the opposite direction, when can we include long token files (150k+) into 1M context models?

Jon's profile picture
Jon1 year ago

#19 i hope to stay above top 50 by tomorrow!

eric zakariasson's profile picture
eric zakariasson1 year ago

@vibecodejon i believe in you!

Jon's profile picture
Jon1 year ago

i need a $100 plan btw

Yaya Soumah's profile picture
Yaya Soumah1 year ago

Very interesting idea!

Elliot Lindberg's profile picture
Elliot Lindberg1 year ago

LFG

Ismat Ghaatol's profile picture
Ismat Ghaatol1 year ago

@amanayb broskie

dmnk's profile picture
dmnk1 year ago

Looks amazing but it appears as if the best practice is to get the most efficient implementation and let it auto complete (given 1st being 1:1 ratio)I think there should be a diff check of prompt to result, since there is little reason to prompt something if you already got it

Raduan Al-Shedivat's profile picture
Raduan Al-Shedivat1 year ago

wait, I love this

eric zakariasson's profile picture
eric zakariasson1 year ago

<3

Jay Little's profile picture
Jay Little1 year ago

this was so much fun, thanks for making it

Related Videos