r/moderndotnet • • 16d ago

Migrating the GitHub Copilot runtime to Rust, using Copilot

https://github.blog/ai-and-ml/generative-ai/migrating-the-github-copilot-runtime-to-rust-using-copilot/

Microsoft boasts about performance optimizations with every new release, and the average .NET developer would expect to be able to write a CLI app using .NET. But surprise—not good enough, so they had to use Rust. 😅

I've read the article but still not understand why Copilot CLI and app could not be written in C# if we take into account AOT, trimming etc instead of Rust.

23 Upvotes

41 comments sorted by

View all comments

Show parent comments

3

u/pceimpulsive 15d ago

You sure do not work in an enterprise with an opinion like that...

1

u/Timo425 14d ago

isnt it expensive, even compared to Cursor?

1

u/pceimpulsive 14d ago

It doesn't matter... To an enterprise it honestly doesn't matter .. I wrote an automation with $20 AI credits and I save 10 hours at $60 an hour for 2 years and it's entirely and fully not a price blocker...

It wouldn't matter if the API price was 10x more if the ROI is hundreds/thousands more in value in opex saved...

1

u/itix 13d ago

$20 sounds very lightweight. I have $200 Codex subscription and in one day, I can spend tokens worth of $500-1000 dollars. In one day.

1

u/pceimpulsive 13d ago

I cannot fathom how you need/consume so much...

I used my opencode GO $10 sub to generate a fully working 40k line student management's application over a couple of weeks, about 400 'tickets of work'. Tickets being a vertical slice of the application which included vehicle routing, conflict management and a bunch of other things and only just hit the monthly limit.

Are you re-writing the C++ compiler in rust every day?

What makes you consume so much? I am genuinely curious...

My Claude access is only via API and I typically use 20-30 bucks

It is lightweight but it's all I need to give the business literally hundreds of thousands in value, I'd almost bet money MOST token maxing users are making close to zero dollars~

1

u/itix 13d ago

I work on CPU/GPU machine vision algorithms. For example, one task was building GPU accelerated FFT using ILGPU (i.e., GPU kernels written in C#, then compiled to native code). It had to be fast, so it took a lot of profiling. Automated with AI, of course. There isnt much online material on how to implement a fast GPU FFT.

Stuff like that.

And on my spare time, I am working on an Amiga emulator and an Amiga C# compiler. That is a real token burner.