« first day (773 days earlier)      last day (4167 days later) » 

12:00 PM
You don't really read generated code once the generator is stable.
Also the real problem is that log2(0) is not 0.
 
That's assuming the generator won't be changed, or the generation parameters won't change, and so on. Anyway, in general it's absurd to make an effort to obfuscate generated code, or choose unclear code over clear. Not talking about those who do use obfuscation tools (although I regard their ideas as being quite silly).
@CatPlusPlus no, it's not a problem at all
 
Hello everyone
 
It's more of a problem than digit grouping, that's for sure.
 
@CatPlusPlus My code would read
/* To regenerate:
	   +4,+39d
	   +2r!python -c 'import math; print "\n".join(["template<> class Log2<\%2d> { typedef ratio<\%13d, \%13d> R; };" \% (x, 1.e12*math.log(x,2), 1.e12) for x in range(1,37)])'
*/
@Cheersandhth.-Alf ... it's a decision. A bit like digit grouping in generated code, perhaps. The 'whole world' seems to agree that log2(0) != 0, but that's not really relevant to you, I guess
Wokay, I added ull to the integrals and it checks out: ideone.com/DVCyE9
 
12:20 PM
@sehe std::ratio does not support NaNs. ur argument is stoopid.
 
I used cog for stuff like that.
 
@Cheersandhth.-Alf ...
 
log2(0) is undefined. Or -infinity, depending on who you ask.
 
Hmm, can somebody help me out with an answer on CodeReview?
> The reason that I have Trie_node_base is that STL source code, like set, multiset, and etc, did in this way. I'm always wondering what's the benefit of having Trie_node_base and Trie_node. Can you give me some clues?
 
12:22 PM
@cat: it's about so called "engineering". just forget it until later. you may understand "engineering" with a bit more experience
 
Right.
Engineering.
 
the short of it, is that it's about making things that work. and taking a practical view.
 
Interestingly, my pocket calculator confirms that log2(3) is ~ 1.5849. Did you calculate 1/log2(n)... ? @Cheersandhth.-Alf
 
@sehe yes, good
 
I see 1/0 is 0, too.
I can see how that works.
 
12:27 PM
@CatPlusPlus i doubt it. but i think there is a good chance that you will understand this kind of thing. later.
 
Yes, the magical engineering.
 
right, you don't understand anything yet.
and haz the wrong attitude
 
Nope, not a thing.
 
TIL the Cat really doesn't understand a thing.
 
but i think in time, you will learn to ask about things. less arrogant.
 
12:28 PM
You lecturing me about attitude is magical, too.
 
lol
a magical conversation...
 
@TonyTheLion Yup.
 
everybody gets more mellow as they age
 
anyway, the ratios simply represent the numbers i posted earlier. they're used to calculate buffer sizes.
which is perhaps lesson 1 for @cat: in engineering, everything has a purpose. not just association to mathematics
 
12:36 PM
@Cheersandhth.-Alf Please, lead us the way
@Cheersandhth.-Alf So. Perhaps the Log2 class name could be considered a bit of a misnomer. In coding, names have a purpose too.
 
@sehe oh, i'm not cut out to be a great Leader. i just nudge people.
@sehe yes, that's very good
 
@Cheersandhth.-Alf So we notice
 
except that the name is true when it's read the right way
in context
can you guess what it means?
 
ffs. That'll win every contest.
 
It means you're bad at naming.
 
12:38 PM
... no more fuel please
... everyone stand back now
 
Log2<n> is the logarithm of 2 with base n
thus, e.g. log2<8> is roughly 0.333333
 
So funny, another make my homework post
-5
Q: find and replace without string.h

Yasin GünaydınBIL200 HOMEWORK 4 PROJECT: FIND & REPLACE You are supposed to develop a simple application which basicly looks for a particular word in an input text and replaced it with another word. Your program should perform the task with the following steps: 1. Asks user to input a text (may include spa...

 
F for no eFfort? :)
 
F for fuck you
 
i think if the @cat was a bit more proficient at math, he would have seen that :-)
i'm just dissing back, btw. i don't like dissing in general. but just to teach that lesson
 
12:42 PM
 
@R.MartinhoFernandes Incidentally, why is the default Container for your basic_text template std::basic_string instead of std::vector?
 
