r/coolgithubprojects • • 1h ago

I rebuilt VS Code in Rust: same editor, same extensions, a quarter of the memory

Post image

VSRustium is VS Code ported to native Rust on GPUI. It is not a fork and not a lookalike. It is the same editor without Electron.

  • Same look, keybindings, settings and menus
  • Your extensions run unchanged in VS Code's own extension host, on Bun
  • Extensions come from Open VSX. No telemetry, no AI features, no Microsoft services

Why: I like VS Code, but I don't want a browser under my editor.

Numbers

VS Code repo open (21k files), median of 5 runs, Mac Studio M1 Max:

CategoryVSRustiumVS Code 1.147.0
Memory218 MiB975 MiB
Ready to work2.5 s12.1 s
Window shown0.79 s0.99 s
Idle CPU1.9 %0.2 %

Idle CPU is worse for now. I found the cause, and a fix is in progress.

How I check that it matches VS Code

  • VS Code's own extension API tests pass (362 of them, the same result as stock VS Code)
  • Every window is pixel-compared against the real VS Code in 4 themes
  • All 435 parts of VS Code that the port covers are tracked one by one, and each has a check that proves it

Status

  • macOS: works, and I use it daily. Signed, notarized, updates itself
  • Linux: preview
  • Windows: builds, not tested on real hardware yet

MIT licensed. Not affiliated with Microsoft.

Repo and downloads: https://github.com/rokartur/vsrustium

Feedback and bug reports welcome :))

13 Upvotes

20 comments sorted by

13

u/Arcanium_Walker 32m ago
  • Claude, copy VS Code.
  • Make no mistake.

-1

u/rokarthur 29m ago

that's exactly how it was

1

u/RecursiveReboot 0m ago

If that's work for you, great 😃

But perhaps I won't use it.

16

u/notddh 59m ago

Claude, reinvent zed

-8

u/rokarthur 57m ago

i don't like zed ui

8

u/notddh 52m ago

and that's now a reason to rewrite the entire IDE? you do realize that your clanker used gpui for your rewrite?

4

u/Livid-Stock7410 18m ago

People have too much money to waste on Tokens now LOL Meanwhile someone os creating another download manager 😂

0

u/rokarthur 49m ago

for me, yes, and it's an interesting experiment, just like https://github.com/l0ng-ai/openidea

3

u/CallTheDutch 19m ago

I'm sure claud did as good of a job as the teams at microsoft did over the years. (/s)

-2

u/rokarthur 17m ago

one man army, something like that

2

u/misanthropocene 12m ago

Are you/have you automated intake of vscode updates/changes into your pipeline? Keeping up with it as it evolves, gets features, etc.? It would be interesting to explore automation patterns for maintaining a port with close, continuous following of upstream.

1

u/rokarthur 4m ago

Yes and no, because right now there’s something like that but it’s a manual process as a skill to check all the new changes, remove everything related to accounts, AI, and telemetry, break it down into parts and do it step by step. Once I have a fully ported version 148 (every single bit of it), I’ll want to automate it further so that it runs automatically and remains just as effective

3

u/FIDST 16m ago

Can we make it acceptable to say,

"(A)I made this ...." ?

I respect what you and others (and myself) are doing. But it is misleading.

1

u/rokarthur 0m ago

good point, but I think everyone knows what's going on, no one in the world would analyze 4 million lines of code and turn it into ~400k in about 8 days

1

u/Adventure_Chipmunk 18m ago

Don't listen to the haters. "Why did you do this?"

BECAUSE I CAN.

0

u/notddh 8m ago

but... he can't? it's all outsourced to some clanker

2

u/rokarthur 3m ago

okay? don;t use this, and all yours problems gone

1

u/allunia333 9m ago

how did you verified the memory usage?