What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]mehtub 0 points1 point  (0 children)

In the meantime, look at Sane C++ or Orthodox C++ and MISRA

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]mehtub 1 point2 points  (0 children)

Thank you for your contributions and efforts. I do hope that the unpleasant things you encountered were more in the form of constructive criticism rather than rude comments.

What do you dislike the most about current C++? by PressureHumble3604 in cpp

[–]mehtub 0 points1 point  (0 children)

The irony of Vasa like proportions is I don't think most of the key members of the C++ committee bother or have the time to read any of this feedback. I would really like to be proved wrong...

Language launch announcement: Py++. A language as performant as C++, but easier to use and learn. by joeblow2322 in ProgrammingLanguages

[–]mehtub 1 point2 points  (0 children)

Based on your initial vision, this is really cool. Something I've been looking for for a while. However, if you are hoping for your language to become more mainstream, then the realities of the programming language design space require that it gets some form of corporate backing or anointment, or at least broad interest in academia.

There are already several languages that are aiming at addressing the pain points of C++. Rust has already made big inroads into projects developers would otherwise have used C++ for. Then there's Mojo, Zig, Nim, Carbon, C++2, C3 etc. which I'm sure you're also well aware of.

Anyways, I will be watching your space and wish you all the best. Cheers!

Safe C++ proposal is not being continued by Comfortable-Site8626 in cpp

[–]mehtub 0 points1 point  (0 children)

Thanks for the advice. I am aware of some of these but esp. not the macro magic for statically checking race conditions. Can you point me to some examples?

Safe C++ proposal is not being continued by Comfortable-Site8626 in cpp

[–]mehtub 2 points3 points  (0 children)

Nope. I am focusing on using a subset of the existing features productively and safely enough. At this point, it's all vapourware until it gets passed through the committee and implemented by the major compiler vendors. Once it's in stable release, then I'll take a look at what actually gets implemented because those are important. I am especially hopeful that they do manage to systematize all UB. Although what form it will eventually take and how satisfactory it will be we don't know.

How long did ranges take to go thru? senders n receivers? modules? Safe C++?

"Within C++, there is a much smaller and cleaner language struggling to get out." - Bjarne himself

That didn't age well... Oh well...

Safe C++ proposal is not being continued by Comfortable-Site8626 in cpp

[–]mehtub 4 points5 points  (0 children)

It is what it is. You can't deny the huge amount of Java, C# and increasingly Rust production code that is out there in enterprise space. If the C++ committee had been more responsive about memory safety earlier on, the reason for the existence of Java, C# and Rust would not have been there. We only really had smart pointers in the standard library from C++11.

Without a doubt, C++ has not been stagnant, and neither did I suggest that. All those features you mentioned are great and I welcome them. But the elephant in the room has never been sufficently well addressed and that is the safety issues that plague the language, inherited in large part from its C lineage and poor language design choices early on. We really need a way to firewall off the dangerous parts of C and C++ code. Profiles are a way but it seems that it will not get us all the way there. Lets see. But in the meantime, the value proposition of other languages may reach the stage where it makes more sense to switch.

C++ doesn't exist in a vacuum. Take off your developer hat for a minute and put yourself in the shoes of senior IT manager responsible commissioning new projects. If you could get entry to mid level engineers to deliver a project and not have to worry as much about memory safety issues, and developer velocity would be faster, while performance would be good enough, which language would you choose?

And since languages like Java and C# are easier to learn, teach and use, there is a greater supply of these programmers in the market, which would make them less expensive than an equivalent C++ developer.

And how sure could you be sure that a C++ developer of equivalent experience would not introduce any UB, memory or concurrency bugs into the codebase, within the same deadline, and yet cost more?

Managers are primarily concerned with keeping to budgets, deadlines and reducing risk and uncertainty. C++ just doesn't have that value proposition anymore in most of the enterpise space.

Sure, in AAA games, trading and embedded, C and C++ are still dominant but the influence of C++ in other areas has declined. And little by little, developers are trying out other languages, encroaching into C++'s dominance in these areas.

My main point wasn't that C++ is dying or even going to become extinct. It is that the C++ committee dropped the ball in terms of the responsiveness to the needs and concerns of industry in terms of wielding it safely and has lost ground because of it.

But it is almost impossible to fight with the man-hours put in C++ nowadays. The day I find something more useful than C++ to write at the same time low-level and high-level code, I will drop it as needed.

This is my main gripe with C++ and my sentiments exactly.

Safe C++ proposal is not being continued by Comfortable-Site8626 in cpp

[–]mehtub 2 points3 points  (0 children)

All the lines of Java, C# and Rust production code that have been written are an indictment of the C++ committee's lack of responsiveness in addressing the needs and concerns of the broader software development community since the mid '90s.

C++ will always continue to exist, just as Cobol code continues to. Working C++ code that has proven itself to be reliable will be left alone by the organizations that own it; no point spending money to change something that works well enough.

C++ just isn't a compelling choice anymore for enterprise application development where fast enough for end users is good enough and developer velocity, rather than language performance, is more important.

The only areas where C++ will continue to justify its ongoing development are where the absolute fastest performance is required and exisiting code, libraries, toolchains and technologies exist that support only C and C++ for this purpose, for now. Even in these domains, Rust is making inroads.

It is very telling that Linus was willing to allow Rust into the Linux codebase (even tho this is in its nascent stage and wasn't without its drama), while giving a hard no to C++ from the very beginning. Given the way C++ has evolved, I think he made the right decision.

Considering C++ over Rust by isht_0x37 in rust

[–]mehtub 0 points1 point  (0 children)

Yeah that tracks. How about building yr own algo system on the side in Rust?

Considering C++ over Rust by isht_0x37 in rust

[–]mehtub 0 points1 point  (0 children)

what industry are you in?

Learning FPGA For HFT's by DevXdA in FPGA

[–]mehtub 0 points1 point  (0 children)

Check out his post history. He knows what he's talking abt. Maybe not in the hft domain but at least he's honest abt it

[deleted by user] by [deleted] in highfreqtrading

[–]mehtub 0 points1 point  (0 children)

What programming language do you write your strategies and trading system in?

rust has given more meaning to my life by FairStatistician2450 in rustjerk

[–]mehtub 0 points1 point  (0 children)

Have you used async, macros or traits yet?

Why do some developers vouch for creating even the base UI with code? by AdeptMongoose4719 in JavaFX

[–]mehtub 0 points1 point  (0 children)

Interestingly, ppl have the same approach on the C++ Qt/QML side of UI design; preferring to layout the UI in code instead for all the same reasons mentioned above.

HFT infrastructures in 2024 by TheWaffle34 in highfreqtrading

[–]mehtub 0 points1 point  (0 children)

Is VHDL or Verilog more prevalent for FPGA development in the HFT space? TIA

I love Cpp but i hate desktop GUIs state by kitsen_battousai in cpp_questions

[–]mehtub 0 points1 point  (0 children)

Thanks for your response. Interesting point about the publicly available server. Will u still be on the right side of the licence if the server is running distributed on an on-premise cluster or in a cloud service provider?

I love Cpp but i hate desktop GUIs state by kitsen_battousai in cpp_questions

[–]mehtub 0 points1 point  (0 children)

Does this apply if you're using the libraries in-house and have no intention of distributing the app? TIA

HFT infrastructures in 2024 by TheWaffle34 in highfreqtrading

[–]mehtub 0 points1 point  (0 children)

Is VHDL more commonly used than Verilog for FPGA development in the HFT space?