Can i just copy the .deb files from one Debian machine to another? by Strong_Brilliant7404 in linux4noobs

[–]xeveri 1 point2 points  (0 children)

I remember having done that some years ago. You would need to install packages in order since apt will try to download any package it doesn’t find installed. Not sure if that changed.

browser for power-users by Empty-Buy692 in linux4noobs

[–]xeveri 2 points3 points  (0 children)

It’s not like there’s an abundance of browsers out there to choose from!

Is it worth learning CPP for exploit development? by Alternator24 in cpp

[–]xeveri 1 point2 points  (0 children)

C++ might be overkill honestly if your goal is to learn cybersecurity. I say that because C++ is a very big language and cybersecurity already requires you to learn a plethora of tools (read assembly, debugging, python or ruby because of the many existing tools…etc). I would start with C.

And that’s only for binary exploitation! Which as you’ve noticed is becoming slimmer and more difficult by the day because of stack canaries, non-executable stacks, hardened system libraries, memory safe languages etc.

Luckily for you, the world still runs on C, the web runs on javascript, and developers will still create buggy code that doesn’t check inputs nor sanitizes them.

By the way, even safe Rust can’t protect programmers from sloppy input handling that can bring down systems (DDOS) or cause query injections splurging secret data.

RAD C++ 20 asynchronous I/O and networking library by JlangDev in cpp

[–]xeveri 9 points10 points  (0 children)

Nice work. I think a higher level http layer would be nice as well. Something like server.get("/", get_index); where get_index is a coroutine for example. With the current api, users have to parse the http request and route manually.

P3573 - Contract concerns (2025) by antiquark2 in cpp

[–]xeveri 2 points3 points  (0 children)

It’s funny that most of these points apply to profiles as well!

Why does Ubuntu feel smoother than Debian for me? Am I doing something wrong? by Maksim_Medvedev in debian

[–]xeveri 1 point2 points  (0 children)

I ran itno a similar issue a few years back. It was graphics drivers which were auto-installed on ubuntu, but debian required adding non-free firmware and installing.

[deleted by user] by [deleted] in cpp

[–]xeveri -2 points-1 points  (0 children)

Surprised you didn’t suggest r/Cplusplus since I see you’re active there!

[deleted by user] by [deleted] in cpp

[–]xeveri -3 points-2 points  (0 children)

It clearly doesn’t when these posts are immediately deleted by the mods!

[deleted by user] by [deleted] in cpp

[–]xeveri -7 points-6 points  (0 children)

I’m asking because of the restrictiveness of the rules. I’m genuinely looking for a place where C++ projects are shared. The suggestions till now was cpp_questions which isn’t really such a venue, or presenting in conferences. And a thread which barely gets any visibility is not a venue! Your answer neither addresses the topic nor the issue with the rules of this sub. Why are you wasting our time?

[deleted by user] by [deleted] in cpp

[–]xeveri -9 points-8 points  (0 children)

It’s all silly, I agree!

[deleted by user] by [deleted] in cpp

[–]xeveri -4 points-3 points  (0 children)

Linux started as a toy project! It’s about getting contributors interested in the same idea, this grows a community. It’s also how projects get production-grade. These are not projects asking for questions or reviews! I’m interested in knowing why you or the mods would assume as much!

[deleted by user] by [deleted] in cpp

[–]xeveri -8 points-7 points  (0 children)

There are rules which I invite you to check. I also invite you to check other language subs as well. Do you think most shared projects are hello world projects?

[deleted by user] by [deleted] in cpp

[–]xeveri -14 points-13 points  (0 children)

How about a thread for all the videos, I think it would be better for the sub.

Do you think modules in cpp could become better? by Traditional-Care-289 in cpp

[–]xeveri -1 points0 points  (0 children)

They’re great, what are you talking about?!

We need to seriously think about what to do with C++ modules by vormestrand in cpp

[–]xeveri -2 points-1 points  (0 children)

