« first day (918 days earlier)      last day (4039 days later) » 

7:01 AM
sleep is wrong
 
@Crowz You need to set the correct precision by using msdn.microsoft.com/en-us/library/windows/desktop/…
 
hmmm they're starting clinical trials on transcranial direct current to improve focus and concentration. I wanna sign up
 
@Crowz Study only shows that people work better when threatened with shocks...
 
0
A: Why Java doesn't support <<< oprerator

alexI think this is a design mistake. The << is not arithmetic shift. << is supposed multiply 2 if you do 0xF0FFFFFF << 4 it return a positive number! a negative number multiply 2 should never get a positive number. the << is doing <<< work.

^^ lolwut
 
7:25 AM
@JerryCoffin Seems like bobince only got 136 rep from his regex answer. That's because it got wiki'ed early on, and he had plenty of other upvotes from other posts during the few days between going viral and getting wiki'ed.
 
user1357851
Umm, credit card info needed for some obscure site ...
 
user1357851
Don't understand why they don't accept paypal
 
@Telkitty what kind of obscure site is that ?
 
user1357851
 
user1357851
Not obscure, but I am reluctant to give out credit card & verification code out to some random site
 
7:35 AM
It's not a random site, it's under a well-known company voxeo: en.wikipedia.org/wiki/Voxeo
 
user1357851
Hello doggie ^_^
 
user1357851
can't believe you left your own pet dogs @ home to be with your friend's dog and spent night there :x
 
user1357851
Oo
 
user1357851
:)
 
user1357851
We probably see more of you than your dogs, lolz
 
user1357851
7:46 AM
I have to say this room has the most childish avatars :p
 
I always felt talking to the dog
and always felt that the cat is talking, when Cat++ talks
thought of patting him at times too..
 
user1357851
lol
 
user1357851
need to get my laundry, bbl
 
It's 3:50 AM.
Why are you up?
 
it's 11 AM in my place, I'm at work
 
7:51 AM
@ScottW It's Saturday!
 
But it's Sunday here ..
your dog photo is funny
sounds like "hello baby"
I looked at your photo, and it seemed
 
Yeah - that pooch is definitely on the pull.
Watch out, bitches!
 
8:09 AM
o.0
What the shit
Was an entire part of the chat moved to the bin?
 
if i'm working with multiple objects of the same class, do I have to use 'this' calls for methods or anything? my objects are overriding each other's values in certain methods etc and i'm trying to figure out where/why
 
@BenHarris Code is louder than words
 
it's hard to show - i'm using about 6 different classes
i'll pastebin
and the output: pastebin.com/GWdL6V5U
now, firstsetsize/secondsetsize maximum can only be 3/2 or 2/3, and consecutiverank/matchingsuit can only be 5 maximum. each hand call works perfectly when it's run separately
 
pastebin is blocked in my place for security reasons
 
I don't necessarily want to post a stackoverflow question as it is code for a uni assignment :/
 
8:18 AM
so basically, what are you trying to do ?
 
I'm making a poker program where you get 5 cards, and then it evaluates your hand to see what kind of hand you have
this is the calls the main program makes:
hand.Evaluate();
cout << hand.ToString();
9C 9C 9C 8C 8C Full House
firstsetsize: 3 secondsetsize:2
consecutiveRank: 2 matchingsuit: 5

that's the output
now i have another one made called hand2
8C 8C 8C 8C 8C Flush
firstsetsize: 5 secondsetsize:0
consecutiveRank: 1 matchingsuit: 5
 
but if i call hand2 after hand, i get this
8C 8C 8C 8C 8C High Card
firstsetsize: 3 secondsetsize:7
consecutiveRank: 3 matchingsuit: 10
@DeadMG i'm trying not to post it on stackoverflow as it's a uni assignment
 
@BenHarris post a question, show your code, issue and output in there
 
let me give you a hint
this chat is far less inclined to aid you
 
8:21 AM
okay, sorry, give me one sec
 
user142019
@BenHarris If people on Stack Overflow don't answer homework assignments, why would we?
 
user142019
We probably care even less than them.
 
@BenHarris don't write in the question that it's an assignment
 
