« first day (1303 days earlier)      last day (3637 days later) » 

Xeo
9:02 AM
@ThePhD std::make_unique<interfacer<Tm>> -- this will make an interfacer which contains an lvalue reference for lvalue materials. Is that intended?
@Mysticial Solved your unrolling problem yet?
 
unrolling on the floor, laughing
 
@Xeo I haven't gotten to it yet.
 
Xeo
Sounds like you could just use indices and unpack in one spot
 
But I'm probably gonna leave as it is with the template specializations. If I add anymore instances, I'll look again.
 
Xeo
Wait, does the macro expand to an expression, or to multiple statements?
 
9:04 AM
@Xeo The macro expands into 6 SIMD intrinsics. The index is an address offset.
 
Xeo
Ah, then indices won't work.
do you not trust the compiler to inline that?
@Mysticial You could also generate all those specialisations with a bit of Boost.PP trickery
 
All of a sudden my rep on meta.SE increased from 411 to 567 ... this is even quicker than yo yo diet
 
If it was a function I could force inline it.
But it's a fixed iteration loop that I want to unroll completely.
 
@Mysticial If you are so concerned about efficient use of time, what are you doing here in the Lounge all the time? ;)
 
Xeo
Well, you could try making it a forced-inline function and using indices to unroll
and see what the compiler makes of that
 
9:07 AM
@Xeo That's the only way I think of right now. TMP recursion with force inline.
@FredOverflow I should probably get some sleep anyway. :)
 
Xeo
Not TMP recursion, indices.
 
oh...
I don't know about that. :)
 
morning
 
Xeo
template<int... Ix>
void doit(int a, int b, int c, seq<Ix...>){
  using swallow = int[];
  (void)swallow{0, (da_function(a, b, c, Ix), 0)...};
}
 
@Xeo I'm having trouble parsing that. :)
 
Xeo
9:10 AM
That's why you make a macro for it :) VARIADIC_EXPAND(da_function(a, b, c, Ix));
and the machinery above is hidden inside
Although you could even pass the offset as a template parameter here
 
I don't think indices will work here.
esp. knowing Mysticial's macros
Which are gigantic.
 
Xeo
I'm not too sure what the compiler will make of it, with forced-inline functions
@Rapptz The idea was to convert that to a forced-inline function
 
@Rapptz I've been replacing most of the gigantic macros with force inline templates.
 
iunno. I imagined Mysticial made it a macro for a reason.
 
Xeo
Oh btw @Mysticial, you got a bit of time?
 
9:17 AM
@Xeo Right now?
I'm about to sleep.
 
Xeo
ah, k
 
What were you gonna talk about?
 
Xeo
was thinking of building my new PC and wanted to rope you in :)
 
Ah
 
it will wait one day, Xeo :)
 
Xeo
9:19 AM
@ScarletAmaranth ?
 
@Mysticial says Mysticial while he boots up TF2...
 
Xeo
lol
 
@Rapptz Oh, I haven't quit the game yet. lol
 
@Xeo well, you are not in an urgent need to build a new rig NOW :P
 
I've been in the game for a few hours now.
 
9:19 AM
^^
 
@Xeo Fuck it. What do you wanna build?
 
