0:00 / 0:00

Cursor@tembrasdevposted Jun 24, 202652s

Cursor UGC showcase: “For today's software engineering interview design cursor…”

Performance

2,371× reach

20.5M views from the creator’s 8.6K followers

likes
63K
likes
comments
138
comments
shares
969
shares
saves
3.3K
saves
Estimated ad value
≈ $102.3K
est. ad value

Hook & transcript · 52s

ShowcaseTalking head
  1. 0:00For today's software engineering interview
  2. 0:01design cursor for auto complete.Hook
  3. 0:03I capture a small snippet
  4. 0:04around the user's current position in the code base.
  5. 0:06Then we make an API call, sending the data over to the back end.
  6. 0:09There we'd be running a model like composer,
  7. 0:11which would generate a suggestion
  8. 0:12which would then return to our current app.
  9. 0:14Okay, good.
  10. 0:15But that only explains a current file.
  11. 0:16What if I wanted to ask something like,
  12. 0:18where's authentication handled in this repo?
  13. 0:20Right, so in that case,
  14. 0:20we would need code based indexing.
  15. 0:22We chunk the repo into logical pieces like functions and classes
  16. 0:25using something like tree sitter.
  17. 0:26These chunks would be sent to and processed by an embedding model,
  18. 0:29which would return a vector representation
  19. 0:30capturing the code's meaning.
  20. 0:32Then we'd set the embeddings and chunk metadata to a vector database
  21. 0:35like Turbo Puffer. But code bases constantly change,
  22. 0:37so how do you keep up with that?
  23. 0:38This is where we'd use a data searcher,
  24. 0:40like a miracle tree.
  25. 0:41The client keeps a history of the repo and the server does as well.
  26. 0:43Every few minutes, we'll make a comparison.
  27. 0:45If there's any differences,
  28. 0:46then we can assume that there's been a change to the code base.
  29. 0:48And only if something changes do we reindex anything. Nice job.

Hook = the first 3 seconds. Hook type and style are tagged by us.

Caption

This is just a little bit of the clever system design that goes behind making @trycursor, which you can try for free by visiting https://cursor.com! 💻 #Cursor #CursorCreator #systemdesign #softwareengineer #cs

#cursor #cursorcreator #systemdesign #softwareengineer #cs

♪ original sound - tembrasdev - tembrasdev

Creator

@tembrasdev

8,632 followers · Nano (<10K)

For Cursor · TikTok ↗

#cursorcreatorUS