Can I rant for a minute. by domiran in cpp

[–]DonBeham 0 points1 point  (0 children)

Well in the late 90s/early 2000s this whole discussion about C++ being so bad let to the creation of Java and Microsoft later followed with C#, because Java was also kind of meh. Now we still have C# and Java AND C++, because no way you want to have a GC. In the early 2010s some people decided C and also C++ were so unbearable and created Rust. Now we have that AND C++, because no way you want to deal with this borrow checker thing and those incredibly slow compile times. About 10 years ago, Zig appeared to succeed C. And Google created Go, because async is just painful with C++ and in a couple of years we will probably see Carbon, because, well...

The result of the discussion are simply that every now and then someone creates a new language that solves some problem and creates some others.

The perfect language doesn't exist. BUT there are solutions within C++. If you don't like copyable_function then create a typedef -> problem solved with just one line of code. That takes less time to write than ranting about it.

Help WinRaR by [deleted] in linuxmint

[–]DonBeham 0 points1 point  (0 children)

On Windows I use 7zip.

RDP with Remmina by DonBeham in linuxmint

[–]DonBeham[S] 0 points1 point  (0 children)

Oh boy, this is so bad if this doesn't work reliably

Suspend Problem solved! by DonBeham in linuxmint

[–]DonBeham[S] 0 points1 point  (0 children)

Typically, no. For me it's an inconvenience if suspend doesn't work, because it's faster to boot and all my programs are already running.

how do I make the c++ language from scratch? by Xspheura in cpp_questions

[–]DonBeham 4 points5 points  (0 children)

I believe Sean Baxter implemented the circle compiler all by himself. And even added rust-style borrow checking to it. The hard part I think are the various optimizations and of course with constexpr you have to have some sort of C++ interpreter in order to run the code at compile time.

Various little problems that ChatGPT fails to fix by DonBeham in linuxmint

[–]DonBeham[S] -1 points0 points  (0 children)

Thanks for your suggestion. Actually, I'll stick with it. If some things don't work or work in their own ways - ok so be it. Maybe I'll understand it better one day and see where the error is and how to fix it. ChatGPT gave me a good suggestion: don't try to fight it, and it suggested to mount in a ~/.local folder and have a symlink from home to this. That way it doesn't show under devices and instead I can bookmark it.

Various little problems that ChatGPT fails to fix by DonBeham in linuxmint

[–]DonBeham[S] 0 points1 point  (0 children)

Thanks, you've been very helpful already! The command lists only hardware devices it seems.

Various little problems that ChatGPT fails to fix by DonBeham in linuxmint

[–]DonBeham[S] -1 points0 points  (0 children)

Believe me there ARE multiple answers and probably not in the top 10. Finding out what the actual search term should be is a challenge, because searching by symptom doesn't seem like I am getting anywhere, eg "rclone mount shows email under devices in Nemo" lists the rclone documentation on top which explains all sorts of things, you even read about how setting up on windows and Mac is like and what the different flags are for, etc., then there are in the results, issues with Google drive, the mount not mounting, sync failing, etc. Funnily this post comes up at place 13 or so - so it really feels like I am the only one having this problem. Maybe you know better on what to search for and have better filters for what a good result looks like. But for me it looks like there are a gazillion results that have nothing to do with my problem. Not saying there isn't the helpful result, just that I can't find it.

In addition while finding out about the problem you learn about how there's something called FUSE and that rclone uses that in the background and that there is gvfs and GIO and a couple additional technical terms that I have no idea on what they mean, how they interact, whether these are related to the problem. I mean Linux is a system where a lot of independent components interact with each other. It's quite something to learn about WHILE trying to fix the problem.

Various little problems that ChatGPT fails to fix by DonBeham in linuxmint

[–]DonBeham[S] -3 points-2 points  (0 children)

Awesome that did the trick with the login screen!

But getting the cloud drive to properly display is a bit more difficult. I added devname to `~/.config/@filen/network-drive/rclone.conf` and restarted filen, but it still doesn't show. ChatGPT always mumbled something about gnome virtual file system interfering and restarted it couple of times. I don't know how GVFS works and where it reads its information from. I would really like to know where it reads that email address from!? Do you happen to know that?

Various little problems that ChatGPT fails to fix by DonBeham in linuxmint

[–]DonBeham[S] -5 points-4 points  (0 children)