I'm not asking you to answer a homework assignment - I'm asking for help because I don't understand how these objects are sharing each others variables
 
Yeah nobody made that mistake.
 
8:28 AM
well next semester is going to be terrible. AI, algorithms, and assembly language.
 
user142019
lol assembly
 
user142019
junk
 
jesus christ, i thought I figured out what the problem was, and ended up breaking it even worse.
 
user142019
0
Q: C++ Type const* p and Type const* const p

antitrustI have this Type const* p method. Is it sure that p's pointee, *p will never be modified ? Same thing with Type const* const q.

 
user142019
Is this a dupe? I remember seeing something like it.
 
user1357851
8:38 AM
 
user1357851
I wish I have a lioness like that
 
if i try declaring my consecutiveRank / matchingSuits variables in my header, it outputs them as consecutiveRank: 2686657 matchingsuit: 1991484487, but if i take it out it outputs their proper values..
 
Looks like a good match for Scott W hot dog.
 
user1357851
Still have swiss roll for breakfast :x
 
@Telkitty Oh, go on then, if you insist :) Going for coffee and cake.
 
user142019
8:45 AM
@andyPaul You are implementing a compiler. The behavior for arr[n] and n[arr] is identical. What would you do?
 
user142019
@DeadMG You know what to do.
 
user142019
*picture of fish*
 
9:04 AM
@Telkitty I do too.
 
Is there a fused sin(x)_cos(x) function in c++
 
What
 
user142019
What
 
9:19 AM
What
 
user142019
Man.
 
user142019
Fucking pollen.
 
user142019
Fuck spring.
 
@Mikhail Seems like the answer is yes for VS2012: msdn.microsoft.com/en-us/library/hh308246.aspx
 
user142019
What's the point? Purrformance?
 
9:21 AM
@Zoidberg yes
 
user142019
So that's why you know about it and we don't. :')
 
Xeo
@Mysticial Hm, part of AMP
Oh, and morning
 
user142019
It's morning? Oh, hey, I woke up in the morning!
 
Yes, you can cash in on one of them being already calculated due to trivial relationships between the two. But it's not really that hardcore.
 
@DomagojPandža Their implementations are very similar too. So you can compute both at the same time and reuse sub-computations.
I'm not entirely sure what algorithm they normally use, but even if they were using the taylor series, the factorials in the denominators can be recycled.
 
9:25 AM
@Mysticial unfortunately this instrinsic is only for C++AMP (MS's biggest joke since Windows HPC)
 
ah
 
I'm trying to get my C++ results to match matlab and it look like its going to be impossible!
 
They're probably just better off with sqrt(1 - sin(x)^2).
Not sure how numerically stable that is though...
 
user142019
std::pair<float, float> sincos(float x) {
    return std::make_pair(sin(x), cos(x)); // the compiler will optimize it
}
 
user142019
^ lol
 
9:26 AM
And you need to make sure you take the right sign of the square root.
 
I think 1M calculations of sin(x) took 36 ms when I benchmarked it. 1M sqrt's and /2.1726 took 9 ms if I remember correctly
 
Square roots are pretty easy to compute.
They're not too much harder to do than a division.
 
@JohanLarsson Is 2.1726 some sort of magic number, (just curious)?
 
no got almost exactly the same for division and sqrt
 
Yeah, you can approximate them to any precision level and still cash in, trigonometric functions usually require a pretty fat expansion in terms of the taylor series and you can get pretty big factorials in the denominators.
 
9:31 AM
@MartinJames arbitrary random, not the same as I used :)
 
@DomagojPandža The big factorials are good. It makes them converge faster.
 
Oh - OK :)
 
But in any case, implementing a trig function is not that easy.
You can't just blindly apply the taylor series on any operand.
 
One that doesn't suck, that is. :D
 
ZOMG I switched the order of multiplication and got a 2x performance boost + better precision.
den = (sin(p)+cos(p));//from (sin(p)+cos(p)*0.25f
num = (a-c+d-b);
l=0.25f*num/den;
L[i]=l;
also why hell wasn't the compiler doing this for me
 
9:36 AM
wait wut...
 
I know right?
 
