« first day (526 days earlier)      last day (4415 days later) » 

3:00 AM
why oh why is multihead rendering in Direct3D9 so irritating :(
 
I wish there was a better way to store information permanently than in files, information that needs to change as well :(
 
Xeo
0
Q: Is there any way to automatically create function overloads to be capable to get rid of use of Exceptions for flow control?

myWallJSONIs there any thing in boost or a way using standart C++03 featires to get an ovverite for each of your functions that looks like (pseudocode): some_var myFunction(a, b, c) { //... do stuff than in some loop throw int_exeptioncode_1; //... do stuff .. than in some loop throw int_exeptioncode_2; }...

Whyyyyyy?!
@Hoxieboy memory mapped files?
 
and not variables or arrays
@Xeo thats the thing, still uses a file :P
maybe what I'm thinking is a program that can write to itself XD
 
I am way too fat
 
Xeo
Well...
 
3:01 AM
@Hoxieboy You could modify your own binary, I think.
 
@DeadMG wouldn't that be a file-io access violation though?
 
Xeo
You really only have two choices. short- or long-term memory. That is, RAM or harddrive (aka files)
 
@Xeo Your comment seems to conveniently not acknowledge the existence of e.g. std::system_error :)
Or boost::system_error, since this is C++03.
 
Xeo
@Hoxieboy Normally an exe is loaded into the memory in full and doesn't need any reads after that. Some OSs protect you from modifying an exe that's executed, though
 
files for now, its just I have like 7 files all dedicated towards first names, last names, the greek alphabet, the military alphabet, and so forth, I want users to be able to edit the files, but not be cluttered by them :P
 
3:03 AM
@Hoxieboy Webservice?
 
Xeo
What you can do is copy the exe, modify that, and start a lil script when shutting down
 
wait, how could I make an editable file without the file? derp >.<
 
Xeo
@Hoxieboy Maybe make a few config files + a convenient config editor?
@Hoxieboy logic fail, eh? :)
 
@Xeo indeed :)
well, I guess ill keep the files in a separate folder for now, the config files might be useful later... brainsplosion
 
Xeo
Anyways, off to sleep. G'night
 
3:07 AM
night
I love classes, they make item university(and diversity) feasible with 20 lines of code instead of 60+ :D
@DeadMG You were saying something about being way too fat?
 
yes#
 
So am I.
 
lol if you're a programmer you either become A.) too fat, or B.) really emaciated and white.
 
As of Monday my walk home from work will take around 2 hours. 4 days a week (Monday is Japanese class). Hope that will help.
 
unfortunately, it's not terrifically likely
 
3:13 AM
@StackedCrooked no bike or anything?
 
walking burns virtually nothing as calories
 
@Hoxieboy No, I prefer to walk.
 
maybe some parkour along the way :D
 
@DeadMG Yeah, it only matters if you walk a lot.
Say if you walk 1 hour than you burn x calories and if you sit at your desk for 1 hour then you burn y calories. In order to know how many negative calories you actually gained you have calculate y - x.
 
well, thats 6 miles if you walk an average of 20 min per mile, so how many calories do you burn in 1 minute every 20 minutes?
 
3:16 AM
I never realized that until recently.
@Hoxieboy Dunno, I think I burn about 600 calories in 1 hour of walking.
 
yeah I think you're right lol
rofl the more you weigh the more calories you burn because of how much more your body strains XD nature and its cruel ways
 
@Hoxieboy Not by anywhere near enough to compensate for the fact that a fat person will do less exercise.
 
@DeadMG unless they have to (exercise)
 
user457812
Even then the exercise they do probably isn't enough.
 
well, yes, but you'll probably take frequent breaks if you're fat
and decrease your calorie consumption
 
3:20 AM
yeah, but last time I checked you don't really generate calories when resting?
 
I'm pretty sure you burn less calories if you take a break in the middle
 
Yeah, you have to keep walking.
 
well lets see, if you are fat due to no exercise, changing your routine to involve exercising will logically show a loss of fat, whereas being fat due to eating disorders, not due to exercise will logically not be effected by exercise as much as A
XD
 
