[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 / qa] [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]


3-Year duration 4chan Passes are now available for $45

[Advertise on 4chan]


File: 1725756983.png (697 KB, 632x875)
697 KB
697 KB PNG
I write C++ and everyone is saying my skillset will soon be obsolete. On Reddit, hacker news, and anons here all make fun of me for writing C++. So I thought to learn Rust, but it's full of scary looking people and it's said that if you learn it you will become a transgender like those scary people. What do I do? Zig looks cute, but it's still not portable as C++!
>>
>>102281401
Erotic image... anyway stop reading the news and posting bait please.
>>
C++ will not become obsolete in the next half-century
Rust is nevertheless a nice language that you should consider learning
I don't think it will make you transgender unless you have latent issues that you're just barely managing to suppress
Zig seems nice but is much less like C++ than Rust is
>>
starting to think "coding" is just retarded
its like an inside joke that lost its edge decades ago
>>
>>102281401
>Zig is still not portable as C++!
It's not?
>>
File: 1627758460928.jpg (8 KB, 250x250)
8 KB
8 KB JPG
>>102281401
>I write C++ and everyone is saying my skillset will soon be obsolete.
TWO MORE WEEKS until le rust takes over!
>>
File: 1725757813.png (215 KB, 354x452)
215 KB
215 KB PNG
>>102281479
well zig only runs on x86 and niche arm64. The only embedded support it has from my research is arm cortex uCs, which is not good enough! At work I work with CUDA signal processing, and zig has 0 support from Nvidia for their products. I don't know what to do anymore, everyone is laughing at me and calling me "senile" even thought I'm only 22 years old.
>>102281440
I'm serious! Rust is scary to me because from what I heard it has very long compile times (but I'm used to it), but most scary is their cargo package manager with large binaries and many things being pulled in. I manage my dependencies with apt or git modules. I'm not ready for a dedicated package manager
>>102281446
thanks anon, but don't lie to me I know people hate C++ and Rust will replace it
>>
>>102281534

Can you provide proof that Rust will "take over"?
>>
File: 1707058176544.png (173 KB, 1080x549)
173 KB
173 KB PNG
>>102281401
Why don't you just make something cool in C++ to create more jobs for Rustaceans in 10 years.
>>
C++ has so much market share that it is not going to go away quickly. That said, Rust will grow. You just need to swallow your pride and also learn Rust.
>>
File: 1725758389.png (415 KB, 439x634)
415 KB
415 KB PNG
>>102281642
I know I know, which is why I'm tried learning Rust but it scares me
>>102281631
I could keep doing what I love, but from all the news I read Rust will only grow and C++ will shrink. I want to have a job in 10 years, not be replaced with a Rust dev
>>
>>102281401
Rust is just C++ minus templates plus FP. If you are a competent C++ programmer you will get Rust in no time. A good programmer should know many languages.
>>
>>102281561
>zig only runs on x86 and niche arm64
Where the fuck did you get that from? Zig supports x86, x86_64, aarch64, arm, mips, riscv64, sparc64, powerpc, powerpc64, and wasm32 as tier 1 targets, plus a bunch of others that aren't as officially supported. Are you just outright making shit up?
>>
>>102281561
Just because people hate it doesn't mean it will go away. COBOL still hasn't gone away and there's a lot more C++ now than there ever was COBOL
You don't have to pull in dependencies from the net, you can do everything yourself or use libraries from local paths. Debian even puts crates in .deb packages but that's more for use by other packages so IDK if it's easy to use for your own projects.
Of course third party packages won't necessarily accommodate caveman style development. Many have transitive dependencies.
>>
>>102281739
>x86, x86_64, aarch64, arm, mips, riscv64, sparc64, powerpc, powerpc64, and wasm32
but zig doesn't support a proprietary hardware with a compiler provided by the manufacturer. Besides x86, zig will only run on popular arm64 devices. Anything else you listed is either toy examples I seen, or just hypothetical. Again, zig won't work with proprietary nvidia devices I work with, and I need more than a promise of support for embedded linux devices with proprietary hardware.
>>
>>102281782
that is true and good point, but COBOL devs are few and not needed
>caveman style development
Is that an insult? I see nothing wrong with cloning a C library, compiling it, and using it in my project. I don't have to worry about breaking changes, and I have full control. For new people it may seem more complicated than `pip install X` but it is nicer to work with and simpler.
>>
>>102281690
you are reading the wrong news
>>
>>102281401
>but it's full of scary looking people
What does that have to do with the language?
That's right, nothing.
Now go learn Rust so you don't have to bother with managing memory.
>>
>>102281401
>Zog
Buy an ad nigger
>>
>>102282084
>What does that have to do with the language?
I have to interact with those people
>Now go learn Rust so you don't have to bother with managing memory.
memory management is not a problem for me? Smart pointers and good practices make that easy. My focus is on engineering problems.
>>
>>102281401
>>102281561
>>102281690
sauce on the girl? she's cute
>>
>>102282193
>I have to interact with those people
What? No you don't.
>memory management is not a problem for me?
Even the best programmers make mistakes.
Especially once the scope of your program grows beyond to what you can hold within your mind.
>My focus is on engineering problems.
Use the right tool for the right job.
C++ is a tool. So is Rust.
Think about what you need and use that which makes sense.
Remember, programming isn't about learning a language. It's about learning to program.
Once you know how to program, you know how to use any language.
>>
Why everyone suddenly a kernel dev now?
>>
>>102282193
If you follow good memory management practices then Rust will be piece of cake for you. Otherwise, it will teach you the hard way.
Rust works similarly to a static analyzer. Using tools like that might show you how good your practices are.
>>
>>102282408
you're making a lot of sense now anon! I will learn Rust on the side and try to build something cool with it. I been wanting to make my own st terminal.
>>102282317
I have her saved from I need a girl manhwa, really good comedy but its korean so many jokes may not make sense to others. Still read it now!
>>102282525
I'm not? My work with C++ is writing a for a proprietary device, other people make the Linux for me, and I write code in the user space.
>>
>>102281446
>Rust is nevertheless a nice language
no it is not, but that doesn't actually matter
>>
>>102281401
shilling Odin here. give Odin a try.
>>
File: 1724787479322.gif (278 KB, 1200x598)
278 KB
278 KB GIF
>>102281401
>pust is memory sa...SEGMENTATION FAULT (CORE DUMPED)



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