@Cheersandhth.-Alf Okay. So, not addressing the naming issue my code would have been ideone.com/DVCyE9
/* To regenerate:
	   +4,+39d
	   +2r!python -c 'import math; print "\n".join(["template<> class Log2<\%2d> { typedef ratio<\%13dull, \%13dull> R; };" \% (x, 1.e12*math.log(2,x), 1.e12) for x in range(2,37)])'
*/
@Cheersandhth.-Alf You like teaching lessons, though, right. Especially, lesson #1
 
@KonradRudolph Because it is a vector that keeps a null terminator. Makes for easier interop by default.
 
@sehe no, i like teaching, but not the (sometimes necessary) teaching of unpleasant lessons
 
@R.MartinhoFernandes Ah, null terminator. Good point
 
12:47 PM
and i'm not so good at that. don't know if either you or the cat got anything out of it
but perhaps
 
Also, woot, new machine, finally.
VS no longer lags when scrolling.
 
:D
what kind of hardware? :)
 
@Cheersandhth.-Alf Then why do you insist on doing it? If I may be so frank, it's not required, and I sometimes get the feeling you don't have the energy resources to spare
 
@melak47 8-core CPU 3.10GHz, 16GB RAM, 256GB SSD.
 
@Cheersandhth.-Alf What did you get out of it?
 
12:55 PM
8 cores :(
 
@CatPlusPlus What?
 
@Cheersandhth.-Alf I sure got something out of it: naming is important, assuming is bad. There is an unfortunate crossroad of those two where they both shine :)
 
@R.MartinhoFernandes nice. what did you have before to make scrolling in VS lag? :S
 
@R.MartinhoFernandes I want
But that costs a small fortune
 
@R.MartinhoFernandes You mean, 4-core HT?
 
12:56 PM
@melak47 4GB RAM, (was upped to 8GB last week), 2.something dual core IIRC.
 
@CatPlusPlus you can have a Bulldozer "8-core :D" CPU for a pretty small price :p
 
> AMD's product warranty does not cover damages caused by overclocking, even when overclocking is enabled via AMD software.
Ahahaha
That's not really 8 physical cores, though, isn't it
 
@CatPlusPlus Why would you expect that to be covered?
 
I'm sure intel has a clause like that as well, right?
 
@jalf It just sounds like "our software might do something and your CPU will blow up".
 
12:58 PM
That's like saying your car manufacturer should cover car crashes made possible by them not limiting how fast you drive
 
I knooooooooooow it's not that
 
@CatPlusPlus not really. well it has 8 physical integer units, but it has only 4 FP units
it's mostly 8 cores...except for floating point stuff.
 
@melak47 Well, if it was tested and safe and shit they would ship them like that, because... why the fuck not, right? You know, tvtropes.org/pmwiki/pmwiki.php/Main/BiggerIsBetterInBed
 
They tend to underclock purposefully
 
this is my stop...later
 
1:03 PM
@R.MartinhoFernandes Not really. They underclock on purpose- most CPUs are shipped a fair bit below safe levels for them.
 
@DeadMG What for?
 
because
the demand does not reflect the supply
 
puppy said so
 
differentiation, mainly. If all their cpus ran at the same speed, they'd have to sell them at the same price
and to avoid losing a million billion sales, that would have to be a very low price
 
let's say that Intel produces CPU cores from 2.5GHz to 3.5GHz in a uniform distribution
 
1:04 PM
so better to artificially throttle down some CPUs and sell them cheaply :)
 
if puppy says so, then you have to take his word for it. :P Thought you'd all have learned that by now :P
 
the demand is not uniform at all- it's way weighted down to the lower end.
so if you try and sell a bunch of 3.5GHz CPUs, there's nobody to buy.
so you may as well underclock them and sell them for cheaper, better than not selling them at all
 
but the opposite is also true. Their cpus certainly aren't guaranteed to work when you overclock them either. Overclocking a slow CPU to around the level of a faster one might well work, but above that, all bets are really off :)
 
especially when there is very little competition for higher-end parts
 
so of course their warranty doesn't cover overclocking
 
1:05 PM
complex C++ projects are a pain. Anyone else have that experience?
 
@TonyTheLion everyone who's worked with complex C++ projects, I suspect ;)
 
@TonyTheLion Nope, never. /s
 
well, than my question has reached a new level of stupidity. Damn :|
bad poker face
 
@TonyTheLion I would expect everything complex to be somewhat painful.
 
1:07 PM
huh, doom3 is now GPL... interesting
 
Otherwise... well, it's actually simple, no?
 
