4chan archive /g/ (index)
similar threads
2019-03-01 06:58 69995876 Anonymous state of C++ (cpp-logo.png 195x195 26kB)
Is seppels dead meme now? >Rust is advancing where C and C++ reign >on other end it's Java and C# >only C++ GUI toolkit is Qt with small company responsible for it >no known backend infra for it like Spring for Java >can't be used on web >secondary option for both Windows and Android

33 min later 69996364 Anonymous
>>69995876 >needing a library for GUI shit The absolute state of normie programmers.

43 min later 69996501 Anonymous
>>69995876 >Is seppels dead meme now? what? you're trying too hard, say what you want to say f4m.

1 hours later 69997120 Anonymous
>>69995876 >(((Mozilla Foundation)))

1 hours later 69997121 Anonymous (1485010936741.png 270x326 3kB)
>>69995876 Yes, good goy, use (((rust))) developed by (((mozilla foundation))) !!

1 hours later 69997149 Anonymous
>>69997121 >>69997120 >mfw this is the best "argument" you can come up with Rust is the future. >inb4 muh coc only applies if you're contributing to rust itself

1 hours later 69997155 Anonymous
>>69997149 Fuck off kike. Everyone will be using D soon.

1 hours later 69997192 Anonymous
>>69995876 >only C++ GUI toolkit is Qt with small company responsible for it wrong gtk+ and gtkmm have existed for years! >can't be used on web wrong again. c++ can be used on the backend as well as the frontend (using CGI/SCGI/FCGI and web assembly)

2 hours later 69997644 Anonymous
Anything can be used for the web fucking Reddit zoomer refugee. Anything can open sockets and follow HTTP. Please refrain from posting until your brain has developed.

2 hours later 69997705 Anonymous
>>69997644 Kek why are webdevs so retarded

2 hours later 69997727 Anonymous
>>69997644 But it has to be browser-friendly flamalam

2 hours later 69997731 Anonymous
>state of C++ >still failing hard being C with bloat >Rust still lying about safety and not being used >C and Ada still running everything at the low level >Assembly will never be replaced

2 hours later 69997755 Anonymous
>>69997727 Respond to every request with appropriate packets containing necessary HTTP headers and HTML to render.

2 hours later 69997779 Anonymous
>>69995876 Says the person using an OS written in C++ with drivers written in C++, using a browser written in C++ to send packets across several routers with the firmware written in C++ to talk to a server also using C++ both on it's OS and HTTP/SQL/PHP server.

2 hours later 69998024 Anonymous
>>69997779 Yeah those exist so there is no real value add on C++ and making new disruptions is faster with sane languages like Python and JS. Not a single startup uses C++, it's walking dead career deadend.

3 hours later 69998063 Anonymous
>>69998024 Well yes, if you want to be a code monkey, learning C++ is quite useless. It's pretty much like learning how to pilot fighter jets to get a job on some burger flipping joints.

3 hours later 69998085 Anonymous
>>69997779 >most of the shit that actually functions with Windows, written in C >most of the infuriating shit about Windows that makes you want to shoot your computer on a daily basis, written in C++ Really makes you think.

3 hours later 69998124 Anonymous
>>69998085 Everything on windows is quite gritting in terms of API. At least nothing is as bad as Direct X prior to 8 anymore.

3 hours later 69998206 Anonymous (1519751428108.jpg 680x649 71kB)
>>69995876 >rust is shit no need to argue with me >C# and java both require non free components (dot net framework and jvm) >wxWidgets is a great GUI library >CppCMS is used by many companies, including (((them))) >nothing can be used on web, except for flash/js. but why would you want fucking C++ to be sent and run with html >windows is literally build on win32 C++ and C. Android is based on java which is why phones today need 3 GB memory to function all in all this is a shit bait and reused more than your mom. sage/10

3 hours later 69998301 Anonymous
>>69998206 The android itself is made in C++ but have a java interpreter to run programs, but you can also write native C++ code for it as well since forever. But many, many people just use the java crap interface instead of native.

3 hours later 69998379 Anonymous
>>69995876 >>no known backend infra for it like Spring for Java Oracle's jvm is a pretty popular backend technology and it's written in C++.

3 hours later 69998387 Anonymous
>>69995876 >QT is the only C++ GUI framework Almost had me going there lol

3 hours later 69998409 Anonymous
>>69998206 I thought jvm was free? Is there a paid version?

3 hours later 69998490 Anonymous
>>69996364 >reinventing the wheel

3 hours later 69998496 Anonymous
>>69995876 Lisp is still insuperable

3 hours later 69998522 Anonymous (1460623005667.png 1127x685 38kB)
Life is too short to program in C++

4 hours later 69998765 Anonymous
>>69998496 Suffocate on fumers, lispers can't even make a text editor, rsi parenteheses.

4 hours later 69998817 Anonymous
>>69998522 This is why most C++ programmers use a shitton of libraries. you libwheel instead of reinventing the wheel.