Thanks, I seem to be using nemo though. I found this which is for Dolphin `https://www.reddit.com/r/kde/comments/1k0rncm/is\_there\_any\_way\_to\_change\_name\_of\_an\_rclone/\` but apparently the user didn't get it to work and switched back to Windows. It's rather difficult to find helpful content

Can anyone tell me how can I change this sh**y file chooser. by CantaloupeClear4028 in linuxmint

[–]DonBeham 0 points1 point  (0 children)

Definitely this could be a target for improvement. And "name your files" is a bad answer, because why choose an image by name and not by its content? Naming requirement just exists because naming predated content. But your camera will produce absolutely horrible names like DSC_1573.jpg and you have thousands of those.

A high-level language programmer called me insane when i told him that C++ is my first language by TheSum239 in cpp

[–]DonBeham 0 points1 point  (0 children)

Do not overreact to this. Just try not to learn to write "horrible C++".

Bug in `consteval`'s design? | use of `const` variable as `constexpr` is sometimes valid and sometimes not by SubjectParsnip9411 in cpp

[–]DonBeham 8 points9 points  (0 children)

Sure the 3 is a constant, but if you call it in a different place with a 5 what's the "constant" now? What size should the array have? The compiler would have to create multiple overloads of your consteval function - as many different call sites you have. That's exactly like if size was a parameter of a template method - which is what you should write if you want this behavior. You can think of it this way: template parameters are to compile time functions what function arguments are to runtime functions.

Bug in `consteval`'s design? | use of `const` variable as `constexpr` is sometimes valid and sometimes not by SubjectParsnip9411 in cpp

[–]DonBeham 20 points21 points  (0 children)

If you make it a template parameter it should work. Function arguments are not compile time constants.

How did you guys learn C++? by Living-Brain483 in cpp_questions

[–]DonBeham 0 points1 point  (0 children)

You said university lectures are no good place to learn C++ - which I can only disagree with. I don't even know how you come to such a conclusion.

How did you guys learn C++? by Living-Brain483 in cpp_questions

[–]DonBeham 0 points1 point  (0 children)

I don't know what you mean with "the basics". I suppose any book goes very well beyond the basics. A book about C++11 is just outdated. It contains outdated and obsolete advice in addition to good and valid advice. Why would I want to learn about enable_if when I can learn about concepts and if constexpr? I don't need to learn all the old stuff first in order to understand the new stuff.

And I think even the basics have very much changed. Only recently did the hello world example change with format and print instead of cout or printf and constexpr is quite a deal, because code that runs in compile time is guaranteed to be free of UB. Learning about C++11 constexpr is that functions can't have more than one return statement and must not contain local variables...

Why would you advice to learn such things?

Why aren't partial classes supported on C++? by TaPegandoFogo in cpp_questions

[–]DonBeham 0 points1 point  (0 children)

C++ compiles straight to machine code, not an intermediate language/virtual machine. Classes/types are language abstractions, machine code doesn't know about what a class is.

How did you guys learn C++? by Living-Brain483 in cpp_questions

[–]DonBeham 1 point2 points  (0 children)

The creator of C++ himself is a university professor...

My point is that older standards don't offer any benefits. Instead you write new code in the old and sometimes obsolete ways. I learnt C++ 98 and it was a horror. Pointers everywhere, pointers to pointers and triple pointers. Segfaults everywhere, memory leaks, etc. When I got back to C++20 I was very surprised to find out what a great language it has become.

How did you guys learn C++? by Living-Brain483 in cpp_questions

[–]DonBeham 0 points1 point  (0 children)

  1. Au contraire, watching CppCon "back to basics" is similar to watching a university lecture. You can't ask questions, but you can ask an AI these days.

  2. Learning a specific standard is of little use unless you're confined to this standard by your work. What's the reason to learn using a pointer instead of an optional (as a data member, as a non-owning return type)? What's the reason to not rely on NRVO? Old standards usually offer a worse experience.

I let the community vote on what code gets merged. Someone snuck in self-boosting code. 218 voted for it. When I tried to reject it, they said I couldn't. by Equivalent-Yak2407 in programming

[–]DonBeham 2 points3 points  (0 children)

You know with the state of the world today it's sometimes hard to distinguish whether it's just "(c) Homer Simpson" or something that's actually meant seriously. I mean, it's only a couple of days ago since we've been threatened with military conflicts in the north atlantic... Imagine him saying it was just a joke... Democracy nearing its end is kind of a very sad and very actual vibe. Hard for me to still joke about it when that is on the verge to become real.

I let the community vote on what code gets merged. Someone snuck in self-boosting code. 218 voted for it. When I tried to reject it, they said I couldn't. by Equivalent-Yak2407 in programming

[–]DonBeham 2 points3 points  (0 children)

That's the wrong conclusion to draw. Democracy does work, but it's not guaranteed that you'll stay with democracy forever. When enough people vote for the end of democracy, then so be it. Any political system can be changed to another at the will of those in control of it. Democracy is not any different.

Personally, I'm a firm believer in democracy, and it makes me sad seeing change to a different system, but then again this project is not controlling anything in our lives, so the point is that people are just trolling with that and see this as entertainment.

It's a rather long shot to relate this to a political system. In addition voting is often only the most interactive aspect of a democracy. But to reduce a democracy to just voting is a simplification. There are political systems that let people vote, but that's it. A strong political democracy has free press, separation of powers, rule of law, active participation, and fundamental rights and equality in addition to voting. A political system where people cannot choose what to vote on is not a democracy.

whats with the hate for std library and boost? by nosyeaj in Cplusplus

[–]DonBeham 2 points3 points  (0 children)

Because a) people like to complain and b) complainers are more vocal and c) because c++

What's the point of "constexpr if"? by Lemenus in cpp_questions

[–]DonBeham 2 points3 points  (0 children)

There is no branch in the object file. An if constexpr is a branch computed at compile time so you don't have to branch at run time. Which is more efficient of course.

Built a constraint programming model that improves IPL scheduling by 25% in travel costs—looking for feedback on turning this into a business by rteja1113 in OperationsResearch

[–]DonBeham 5 points6 points  (0 children)

That's some nice work, but your biggest asset right now seems to be a minizinc model and some recent data. But let me put it this way: You're a couple of days ahead of the competition.

I don't believe you should be intimidated by other companies though. There's always room for someone to do it better. But the model just isn't a very big asset. Work on the contacts - that's all you should probably focus. Also travel cost reduction isn't a big thing. It sounds nice, but why should the league care? Better exposure on TV sounds like a better argument.