@TonyTheLion All C++ projects are a pain
 
I wish someone would invent a uniform and "easy" way to manage large software projects.
but the question is, is that even possible?! Seeing it hasn't been done yet, I presume it can't be the easiest thing to do
 
"manage" how? :)
 
as in, an easy way to browse through large code bases, find classes, functions within them, etc
the easiest thing I can do nowadays is just do a search
 
1:09 PM
@TonyTheLion struct Wish : ProjectManager {?
 
aaaargh
get it away from me!
 
@TonyTheLion let some one else do it
 
@R.MartinhoFernandes well, that's a good start :P
@thecoshman erm.
 
I need a dark color scheme for VS
 
@R.MartinhoFernandes sublime text 2
 
1:11 PM
@thecoshman If I am going to use an external text editor, I already have one. Thanks.
 
@R.MartinhoFernandes is that VS2012?
 
Xeo
Robot, VS2012?
 
cry in a corner
 
1:11 PM
and get a new compiler :P
 
@DeadMG What?
 
I have 2012 here :)
 
I'm having this error:

error: argument of type 'int (SYT::SymbolsTable::)(SY::Symbol)' does not match 'int (SYT::SymbolsTable::*)(SY::Symbol)'

in this part:

std::for_each(m_symbols.begin(), m_symbols.end(), SYT::SymbolsTable::returnSymbolIndex);

Any idea?
 
@rogcg good for you
 
@rogcg Congratulations
 
1:12 PM
@DeadMG I have no idea how that is relevant for getting a different color scheme.
 
@R.MartinhoFernandes sublime text 2
 
Xeo
Maaaaan, I'm so pissed. I travelled to Oberhausen again with the intent to sign a contract for the flat, and all I got today was an appointment with the jobcenter on 11.12. -.-
 
@R.MartinhoFernandes VS2012 ships with an awesome dark scheme.
 
@R.MartinhoFernandes it isn't.
 
@thecoshman Shut up. I already have vim.
@DeadMG And I am sure I can find the same one for VS10.
Actually, I just did.
 
1:13 PM
@DeadMG where do I find that?
 
@thecoshman sublime test 2
 
Xeo
Tools, Options, General, Theme -> Dark
 
tools -> options -> environment -> general
color theme -> dark
 
thx guise
 
Waaait.
All preprocessor things have a blue background?
 
Xeo
1:16 PM
Lol, no.
 
no
 
@R.MartinhoFernandes but that's not sublime text 2
 
I'm in VS2012, whereas Robot in 2010
 
@thecoshman Shut the fuck up.
 
Xeo
I'd make a screenie, but I'm roughly 550km away from my PC
 
1:17 PM
ow. someone's pissing off the Robot.
 
@thecoshman And that's a good thing.
 
@R.MartinhoFernandes sublime response
 
@Xeo that's far
how do you live?
 
@Xeo you must have very long arms
 
1:18 PM
 
Xeo
How? I breathe. :P
 
@DeadMG ...
 
@thecoshman Seriously, there's no point for me in learning how to use an inferior external editor when I can use the one I am proficient with directly inside VS.
 
Yuck relative includes
 
@CatPlusPlus Better than absolute ones which break every time you move shit
 
1:18 PM
@CatPlusPlus equally, yuck absolute includes
@DeadMG only when done wrong
 
@DeadMG lolwut
 
if Boost couldn't get it right, then I sure won't, they have way more experience dicking around with such things
 
Y U NO PROJECT -> INCLUDE DIRS?
 
I do
 
#include "foo.h" should be enough then
 
1:20 PM
for ... GLM and DX and probably a couple others
@TonyTheLion Not unless you want to make every directory an include directory.
and then WTF is the point of putting headers in directories?
 
INCLUDE ALL THE DIRECTORIES
 
lol
 
Hint: put your own include folder in the include paths, and then use paths relative to that root, not the current file.
 
just include %systemroot% lol
 
Xeo
You neither want absolute ones nor relative (to the including file) ones
 
1:21 PM
modules FTW
 
Xeo
Crappy internet delayed that message...
 
FWIW, I don't that, but I should. Sue me.
 
I'mma file a law suit against you for that, and maybe I'll get Apple involved. :P
they're good at law suits, especially pointless ones
seeing this one is pretty pointless, should be right up their alley! :P
 
hmmm
but then I'd have to dick around keeping headers and their relevant source files separate
 
