r/coolgithubprojects • u/rokarthur • 1d 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 :))
174
Upvotes
177
u/Arcanium_Walker 1d ago
36
u/Swordfish418 1d ago
If you’re really going to maintain this eternally, incorporating any upstream vscode changes, nice.
30
u/1_TRS 1d 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.”
46
u/notddh 1d ago
Claude, reinvent zed
21
u/CallTheDutch 1d ago
I'm sure claud did as good of a job as the teams at microsoft did over the years. (/s)
6
u/LinsaFTW 1d ago
Too late I am already using zed!
5
u/misanthropocene 1d 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 1d ago
how did you verified the memory usage?
2
u/saltyourhash 1d ago
Be honest, how memory safe is it?
2
u/Juiceprit_Boomrah 16h ago
VS Rustium doesn't sound right, how about VS Corrode , Corrode as in rust corrode
6
u/FIDST 1d 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.
5
u/darkwyrm42 18h ago
Let the critics say what they want. Thank you for your contribution to the open source community.
4
u/HyperCodec 1d 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”.
15
u/Abukaff 1d 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
1
u/Radiant-Seat-869 1d 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 1d 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 1d ago
Don't listen to the haters. "Why did you do this?"
BECAUSE I CAN.
3
u/binbuf2 1d 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/WhatNoRobot 11h ago
How about Visual Studio next? 😄
Edit: Great effort!
18
u/Adventure_Chipmunk 1d 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
2
u/Tiny-Cell-7999 14h ago
cool, but the name is lame
2
u/kurguzstan 12h ago
This sub has gone full slop guess its time to unsub
1
u/Kind-Awareness5985 1d ago
I will try ,thz
1
u/pamod_madubashana2 1d ago
It would be great if you could provide Windows builds too
1
u/Zuiopqewrt 1d 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 1d ago
Had this exact same idea but never made that because of the extension support that normal viscose gives
1
u/future_lol 1d 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 1d ago
I was testing on Fedora 45, a lot of bugs.
1
u/PurpleOstrich97 1d 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 1d ago
This is good! When it's stable...
1
u/keireira 1d ago
You could at least write that post and description (by) yourself
1
u/PurpleOstrich97 1d 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 1d ago
Did you really spent 3k$ for this?
1
u/ZeroDayZeroFriends 1d ago
OK Artur, now just quit your job and become a full time maintainer
1
u/ivan_dhs 1d ago
what does this offer over Zed?
1
u/alwerr 1d ago
Cool ! how much it cost?
1
u/marktuk 1d 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 1d 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 23h ago
218 mb for an editor in rust is still huge
1
u/ItsPandor 23h ago
Optimize the opening time. .79s still looks a lot, gpui discord claims to have .3s opening time
1
u/Alive-Rough1432 23h ago
It says the installer is damaged and does not install xd
1
u/ksky0 22h ago
now do the same with orca please
1
u/randygeneric 22h ago
how is the compatibility towards addons (there lives 90% of the functionality)?
1
u/Ambitious_Ad4397 22h ago
So.. Zed?
1
u/ksky0 22h 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 21h ago
lol, sure, let's use a vibe coded IDE with zero support.
1
u/super_probably-user 20h ago
zed exists
1
u/TxTechnician 20h ago
Kudos.
That's cool. Did you get remote connection to another host working? AFAIK that is a proprietary MS thing.
1
u/JSChronicles 19h ago
What model and if any plugins/skills did you use?
1
u/xtcriott 19h ago
Thanks saved for later to see how the Linux version fairs.
1
u/MaverickOver 19h 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/MaximumMeaning9728 18h ago
lol, I did this too for my personal use.
Nobody cares of course.
1
u/Purple-Exit3858 16h ago
Thanks for leaving out the telemetry stuff.
1
u/raghav009 14h ago
Where is windows build ?
1
u/P4R4DOXZ 14h ago
Are u open for contrib? i was doing the same thing,
*i mean i share some quota of my weekly limits)
1
u/Transgender-Baby 13h ago
have you tested it under load with extensions?
1
u/breezyman14 13h ago
How about the comparison with VS Codium? (https://vscodium.com)
1
u/freely_icy_ascent 13h ago
keeping the same extensions probably means the node host is still sitting there eating a chunk of that ram
1
u/adamkex 12h ago
Well it crashes when I try to open a folder, running it as the nix flake
1
u/CapableHat9609 10h ago
Thank you for including a nix flake!
1
u/Anybody-Outside 10h ago
Thank you for being responsible and disclosing your AI use.
1
u/Distil47 9h ago
Or just use https://zed.dev/
1
u/OutrageousExternal 8h ago
I really like the idea because VsCode is becoming unbearably slow but why excluding the remote part? That's what I often use to work via ssh on servers. I really need to test it with notebooks, which is the most annoying part to work wiht right now
1
u/rgbflux 8h ago
good job, i hate electron
1
u/Most_Strike_93 7h ago
Worked from three days ago, released three versions, but gain 500 stars, reasonable.
1
u/Slow-Refrigerator-78 6h ago
Yeah,....
No
1
u/catermellon99 5h ago
Honest question - how did you have 10k lying around to do this/why spend it on this? Are you going to make money from this project? The way you wrote the post makes it sound like a hobby project but that is not hobby money?
1
u/Berbadov 5h ago
Something that i desire alot but when i tested Zed when it was first released, I had frustrating crashes and freezes. Thats why im currently suspicious about your project but will follow it!
1
u/Ok_Sky3062 5h ago
Even though claude did this... I am glad it cuts of that precious ram! I am waiting for the linux version!
1
u/bhavyyyyyyyaa 4h ago
ts so peak
1
u/dumbasPL 4h ago
Thanks Claude, but we use VSCode for the plugins, and you ain't porting thousands of them. If I wanted a fast native editor, Zed already exists. Congrats on wasting tokens and re-inventing the wheel instead of making established solutions better.
1
u/Flinging_Bricks 2h ago
Even the post title is ai generated this must be satire
1
u/FancySpaceGoat 2h ago edited 2h ago
VSCode is still evolving, getting new features, fixes to old bugs, etc... You may have ported VS Code as it is today, but what confidence should I have that you will keep this up-to-date?
Are you committed to maintaining this for years down the line? You have been at it for barely a week, how do I know you won't lose interest and move to something else in a few months from now?
What guarantee do I even have that every future change will be compatible with that port? And yeah, that does matter because the last thing I want is to be locked out of extensions I need because my fork of VS Code hasn't caught up because something hard to port made its way into the original.
This isn't an old piece of software that has congealed. It's a constantly evolving ecosystem.
You need to have answers to those questions before I could even consider using this.
What I'm getting at is that, for me, the link to VS Code is an albatross. I'd be more interested in it if it was its own thing.
1
u/HashTagPopular 39m ago
Did anyone analyse this fork for viruses?
1
u/One-Exchange-2127 33m ago
Where is the win version?!
1
u/Cultural-Part-7092 30m ago
this r/ is beyond repair. full of kids crying about ai usage in the big 2026.
1
u/rcls0053 13m ago
The time of minimal optimization has come. I do hope people realize that when you build these projects with AI, it's easy. It's the continuous maintenance that follows with OSS that's the issue for you. Let's hope it continues to grow.
0
u/Ok-Extent-7515 1d 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.
0
u/hzlntx 3h ago
What in the actual fuck, do you have 174k commits already in 2 days. Actually you people need help, like real help.
-2
u/SCREAMINCHEEESE 1d ago
"I rebuilt" no you didn't.
0
u/LucieGoosey__ 1d ago
cool dude. don't waste too much energy on the anti AI peeps. some of them are bots.
0
u/Routine_Working_9754 1d 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
0
u/Deep_Mood_7668 1d ago •
No you didn't. An ai did...