5 hours later 69999938 Anonymous
>>69997731 >Assembly will never be replaced LLVM

5 hours later 70000011 Anonymous
>>69998765 >memes memes memes And this is why lisp is the definitive brainlet filter

5 hours later 70000105 Anonymous
>>69998206 .net core is open source

6 hours later 70000733 Anonymous
>>69999938 Hardware LLVM when?

8 hours later 70002528 Anonymous
>>69997731 >>C and Ada still running everything at the low level >Ada In a handful of applications perhaps.

9 hours later 70002659 Anonymous
>>70002528 >>70000733 Butthurt rust trannies

9 hours later 70002750 Anonymous
>>69995876 >can't be used on web how has no one mentioned web assembly

9 hours later 70002810 Anonymous
>>70002659 Wrong, I like Ada. But really, where is it used outside some high-integrity or mission-critical systems in a small number of domains?

10 hours later 70003679 Anonymous
>>69998206 So much bullshit in one post. Openjdk is free. Android is not based on Java either.

15 hours later 70005436 Anonymous
>>69995876 It's still the best language for competitive programming.

15 hours later 70005588 Anonymous (zig logo.png 905x240 11kB)
>>69995876 C is also nearing its obsolescence. All hail Zig!

15 hours later 70005601 Anonymous
>>69995876 I have one word for you, OP: vidya.

15 hours later 70005603 Anonymous
>>70002750 >/g/ >knowing anything about useful technology yeah, no.

15 hours later 70005615 Anonymous
>>69998206 >CppCMS is used by many companies, including (((them))) name a few.

15 hours later 70005627 Anonymous
>>70002750 >>70005603 Why the fuck do I even keep coming here? Oh yeah, it's because there is no good technology board left. Fuck. /tech/ is weak as well.

15 hours later 70005661 Anonymous
>>69998409 enterprises need to pay to recieve update for java 8 from now on.

16 hours later 70005744 Anonymous
>>69997192 wxwidgets is also a thing

16 hours later 70005839 Anonymous
>>70005601 /thread

16 hours later 70005847 Anonymous
>>69995876 the fate of a language designed by a committee > like Spring for Java thank god

16 hours later 70005853 Anonymous
>>70005661 so, migrate to fucking openjdk

16 hours later 70005969 Anonymous
>>69998206 >yfw Rust is the best language for wasm there are also really good backend and even frontend frameworks for Rust -- given time I think it will largely replace js

17 hours later 70006194 Anonymous
Can someone mention some things Rust objectively does better than modern C++? C is garbage, sure, everyone knows that, but I fail to see why someone would use Rust (which is the favorite scapegoat of Cniles) over C++.

18 hours later 70006665 Anonymous
>>70005588 zig in arabic is a slang for dick fitting name desu >>70005615 jerusalem post

18 hours later 70006682 Anonymous
>>70006194 C is the favorite scapegoat of Rust fags you tranny. They blame C for literally every problem ever created in the world. The only problem they are right in is that C led to C++.

18 hours later 70006717 Anonymous
>>69997155 > Everyone will be using D soon. I wish. I mean really. For all the missteps it's taken, it really is the most sane option for the general problem space at this point.

18 hours later 70006719 Anonymous
>>70005588 Shame it uses llvm. Would be neat if it had a complete self-hosted toolchain.

18 hours later 70006741 Anonymous
>>70006194 Trait objects used to be pretty good but now Rustlets are making them even more boilerplatey than they already were constrained generics and impl trait were pretty good but C++20 has them both, and the first one could (sorta) be done as early as C++98

18 hours later 70006846 Anonymous
>>70006719 That would be nice, but as mostly a one-man project it wouldn't be able to compete with C on performance.

18 hours later 70006858 Anonymous
>>69995876 Every big, worthwhile PC game that makes hundred millions of dollars on sales then later in e-sports is written C++.

19 hours later 70007043 Anonymous
>>70006858 except the indie games which actually make individual people rich, which are written in proprietary scipting languages for engines or java, C# (minecraft, stardew valley)

19 hours later 70007341 Anonymous
>>70006194 Sum types Switch case string_view vs &str Generics use a single system for dynamic and static dispatch instead of 2 completely different systems

19 hours later 70007347 Anonymous
>>70007043 other games like slay the spire are written in java too

19 hours later 70007376 Anonymous
>>70007341 and also copy/move semantics are much clearer in Rust and no rule of 3/5 And deriving traits is pretty nice

19 hours later 70007482 Anonymous
>>70007376 >and also copy/move semantics are much clearer in Rust spamming clone might be clear but it's ugly as fuck >no rule of 3/5 the rule of 5 only applies if you're writing classes that need manual destructors. Implementing the rule of 5 is as rare as implementing Drop in Rust.