@R.MartinhoFernandes my lawyers will be in contact, when I get some
 
1:23 PM
it's C++, dicking around is standard practise
what you moaning about
 
hmm
 
@thecoshman You have layers?
@DeadMG Why?
 
is Sutter's email address herb.sutter@gmail.com? I think I got that
 
If you want everything together you can still have it.
 
@DeadMG orly?
 
1:24 PM
@R.MartinhoFernandes Because unless you want me to put my source files in the include directory, they would have to be in different directories.
 
Replace include with wherever the headers are.
 
got the in the end
@DeadMG and how is that an issue?
 
because puppy :P
 
@TonyTheLion because bad practice? because project settings not portable?
 
The point is that you make the paths relative to the root, whatever that is, not the current file.
 
1:25 PM
@R.MartinhoFernandes that's a valid approach too
 
@sehe c++ is bad practice, so wtf
 
you can either had a .hpp and a .cpp folder, or just have one folder for both. as long all the .hpp files are stored in one folder that is included by the build system, no problem
 
@thecoshman Screw that. .h++ and .c++ folders are the bestest.
 
@rogcg Needs an ampersand?
 
@R.MartinhoFernandes is this a two folders preferable to one thing, or a ++ vs pp thing?
 
1:27 PM
@thecoshman Hehe, I only saw "lawers" now.
@thecoshman ++ vs pp. ++ is better in bed.
 
@R.MartinhoFernandes what about the other thing? (curious on your views)
another reason why I hate IE - why can't it wait for me to sort out the downloads, rather then insisting on stealing focus?
if you write a program that steals focus, ram a cactus up your arse!
 
Why are you even using IE
 
First World Problems: I have to use a computer.
 
@CatPlusPlus stupid crappy internal work sites
I've tried using IE tab, but they break even with that
 
1:31 PM
Sucks to be you
 
@thecoshman you still on the hunt for an new job?
 
@TonyTheLion not activley
 
guys guys
it's my last week
 
@kbok run around naked for a while
 
@thecoshman gave up? Or job got more interesting? or just not giving fucks?
 
1:32 PM
my job consists essentially of putting comments explaining why the code sucks
 
@kbok oh man, that sounds like fun!
 
That's my life
It's not fun
 
you get to bash code and get paid for it
 
@TonyTheLion some what, hell no, yeah
 
It's as fun as sifting through rotten garbage
 
1:33 PM
@CatPlusPlus get another job?
 
@TonyTheLion out of stock of fucks to give
 
Get another life? Can't do
 
@TonyTheLion He gets your pay?
 
I get all @Tony's money.
 
oops
that was fail
 
1:34 PM
Because we are actually married.
 
You can give your money to me, I'll find a good use for them
 
@CatPlusPlus but you can get another job. No?
@CatPlusPlus I kinda need it to live
 
@TonyTheLion Job is fine. University sucks, though.
 
oh uni
 
6 weeks till exam session, and then 2 more semesters
 
1:36 PM
well, that'll end someday, so, only that much longer to go
 
Just shoot me
 
bang
shoots Cat
Cat falls over, bleeding from it's wee little heart
 
@TonyTheLion didn't think he had one
 
Ow.
you talking to yourself?
 
@TonyTheLion Don't worry. His heart is made of stone.
 
1:38 PM
@R.MartinhoFernandes so it broke, shattered in pieces. Now his heart is made of pebbles. :P
 
@TonyTheLion Pebbles are made of stone!
 
@R.MartinhoFernandes one stone vs many pebbles
was my point
 
> LINKREWORK: Temporary, fix this up later!
 
@R.MartinhoFernandes a stone is not the same as stone :P
 
1:39 PM
@R.MartinhoFernandes set in stone right?!
 
@TonyTheLion That thing seems to be coming from some Adobe crap.
Oh my god. I need sleep. — sftrabbit 1 min ago
 
my analysis tutor was talking about fortran and called C newfangled D:
 
wut?
C is about as old as can be
your tutor must be old then, if he thinks C is newfangled.
 
Lisp is much older. Basic as well
 
Fortran is older, too.
 
1:57 PM
if a source file includes a header file, that include another header file, there is no difference between that and having the source file contain that chain header file directly is there?
 
No.
It's copy paste all the way down.
 
that's what I thought... but it's like that is not happening...
 
Probably something related to macros.
 
yeah... but I don't see what it could be... I best look harder :P
 

« first day (773 days earlier)      last day (4167 days later) »