Xeo
@ScarletAmaranth Of course not, I just thought since Mysticial was here, I might as well ask him :)
@Mysticial Nothing too expensive, around 1k eur. I got something in mind, I just got some questions wrt the processor, mainboard and possibly graphics card (although I wager you're not too familiar with those?)
 
I'm definitely behind on video cards. I'm still using the same ones I got 5 years ago.
 
Xeo
ajglhajpgbha, and Alternate just killed my configuration... one sec
 
But I'm pretty much up to date on CPUs. Since I seem to build one every time AMD or Intel comes out with a new instruction set.
 
Xeo
9:26 AM
Since I don't need extreme CPU power, I was thinking of an i5-4xxx, but then I saw that the Haswell Xeon one costs basically the same
 
I was thinking i5-4670K.
The Xeon's aren't overclockable.
Although Haswell is a shit OCer.
 
Xeo
I'm not particularly planning on overclocking my CPU :P
Hm, both the i5-4670K and the Xeon 1225 are 200eur on Alternate
The 1230 is 208
 
@Mysticial Where do you work, by the way?
 
@FredOverflow YouTube
 
Weren't you hired over one of your SO answers or something?
Or maybe I just dreamed that.
 
9:31 AM
@Xeo The motherboard that I have is the Asus Z87-Plus.
Not quite the lowest-end board. I'd say medium-low end. And OC'able.
 
@Mysticial Do you work on the video encoders and such?
 
@FredOverflow lol, nope. I'm doing Xbox360 and Android stuff.
 
What does YouTube have to do with Xbox360?
 
So I'm doing + / at work. But my SO profile is all and .
@FredOverflow The YouTube app for the 360.
 
Oh, that's a simple explanation :)
 
Xeo
9:33 AM
@Mysticial I was thinking of the MSI Z87-G43. But I admit I'm not too sure of the differences between all the mainboards :/
 
@Xeo Ah. I didn't like that one since it only had 2 USB3 ports.
 
I cannot ever remember what brand of mainboard I have. I think it's an AsRock.
 
Xeo
@Mysticial Yeah, that's one of the points I didn't like too much about it
 
I tried to buy a USB3 stick once, but it seems there is none that doesn't have fatal flaws.
 
Xeo
The ASUS one has 3 PCIe slots, not sure if I need that (currently going with one graphics card)
 
9:35 AM
The ASUS one is also more expensive. lol
I remember picking it very carefully since I wanted maxed out SATA and USB3 ports.
 
@sehe What if a and b are equal?
 
There's a higher end one with even more, but it was also a lot more expensive.
 
Xeo
Yeah, I'm trying to keep the price kinda low, and I think 2 USB3 ports should cover me
 
@Xeo I'd pick the 4670K over the Xeon since the Xeon is likely to be locked.
The 4670K is also clocked higher.
 
Xeo
Mh.
 
9:39 AM
How fast is Amazon when dealing with books, usually?
 
1-2 business days
 
Xeo
Anything on the CPU cooler?
 
@Xeo I'd recommend one of the self-contained water coolers.
 
@FredOverflow It says "between 11 and 14" days, that's why I'm not so sure.
 
Xeo
The Alpenfoehn Brocken 2 had some nice reviews, and isn't very expensive
 
9:40 AM
It doesn't have to be high-end. Just anything is better than the stock shit.
The stock cooler is insufficient even if you are not overclocking.
 
Xeo
Heh
 
@Jefffrey Well, then they probably don't have that book in stock. Have you tried other websites or a local bookstore?
 
Xeo
Hm, Coolermaster has a water cooler for 45eur
 
Sounds about right.
 
@FredOverflow Actually I know where I could physically pick it up near my university, but I'm lazy :D
But, yeah, I guess I'll buy it in a bookstore, the old fashion way.
 
9:43 AM
 
Xeo
> keeps my i5-4670K (at 4.0GHz) under 60 degrees under full load
 
so cute :)
 
@Xeo I have a Cooler Master H50 on my 4770K. I replaced the fan with a really powerful one. And at 4 GHz, it will reach 90C under my Pi program. It's sad.
 
Turns out for C++ one needs a Turing machine just to build a syntax tree. Syntax tree building may involve arbitrary computations.
 
My chip has a really bad TIM spread.
 
9:45 AM
@user12 You didn't already know this?
 
Thought it wasn't so bad :)
 
it's pretty easy to construct an example given that template instantiation is Turing-Complete.
 
Xeo
@Mysticial "Cooler Master Seidon" is what I'm looking at right now
 
So not only is it context-sensitive, but it can be made to depend on any context you can express in templates, which are Turing-complete. — DeadMG Jan 29 '13 at 18:20
 
