r/coolgithubprojects • u/rokarthur • 13h ago
I rebuilt VS Code in Rust: same editor, same extensions, a quarter of the memory
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:
| Category | VSRustium | VS Code 1.147.0 |
|---|---|---|
| Memory | 218 MiB | 975 MiB |
| Ready to work | 2.5 s | 12.1 s |
| Window shown | 0.79 s | 0.99 s |
| Idle CPU | 1.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 :))
99
Upvotes
139
u/Arcanium_Walker 12h ago
32
u/Swordfish418 12h ago
If you’re really going to maintain this eternally, incorporating any upstream vscode changes, nice.
43
u/notddh 13h ago
Claude, reinvent zed
23
u/1_TRS 12h ago
How to know if a thing is a zero-effort slop?
Its post on social media starts with “I got tired,” “I made,” “I rebuild.”
19
u/CallTheDutch 12h ago
I'm sure claud did as good of a job as the teams at microsoft did over the years. (/s)
6
u/LinsaFTW 12h ago
Too late I am already using zed!
5
u/misanthropocene 12h 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.
2
u/allunia333 12h ago
how did you verified the memory usage?
2
u/saltyourhash 11h ago
Be honest, how memory safe is it?
8
u/FIDST 12h 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/Radiant-Seat-869 11h ago
usaste como tal vscode como base o vscodium que es la version sin telemetria ni nada de codigo cerrado?
1
u/Radiant-Seat-869 11h ago
muy bueno, espero que tambien salga su version deb, rpm y flatpak, parami pc vieja sera muy buena opcion, ademas odio zed para usarlo en esa pc
0
u/Adventure_Chipmunk 12h ago
Don't listen to the haters. "Why did you do this?"
BECAUSE I CAN.
11
u/Abukaff 8h ago •
I don't get why people are upset about "I ported." He paid for the AI out of his own pocket. When a company hires a programmer to write code, the company owns the final product, not the dev.
it's the exact same thing here. The AI wrote it, he paid for it, so it's his.
kudos for making it opensource
3
u/binbuf2 10h ago
Interesting concept.
How does the extensions work if they're still using js/ts and bun? So you have a sidecar for all of that? Is that really more efficient even if the host app starts up faster?
Did you create some CI/CD pipeline to follow new release deltas that VS Code puts out?
It would also be helpful if you provide a technical write up about how this works and provide it as a supplementary md document in the repo.
3
u/HyperCodec 8h ago
Isn’t the “no ai” title in the repo a little misleading, considering the fact that agentic LLMs clearly wrote a majority of the code?
If you mean it doesn’t come with copilot integration and automatic code completion slop, you should specify that more clearly than just “no AI”.
2
u/Juiceprit_Boomrah 26m ago
VS Rustium doesn't sound right, how about VS Corrode , Corrode as in rust corrode
12
u/Adventure_Chipmunk 12h ago
People blabbing "Claude did this" "You didn't do this" whatever.
Disingenuous AF.
Did you write your hand-crafted source code without a linter, hand translate it to assembler, then translate the assembly into a binary? Did you manually re-order the whole structure of said binary and manually link it to the other libraries?
LLMs are tools. The don't have their own agency. They're used by users. The users don't need nearly as much experience as using gcc and getting a thousand segfaults and reading each line by hand without a linter to identify missing semicolons.
The gatekeeping is so bloody insufferable. People are building things. You can NOT use them if you're ideologically bent against vibe-coding.
Let people build things. It's a "Cool Github Project"
EOF
1
u/Kind-Awareness5985 10h ago
I will try ,thz
1
u/pamod_madubashana2 10h ago
It would be great if you could provide Windows builds too
1
u/Zuiopqewrt 10h ago
Just test it people
If it is rubbish ask for improvements
If it does what you need say thank you
And mean it
1
u/SomeRandoLameo 10h ago
Had this exact same idea but never made that because of the extension support that normal viscose gives
1
u/future_lol 9h ago
timeline of people presenting their vibe-coded app be like:
-i present to you, X
-*some people show disdain*
-*OP gets political on replies and gets downvoted*
-every damn time.
1
u/Content_Philosophy12 9h ago
I was testing on Fedora 45, a lot of bugs.
1
u/PurpleOstrich97 9h ago
I suggest swapping out the webkit use for something like CEF or something chromium based for the things that do actually need a web view. It would mean that more things are compatible and just generally speaking, chromium is more efficient than webkit and less buggy
1
u/ddarkterminal 9h ago
This is good! When it's stable...
1
u/keireira 9h ago
You could at least write that post and description (by) yourself
1
u/PurpleOstrich97 9h ago
Rebuilding Theia might have been better since they have other extensions and support more capabilities. Something very few people have heard of but it's super cool
1
u/INeatFreak 9h ago
Did you really spent 3k$ for this?
1
u/ZeroDayZeroFriends 9h ago
OK Artur, now just quit your job and become a full time maintainer
1
u/ivan_dhs 8h ago
what does this offer over Zed?
1
u/alwerr 8h ago
Cool ! how much it cost?
1
u/marktuk 8h ago
The benchmark results are actually pretty disappointing. Considering that VSCode is an electron app, I was expecting a much bigger improvement. I don't suppose you know if the code is actually optimized?
1
u/ItchyPlant 8h ago
Isn't Zed pretty much what you're describing, except it was already being developed years before AI-delegated "software development" became a thing?
1
u/holystinger 7h ago
218 mb for an editor in rust is still huge
1
u/ItsPandor 7h ago
Optimize the opening time. .79s still looks a lot, gpui discord claims to have .3s opening time
1
u/Alive-Rough1432 7h ago
It says the installer is damaged and does not install xd
1
u/ksky0 6h ago
now do the same with orca please
1
u/randygeneric 6h ago
how is the compatibility towards addons (there lives 90% of the functionality)?
1
u/Ambitious_Ad4397 6h ago
So.. Zed?
1
u/ksky0 5h ago
where is the windows version?
Great project.. I also forked to try to build on Windows and it worked.. can you also release windows version?
1
u/AintNoGodsUpHere 5h ago
lol, sure, let's use a vibe coded IDE with zero support.
1
u/super_probably-user 4h ago
zed exists
1
u/TxTechnician 4h ago
Kudos.
That's cool. Did you get remote connection to another host working? AFAIK that is a proprietary MS thing.
1
u/JSChronicles 3h ago
What model and if any plugins/skills did you use?
1
u/xtcriott 3h ago
Thanks saved for later to see how the Linux version fairs.
1
u/MaverickOver 3h ago
I did not read your source code yet, but I don't really think someone who doesn't possess program knowledge could do this well.
1
u/darkwyrm42 2h ago
Let the critics say what they want. Thank you for your contribution to the open source community.
1
u/MaximumMeaning9728 1h ago
lol, I did this too for my personal use.
Nobody cares of course.
1
u/Purple-Exit3858 6m ago
Thanks for leaving out the telemetry stuff.
1
u/Routine_Working_9754 9h ago
vibecoders' biggest facts about their projects is always that they're written in Rust. I guess nothing else is special enough you have to rely on the reputation of another piece of software
1
u/Deep_Mood_7668 8h ago •
No you didn't. An ai did...
0
u/Ok-Extent-7515 10h ago
If your VS Code takes a full 12 seconds to launch, there's clearly something wrong with it. For me it starts a little slower than Zed.
-1
u/SCREAMINCHEEESE 11h ago
"I rebuilt" no you didn't.
0
u/LucieGoosey__ 10h ago
cool dude. don't waste too much energy on the anti AI peeps. some of them are bots.
0
u/lev400 7h ago
Nice project
0
u/viperbruno 7h ago
Can you "port" the part of Cursor that has the agents, but in a way that lets us authenticate using our Claude or OpenAI account?"
-1
u/macbig273 8h ago
why git ignoring .claude but not .agents ? what not letting the claude as coauthor if you already proclame clearly that it costed you 8-9k in building that ?
How do you intend to make it a "copy of vs code that works like the original" when they already shut down access to their extension store a few of their fork ? (back about 7-8 month ago, not sure if they changed their mind since)
You should probably work a little more in branch and merge them that what you're currently doing. Your history is is pile of shit.
Anyway, it seems nice enough, But I won't test it. I don't care if my vscode take a few seconds to launch or the memory it takes. Probably nice for a "cool side project" or "experiment", a little costly I might say ? And for information your CI is a mess.
anyway seems like a nice project / pet project ? but advertising it and putting release links etc ... since a little early for 15 days long project.
1
u/[deleted] 10h ago
[removed] — view removed comment