you moved a multiplication and got 2x speed up?
 
weird
also precision is better
which was the goal
 
user142019
@Mikhail floating point crap?
 
Show me side-by-side the original and the new one.
 
user142019
9:38 AM
The 0.25f got moved.
 
If it repros, then let's dump this on the main site - who knows, it might become the next uber question. :)
 
user142019
And you will hit the rep cap twice each day instead of once.
 
@Mikhail Where exactly did you move the 0.25f to? It couldn't have been to 0.25f*num/den; since that changes the value.
 
Wait, what the hell -- you moved 0.25f from the denominator to -- effectively -- the numerator. num / ((sin(p) + cos(p)*0.25f) != 0.25 * num / (sin(p) + cos(p)).
 
@DomagojPandža Not only that, I don't see how it can improve precision.
 
9:44 AM
But I'm still curious about the 2x speed up. It seems like...
Yeah, that
 
0.25 is a power of two. It only shifts the exponent. No effect on precision unless you're near denormal.
 
Anyways I can't get it to reproduce so I have no clue what happened, but I still believe.
 
aww...
 
I'm quite happy because my code now runs 2x faster
 
what are you doing that requires that many sins and coses?
 
9:47 AM
@JohanLarsson Rotation matrix around an arbitrary axis?
 
@Mikhail But I'm serious though, if you can get an SSCCE showing that 2x... it would be something worth putting on the main site - even if I can't (or am not around) to answer it.
 
so
now that my computer is usable again, it's time to... build LLVM and Clang. /cry
 
@DomagojPandža n times where n is a huge number. Yeah could be
 
@Mysticial yeah, but its 5:00am and I am still at Beckmen, and If I don't get this faster the cells will die. I consider it divine intervention in the form of system noise.
 
But still, that expression is plain wrong mathematically, is it a typo?
 
9:50 AM
@Mikhail I didn't say now. I not in the mood to look deep into anyway.
 
THEY WILL ALL BE DEAD IF I DON'T HIT MY PERFORMANCE TARGET
 
But anyway, we already mentioned that your move of 0.25f changes the value. Is that intentional?
 
no its a typo. By multiplying it before hand the denominator is smaller which messes with the division...
 
user142019
@DeadMG why cry?
 
user142019
The only problem is that it takes long.
 
9:52 AM
and they always make breaking API changes
 
@Mikhail How small is den usually?
 
Xeo
@DeadMG Haha, have fun
 
user142019
Ohhh haha.
 
still
hopefully, they will have fixed some of the codegenning issues
 
@Mysticial it can get quite small. I'm currently ironing out nans and infs
 
user142019
9:53 AM
The C API is fairly stable. ( ͡° ͜ʖ ͡°)
 
@Mikhail Dude... Is this some sort of filter that exponentially decays the values?
 
@Mysticial Its basically a chain of trig functions, lots of trig functions and some square roots... My dream is to do it on the CPU instead of the 2k tesla implementation... (so I can pass on the GPU to the feature extraction step)...
 
the C API is also worthless
even the C++ API rarely has what I need
 
@Mikhail If den is really getting that small (on the order of 10^-40). Then they'll be running denormal. A possible reason why it might be faster by "moving" the 0.25f is because you bump the numbers out of denormal for a few extra iterations or whatever you have going.
 
wtf
"This post does not meet our quality standards".
I'm pretty fuggin' sure that after asking 250 questions, I'm not gonna do something dumb, not to mention that you could actually say what is wrong with it.
 
9:57 AM
The puppy "does not meet our quality standards".
 
@Mikhail can you share the calculation and your benchmark results?
 
@DeadMG Shog recently bumped up the threshold in which the quality filter triggers.
 
Hmm, one benefit of this late spring and all the snow is that I haven't seen any flies thus far. :3
In other news, I've found @CatPlusPlus enjoying EVE Online griefing.
 
user142019
Nice. Oh… wait.
 
10:00 AM
Dammit.
 
0
Q: This post does not meet our quality standards, with no reason why

DeadMGI'm getting the above error, but this makes absolutely no sense to me. Considering my large site experience, I'm pretty sure that I can at least grasp the basics. You could mention what is wrong with the question. How am I going to fix it if you don't tell me what's wrong with it.

 
50 rep says it's gonna get closed as a dupe.
 
I don't think that any of the others clearly showed a screenshot showing that the site does not explain the problem.
 
Yeah, there's a picture involved. It shall pass!
 
user142019
10:04 AM
 
:)
 