@Xeo That's should be sufficient.
There are bigger ones with double the radiator size. Probably overkill for you.
Since you won't be OCing much and you don't have Hyperthreading.
 
9:48 AM
@user12 Thankfully, not a true Turing machine. They do use quite a bit of memory, but not truly infinite like a Turing machine.
 
Xeo
Hm, people seem to complain about the noise of that thing, although one person said they just put the 3-pin connector on a 4-pin and then it went silent.
 
so basically, they did something utterly moronic?
 
@Xeo Either way it will be quieter than the stock fan shit. :)
 
Xeo
@DeadMG apparently it worked vOv
@Mysticial Btw, why water cooler in the first place?
 
@Xeo They take up less space. And you have flexibility on what kind of air you want to pull through it. (hot air from inside the case, or cold air from outside)
 
Xeo
9:52 AM
Hm
 
Yup, indeed not true Turing machine. But I can only imagine how clunky the code of any C++ frontend should look like
 
Space is the thing I care about the most.
 
Sometimes one needs to implement half of a parser to grok that the language indeed has significant issues :)
 
But I like being able to mount it as an exhaust so that the hot CPU air goes directly out of the computer instead of lingering inside the case.
 
s/grok/understand
 
9:53 AM
@user12 You can do a lot more than imagine. You can read through the source to Clang or gcc. Of the two, Clang seems to be rather the less clunky of the two.
 
Xeo
mh
yeah, that seems to be what the Seidon is for
 
Clang's still pretty awful
 
Xeo
Anything I should pay special attention to for the RAM?
 
just get as much of it as you can afford
 
@DeadMG Yes--definitely "less clunky", not "clean" or anything very close to it.
 
9:54 AM
@Xeo Make sure the ram is listed as supported by the mobo.
 
RAM speed means pretty little
 
@Mysticial Kingston ValueRAM is compatible as fuck. I'd go with that.
 
I had a case where my 32GB of ram was unstable because it simply didn't like the mobo.
 
Xeo
I also noticed that the 4670K only seems to support 1600. Same for the Xeon
 
how can RAM not like a mobo
 
9:57 AM
@DeadMG It's mostly about clothing styles, but some about music and movies too...
 
@Xeo Yeah you can ignore that. The first thing you do when you boot the machine is to turn on XMP. That will run your ram at its rated speed.
 
@Xeo "only" as in "no faster" or "nothing else"?
 
Xeo
"no faster"
@Mysticial haha
Not sure I wanna go above 1600 anyways, because of the price
16GB is around 150eur from what I'm seeing here
 
You gotta love when people highlight everything
 
0
Q: Are calloc/malloc faster than new in C++

adnan kamiliWhat I want to know is that if I use calloc/malloc in a c++ program instead of new, does it make the memory allocation faster or it hardly matters as c++ compiler is being used to compile the program.

 
10:00 AM
@Jefffrey Oh, is that what that was about? I would have guessed it was a reminder that "God, MacOS is ugly as hell!"
 
brb, Imma take a shower.
 
I made sure to include that detail too. Yes.
 
Xeo
Hm, what does the CL9, CL10, CL11 stuff say about the RAM?
@Mysticial don't slip, I still need you here
 
pretty sure that's a timing, which isn't really useful
 
@Xeo How many ram cycles to wait before doing X.
Not that important for the most part.
I can see the difference, but that's because I do HPC. Overclockers care since it affects their benchmarks.
But it's not like it's gonna make iTunes faster.
Lower ram timings means a lower cache miss penalty.
Higher memory speed means more memory bandwidth.
brb, shower for real
 
10:04 AM
I've never seen CAS Latency affect the price.
and if it did I don't think it did by much..
 
Xeo
> Kingston HyperX DIMM 16 GB DDR3-2133 Kit
Hm, 150eur
 
Why has RAM become so expensive?
I used to get 8GB for €35.
 
user1804599
10:22 AM
Time to write distributed map function for fun.
 
