« first day (972 days earlier)      last day (3990 days later) » 

12:06 AM
@MooingDuck Needs const.
 
12:17 AM
If you were making an RSS feed reader/ticker... how many concurrent threads would you consider too many for downloading?
 
Is it performance heavy enough that you need to ask the question?
 
@Borgleader Probably not... just being OCD I guess
 
Then keep it simple
 
I have "420" in my rep!
 
@LucDanton actually, probably can't throw ::get, since it's overloaded. Ambiguity error.
@RyanRies For downloading I'd probably just do one. Bandwidth is probably your limiting factor there
@Code-Guru fixed
 
12:31 AM
@MooingDuck It shouldn't be overloaded.
 
@LucDanton oh, right
it always bothered me that const pointers' .get() returns a pointer to mutable data :/
 
int* has no get and does the same.
 
@MooingDuck Right, I was thinking that if I'm downloading very small amounts of data from many different internet sources simultaneously, then it might be best to break it up into threads. I just wonder how many threads is optimal.
 
I know
 
@MooingDuck aww
 
12:33 AM
@RyanRies maybe, but I kind of doubt it.
@RyanRies actually... yeah, it probably would be better multithreaded
 
So it's not get, it's pointers. That's normal.
 
@LucDanton specifically, it's kind of weird to me that it doesn't act like vector::operator[]. I totally get why it doesn't, but it still seems weird.
@RyanRies (1) don't worry about it. (2) if you're insane, make it variable and adjust the number of threads dynamically. (adjust down faster than adjust up. always)
 
If an error code gives me -0x30 what am I supposed to think?
I can't make heads or tails out of it considering 0x30 is 48 and -48 is 0xD0
 
12:49 AM
What's wrong with a dynarray?
Ahh
I see
 
1:01 AM
I think this is a sign that one is not confident in one's skills:

If(($TAlpha.Count + $TBeta.Count + $TGamma.Count + $TDelta.Count) -NE $Feeds.Count)
{
"$(Get-Date) - Error : The sum of the 4 threads did not equal $Feeds total!" | Out-File -Path $DebugLog -Append
Return
}
 
I think I just found and fixed a bug that had a 3+ hour repro time. And only after reproing it about 5 times over the course of the entire day...
Now I need to wait another 3 hours to see if my fix is correct.
Hate it when shit like this happens.
 
But at least I'm glad that it isn't the 6 day repro bug I had back in February 2010.
 
@Mysticial One of the bugs I was keeping an eye on only reprod like 1 out of every 100,000 runs, which took a day to finish the batch. And it took an additional day to get the most updated changes into said daily run. Wasn't fun.
@Mysticial Looks like I was beat before I even finished writing my previous message. :)
 
@GManNickG Ow... 1 in 100,000.
That's one of the reasons why I designed my Pi program to have deterministic behavior... So I wouldn't run into heisenbugs.
 
1:11 AM
I'm going through boost::archive and boost::serialization to help me understand how I can get my reflection system going. That shit is not simple.
 
@Mysticial Yeah. And it had been there for a looooong time; just some recent changes modified the timing on whatever race condition causes it, so that the repro rate increased from whatever it had been for the last decade.
@Borgleader I think Boost.Fusion would be more appropriate for reflection.
 
I don't want to use anything, just understand how it should be done.
I dont remember what boost::fusion does
 
"Intel Pentium 4 CPU 3.20GHz × 2" is a lot slower than I remember
 
@MooingDuck hehe
I still remember when I upgraded from A 2.8 GHz Pentium D to dual Xeon X5482s...
 
@MooingDuck My Dell XPS 600 (I think is that number) had that.
And I still have it, literally just 'upgraded' to a Pentium D around Christmas.
 
1:14 AM
People still use Pentium?
 
To the best chip the stupid motherboard can support.
@Mysticial Yeah at work my workstation is a 12-core Xeon 1650
 
@Rapptz They've been reusing the brand. The "true" Pentiums are the Prescott ones.
 
So good.
 
My wife is using my laptop, so I'm stuck on this one, which is... old
 
I'm using a lame little i7 2600K OC'ed to 4.4 GHz.
 
1:16 AM
"lame"
 