user142019
Add more words, problem solved.
 
user142019
Maybe a large HTML comment will do. ( ͡° ͜ʖ ͡°)
 
nope
also
 
Xeo
10:07 AM
Puppy - y u no ask in #llvm?
 
holy shit, building LLVM and Clang with VS without an SSD is cripplingly slow
 
I wonder if you can add junk words and then ninja edit them out.
 
Xeo
@DeadMG That doesn't just apply to VS.
 
Ram drive?
 
@Xeo I'm going to.
but since I reinstalled my computer, I need a new IRC client
 
Xeo
10:08 AM
mIRC
 
had to chuck that last time
something about limited time trials, I think.
 
Xeo
on *:START: {
  ./remini mirc.ini user lastrun
}
(for portable mode)
You'll still have that banner, but it will be reset to 30 days after a restart
And you can of course manually remove the ini entry
Or if you're not using portable mode, from the registry
 
fuck that, I'll just find an actual IRC client that works
 
Xeo
mIRC works great
 
user142019
Adium.
 
10:13 AM
chatzilla
 
mIRC is not free right?
 
@JohanLarsson: I don't think so, no.
 
Xeo
@JohanLarsson It is, but you have that annoying banner when you start it up
Unless you buy the license
 
@JohanLarsson: X-Chat is on the other hand.
 
@ereOn That's for Linux.
and I'm avoiding Ubuntu as much as I can
 
10:14 AM
@Zoidberg your own?
 
user142019
 
come to think of it, I think that I actually broke it by reinstalling Windows
oh well
 
@DeadMG: Yeah ? Well my Windows must run on Linux then
 
no real loss there
 
Xeo
Guess you could try Miranda, but eh.
 
yeah, I just finished dling xchat for windows
yeah, after mIRC started bitching at me to buy it I used adIRC and it had a terrible colour scheme
 
Xeo
As I said, ./remini mirc.ini user lastrun and all problems are solved
 
I doubt that the Windows shell accepts ./remini
 
One of my pointers and debug view (you can inspect memory 200 mm in front of him)
 
Xeo
@DeadMG The script I pasted above can be put into an mIRC script file itself, and is executed on startup (or shutdown with on *:EXIT) of mIRC.
 
10:21 AM
ITT: how to crack mIRC
 
Xeo
C'mon, it got the tools built-in to reset its own stupid tracking scheme.
And it's not like it's cracked, the banner is still there
Just not as annoying :)
 
xchat is fine
 
10:35 AM
what is the size of a bitfield? I never considered this.
 
user142019
I think sizeof on a bit field is illegal.
 
that could well be what the Standard does
 
user142019
daknok% cat foo.cpp                                                   ~/Desktop
#include <cstdio>
struct x { int x:3; };
x y;
int main() {
    printf("%d\n", sizeof(y.x));
}

daknok% clang++ foo.cpp -std=c++11 -stdlib=libc++                     ~/Desktop
foo.cpp:10:26: error: invalid application of 'sizeof' to bit-field
    printf("%d\n", sizeof(y.x));
                         ^
1 error generated.
 
user142019
%s/%d/%zd/g :v
 
IRC is a fairly trivial protocol yes?
 
user142019
10:41 AM
@MartinJames Yes, but nobody implements it correctly and it's a pain in the ass.
 
Ell
10:57 AM
what is a bit field?
 
howdy folks
 
yesterday, by kbok
Welcome to your new favourite place! Please read the newbie hints so that you can feel at home.
 
Meh, my nice extension method got no love
 
size of a bitfield? it should be a real number
@JohanLarsson meh, C#, meh, StopWatch, lol, nanoseconds
 
user142019
Gingers don't have red hair. They have orange hair.
 
user142019
11:02 AM
@JohanLarsson because your method is called Get… instead of having a property.
 
