[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
▼ Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1779530445035494.png (406 KB, 1052x759)
406 KB PNG
Why is Rust taking over lately?
Everybody is using it nowadays
https://cybernews.com/tech/discord-app-overhaul/?content=post
>>
Because it's a solid programming language. Very secure, too.
>>
finally
>>
File: 1629556262644.jpg (83 KB, 1000x669)
83 KB JPG
>>110260226
you worthless faggots refused to make your own servers and electron clients and now all your chats belong to the jews
>>
>>110260236
I have never used Rust, I am programming in TypeScript at work and even at home for hobby projects. I wonder how Rust would work if I would use it for a project with a javascript frontend and a rust backend
>>
>>110260226
people are lemmings, they only do things because they're trendy and popular, rust is the only popular "low level" language anyone is willing to talk about, C is everywhere but it's not trendy, it's also associated with boomers and chuds, and trans people make up the majority of hobbyist programmers these days, they will not be touching C code or creating new C projects.
>>
>>110260226
claims to be retardproof, which gels nicely with bottom barrel jeet labor
>>
>>110260226
Let me guess they are using AI for this?
>>
web version is still gonna be dogshit probably
>>
>>110260267
You could likely have Claude generate it for you for free - just ask it.
>>
>>110260307
HRT really was as much of a distaster to autistic people like crack was to blacks.
>>
>>110260267
>>110260226
rust is good with performance, very safe to code with, and AI is really good at coding with it because it can check it's own work quickly
it's really not that bad
>>
>>110260267
If your backend is IO-bound(which is most of them) then you will get no significant advantage at cost of significant cognitive overhead if you use Rust over TypeScript. It only really makes sense to do this if for example you have already sizable Rust project and want to add simple front end to it(eg status page).

If you want to try Rust, just pick something more aligned with systems programming. A compression or cryptographic library, renderer, cli utility, physics simulation, etc. Webdev in Rust in general is difficult (especially async) and too rigid for typical web tasks/workflows.
>>
File: HHEhDsXaYAA70Og.jpg (338 KB, 1024x1536)
338 KB JPG
>>
>>110260307
>C is everywhere but it's not trendy,
Can you name any new notable C project that was started in this decade?
Just because there is tons of legacy C projects doesn't mean it's suitable for greenfield projects.
>>
>>110261597
>cognitive overhead
No such thing in the era of SI
>>
>>110260226
Because bad workmen blame their tools.
>>
>>110260226
https://www.youtube.com/watch?v=OuNKBjuV7A4
>>
>>110260226
>discord
rust isn't taking over anything. discord is a pile of shit used by morons.
>>
File: file.png (132 KB, 1586x831)
132 KB PNG
>>110261505
>and AI is really good at coding with it
Wrong.
>>
>>110260226
>cut RAM usage
Ruh roh
>>
>>110260226
inb4 it's a rust wrapper for a webview
>>
Because AI became good enough to crank it out and it's better, that's it.
No one has actually learned how to code in rust.
>>
>>110260226
They're using Tauri. "Rust" isn't the way to really describe it more than C++ is how to describe Electron. You're using Javascript, CSS, HTML. Electron is an embedded Chromium instance as a standalone so you can build your app with the same exact code you use for your website. That of course is heavy.

Deno Desktop and Tauri do the same thing, except every operating system now has it's own included browser, usually it's own chromium or webkit; and Deno and Tauri now just use them natively. You're not really using Rust you're still just building a website posing as an app. Tauri is just made in Rust. That's like calling websites C++ because you open them with a C++ chrome browser.
>>
>>110260779
Claude Code isn't free
>>
File: steam-client.jpg (55 KB, 640x500)
55 KB JPG
>>110260226
And what about Steam?
>>
>>110262486
They're using GPUI, retard.
>>
>>110260226
Because claude code mainly outputs code in rust.
>>
>>110262436
I wouldn't be surprised.
Aren't all their random mini games and integration basically glorified iframes? How are they planning to port it to native without embedding webview anyway.
>>
>>110260226
Rust gives you the performance benefits of rewriting something in C++, without as much of the security implications. Discord is written in Electron, which is dogshit because it embeds an entire copy of Chrome in your application. So now it's going to be just native machine code with none of the bloat.
>>
>>110262140
python has the most training data but most of it is arguably poor data relative to rust (tons of programs are made with really shitty python for random projects that have no real utility)
meanwhile rust, love it or hate it, had years of very high quality programming sources kept online and public because the troons loved using it to code all this shit
also python isn't really that fast, especially when compared to rust and C
>>
>>110262140
You read the first word of that AI summary, and nothing else. THERE ARE JUST TWO SENTENCES IN THAT SUMMARY, TRY READING THE WHOLE THING.

>AI is good at writing Rust
and
>Rust is good for writing AI

Are two completely different concepts. Thanks for playing!
>>
Rust was a PITA to code by hand due to how pedantic the compiler was. You make one small change and suddenly you have to refactor half your code base. All the downsides are now gone with LLMs doing the grudge work and Rust's safety guarantees helping guide the LLM to not fuck things up.

>>110260307
What C is associated with is security flaws due to use after free, buffer overruns etc
>>
>>110262549
Only normalfags use that.
>>
File: file.png (32 KB, 740x258)
32 KB PNG
>>110262549
what about it?
I'm playing a game on it btw with recording on
>>
>>110262745
>>110262140
furthermore, the quantity of training data becomes less useful as models get smarter, we already have studies showing that most languages are basically the same performance in smart-enough AI because it can reason equally in each. Thus the main differentiation becomes the actual nature of the code itself. This is where rust becomes useful as it corrects the AI responsively and efficiently compared to other languages, and also allows the agent to make less mistakes as it can be guided with rails more often
>>
>>110260226
Rust makes it a colossal pain in the ass to get something building. That feedback loop of errors is particularly well suited for AI.
JS webshit used to be the cheapest and laziest to maintain. Now they have the option of throwing AI at rust for a lazy performance improvement and PR win.
Nobody at these companies is actually writing rust. If people were switching to it because it was broadly liked, it would have happened years ago instead of now. Even C/C++, an equally performant language requiring much less developer effort to maintain than rust, was only used in places where speed was absolutely critical.
>>
File: 1688173722185941.png (2 KB, 700x700)
2 KB PNG
>>110261606
>this decade?
I started thinking of projects from the 2010s because it does not feel like we are already more than halfway through another decade
wtf where has the time gone
>>
>>110260236
wait until you start hearing about the supply chain attacks because of cargo lmao
>>
File: 1788822541530375.jpg (349 KB, 600x477)
349 KB JPG
>>110262843
>requiring much less developer effort to maintain than rust
>>
>>110262887
Depending if you trust Sonatype or StepSecurity, NPM accounts for 75-90% of EVERY supply chain attack. Of all the shit to lay at Rust's feet, supply chain attacks aren't it. Not yet, anyway.
>>
>>110260226
I jokingly said a month ago that everything will be rewritten in rust because of ai. /g/ got extremely angry.

looks like im right again
>>
>>110262913
There are lots of people on earth that can read JS code. You can develop a project in it in a way so it's readable for new devs.
Practically nobody can read Rust.
>>
>>110260226
I only use it because Qwen seems to have have an oddly easy time with it, even moreso than C++. I often have to tard wrangle it because it doesn't know the modules/structs/enums by memory but otherwise it often 1-shots whatever I ask out of it.
>>
>>110261605
10/10 will repost again
>>
love that webdevs suddenly value performance when they don't have to do the work writing it.
>>
>>110263044
evidently humanslop didn't care about performance and blot, and thus the AI has to actually do properly formatted scripting to fix it
it seems that a lot of programmers were basically using their forehead to hammer nails all this time, at least the cheap indian ones at most companies...
>>
File: 1774826350422234.jpg (16 KB, 446x448)
16 KB JPG
>>110262140
>>
>>110263044
There's nothing strange about this tho. The difference between webdevs and cniles is that the format actually get shit done and release products while the latter whine about the former not caring about le heckin' performance.
>>
>>110263066
Barely a few years ago web shitters were convinced the web and electron were the future.
Suddenly they can slop up rust code, and now they scurry back and pretend to champion performance.
>>110263057
>a lot of programmers were basically using their forehead to hammer nails all this time,
Forehead Programmers is a very apt term for much of the field honestly.
>>
>>110260226
Discord is written in JavaScript, do you think people who write in java know how to make memory secure software? They need all the help they can get and rust is that help.
>>
>>110262549
>Webhelper
Thats chromium
>>
>>110260226
They had already been experimenting with rust but LLMs weren't advanced enough at the time. Now they're just picking up where they left off
>>
>>110260226
everything's going to be Rust because this is the language the AI model creators will mainly focus on.
at the end of the 2030s at least 70% of Windows will be written in rust.
>>
File: file.png (1.96 MB, 1920x1080)
1.96 MB PNG
>>110261606
Nta

https://github.com/ggml-org/llama.cpp

Fun fact. It was originally created because the head maintainer wanted to run LLMs on his MacBook, and now Apple Silicon is one of the best platforms to run local models on from a price to performance and convenience perspective.
>>
nobody actually likes writing rust code. it is compiled natively unlike electron jeet shit so it's bound to be more performant, and now that you can just tell clankers to rewrite your app in a different language there's no reason not to
>>
>>110260226
Its just another step in the continuing process of total destruction. Everything is being destroyed.
>>
>>110263569
How?
>>
>>110263569
No, if anything, it's a recovery. Software in the 2010s became enshittified at an alarming rate because everything had to cater to Indian coders. Now with AI they are obsolete and we can start having good software again.
>>
>>110260226
Because AI needs a sub layer of determinism, harnesses for example do that
Now think that at the programming language level which also can be used even for system programming
>>
>>110263648
Software will not get better, they will find new ways of making it even worse, it will never go back to the way it was before.
>>
>>110262953
Rust is fairly easy to read, until you get into macros
>>
>>110263360
That's C++
>>
>>110260226
>Why is Rust taking over lately?

Rust is a performant and relatively safe language but it is annoying as fuck to use. Luckly now we have very good online and even offline agents that translate entire code bases to Rust, bypassing the annoying part. So why not use it? Rust also has excellent compiler feedback and debbuging tools, making agent use even more attractive.

The main reason electron, java, qt and many of those so called "cross-platform" and "high level" programming languages and frameworks are chosen is so that they reduce the ammount of coding HUMANS do. The trade off is performance and bloat (and potentially security). But with LLMs, it makes very little sense to cut corner using bloated frameworks.
>>
>>110263831
>it is annoying as fuck to use.
Skill issue
>>
>>110260226
It's the language a LLM would like to use. A unforgiving compiler which rewards verbosity with strong gaurentees, as a LLM you don't mind verbosity. Also a lot of existing training data, especially on github.
>>
>>110261606
dav1d, dav2d
>>
>>110263945
That shit is like 70% raw assembly.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.