I'll probably be building a new machine soon to I can get the AVX2 instructions.
 
@Mysticial Just fans for cooling?
 
I "recently" upgraded to i7-3770
 
And I'm still trying to get ahold of a AMD Bulldozer machine for the FMA4 and XOP.
@GManNickG Self-contained water.
Cooler Master H50
It used to be able to sustain 4.6 GHz. But then it degraded after 6 months of WCG. Now I run it at either 4.2 or 4.4 GHz depending on how hot the room is.
4.4 requires a vcore boost that puts it over 80C if the room is hot enough.
 
Yikes.
 
1:21 AM
Yeah. 80C. On my more expensive machines, I don't let them get above 70C. (specifically my 2x Xeon X5482)
I don't particularly mind abusing a low-end machine though.
 
why does chrome crash half the time when downloading pictures?
 
Welcome to Chrome Roulette!
I also have this issue.
 
1:37 AM
@Mysticial Out of interest? afaik the amd procs dont hold a candle to the intel ones these days
 
@Borgleader Both interest and for benchmarking fairness.
 
Alright let's try rolling over.
@Rapptz Is the stuff you're working on interesting?
 
I'm not doing anything atm.
 
Oh okay.
 
Why?
 
1:39 AM
was wondering if had python in it
 
I got excited when my Uncle said he got a new AMD laptop. So I stole it from him for a day only to find that it didn't have XOP. I was like a kid going to an candy store only find that there was no candy. Fuck.
 
Did you need something?
 
Okie dokie.
I might switch to github
 
Making stuff public?
 
1:42 AM
Hi all.
 
Hello
 
@LucDanton gh-pages mostly
 
For what it's wroth, the saga continues: I've been evacuated from the fire area, so I'm now at a hotel in Denver.
 
Github/Atlassian has something similar but it's not as good, is it?
 
1:43 AM
I couldn't find an alternative in Bitbucket.
 
@JerryCoffin Dafuq is going on? :(
And are you ok?
 
Forest fire! iirc
 
@Borgleader Forest fire. I (and the rest of my family) are just fine.
 
Did you lose your belongings?
 
Good :)
 
1:44 AM
@Borgleader Forest fire. I (and the rest of my family) are just fine.
 
Now hoping your home comes out intact
 
@Rapptz Just in case, was thinking of that. Never used it and seems limited in scope/features.
 
@Rapptz So far, no. We've been evacuated, but the fire's still a couple miles from my house. There's a pretty good sized highway between though, so I personally kind of doubt it'll be damaged, but it's hard to say.
 
@LucDanton Yeah I saw that. Seems like the only way to do a project page would be to make a new account with the project name..
Seems okay for username.bitbucket.org/projectone/ though
 
1:49 AM
yup
 
> Authorities offered the first hopeful news: The fire is now at 5 percent containment.
That's not very encouraging...
 
I might use it I guess, to try it out.
 
@Borgleader Me too -- not so much for the house itself (can be rebuilt) as the wine I had in the basement that was really too big to bring with us. Some I've been aging for upwards of 10 years...
 
lol
 
That and any item with sentimental value. Losing those always sucks :(
 
1:53 AM
I would have taken the longest aging wines at least.
 
Is this a one-time thing?
 
@JerryCoffin Glad you're safe, and with internet connection. :)
 
@LucDanton Hm?
 
I wonder if there is a way to beat std::accumulate for single core floating point sum performance? Does that stuff even vectorized?
 
Or are forest fires a somewhat expected occurrence there?
 
1:57 AM
So Bitbucket/Atlassian goes webhosting.
 
@MarkGarcia Guess so!
 
@MarkGarcia I work on research papers using git
 
With Atlassian's "milky" interface, it might do a good webhost.
 
All this because I hate github/bitbucket wikis.
 
@MarkGarcia what's that?
 
2:02 AM
I have no idea.
I was thinking he meant he liked the UI of Bitbucket and other Atlassiansites but I couldn't see why it's relevant
 
Oh btw still around 7s even though I really, really simplified the interface now so I'm guessing the compilation costs are somewhere else entirely.
 
@LucDanton Most webhosts have very ugly and bloated UIs. I like minimal ones like the ones in Atlassian's services.
 
@LucDanton :)
 
