[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / 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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1777465836013224.jpg (865 KB, 1736x2456)
865 KB JPG
>more than a decade passed
>hardly anything changed
>>
why is any of this shit still supported? definitely not for the cost!
>>
C++ became illegal, so...
>>
>>108732432
it didn't fail in the way languages actually "replace" older languages, which is by becoming the preferred choice for new projects.
rust exceeded that goal by actually becoming a part of "older" established projects (e.g. firefox, android, linux), or even fully replacing some projects, both internally (e.g. fish shell), and externally (e.g. sudo-rs). but all that is not as relevant as the central core goal, which is to become the preferred language for new projects, which rust managed with ease, considering c++ is actually shit. c however still has some (shrinking) valid use-cases, even in new projects.
>>
>>108732432
Just rewrite any C++ app in Rust with Claude code. This has been solved if you want it.
>>
>>108732634
Why can't you politsperging our-team-vs-my-team faggots ever be genuine? It's sad at this point.

>Rust exceeded expectations
>It's actually replacing so very many languages, dont you know
>source (1): its' founding company half-assedly glued the language into its' only product
>source (2): its' foundation :tm: executives include senior leadership of an operating system that was already primarily dependent on a higher level memory safe language; and as such, he decided to shoehorn in this meme shit in anyway
>source (3): deadend freetard drama
>>
>>108732432
It was never relevant, it's a niche language with a few use cases and the complexity almost never justifies the benefits. As soon as USAID got defunded the shills all fucked off to god knows where.
>>
>>108732432
literally me
>>
File: HHEhDsXaYAA70Og.jpg (338 KB, 1024x1536)
338 KB JPG
>>
Jai will be the actual ceppie killsr
>>
>>108732634
>c however still has some (shrinking) valid use-cases
C still has no practical industry alternatives in the applications it is actually used for (embedded, kernel)
>>
>>108732432
C and C++ people are very resistant to change
Though the idea is also overkill. You shouldn't need a new language just to ensure there's no double free.
>>
It never solved the long compilation time problem of C++, in fact it appears to be even worse.
>>
>>108733597
correct. but C was used for a lot more, is what i meant, as the list of valid use-cases continued to shrink (but was never zero).
and the fact that rust actually made some inroads in both of these spaces you mentioned, and in such a short time, also lends to its success and it exceeding expectations.
>>
>>108733597
Rust is a lot nicer to use for embedded on platforms that are supported, the esp32 ecosystem is amazing.
>>
>>108732432
What was the biggest successful C++ RIIR transformation? https://fishshell.com ?
>>
>>108735448
the vast majority of the embedded world considers things like dynamic memory allocation to be overkill. rust is too high level and having to interface with physical system state undermines the entire point of the language since it's all undefined behavior

if you think rust is nice it's because you're not actually writing embedded code, you're writing high level application code on a platform where someone else has handled all the embedded crap
>>
>>108735717
NTA. And you're clearly clueless. the rust embedded world, which you clearly never saw a single line of code from, doesn't use dynamic allocation for starters, OBVIOUSLY. And if it wasn't already that obvious, it's something you could have figured out, even before looking at code, considering one of the foundational libraries (crates) from that world is called...DRUM ROLL.. "heapless".
>>
>>108735823
then why use rust at all for embedded when the entire use case does not even come into play?
the scenario you described basically comes down to a syntax choice where C clearly wins for simplicity and longevity
>>
>>108735919
Why are you opining on something you know nothing about?
I mean, anyone actually bothering to read just the few first sentences from embassy's README would already be infinitely more informed than you.
>>
>>108735977
https://embassy.dev/book/#_why_is_my_binary_so_big
are you talking about this, faggot?
>>
>25% of the readme is instructions on various hacks to wrangle the binary size
thanks for bringing this to my attention anon, i kek’d
>>
i compiled some app and realized the entire dir was several gigabytes and it was just the rust target/ directory bloated to hell what the fuck
>>
>Izzat screeching
>>
>>108732432
Because regardless of whether it's good or bad, new languages have not replaced anything for over 20 years.
Every single one of the top 4 (java, python, javascript, c++) have been around for 20-30 years and the next 3 (C#, php, C) are similar.
The only languages that even make it past 1-2 years are corporate backed shit like C# and Go. Rust has some backing but nowhere near enough.
>>
>>108736509
>C#, php, C
is php actually being used actively anymore?
I know C is still the go-to embedded/drivers/os language, and C# is still the first choice for everything back-end in azure and unity
but who the hell writes new code in php?
>>
>>108736537
>but who the hell writes new code in php
/g/ schizos who hate Javascript, and students who were taught it and don't know any better.
>>
>>108736562
>students who were taught it and don't know any better.
I refuse to believe that's a thing anymore
>>
>>108736537
>>108736586
Yes there are a lot of active websites for small to medium companies who use it.
You can search on linked in by language and check, that's what I used for my personal language usage statistics. Much more useful than amount of hits on google or lines of code in github.
>>
I know C already, should I learn C++ or Rust in 2026 and beyond?
>>
File: 1658956102815701.jpg (19 KB, 267x323)
19 KB JPG
>>108736595
>thinking you'll actually be writing code beyond 2026
>>
>>108732432
ugly syntax
>>
>>108732670
i wouldn't mind qt without c++
>>
>>108736630
>thinking otherwise
retard.
>>
>>108736684
I'm sure you'll get a job at some point :)
>>
>>108736692
I'm cto and ai is too retarded to replace engineers.
>>
>>108736701
if your engineers aren't using it to write the code you're way behind
I might have been exaggerating when saying people wouldn't be writing code
but mostly we'll just review and maintain it + integrating it of course
>>
>>108736715
They are using it (and so am i I'm still part of the dev team, i built the whole thing before we hired).
But it's mostly useful for webshit, for most of the system programming we do it just shits itself, i do use it sometime to write a function or convert a json to a struct for it, but if i ask it to fix a bug or add a feature it's just shitting the bed.
Also there is reverse engineering involved and it just can't do it.
>>
>>108736866
>if i ask it to fix a bug or add a feature it's just shitting the bed.
weird. Best results we get is when the whole framework/patterns are in place. It pretty much does anything we tell it to to perfection (still needs oversight of course. At the end of the day, it's a retarded baby)
>Also there is reverse engineering involved and it just can't do it.
that's fair. Haven't even tried using it for that, but I imagine it'd be a whole lot of hand-holding
>>
>>108732432
For the same reason Java failed to replace COBOL.
>>
>>108732432
It did, C++ nowadays is so complex, has so many features and new ones are being added literally every 3 years. I won't be starting any project in C++ for sure.
>>
>>108733451
it's not even self-hosted, and won't be for some time, so it's just another front-end meme lang
>>
>>108736962
you gotta appreciate bjarne slowly killing his bloated retarded creation for what he thought would be eternal job security for him and his cronies.
and it probably would have worked, if it wasn't for rust bursting into the scene. although the way the universe works, if rust didn't exist, some other language would have emerged anyway.
>>
>>108739236
what are you even rambling about? c++ isn't going anywhere for at least 30 years
>>
For gamedev, the rust ecosystem is complete trash
>>
>>108735448
https://chrisdell.info/using-rust-to-build-a-1-dollar-handheld-gaming-console/

/g/eets would never
>>
>>108739274
That's because games are unsafe and you shouldn't write them.
>>
here's a list of people you're dealing with when it comes to people pushing rust:
>paranoid security freaks
>bullies
>corporate shills
>trannies
>tranny lovers
>straight men who should know better but they're too pussy to stand up to trannies
>unemployable autists
>functional programmers
>people that identify as animals
>people who swear they're the smartest person in room/job/thread/chat/conference/etc
so the *real* question is:
>why haven't the most annoying people on the fucking planet gotten their way?
>>
>>108740155
thank you zogduke. very informative and revealing as always.
>>
>>108733317
I look exactly like this
>>
>>108740351
rust is insanely zogged
>>
>>108740387
me too, except only in my mind
>>
>>108740392
>anti-rustist in the wild
lol
https://desuarchive.org/g/thread/107168629/#q107170768



[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.