@Hoxieboy What about the 25% of the (fat) population who have neither problem as lifestyle, but have a genetic cause?
 
The body gradually changes from sugar burning to fat burning. It takes maybe 40 minutes to reach a good fat-burning level. I like to maintain that state for as long as possible.
 
3:23 AM
well, my friend, 'nature and its cruel ways'
 
well, my point is that you have a very narrow-minded view
obesity is like cancer- there's a lot of causes, most of which are not well-understood at all
 
@DeadMG not so narrow minded as crudely estimating
 
and simply encouraging people to exercise and eat better is not at all going to fix the problem, because simply put, lack of motivation to do those things is not the cause of obesity in the general case
else, we would not be facing an obesity epidemic, since that has been the medical advice for 30 years
 
@DeadMG true, take for instance metabolisms, one man can eat like a horse and be as skinny as a reed and the latter for another, I see where you are coming from
 
metabolism? that has nothing to do with it
 
3:25 AM
Fact about food is that given sufficient restriction of calorie intake, you will lose weight. It just feels kind of unfair that for some people this means constant hunger and for others it's nothing.
 
technically it is
 
it's, at least, a combination of genetics, hormones, and stress
@StackedCrooked Also, there's no guarantee that "sufficient" is on par with "reasonable"
if you take two adult men and give them both 2000 calories a day, one of them will be 10% body fat and the other 25%
that is, some people's bodies simply maintain their body fat at a very high level and will shrink it only in proportion to the shrinkage of other vital organs and functions
case study for anyone who is interested: northern India
you take a fishing village who are sustenance farmers- that is, they actively farm the land for all their food
very active lifestyles and excellent diets
so how come they have more diabetes, more heart attacks than fat Western couch potatoes?
 
because western couch potatoes are more delicious and are eaten faster
 
if you actually check, that thin-looking Indian guy who never ate a gram of chocolate in his life is 25% body fat for no apparent reason
so obesity is like physics- the classical explanation just doesn't explain the observed results
and the identical twins with the same genes and the exact same environment, and one of them is 21 stone and the other is 13 stone
 
@DeadMG identical twins are not very identical when it comes to basal metabolic rates
 
3:31 AM
@ScottW That's not too bad.
 
and yes, metabolism IS linked to obesity
and is also linked to genetics
 
@Hoxieboy If you check the metabolic rates, they just don't have a significant impact atall
you have obese people who practically have a higher metabolic rate than normal people
 
their bodies need to have a higher BMR, or else they would die...
 
right
 
bodies are never static :P
 
3:33 AM
I'm BMI 30.
 
simply put however, metabolism is based from genetics, but it CAN change, if you ate mostly sugars your body would have a higher rate than most
 
Gained 30 kg over a period of 5 years.
 
what I'm saying is that metabolic rate has virtually nothing to do with obesity and Scienceâ„¢ hasn't managed any significant correlation
@ScottW Not really.
 
lets just say its pointless to argue about it and if you really have the time and resources to monitor every single person in the entire world's weight and lifestyles, go ahead and have fun proving a point, I wont stop you ;P
 
as far as Scienceâ„¢ can tell, it is a switch in the brain
 
3:35 AM
I wish there was a way to give type-safe enums assignment operators :/
 
setting A says : food is plentiful, make large internal organs cause there's loads of food and we don't need many fat stores
setting B says : food really scarce, pile on that fat cause you don't know when your next meal is
it's an evolutionary adaptation that probably saved our asses during some Ice Ages
the problem is that you can flip to setting B permanently.
 
evolution: a change in a species genetic makeup that become favorable over a period of time
 
Maybe genetic manipulation will rescue us here.
 
specifically, if you are malnourished because of your mother's diet in the womb, you get setting B
a 25% increase in chance of becoming obese- the strongest correlation ever found for obesity
then you talk about hormones
the hormones of obese people are, in short, fundamentally broken
 
and diet, which still matters :p
 
3:38 AM
What kind of stupid woman goes on a diet while she's pregnant?
 
