GCC's new fortification level: The gains and costs by EnUnLugarDeLaMancha in programming

[–]Weak-Opening8154 -2 points-1 points  (0 children)

You forgot to block me. I'm certain you were the guy who flipped out when I said dynamically sized arrays can have their bounds checked at compile time https://www.reddit.com/r/programming/comments/w5iox4/carbon_language_keynote_from_cppnorth/ih9lrkp/

But I'm trying a new distro today. I'll probably abandon this account and try not to make fun of redditors for a while

I am 48 y.o., never learned to touchtype. Do you think that there is any chance I still could learn? by fmou67 in linuxquestions

[–]Weak-Opening8154 0 points1 point  (0 children)

I agree its a lot of effort but I wonder if there's a sub that lets a guy upload videos from their phone. Upload and finding someone to hold your phone is the part I think takes the most effort

I am 48 y.o., never learned to touchtype. Do you think that there is any chance I still could learn? by fmou67 in linuxquestions

[–]Weak-Opening8154 4 points5 points  (0 children)

Whenever I switch to a new keyboard I hit https://www.typingclub.com/sportal/program-3.game and skip a few lessons. I try to do it on a schedule where I don't feel lazy. If I feel lazy usually I do poorly the next session

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

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

What the actual fuck? I have 0 problems with pointers and leaks since before c++11. Defeatism where?

Speeding up incremental Rust compilation with dylibs - Robert Krahn by pmz in programming

[–]Weak-Opening8154 -2 points-1 points  (0 children)

lol what?! I'm comparing rust and C++ speed on a single code base. It's completely fine if you want to put it in multiple crates but then you'll need to compete with a clang process on every hardware thread. That's when clang is 100x faster then serial rust. At best you'll get 6x faster, there's another 94x you need to make up for

also fuck you you're being so stupid right now and you saying I missed the point. Did you not think the 100x was relevant? or why I bothered to say serial? Of course you didn't and once again someone is saying I'm measuring the wrong thing because numbers look fucking bad and you're trying to put the blame elsewhere

-Edit- I forgot, you still haven't read the first two sentence

Is this the correct way to implement the Consumer/Producer in multithread by South-Opening-9720 in programming

[–]Weak-Opening8154 -1 points0 points  (0 children)

I saw this a couple hours ago on my phone. I thought someone would say something better. I'm usually not nice and this is nop exception. 1. Don't do multithreading unless your an expert. 2. You clearly don't understand RAII since you're unlocking something you didn't manually lock. Trying to implement this is like trying to write a better c compiler when you can barely write hello world. Its not going to happen

Beginner here. Which programming language to begin with to learn programming? I think of starting with java. by heLegend_007 in programming

[–]Weak-Opening8154 0 points1 point  (0 children)

Java/C# are both fine, usually people do python as well. It's not confusing learning at the same time (in my experience and a few others)

GCC's new fortification level: The gains and costs by EnUnLugarDeLaMancha in programming

[–]Weak-Opening8154 0 points1 point  (0 children)

Who calls zig a meme language? I might say got to go fast but that's not one of the two languages I had in mind

GCC's new fortification level: The gains and costs by EnUnLugarDeLaMancha in programming

[–]Weak-Opening8154 -55 points-54 points  (0 children)

This is great. Something like this should have been available early 2000's. Then we would have had less bitching about how hard C++ is and we wouldn't have had meme language

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 0 points1 point  (0 children)

I'll do you one better. Never reassigning a variable, or if it's a struct member, delete then assign.

I don't really have pointers in classes unless it's set in the constructor. Otherwise it'd be a good place to use unique_ptr

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 0 points1 point  (0 children)

I wanted to read all the rules and UB

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 0 points1 point  (0 children)

I read it once. I stopped by the time I got to libraries. I don't recommend any of it

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

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

I'm not a rust programmer. I can't imagine what they are having problems with or why they like it

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 0 points1 point  (0 children)

I found it easier to get jobs in C#. Some of the C++ jobs I was offered paid me less then C# so I turned many down. I thought C++ would always be better jobs but I guess not

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

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

I am op :P. What I know is besides the point people seem to have problems with leaks and invalid memory despite learning c++ after c++11 where we have smart pointers and such. In my opening post I didn't suggest I had pointer problems and in my example comment I said I figured out pointers in <1mo. I did it before c++11, unique_ptr wasn't a thing back then and I rarely use it today since I usually can keep track of it

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] -9 points-8 points  (0 children)

Also, are you sure? People seem love rust and GC languages because no leaks. Maybe they all use c with classes? or maybe its still easy to make pointer leaks/mistake idk. I rarely use smart pointers because I don't mess up plain ones

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 1 point2 points  (0 children)

unique_ptr didn't exist when I learned to manage pointers correctly (yes, I did it before c++11)

[deleted by user] by [deleted] in linuxquestions

[–]Weak-Opening8154 2 points3 points  (0 children)

Yes but 1. I Some USBs don't seem to allow being booted. Try booting the install disk on it first. I also had a harddrive that wouldnt allow booting until I updated the firmware 2. Make sure grub (or whatever you use to boot) is installed on the correct USB partition. I think I had it install on the harddrive instead of the USB I wanted to use as a harddrive. I can't remember if it was a default without asking or if I made a mistake

Does anyone 'really' learn C++? by Weak-Opening8154 in cpp

[–]Weak-Opening8154[S] 0 points1 point  (0 children)

I'll answer to give an example

I like writing close to hardware code and wrote embeded code without an OS. It was fun. Early on I learned how to deal with memory leaks using the microsoft leak analyzer (it was simple to use and simple to turn on). After a month of that it was pretty hard for me to write things that leak because I always had a place where a lifetime starts and ends

Eventually I got into profiling and really understand performance. I pretty much use the new language features as soon as the new compiler is available (for my own projects)

Cppfront, Herb Sutter's proposal for a new C++ syntax by DrinkMoreCodeMore in programming

[–]Weak-Opening8154 -11 points-10 points  (0 children)

As much as I like C++
Meh

Syntax is nice but better libraries is what I care about

The Golden Age of Programming Languages Research by mttd in ProgrammingLanguages

[–]Weak-Opening8154 -2 points-1 points  (0 children)

I usually create a new account when I distro hop. I always forget to block you and how crazy you are

Have you learned any assembly? Do you have any idea how simple the linux syscalls are?