I have a C++ project that contains a vast amount of exception handling. The added exception handling increases my executable size 10 fold and im trying to figure out a way to reduce the size. any suggestions out there?
I'm teaching myself C as a first language and have a desire to be a good C programmer. I plan on reading the C standard(s), but am unsure which version to start with.
Your thoughts and experience are appreciated.
Thank you!
@CatPlusPlus I'm starting to come to the same conclusion. It was Clang on Windows that sucked again btw, g++ just crashes after coming further in the execution
1. Make it easy on yourself and slightly annyoing on the user and use the above code 2. Make it very hard and annoying on yourself, but easy on the user by overloading
wow:
___chkstk_ms ()
at /home/ruben/mingw-w64/toolchain/src/gcc/libgcc/../gcc/config/i386/cygwin.asm:147
147 /home/ruben/mingw-w64/toolchain/src/gcc/libgcc/../gcc/config/i386/cygwin.asm: No such file or directory.
this is on mingw. Fuck
facepalm for using experimental std::thread on MinGW-w64 GCC.
@RMartinhoFernandes lol, I was promoting it so someone else would run into shitty problems before me, so I could get the MinGW-w64 people to fix them before I had to use them.
Since I started to frequent this forum, if you can call the few mins I spend here everyday since last week that, I have become very aware of my ignorance.
@Olumide oh yes, SO does that to people. Especially the C++ lounge. But listening to these madmen really results in the best way to solve your problem.
@Olumide As everyone knows who has been at a birth, the moment the mother-to-be despairs is when experienced midwifes smile, because they know that usually this is the moment when the child is about to come pretty soon.
@rubenvb I'm not even going to click on that. There's children in this room.
@RMartinhoFernandes Ick! Pealing peanuts is half of the appeal of eating them.
@rubenvb Did you ever have a banana? Yeah, thought so. Now I can say: But you're a human, not a monkey! Yes, of course, this is stupid. That was my point, actually.
@sbi I take that to mean I'll soon become a guru too. I've started to listen to C++ talks of Microsoft chnannel9 and read some of Scott Meyer's articles
@sbi I've been doing the first two but last week I learnt from @RMartinhoFernandes that I need to hang out with people who know more than I do. And he's right. I remember how much I learned during my first software engineering job (before going to do my PhD).
One of the things I'm currently trying to get to grips with is creative uses of the SFINAE principle. Real powerful stuff. Sad there aren't very many books on the subject.
The one thing that for some reason took time to sink in my skull regarding SFINAE is that it applies to function templates, meaning that template arguments of class templates won't trigger it.
I have used template based containers and have written function templates -- nothing too big. I've only just become aware that there's a lot more to templates than containers.
Well that certainly is one of those things you should learn from others -- I wouldn't rely on independently rediscovering TMP and generic programming on my own.
@sbi Mine.... can eat..... I mean.... like constantly. Like I'm sure that whole banana just filled her half-apple sized stomach, and then she drinks 8 oz of milk, then snacks on cereal, then eats a toddler meal.... and so on.
After all that, when we go to eat dinner, she gets what we have too.
The funny thing is..... she hasn't gained weight either.
@Xaade Oh, my kids do that, too. Well, mostly. One of my sons will call me up to three times before he falls asleep sometimes. But there's more to this. At least here, because I wash my kids before getting them to bed. So with the small ones, I have to make them wash their hands after dinner, get their pajamas, get undressed, wash them, brush their teeth, read a bedtime story, and say good night.
@Xaade Then it's unlikely she'll get too heavy. It's mostly bottle-fed kids that do that. (Of course, if you only feed them at McDonald's, that changes the odds considerably.)
@sbi I don't understand how McDonald's is easier. You have to leave the house, order food, bring them back home, then leave the house again because they get hungry in 15 mins.
I find it easier to feed her a banana, some fruit, and cheerios, which she eats all by herself.
@Xaade Actually, in the long run I found it easier to insist on proper meals from a certain age. I give them as many meals as they want, but nothing in between. Constantly eating is not what I want them to get used to. I go nuts over those mothers on the playground constantly handing out cookies, apples, sweets...
@Xaade For my first child, in her first 18 months, raisins was the sweetest she knew. But once they have older siblings, such resolutions go down the drain quickly.
@Xaade Yeah, when they enter kindergarten, all is lost anyway. :) They suddenly learn words you'd never say in their presence, and get to eat stuff you'd never feed them.
When I drink something else, I sip it..... but when I drink water I try to gulp it. Then I have difficulty controlling breathing, and I literally can't drink water.
Well, I think I need to put some more pressure on the kids in the bathroom. They procrastinate. I need to remind them that this time is taken out of their story.
@Xaade Chili, huh? I remember one of my kids happily sucking at a lemon at the age of 5 months. Half a year later, she would have spat it into our faces. :)
Which reminds me: One of my boys, around his first birthday, always wanted to eat and drink what everybody else had, and got really mad if there was something he couldn't get. Which was a problem with things like beer. So one day I bought the most bitter beer I could find, and, when he threw a tandrum because he couldn't get what I had, gave him a few droplets on his tongue. He literally spit it onto my face.
He was very cautious since, and mostly accepted when he wouldn't get something we had. :)
@MrAnubis I am afraid I will never get why some people don't get recursion. I always thought if teachers wouldn't make such a fuzz about it, students would learn it much easier.
it's often teacher making things hard, that makes them hard to comprehend. It's almost as if they never got the point either, and hence cannot convey their understanding