I have 32 GB of 1866 in my 4770K rig. That was over 300 USD. Expensive - but it was almost a year ago.
It takes like ~ 3 seconds to malloc() + memset() all of it.
 
hmmm
"Marine Arena v1.0.0 v11.11"
 
Xeo
@Mysticial 32gig still seems to be consistently around 300eur on Alternate
Hm, where the fuck do I see if my mobo likes the RAM...
 
Go to the manufacturer's website and download the manual.
 
pcpartpicker does the compatibility thing automatically.
surprised you're not using it
 
Xeo
10:35 AM
You mean the PC configurator on Alternate?
I am using it, but I wasn't sure about the compatibility thing
 
Xeo
oh
Thanks, didn't know that one
 
np
it's a great site for making builds
makes it easy to compare prices across many sites and stuff
 
@FredOverflow undefined!
 
@Mysticial Why malloc+memset instead of calloc? ;)
 
10:45 AM
@FredOverflow calloc() might skip the zeroing since it's implied when the page is first committed. But for my purposes, I was trying to bench that zeroing.
 
@sehe Wouldn't those semantics make the max function distinct enough from Java's version already? :)
 
server reset? there were a couple of minutes this site was not loading
 
user1804599
I bet PHP does something silly like returning FALSE when a and b are equal.
 
user1804599
> max() returns the numerically highest of the parameter values. If multiple values can be considered of the same size, the one that is listed first will be returned.

When max() is given multiple arrays, the longest array is returned. If all the arrays have the same length, max() will use lexicographic ordering to find the return value.

When given a string it will be cast as an integer when comparing.
 
user1804599
But what if I pass it an array and an integer?
 
10:49 AM
Maybe the array's length is compared with the integer? :)
 
user1804599
Lol, max('a', -1) returns 'a' and max('a', 1) returns 1, because 'a' gets cast to 0 since it doesn’t start with a number.
 
Xeo
 
user1804599
And max('a', 'b', 0, 'c') returns 0 because zero integers are preferred over non-numeric strings.
 
user1804599
This is all so complicated. ;_;
 
@Xeo Did you change the site settings to use Germany?
It's on the upper right
I just noticed it
 
user1804599
10:52 AM
But I see the logic: if someone would sue PHP over max, the lawsuit would take decades because they’d have to figure out how max really works in PHP.
5
 
Xeo
@Rapptz I did now
 
rofl
 
@rightfold If only there were languages with a type system that did checks during compilation...
 
user1804599
@Xeo Don’t ever use “interweb” and “Trident” in the same sentence.
 
Xeo
lol
 
user1804599
10:55 AM
@FredOverflow The problem here is not dynamic typing but weak typing.
 
Try explaining that difference to a judge.
 
user1804599
Or rather not even weak typing, but the idiotic semantics of max. You could implement this logic in C++ just fine.
 
@rightfold I'll keep that in mind as a project idea for a rainy Sunday.
 
user1804599
It would not surprise me at all if non-numeric strings are treated as a different number from 0 elsewhere where an integer is expected.
 
You should work as a language lawyer in court!
 
Xeo
10:58 AM
Hm, 120 or 250 SSD. Normally I'd go with 120, but 250 is pretty cheap at 120eur
 
@rightfold lol
 
I admit it, I'm an Anders fanboy.
 
-2
Q: What i have to do when i or my people are discriminated in chat room?

user3622030i came to php chat room http://chat.stackoverflow.com/rooms/11/php and was going to socialize eventually. but then i came across a post discriminating my people "turks" calling them "homosexual turks" http://chat.stackoverflow.com/transcript/message/16388277#16388277 to what i replied begin from...

 
Xeo
> i just wanted defend my people
lawl
 
Fuck.
I don't know how to word my comment better.
It's bugging me now.
 
11:03 AM
My whole body hurts again
thanks to the rocks for the full body torture ... now I have bruises all over
 
The link to the first "offending" comment is now broken. Wtf.
 
I fail to see how calling someone, who is clearly homosexual, a homosexual is offensive. — Rapptz 1 min ago
okay, there we go.
:v
still reads weird to me.
I guess this means it's time to go to sleep
 