It's just a repository though.
 
2:05 AM
And hey, it's likely that Atlassian will create a webhosting service.
 
Just like their Wiki service screws over the Bitbucket Wiki?
 
@Rapptz I hope not.
 
What's the Atlassian Wiki thingy?
 
Confluence
 
ugh
Do I care to support negative slice bounds? I'm thinking no.
 
2:11 AM
Don't think so.
 
There are too many things to get right before worrying about convenience features.
 
Yeah that's always a problem. Thinking about expanding when you just want to finish the core.
 
Hm. I think, negative bounds should be done at the core.
 
Actually I like to pare an interface down to its core :v I don't like implementing something I have no idea I would need or not.
 
Oh.
 
2:14 AM
It's not something I would have thought would happen, but I'm at peace with 'you ain't gonna need it'.
(He says, having reimplemented large swathes of Boost.)
 
Reimplementing Boost is fun.
:(
stares at his stuff
 
If you make it better than Boost then you don't feel so bad about it. And that's from experience :D
now at 11s but that's par for the course as I'm adding codepaths that involves std::vector, so more instantiations.
 
Variant was annoying, I'm not very proud of it.
 
Was that an exercise or intended to fill a gap compared to the Boost version?
 
Both
It has move semantics and stuff but I feel a bit dirty looking at the code.
 
2:21 AM
Mine is a tower of babel. I even support recursive variants.
 
posted on June 14, 2013 by Herb Sutter

Why prefer declaring variables using auto? Let us count some of the reasons why…   Problem JG Question 1. In the following code, what actual or potential pitfalls exist in each labeled piece of code? Which of these pitfalls would using auto variable declarations fix, and why or why not? // (a)void traverser( const vector<int>& […]

 
I have a recursive wrapper.
I.. didn't test it very well.
I feel like rewriting all of it.
 
I don't. Well yeah I do, but it's an implementation detail :v It's not part of the interface.
 
I also realised I don't really like Boost's design decision when making it :(
 
Which one?
 
2:23 AM
static_visitor et al
 
I'm not sure recursive_wrapper is relevant here. Did you manage to have an interface for visitation without the static_visitor shtick?
 
Oh I meant variant in general.
And no. I depended on it which is one of the reasons why I felt dirty.
 
Anything else isn't as safe. Polymorphic functors are annoying though, you're not wrong.
I did have make_overload already though.
 
When browsing old C++ questions on SO I always find this guy Nicola Bonelli
his seems bugged
 
Oh, I think that's a result from the silly tag synonym situation. Can't say I've bothered to remember how that works though.
 
2:31 AM
Has anybody here been burned out before?
 
More than likely
 
@R.MartinhoFernandes Implementing drop in terms of slice means it requires a range with a size. How do you feel about that?
 
drop n?
 
ye
Because I want slice(range::to(18), r) to behave sanely regardless of how many elements are in r.
Better investigate if I can sensibly have pop_[end]_n return how many elements were dropped though.
Ah, won't help for a non-bidi range.
 
posted on June 14, 2013 by Herb Sutter

Toward correct-by-default, efficient-by-default, and pitfall-free-by-default variable declarations, using “AAA style”… where “triple-A” is both a mnemonic and an evaluation of its value.   Problem JG Questions 1. What does this code do? What would be a good name for some_function? template<class Container, class Value>void some_function( Container& c, const V

 
2:43 AM
^ vs. Scott Meyer's NAH (Not always Auto Herb).
 
> (a) Heap allocation syntax.
wat
 
2:57 AM
fuck, brain too messed up to make logical partitioning
 
I CANNOT BRAIN TODAY
 
I'm using Notepad for some quick editing and it's already annoying me with encoding issues.
Stupid ANSI default encoding.
 
I had a bunch of coworkers tell me my logging was wrong because it rendered funny in Notepad, and theirs didn't.
turns out I was the only one logging correctly as UTF-8, the rest thought their logging was UTF-8, but was really codepage 1252.
 
20
Q: Why is blog spam always written so badly?

LucasSome spam messages fresh from my Wordpress filter: Asking questions are in fact pleasant thing if you are not understanding something totally, except this article gives good understanding yet. and Thanks for any other informative blog. Where else may I am getting that kind of info...

 
> && was unexpected at this time.
lol
okay then.
Works fine on the command line :(
C:\Test>(echo stuff && echo stuff2) > lol.txt

C:\Test>start lol.txt
 
Oh right, std::istream_iterator touches the underlying std::istream right at construction :| explains test behaviour.
 
@JerryCoffin sorry to hear that ... but that's the (lounge addiction) spirit! No matter rain or shine or in the mountains or in a hotel/airport. Never forget to share life with the lounge :p
 
Ideone editor window looks smaller than how I remember it.
 
@StackedCrooked Looks the same to me except for that left padding.
 
@R.MartinhoFernandes Okay got it to work. Except for bidi ranges without sizes because I don't have any available to test and it's getting hard to use my thinker.
 
3:32 AM
@StackedCrooked finally! C++11 while I'm on my phone :)
 
3:46 AM
@StackedCrooked I think they shrink it every few months
 
Bitbucket pages isn't as bad as I thought
 
I helped!
 
Well it'd be sad if I didn't have own spare CSS files laying around but whatevs. :P
 
@ScottW Hi.
 
soup
 
4:04 AM
 
@R.MartinhoFernandes @Xeo Okay I'm done with the move away from iterators to D-style ranges. It doesn't mean much, other than I cut off old crap that wasn't worth porting over. So the repo should look tighter now.
Okay so I've kept an old toy program that was coded against the iterator version of my ranges. Took 5.7s to compile, yielding iterators of 88 bytes. Now it takes 3.8s to build and the generated range takes 288 bytes.
 
4:20 AM
Pretty big
 
ye I'm investigating.
Okay, bad comparison. There are two vectors of 56 bytes each in that generated range, but that's because it embeds. The version with the 88 bytes of iterators also embedded, although not in the iterators themselves.
So really it's the same state, but it isn't put inside iterators anymore since I got rid of those. Which was the point.
 
56 bytes for a vector seems quite big.
 
I'm kinda satisfied that the interface is largely similar. I did have to change the call to range::slice since I tweaked that but that's largely it.
@MarkGarcia Debug mode. The iterators make 40 bytes lol, there's two of them in those 88 bytes.
 
@LucDanton That's what I guessed, but IIRC MSVC has much smaller sizes even in debug mode. Or is it GCC?
 
GCC.
24 bytes a vector apiece in non-debug.
 
4:27 AM
VC11 only takes 8!
 
Per vector? I think not.
 
I've read it. Be right back with the link.
 
Is.. cppreference down? :(
 
You're thinking of the iterators, because 8 is the size of a 64-bit pointer.
 
I'm getting a 503.
 
4:28 AM
32-bit I think. Doubled for 64.
Ah. I was wrong. The same size in x64. (msdn.microsoft.com/EN-US/library/vstudio/…)
 
4:47 AM
Is sehe here? D:
 
No
 
ah ye olde C++ Lounge..hello all
 
5:04 AM
I think I've seen Tony in the user board yesterday.
@ScottW WHAT?!!
@ScottW Oh. Well, that isn't as bad as I thought.
We don't know. We may see a newer, revitalized Tony The Lion after a few weeks.
And the others.
But The Lounge without them isn't full. Isn't complete.
I feel sad. Really. :(
 
@ScottW I'm not going away.
 
We should start dating :)
 
I'm glad. :D
 
5:23 AM
is there a way for a beginner to know if a question he will ask is trivial or a good one ?
 
@H.J_Rios Learn from experience. :P
 
lol..
I want to ask a question but I need to post the code and its about 400 lines of it, is there a way that any of you guys know how to do that ..I would do it on the main page but it seems like a fringe and trivial case
 
5:40 AM
@deadmg slightly late, sorry.
 
@ScottW trying to get some coding done, going out soon. How about you?
Busy ... but more of a reflection of my ineffieciency :'(
@ScottW ok, call me when you are here : 61- 422112278 (61 is the country code)
 
@ScottW <33 Don't worry baby I'll never leave you.
 
@ScottW thanks, I thought that's what would happen..going to look for a real time editing thing
 
Also, when did Cat leave?
I must've missed it.
 
Where did he go?
 
5:49 AM
Yerp, then I probably missed it.
 
Or just a break from SO/this room?
 
user142019
Shit.
 
=[
 
user142019
My function calling syntax is f a b c but I have no syntax for functions that take no arguments.
 
Tony has had it for a while. Cat left his spot vacant. Nobody has been elected to take his spot yet.
 
5:51 AM
@ScottW That's sad.
 
I elect @Rapptz as a room owner!
 
@Mysticial If @ScottW is sincere in what he said in not leaving, I nominate him.
 
user142019
I elect myself.
 
And give Cat explicit write access.
 
Rapptz is definitely one of the most active ones whenever I'm online. So I'm in favor of giving him ownership. But I'm not sure if there's anyone else in the other timezones that I don't see too often.
 
user142019
5:53 AM
I have no idea how to parse this. :v
 
what ... if ... I said ... I want to be a room owner :x
 
Yes. I also nominate @Rapptz.
 
@Telkitty猫咪咪 Good luck? :D
 
:'(
no just deadmg no one else I am aware of ... and xeo
 
ALL OF THOSE IN FAVOR OF MAKING @Rapptz AS A ROOM OWNER, VOTE!
17
 
5:54 AM
the rest are not regulars
 
I'll leave the pin up for at least a day to let everyone weigh in.
 
I am so dishearted, I am off (for a couple of hours to some fancy seafood restaurant) :p BBL
 
Any other candidates to consider?
lol
I wonder what @Rapptz's reaction would be when he sees that he's being nominated. :)
 
He'll probably turn it down.
Because he's a JERK. D:<
 
Nothing's formal here.
:P
<3
 
6:00 AM
ok just a quick request I found this thing that seems to work for code collaboration could anyone do me a favor and check in ?
 
lol. Too bad I can't vote.
 
thank you whoever that was
 
It's the measure of our support him and the love for the room!
 
@ThePhD lol
D:<
I first looked at it upside down, and I thought it made sense.
 
@Telkitty猫咪咪 hiii good afternoon :)
 
6:05 AM
@ScottW I tried to catch your love but you weren't the right type
@ScottW Wouldn't have this problem if the world learned to Java
 
Eeuw.
 
Thats the price of total Exceptance
 
You're so grouse.
 
I would point out your mistake, but but all I can do is find a reference for it
 
6:09 AM
@MarkGarcia your compression ratio is nonsense
 
@Mikhail It's testing the wiki dump archive... :(
 
does anyone know any good tutorials on learning 3D modeling?
I can't find classes fucking anywhere in MA
 
lol
 
@Crowz 'Tis hard. I would start with an easy IDE like AC3D
There is a second problem: you need textures to look good, and making textures i hard and takes a long time
 
@Mikhail I would think Massachusetts would have a college with a 3D modeling course... MIT is here, I feel like they should have one class
 
6:13 AM
@Crowz its artistic talent and practice. It can't be taught in a class.
 
@Mikhail I want to reach a comfortable level with 3D software, more or less, my last school had 4 classes in it
 
user142019
6:36 AM
Yay I can parse function calls.
 
6:52 AM
Hi
I am back from a 3 hour SSBB session.
Fun stuff.
 
@Rapptz Welcome. :)
 
Can we reopen this?
32
Q: Fastest way in C to determine if an integer is between two integers (inclusive) with known sets of values

PsychoDadIs there any faster way than x >= start && x <= end in C to test if a value is between two integers inclusively? I know that x, start and end are between 0 and 128. UPDATE: My specific platform is iOS (iPhone / iPad). This is part of a box blur function that restricts pixels to a circle in a giv...

@MarkGarcia Hi!
 
@Rapptz You seem not to be surprised. :P
 
@ThePhD <3
Oh I have a pin
 
Yeah. We've conglomerated just for you. :)
While you're away, we've done something good for you and for the room.
 
6:55 AM
Looks like fun.
 
Portuguese bus. Oh my. /cc @R.MartinhoFernandes
 
@Rapptz There was actually a meta post about that.
 
@Mysticial Yeah I saw it. It's 99.99% the reason it got closed to begin with.
and Jerry's answer helped so it's definitely constructive
 

« first day (972 days earlier)      last day (3990 days later) »