@StackedCrooked better yet, who could? lol
 
@StackedCrooked Or imbalanced diet.
 
Yeah I know.
 
and, in addition, don't forget that a significant part of the health of a baby is determined by the quality of the mother's eggs, which are created when she is conceived
for example, consider rationing in many countries after WW2
your grandmother has to eat less because there's rationing -> poor food quality for mother -> bad eggs -> you can become obese
 
erm... -.-
 
3:39 AM
not a very fun chain of causation, is it?
anyway, back to hormones
normal people have a hunger hormone and a fullness hormone, like
you wake up, you haven't eaten all night so you're hungry, you eat someshit, and then you get full
 
you would have to have bad eggs inside of "Eve" for it to happen in the first place though
 
@Hoxieboy Why? Your grandmother doesn't have to have been from bad eggs. She only had to become pregnant during a time of less food.
but for fat people
their hunger and fullness hormones, basically, just don't ever respond to what you eat- they stay virtually static
 
eggs are formed inside a juvenile girl at the time before birth, you can't have a grandmother with bad eggs due to no food, because no eggs are made during lifetime
 
so whatever you do, you're always hungry, and whatever you eat, you're never full, because the chemical messages that are supposed to go from digestive system to brain to indicate those states never arrive
@Hoxieboy Sure. But you don't have to make bad eggs if your mother was a bad egg. Your mother could have been a perfectly good egg who had the bad fortune to be pregnant in a time of low food, or simply not had the education to eat a balanced diet. Then, you get the same problem.
 
still the odds are like 1 in 60,000 or so forth
:P
 
3:43 AM
what, you're a doctor now?
 
lol no I jk I have no clue how many eggs are in a girl :P if I did I would be kinda creepy
 
lol
 
Valgrind y u so slow?
 
well, I would suspect that if you were conceived whilst your mother had a poor diet for some reason, you would probably produce all bad eggs
plus, there's a genetic component, of course
and that gene is activated by environmental causes- like the gene for being a psychopath
 
I guess so, but wouldn't you be a bad baby too? because you are literally one cell (a zygote), so wouldn't that one cell be malnourished?
 
3:45 AM
@Hoxieboy Probably. But presumably, you form your eggs during a specific period- you could catch up the rest of your body over the rest of the pregnancy, I guess.
however, there is a pretty strong inheritance correlation for obesity
the problem is that there is both an inheritance correlation because of low egg quality and poor pregnancy diet, and because of genetics
and untangling the two is non-trivial
lol
interestingly
 
true, like for the gene that causes failure of lactase digestion XD
 
did you know that the gene for being a psychopath acts in the same way?
it's latent, but activated by external factors
 
@ScottW when you said that, it made me think of the old grandmothers eggs's
 
you have to be genetically an axe murderer, and then something happens, and it turns right on and then you become an axe murderer
lol
that's just the gene for stupidity :P
 
java is good in its own terms, quit bashing lol
 
3:47 AM
heh, yeah
 
NEVAR
 
pity that Java's own terms is entirely comprised of worthless trivial programs
 
ok. lets see C++ interact with the WWW like java can...
 
what do you think your browser is written in?
cause it ain't Java
 
most certainly not C++ :P
 
3:49 AM
Chrome is in C++.
 
uh, almost exclusively C++
 
Firefox is written in a ugly blend of C and C++
 
chrome is in C++ yes, but the internet reaction part of it is written in python
so technically, the C++ part of it is null
 
@EtiennedeMartel And JS.
 
The fucking rendering engine is in C++, the JS engine is in C++, the part that interacts with the system in C++...
 
3:50 AM
all languages which have object-orientation have the same ability to access the Web
there are client and server libraries for C++ too
 
@DeadMG huh?
 
And you're telling me they're using Python to send HTTP requests despite the availability of stuff like libcurl?
 
@EtiennedeMartel Or boost::asio
 
true, but how would you pit C++ against java in web browsing?
java can be a browser you know
 
can be
but strangely enough, all the browsers I see are not Java
 
3:51 AM
Java is an all-purpose programming language, of course you make a browser with it.
Hell, there's even a JVM written in Java.
 