@Abyx why the lol at nanoseconds?
 
user142019
(Are properties as extension methods even possible?)
 
@Zoidberg no not that I know of, have been looking for it
 
@JohanLarsson cuz it doesn't have such precision
 
wpf has attached properties that are somewhat similar
 
11:03 AM
man
 
just read the newbie hints...Im a beginner at python..but wondering whats with the hate on php ?
 
I wish that I had my own C++ compiler
dealing with Clang is frustrating
 
@DeadMG fork clang
 
Ell
yeah man, fuck clang.
 
@Abyx Fixing Clang would entail re-writing massive sections of it- not the kind of thing I could do overnight.
 
11:04 AM
fork gcc while it's in C++
 
user142019
clang ftw
 
I doubt GCC can output LLVM IR
 
Xeo
[12:54:23] <DeadMG> I found Clang code-generating functions that have a completely different approach- for example, type-coercing small structs and returning by value, even when they have a non-trivial copy constructor.
Wouldn't that have broken code long ago, though?
 
btw, I heard there is a C++03-to-C++11 tool
 
user142019
s/heard/read/
 
user142019
11:07 AM
Do compilers perform outlining as an optimization? As in, the reverse of inlining.
 
meh... it's not like I only read, but yeah, I read it
@Zoidberg size optimization?
who gives a fuck about size %)
 
user142019
@Abyx Well, there's probably a reason compilers don't inline everything imaginable.
 
@H.J_Rios It's just that everyone here hates PHP. War has broken out at least twice between Lounge and PHP room.
 
user142019
FUCK PHP
 
user142019
@H.J_Rios phpsadness.com is a nice summary.
 
11:09 AM
So much beauty.
 
@MartinJames what were the reasons for the wars?
 
php sucks.
 
What's PHP?
 
@JohanLarsson Religious hatred, basically.
..and PHP sucks, yes.
 
Not really religious hatred. On their part, maybe. It's basically:

Lounge<C++> is Science.
PHP room is Religion.
 
11:11 AM
Programmers tend to zoom in on small details and then start hatin' (never used php)
 
user142019
Lounge<C++> is alchemy, not science.
 
user142019
Just like medicine.
 
They basically believe that PHP is a good language with all the evidence in the world pointing in the other direction. So, yeah, they're religious zealots.
 
@Zoidberg Trying to turn Clang into gold?
 
user142019
11:12 AM
PHP is shit. C++ isn't much better. Haskell is godlike.
 
user142019
C# is kind of a minion of Haskell.
 
C# is getting things done (I don't know any other language really)
 
user142019
Johan y u no learn another language!
 
user142019
VB.NET ( ͡° ͜ʖ ͡°)
 
11:14 AM
@Zoidberg I'm so fkn old and stupid, stuck in procrastination and lurking in the FP room
 
user142019
lol
 
I know enough js to hate it, I guess Xaml counts as a language also, Xaml is ok for its purpose
 
@sbi I believe you (re)twote that somewhere last year (well, long ago). And recently, again, yes :|
 
Damn multiple VS installations are wreaking havoc with my pretty .sln icons.
 
Moaning all
 
11:16 AM
Moaning, sehe.
 
mourning
 
@sbi I'll take your word for it. I had the impression the events were time-related, so much that I wouldn't have been surprised your coming here was in part encouraged by said changes of the regular crowd :)
 
Dammit!
 
Ok!
@JohanLarsson This comment had me stumped
 
yeah pretty wtf :D
 
11:20 AM
I must've wrote something before for one of my old projects that automagically forces VC++ directories to have a path to the DX SDK. Now VS2012 with its inclusion of DX within the standard Windows SDK is fighting with damn redefinitions.
 
I mean, he's clearly thinking outside the box himself, then goes on to reprimand me that "gravity is not a book". Well, duh, what did he want to talk about then :)
 
Oh, there we go, done.
 