> deleted by user3622030 just now
 
lol?
 
11:04 AM
@Jefffrey what'd it say? :O
 
user1804599
@Mysticial OP is a faggot.
 
> well then you are homosexual too? do you like it?
 
lol
 
@Mysticial OP is a faggot.
 
I call for an undelete.
 
user1804599
11:05 AM
Me too.
 
user1804599
And quickly add an answer so it cannot be deleted by OP anymore.
 
Other people should enjoy the stupidity in that meta post too.
And it might generate some nice Sunday flame, that is always appreciable.
 
Xeo
Hm, pcpartpicker doesn't show me this one: alternate.de/html/product/information/…
 
last I checked, 760 had bad drivers
 
Xeo
hm
 
11:08 AM
admittedly it was like ~6 months ago.
:v
 
Xeo
Yeah, I really have no clue what a good graphics card is
 
@chmod711telkitty Have you been to a rock concert?
 
@Xeo Just make sure it has good stable drivers.
 
@FredOverflow you telling me the rocks on that mountain were having a concert? they have been awfully quite last night
they must be unhappy because I was sleeping/walking on them ... those rebel rocks, they were causing so much discomfort ...
 
Looks like they fixed the 760 driver issues
from what searching I did online anyway
 
Xeo
11:12 AM
wokay, pcpartpicker has the 760, but doesn't show it in the (unfiltered) list
I wonder why
 
It's 7:12 AM
Still haven't slept.
 
@Rapptz Why not? Is sleeping now copyrighted as well? Like Thread.sleep? ;)
 
Yeah. The thought of Oracle suing me is keeping me awake.
 
Xeo
How the fuck can cases be so expensive
 
they've always been expensive
shrugs
 
11:19 AM
At least they're reusable.
 
also get a mid tower, not a full tower.
full towers are too big for many people's purposes.
 
Xeo
yeah
 
btw did you get a modular PSU?
 
Xeo
Semi-Modular is what I have in mind from those that I have seen
 
I ask cause when my friend built his first PC he didn't get a modular PSU so he had an assload of cables
 
Xeo
11:21 AM
yeah
don't want that
 
I have a mini-ATX lanbox with a tower heatsink and a non-modular PSU.
 
you monster :v
 
At one point, it also had 2 video cards and multiple hard drives.
 
I wouldn't wanna manage that
Sounds like a pain in the ass
 
It was. :)
 
11:24 AM
0
A: Is D's grammar really context-free?

Paulo TorrensC++ was context-free before C++11. Now it is not anymore. Why? Because we got contextual keywords: final and override. Simple example to prove that: struct Father { virtual void override(); }; struct Child: public Father { virtual void override() override; }; You see? We need to see what...

lol
 
my friend's mini ATX case is always really hot even when idle
like ~65 C when idle
 
^^ That's with 1 video card. But at one point, I put a second one in the bottom slot.
So that I could run 4 monitors.
 
how'd you even manage the temperature?
I see... 3 fans
 
@Rapptz yeah... fans...
 
Xeo
Hm, I wonder how much watts I need.
 
11:27 AM
There was also one on the side-panel.
 
ugh those cables.
 
@Rapptz You bet it sucked.
 
@FredOverflow Hmm. C++ was never context free?
 
@Xeo obv 1k gigawatts.
 
Is that the correct answer?
 
11:28 AM
Anyways. 4:30 AM here. Imma sleep.
 
Xeo
Night. Thanks for the help
 
I should try... it's 7:30 AM
 
Xeo
night
 
Night.
 
@Xeo Try to get a 750 W one initially.
also it's "many" not "much"
 
Xeo
11:31 AM
hai hai
Why 750?
 
You can dual video card with 750.
 
yeah
and even if you don't want to dual video card, it makes it an option for the future
 
That lanbox picture above has a 750W. It ran two video cards + an overclocked i7 920 no problems.
 