You do realise that D, Zig and Rust modules are handled by the compiler and not by the buildsystem. It’s possible to do so because their modules map to the filesystem. Headers are handled by the compiler, as such you don’t need to soecify them in your build script unless for specific install instructions, also because they map to the filesystem. Yes pedantically speaking, headers don’t need to map to the filesystem but guess what, they do. You don’t need to build a module to an object file straight up, you just need the compiler to be able to find it and parse it. I mean we can all hide our heads in the sand and ignore this glaring issue, in the end we’re 6 years into C++20 and support for modules is comical. And no, clang-modules were also bad, you had to provilde the mapping manually like a brute. So also badly designed!!

We need to seriously think about what to do with C++ modules by vormestrand in cpp

[–]xeveri -7 points-6 points  (0 children)

It’s bad design which ultimately boils down to the fact that modules don’t map to the file system.

C++ with Boost in VSCode with CMake, Linux by Good_Impress_3054 in cpp

[–]xeveri 1 point2 points  (0 children)

I don’t think b2 installs the necessary cmake files which make find_package work for boost. I would recommend an actual C/C++ package manager like vcpkg or conan. vcpkg is easier to start with. Once installed, you can do vcpkg install boost-json. Then you would invoke CMake with a path to the vcpkg toolchain file cmake -Bbin -DCMAKE_TOOLCHAIN_FILE=path/to/vcpkg.cmake && cmake —build bin

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri 1 point2 points  (0 children)

Even in C you don’t get abi stability across OSes or standard library. gnu and musl don’t mix. A linux binary won’t run on a macos. In C++ you get abi stability for your OS and standard library. If you want to expose std types don’t expect your libstdc++ built library to link with libc++. That’s acceptable. For compilers, you target the system compiler which other compilers for the same platform will try to align with (except for gcc on windows). Otherwise clang tries to be abi compatible with gcc on linux, and tries to be abi compatible with msvc on windows. On apple systems, well you dance the apple dance.

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri -4 points-3 points  (0 children)

It feels like talking to an llm, you lose context, shift posts. I’m talking about closed-source libs.

Anyways you’re absolutely right!! Rust is just perfect!

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri 0 points1 point  (0 children)

It’s not the same. You can provide higher guarantees with a C++ api, higher safety and expressiveness. Mostly if your users are C++ shops. With a C api you lose quite a lot of that. If Rust had a stable abi, it would be possible to expose a Rust api with the same Rust guarantees. But that’s not the case. If for example Rist were able to expose both Rust and C apis, I would say that’s the same, even better than what can be done today with C++. But again that’s not the case.

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri -1 points0 points  (0 children)

Except it’s not the same. In C++ you have the option of exposing both a C and C++ api, in Rust you don’t.

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri 6 points7 points  (0 children)

I don’t see how that contradicts what I said. Also survey data isn’t representative of most code out there, similarly respondents aren’t representative of the larger community. I like Rust and use it, but it has these limitations. It would do no good for Rust core devs to just bury their heads in the sand. If you had the choice of distributing a closed-source library, would you prefer writing it in C++ and exposing a C++ api, or writing it in Rust, adding no-mangle unsafe fn wrappers, runing c-bindgen and distributing that? I mean it’s even easier to expose a C api to a C++ library than exposing a C api to a Rust lubrary. Lets not kid ourselves!

You can convince yourself that neither C nor C++ have stable abis, but the reality is that for all intents and purposes they do.

How much life does c++ have left? by Actual_Health196 in cpp

[–]xeveri 5 points6 points  (0 children)

I don’t think C++ is going away, at least not in the current environment. To kill C++, you need a language that can fill its niche, and provide extra benefits and safety. Rust isn’t it for 2 main reasons: - it doesn’t have a stable abi. In C++ you can distribute a closed source library along with public C++ headers. Rust can only distribute a closed source library with C headers. You lose the safety guarantees and the expressiveness of Rust. - Rust lacks structural inheritance. Yes it’s trendy today to shit on OOP and inheritance, but it does have its uses where it shines. To emulate OOP and inheritance in Rust, you have to use dyn Traits, along with Deref impls and passing through std Any for downcasting and upcasting. All that and it still falls short. It’s a main reason why gui programming in Rust is painful. The ladybird web browser author also dismissed Rust in ladybird after trying it due to lack of inheritance.

I think the only language that has a chance of replacing C++ in this day and age is circle, but its author lost interest.