I hate retarded C++ library designers :(
What you say is true for most C++ compilers, but in this particular case it is not possible to use TRegistry on the stack. It derives from TObject, which is a Delphi-based class that forces instances to be allocated on the heap. C++Builder's compiler has special handling of TObject and generates an "E2459 Delphi style classes must be constructed using operator new" error for code that attempts to use TObject-derived classes on the stack. — Remy Lebeau 5 hours ago
 
user142019
C++Builder ಠ_ಠ
 
Xeo
Forcing stupid Object hierarchies on C++?
 
11:21 AM
what the fuck
 
Damn, that's retarded. Stupid people stuck in stupid old ways.
 
Merely surprising, really. Also, it would seem that "C++ library designers" was a typo for "Delphi library designers".
4
 
Ell
Does anyone play Spring RTS?
 
@sehe Not a typo. The library is used in C++. Ergo it’s a C++ library. If you want to generate a compatibility interface, do it properly
 
Ell
I have nobody to play with :(
 
11:22 AM
But then, this makes the question rather ludicrous given the constraints:
i want just the program to be portable — Jigberto 14 hours ago
 
user142019
@Ell you have yourself!
 
Ell
I'd much rather play with someone else :L
 
user142019
 
well
 
user142019
Got pwnd by clang?
 
@KonradRudolph They did do it properly. Just not very standard. I mean, C++-cli is done properly, IMO. So is COM+. Just "proprietary". And, yes it doesn't make sense to use C++-cli without dotNET, any more than it would make sense to use this guy's Delphi "C++" library without Delphi.
 
@sehe C++/CLI is done properly, yes. But it does not require such madness. Its predecessor, by the way, is another example of not done properly
 
Managed to reduce my screen space skin shader to 0.6 ms, the highest preset for the closest objects. Optimally, for far away objects, I can kick it down to .3 ms.
Looks good enough, right?
Also, can't believe I didn't map some Star Trek Vulcan green blood. Would look a bit weird, though without the pointy ears.
 
@DomagojPandža do it :D
the fake green flood when their ears and cheeks are clearly red was always pretty silly
 
@KonradRudolph It waaat? Well, define "madness". It has classes with completely deviant storage/allocation semantics. And you cannot compose those without hiding it in a gc_root<> adaptor. And you have to be careful using libc functions. How is that different?
 
11:37 AM
so this just in: Stack Overflow no longer accepts questions.
 
@DeadMG Considering the quality in the past year or so, a prudent course of action.
 
ah, well
 
@DeadMG You need to add a second paragraph.
 
it seems that the Clang community is not interested in supporting linking to their generated code
 
user142019
Conclusion: the world needs a new C++ implementation that can be used as a library.
 
11:46 AM
Note to self: never argue with a racist
 
user142019
That's discrimination!
 
@sehe It’s different because it handles the storage divide properly: you can use either stack allocation or you use the GC. Granted, there are problems but those are by design, not because the library sucks
 
user142019
@DomagojPandža You're a very good photographe… oh wait…
 
It would require a modulation of the entire diffuse map to actually look properly. Because the diffuse map has been calculated with red blood, fo course.
 
11:48 AM
@sehe Contrast this with TObject. The prohibition of stack allocation is entirely artificial, and the object apparently requires that you use manual memory management. That requirement is pure madness.
 
@DomagojPandža still looks weird with the pink skin and red lips :D
 
@melak47 Yup, I just remapped the transmittance profile. :D
 
@Zoidberg I’m okay with that
 
Looks like he was filled with toxic materials. :D
 
user142019
I should use #define unless(x) if (!(x)) in code to confuse people.
 
11:55 AM
Hmm, now I'm tempted to model a Vulcan head with an appropriate diffuse map and transmittance profile. But I couldn't use it for promotion because Paramount Motion Pictures (they have the rights*, right?)
 
user142019
Because Perl, Ruby and CoffeeScript are awesome!
 
user1357851
Oh wait ... need right timing ...
 
user1357851
 
Sepcifically which example in the mnentioned link do you mean? I posted widely varying approaches there, all of which could very easily be adapted to your problem. Do tell us where you are stuck (perhaps show us whay you have got) — sehe 49 secs ago
@KonradRudolph Mmm. What prohibits the use of a smartpointer? After all, a smart pointer does manual memory management on your behalf, right?
 
@sehe Yup. Hopefully that would work
 

« first day (918 days earlier)      last day (4039 days later) »