I personally wouldn't cheap out on the PSU
but that's just me :v
 
Xeo
k
 
11:33 AM
in PHP, 22 mins ago, by user3622030
@RonniSkansing not everyone is poet in writing like you .. i have mental deficiency and that is why i have no degree.. you happy now?
 
I don't skimp on PSUs either.
 
Xeo
Hm, I just saw the MSI Z87-G43 doesn't support SLI
 
But I do skimp on video cards.
 
cause you could always use two :v (assuming it's supported, obviously)
lol we've postponed Mysticial's sleeping time by 2 hours
2 hours ago, by Mysticial
I'm about to sleep.
 
WTF? I can't use gcc anymore:
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 11
 
Xeo
11:40 AM
sounds like missing main
at least that's what the error looks like on Coliru :D
 
Xeo
In German it's also spoken "Aluminium", and not "Aluminum"
 
11:55 AM
Then you are also wrong apparently :P
 
You don't even know what you're arguing against :v
Aluminum is how Americans pronounce it
 
Is that the actual German word though, or just the English version you have chosen to use
 
Xeo
hm, I wonder why Alternate doesn't show me the linked PSU
@thecoshman It's really "Aluminium" in German
 
@Rapptz yeah, that is 'wrong', and I read Xeo wrong too
It's also rather hard to type with two finger tips in plasters :S
 
It's not "wrong". It's just different.
Anyway I should head to bed.
For real this time..
 
12:00 PM
And my cut fingers is in no way related to making sushi rolls :D
@Rapptz it's 'tolerated' :P
@Xeo would you say 'Futonorimaki' or 'norifutomaki'?
 
Xeo
vOv
 
what sort of Japanese talk learning fool are you :P
 
Xeo
wtf. I have 16GB RAM and pcpartpicker shows me 32bit Windows
 
@Rapptz Of course - in US, 4 syllables max. It's in the Constitution - the 'Reagan Ammendment'.
 
12:15 PM
@Xeo it's guaranteed to be compatible!
 
I'm gonna put GPS collars on a bunch of goats today.
They are escaping and the farmer can't figure out where/how
 
yeah, that can be a problem :)
 
Binned as opinion based.
 
zup zup zup
 
user1804599
12:33 PM
Huh.
 
12:48 PM
Although I'd take C++ or Haskell over PHP any day (obviously)
 
lol Cult<C++> er... Lounge<C++>
2
 
Heck, I'd probably rather do web on C++ and not PHP :D
 
@BenjaminGruenbaum No, really. Trust me.
 
@BenjaminGruenbaum :D
 
I've actually considered it once, and I still have nightmares.
 
12:49 PM
@Jefffrey why?
 
Strings.
 
You just need a templating engine?
 
^^ Then you have PHP ;-) A templating language that people add classes and logic too.
 
I mean, to add to C++, you know - having an actual language with resource management and all :P
@Jefffrey do you know how resource management works in PHP?
 
@BenjaminGruenbaum The standard library lacks of a lot of things. Like proper, date-time, happy regexes. Not to mention that IIRC you have to use C interfaces for the database (because there's no viable other option).
 
12:51 PM
Anyone know what the fark happened with Travis recently? It seems they changed some environment setup working to not working when hhvm was added. I guess maybe I just need to exclude hhvm....
 
@BenjaminGruenbaum Everything is garbage? I don't know.
 
@Jefffrey I usually just create thin wrappers over C APIs and never look back, otherwise not having RAII is pretty unbearable in c++ imo.
 
user1804599
Hmm.
 
user1804599
I wonder whether this is going to be useful.
 
user1804599
flatMap on event streams.
 
12:52 PM
Yeah.
 
@Jefffrey everything leaks memory (a lot of libraries and DB drivers), when a request ends the process dies, so you just kind of try not to run out of memory during a request and pay for lots of servers
 
18 messages moved from PHP
 
Please move us back.
 
user1804599
 

« first day (1303 days earlier)      last day (3637 days later) »