lol
 
C++ has portability and tight integration into almost all systems, java is exactly the same
 
@Hoxieboy hahahaha, yeah
 
C++ also has better performance.
Generally.
 
it has shitty, shitty, shitty facilities for destroying unmanaged resources
 
3:51 AM
@EtiennedeMartel crude
 
@Hoxieboy Startup time is horrible to start with.
 
which are essential when your program is composed of managing, say, rendering objects, or Web sockets, or something like that
 
Eclipse is such a big resource hog, and it's one of the less painful Java apps.
 
@DeadMG nothing you cant fix, C++ has shitty, shitty, shitty web functions
 
then there's the utterly balls-tighteningly terrible performance
 
3:52 AM
@Hoxieboy What do you mean by "web functions"?
 
@Hoxieboy What makes you say that? The boost::asio stuff seems really quite painless.
 
as in, displaying an applet INSIDE a webpage, that isn't being hosted from the computer it runs on
 
Applets suck.
 
the fact that Java sucks is built in to the damn language
the only thing you've got that you even suggest might suck is a random library or framework that anyone could create at any time
 
Flash is better than Java for client side stuff.
 
3:53 AM
i could say C++ sucks and not give a reason too
 
And when Flash is better than you, oh oh oh.
 
oh yeah, and like, 99% of all of that stuff is Flash
hell, I think I've seen more Silverlight than Java
 
ActiveX used C++, IIRC.
 
oh yeah, and that
 
Sucked big time.
 
3:54 AM
erm... I'm fairly sure java is way more popular than C++...
 
heh
 
Anyway, with HTML5, JS is going to own everything.
 
it's pretty much dead now, IIRC
 
@Hoxieboy So what?
 
@Hoxieboy There are no meaningful indexes of which programming languages are most popular.
 
3:55 AM
Java is the new COBOL. All the banks use it. But the rest of the industry has moved on.
5
 
the only one I've ever seen even try to claim programming language popularity is TIOBE, and their method is pathetically laughable
 
Well, TIOBE measures hype, not popularity.
 
not even that
 
I think I prefer java over C++ for most of the reasons why I code, not for writing flashdrive drivers
:P
 
But I wouldn't be surprised if Java was the most used language.
 
3:56 AM
TIOBE measures how non-specific your programming language name is
 
@Hoxieboy Oh, I loved Java before I started using C#.
 
@Hoxieboy Most of the uses of C++ have nothing to do with any kind of necessity like that.
 
Then I realized that delegates are an incredibly useful feature.
 
@EtiennedeMartel Lambdas... slightly less sucky generics... LINQ
 
And that having generics that you can reflect on at runtime is a big plus.
 
3:56 AM
operator overloads
 
@DeadMG Well, lambdas are just syntactic sugar for anonymous delegates.
 
and even though using is a giant pile of shite, it's still more than Java has
unless they finally got around to adding that clone in
 
But yeah, if you count sugar, fuck, type inference, extension methods, all that jazz.
 
well, the way I see it: less time thinking about how to code a program, and simply coding it
 
@DeadMG Well, I'd say it's a decent way to circumvent a critical flaw in .NET.
 
3:58 AM
@EtiennedeMartel In my opinion, it's effectiveness is minimal at best.
 
performance? pshaw unless you're taking a test of a fraction of a nano second I doubt it really matters
 
@Hoxieboy Exactly. And I spend less time writing boilerplate in C# than I do in Java.
 
they should have made it a first-class citizen, a member of Object, and significantly automated it like in C++
@Hoxieboy Yeah... No.
increasingly, everybody is demanding performance.
you know what happened to Moore's Law?
our data set sizes went up even faster
 
@DeadMG I've been thinking at how they could have made everything better if generics had been available since .NET 1. Then Object's only method would have been GetType().
@Hoxieboy Like Jeff once said, performance is a feature.
 
@EtiennedeMartel Actually, I think that Dispose() is the only thing I'd place in Object.
 

« first day (526 days earlier)      last day (4415 days later) »