20 hours later 70007591 Anonymous
>>70007482 std::move is pretty ugly too so I guess if you copy a lot C++ is more elegant and if you move a lot it's the opposite.

20 hours later 70007774 Anonymous
>>69995876 Fuck sepples, I loathe every moment I have to deal with it. Either use C for low level or some higher level languages like C# or Python and call it a day. t. professional C++ systems dev

20 hours later 70007787 Anonymous
>>70007591 Considering you get move for free on temporary values (aka the majority of the objects you want to move) I don't think it's a biggie.

22 hours later 70008975 Anonymous
>>69996364 Shit bait

25 hours later 70011328 Anonymous
Tried rust the other day, it's a bit like C mixed with Python. Quite impressed.

26 hours later 70012185 Anonymous
>>69995876 >only C++ GUI toolkit is Qt with small company responsible for it immediate mode GUIs are growing in popularity and the best ones are written in C++ you also forget frameworks like JUCE all of these can be exposed to the web via webassembly >can't be used on web are you talking about front end? if so you're wrong because webassembly for backend see boost asio, boost beast

26 hours later 70012221 Anonymous
>>69995876 >Rust is advancing where C and C++ reign those delusions

26 hours later 70012242 Anonymous
>>70006682 How the fuck is C a scapegoat when it led to literal billions of dollars wasted due to security issues?

26 hours later 70012274 Anonymous
>>70012242 It's a scapegoat because rustfags fantasize that those losses could be avoided, when in reality they could not.

27 hours later 70012335 Anonymous
>>70012274 They can, and we already had better languages long before Rust even existed.

27 hours later 70012398 Anonymous
I really wonder if this rust idiocy is a coordinated effort to get people to like C++ again. You see this army of colossal cunts attack C++ at every corner, and your opinion of C++ involuntary improves.

27 hours later 70012411 Anonymous
>>70006682 C is incredibly deprecated and doesn't stand up to modern needs. Its type system is pathetic. It didn't have atomics or generics before the steaming-hot turd called C11. It has no RAII. The VLA status changed from nonstandard to standard to nondeterministically standard. It doesn't even perform that well due to the lack of zero-cost abstractions. It still relies on pthread which is garbage. It has no standard building system, and a lot of syntactic dogshit (e.g. typedef and casts). Also, compiler warnings are inexistant when function calls hide the unsafe shit. Even if the said functions' bodies are in the same translation unit. C++11 fixed many of C's issues with a sane standard library (bar iostream) and safe, modern features. But wannabe-h4xx0rz keep rejecting it. They invent random arguments to look like they know what they're talking about. OOP and operator overloading causing over-engineering is a pretty funny one. C++ revolving around template metaprogramming is downright memery. They pretend to be 1337-h4xx0rz and be able to produce safe code in C. Still, most C code posted on /g/ is laughably unsafe. The Cniles who defend C not only don't know the alternatives they defend it against. They don't even know C. So no, C isn't just a scapegoat. It's a legitimately outdated language that has all the good reasons to be criticized. It's not even the only option for low-level programming (C++ and Rust both have inline assembly too). >>70006194 If you do modern C++ the correct way, not much. Rust detects data races at compile time and is syntactically nicer, but that's about it. There are also type traits, but correctly-used multiple inheritance can emulate that.

27 hours later 70012474 Anonymous
>>70012411 Absolutely based.

27 hours later 70012487 Anonymous
>>70012242 Because those billions of dollars are minuscule compared to the overall business opportunity that C facilitated. It's a flea-on-an-elephant scale grievance

27 hours later 70012488 Anonymous
>>69998024 >Sane >Startups bulding things on top of things written in C/C++

27 hours later 70012541 Anonymous
>>70012487 What are these "business opportunities" it facilitated?

27 hours later 70012570 Anonymous
>>70012411 >There are also type traits, but correctly-used multiple inheritance can emulate that. there's already C++ type traits of course with if constexpr and a couple of tricks you can achieve a lot recent compilers implement concepts that give you proper interfaces around this

27 hours later 70012638 Anonymous
>>69997779 Most kernels are written in C, even Windows is mostly in C.

27 hours later 70012660 Anonymous
>>70012541 Is that a serious question? Are you sure you want to try criticizing C (much less deprecating it) if your ignorance of the subject matter runs that deep?

27 hours later 70012688 Anonymous
>>70012541 the OS you are using right now, idiotic nigger.

27 hours later 70012704 Anonymous
>>70012570 >there's already C++ type traits of course It's a slightly different system from Rust's. You're talking about this: https://en.cppreference.com/w/cpp/t ypes#Type_traits_.28since_C.2B.2B11 .29 Rust's type trait sytem is basically multiple inheritance without polymorphism and `is_base_of` constraints on implementations.

27 hours later 70012784 Anonymous
>>70012688 Unix and derivatives are shit, though.

27 hours later 70012797 Anonymous
>>70012660 So I get you can't name any? Gotcha.

2.519 0.109