« first day (1118 days earlier)      last day (2712 days later) » 

12:18 AM
@Gothdo Why was my question marked as duplicate of a newer question? stackoverflow.com/questions/4987582/…
 
Rob
The time doesn't necessarily matter when marking something as a duplicate
3
The target question has move views despite being older, and the top answer is far more valuable
 
Okay, thanks @Rob!
 
12:41 AM
Which language? C and C++ compilers have built-ins for that.
 
@QPaysTaxes: Some CPUs have an instruction (FFOor similar. You might have to mirror the word, though)
@BaummitAugen: Not every compiler has. But gcc does.
@QPaysTaxes: I'd still use the intrinsic or built-in if available. Otherwise you can fall back to a loop.
 
@QPaysTaxes Most likely won't get better than the stuff you find here.
 
There is a webpage which has a lot of such bit-fiddling in C. Not sure about the name, but it is worth search.
 
Even includes assembly trick, so that should be as good as it gets.
 
Just remember to use unsigned integers when shifting.
@QPaysTaxes Of couse it is, but you also asked for a fast version.
 
12:46 AM
@QPaysTaxes Sometimes well-defined, sometimes implementation-defined, sometimes undefined, depending on the values of both operands.
 
For such stuff I normally write a seperate module and tailor it to each target. But then I rarely support other compilers than gcc. It's just not worth the effort :-)
 
But the general advice to use unsigned holds, agreed.
 
@QPaysTaxes Yes, but you can't eat the cake and have it. There is always a compromise and I tried what I normally do. Such bit-stuff is often time-critical, so I focus on speed where possible and provide a default for anything else.
" and I tried what" -> "and I wrote what"
@BaummitAugen Unfortunately the gcc builtins use signed integers actually. Imo that's a major flaw
 
@Olaf Given the built-ins are compiler specific and the implementation defined unsigned->signed conversion does the right thing on gcc it does not matter much, does it?
 
1:24 AM
@QPaysTaxes There is a Windows port of GCC, isn't there?
Ah, maybe, it's called cross-compiling if it's doable.
 
Rob
1:49 AM
So I just ran into a documentation post which was literally a screenshot of code.
How does this stuff get approved?
 
@Rob link?
 
@Rob There's how. You've got a 4k, 1.3k and 450ish user who probably robo-reviewed
Proposed by a user with 3 rep
 
Rob
Regardless of rep - I still don't see how anyone would think it's a useful addition
Oh well
 
@Rob They didn't realize it was an image of code
 
2:12 AM
@FOX9000 Those who approved that deserve to be smacked too...
 
2:22 AM
Reflag please VLQ (got cleared by edit.): stackoverflow.com/a/41112771/3002139
 
2:42 AM
@QPaysTaxes Yes, a lot.
@QPaysTaxes Cache is to blame once more. Arrays are just too nice to the prefetcher.
 
arrays are also a simple structure. Looping over one in any language is a simple affair. Any other data structure would involve some sort of internal arrangements typically
 
Rob
I believe it would only load in the current word
 
No, just the stuff (more or less) directly surrounding the memory you asked for. (May be more complex in reality.)
Anyways, there's a really good chance the memory you need is already loaded with an array and about 0 chance with the list.
 
Rob
Not to mention, if simply iterating a collection has a measureable time, then simply adding an extra level of indirection would impact results
regardless of caching
 
@QPaysTaxes That effect can be extremely strong btw, especially if you don't run long operations on the data you operate.
For example, when inserting into the middle of a collection, finding the insertion point with a linear search completely dominates the time it takes to shift the array elements. (For numbers at least.)
@QPaysTaxes No, at some point the time the operation takes just dominates the cache effects.
@QPaysTaxes That's detail we need not worry about. :)
CPUs are good this days. For linear array iteration they will do what's best.
Heavily depends on CPU, also there are multiple levels of cache with different size.
You usually need not worry about the exact cache size, esp not the lower level's size.
L1 is usually like 64kb, which can be reasonable relevant when optimizing.
@QPaysTaxes Nah, we are probably beyond the rule-of-thump territory here. Measure or it didn't happen. :)
Sometimes it helps to get things stuffed into a single cache line, but yeah, at this point, guessing does not count anymore.
> You usually need not worry about the exact cache size, esp not the lower level's size.
^--- With lower levels I meant further away, in case that was unclear. (Which it probably was.)
I'm gone for today. Bye. o/
 
3:18 AM
Bye Baum!
 
3:32 AM
No, not really
That's a different question
But I've heard you're hurting for L1 cache. But then again, are you hurting for CPU registers as well?
Anyways, I've got to go now.
 
3:49 AM
Let's not imagine. Let's see actual code that you've tried... — cale_b 1 min ago
 
4:20 AM
Close request list can be cleaned up :)
 
4:33 AM
It's people like you who make me not even want to use stack overflow. — Michael Coder 1 min ago
 
4:45 AM
Any mod available?
Seriously plain rude comments here: stackoverflow.com/q/41113645/5647260
Honestly toxic...
 
@AndrewLi Which one?
 
Rob
Just flag the comments, don't ask mods in here directly
 
@AlexanderO'Mara by the OP
@Rob I have. Just wondering if any mods here now
And they won't stop
 
Give me a negative score if you can please. — Michael Coder 1 min ago
 
@AlexanderO'Mara I dunno if it's a good idea to bring up the comments here now :/
 
4:49 AM
Don't engage.
Let mod handle it.
 
Meh, just ignore them. They're just talking to themself.
 
Yeah
NATO keeps pinging me :(
André != Andrew !!!
 
@André just ignore it :P
 
@AndrewLi Any room owners on, feel free to delete it, I missed the window.
 
@Tushar Darn it!!
Does SO chat ping care about diacritics?
@Tús sorry to ping, just payback :)
@QPaysTaxes NATO keeps pinging me with similar usernames
like @André
Annoying
 
4:58 AM
@AndrewLi It's Bhargav Rao's fault
 
@QPaysTaxes It's Machavity's fault.
 
!!/blame Bhargav
 
@Tushar It's Tushar's fault.
3
 
Tragic
HA!
Outplayed sir
 
Smokey is scared of mods
 
5:00 AM
!!/blame
 
@AndrewLi It's cricket_007's fault.
 
Darn
 
@QPaysTaxes It's Tushar's fault.
 
Again
 
Indeed
Horrible RNG
!!/blame
 
5:01 AM
@AndrewLi It's Queen's fault.
 
!!/coffee
 
@AndrewLi brews coffee for @AndrewLi
 
Bot fight! Bot fight!
 
@QPaysTaxes It's cricket_007's fault.
 
Bah
Horrid RNG!
Dec 6 at 5:02, by SmokeDetector
@AndrewLi It's Andrew Li's fault.
 
@Rob sigh
 
5:22 AM
The guy is suspended, So talking negative things to the site is subject for suspension? Terrifying.
Although I don't agree with him.
@QPaysTaxes the guy here
 
Rob
@Enzokie I doubt it was because of negativity. This is a new account of theirs (apparently made to avoid a question ban). That's probably why they were suspended.
 
agree
 
@Enzokie He created another account to get around the low quality question ban
Seems suspendible to me
For a year
I consider the "o" in "Jobs" a freehand circle, you got my upvote. — Maroun Maroun 35 secs ago
:D
 
lol
 
@Rob Shog9 just destroyed that OP
 
5:35 AM
@ivarni yay
 
I meant figuratively btw
 
Shog nuked 'em but my comment flags that started this whole thing aren't handled :P
 
Ah, I was referring the the answer he posted, I've not seen any comments so I don't know what triggered the futuristic bacbone.js developer in the first place :)
 
@ivarni 'twas a comment argument starting from a dupe conflict that spiraled outta control
Dunno what happened. I told him to go to meta if he had any concerns
 
I see. Well, nothing of value seems to have been lost in the process
 
5:41 AM
The last smokey request almost crashed my phone o_o
 
That was funny after the OP reacted :)
 
:D
 
Someone needs to clean out closed questions from the requests tab :)
 
Yeah...
I'm out for tonight. See y'all tomorrow o/
 
o/
 
6:06 AM
@QPaysTaxes Is it the pink panther theme?
 
6:31 AM
Morning everyone :)
 
 
1 hour later…
7:47 AM
@PetterFriberg Post 1: Already recently reported
 
@BhargavRao darn ninja...
 
it took me some time to translate it : )
@QPaysTaxes just must have some declined lately...
@QPaysTaxes ?, maybe you are filtering...
meeh continue flagging it will stop to bug you soon...
@QPaysTaxes You can always help us out with the NAA
 
8:05 AM
Good morning \o
 
Waffles @BhargavRao, hows that meta post going ?:D
 
@kayess \o
 
Ninjad :D
 
8:06 AM
:D
 
@Pet \o
 
morning
 
@kayess erm, I told ya :P
I'm moving ahead :D
 
lol OK :D
 
8:20 AM
Hiya
 
Hiya
 
user3956566
8:34 AM
what to do with this stackoverflow.com/a/37201328/3956566 a duplicated answer some time after the original above it
 
@YvetteColomb voted to delete both answers there
 
user3956566
@Tunaki yep that's what I thought
 
user3956566
I don't have delete votes yet, for answers
 
user3956566
doing an interesting database change, dropping a table and merging the data..
 
@SotiriosDelimanolis Is that part of the question actually answered in the duplicate? OP insists on it not being a duplicate based on wanting a "pure Java" way to configure it, not XML. The accepted answer in the supposed duplicate shows only XML. I cannot judge whether the other answer sufficiently answers the "pure Java" part.
 
user3956566
8:46 AM
hello @deceze :)
 
@YvetteColomb Hi!
 
user3956566
@deceze are you enjoying your new position?
 
@YvetteColomb Not having to wait for 5 people for certain close reasons is pretty great ;o)
 
user3956566
nice :)
 
user3956566
congrats man
 
8:50 AM
Thanks
 
@deceze There is no actual difference between XML and Java solution, both configure the same thing. In XML, through tags (implicitly calling setters in Java), in Java, directly calling setters. I guess that answer could be edited to show the Java config... but it comes down to calling setErrorHandler
That the XML show
Java config is just a type-safe XML variant. Instead of an XML tags <errorHandler>, you call methods setErrorHandler
 
@Tunaki OP seems to be unaware of how to do that exactly. If you can incorporate the setErrorHandler example into the existing answer, I'd agree that a dupe is warranted.
 
9:05 AM
@JanDvorak: Today's AoC was fun 😃 Not that hard though
 
9:16 AM
this user stackoverflow.com/users/888731/israel-unterman just went on a link-only answer spree (4 answers so far) posting the same link on different posts.
Account hijack?
Update: all 4 answers deleted
 
hiya @deceze \o
@BhargavRao what was the link for your meta post about synonyms ?
 
@АндрейБеньковский :)
@kayess \o
 
Am I the only one to get a invalid https cert on stackoverflow.com?
 
@rene Works fine for me
 
OK, must be something on my end then, Thanks for checking
 
9:31 AM
No issue here either
 
9:50 AM
Plop!
 
10:02 AM
 
@BhargavRao here is the post I have sent in: meta.stackoverflow.com/questions/339476/…
 
@kayess mod*, not mode
 
@Kyll fixed
 
@BaummitAugen (sorry for late answer, but I had a very tough day) Problem is if you use unsigned (which is typically a good idea, see above), you get a warning (-Wconversion). I'd either had made then generic (non-standard, but builtsins aren't anyway). Remember: always enable all reasonable warnings in C and treat them like errors (make them errors for a release build).
 
/me cooks waffles to sooth Olaf's day
 
10:10 AM
Oh, and btw: puff
@Kyll Thanks!
!!/tea
 
@Olaf brews a cup of earl grey tea for @Olaf
 
Ok, this day definitively starts good :-)
 
=D
 
@kayess nice one, thanks :)
 
@BhargavRao me too
 
10:44 AM
Not possible.
 
@PraveenKumar unclear, or not possible?
 
Not possible buddy...
There's no option for not possible.
So I used unclear.
 
@PraveenKumar Sure there is, an answer saying "You can't do that because the waffles won't allow it"
 
@Tunaki :D
 
I have a couple of those answers myself
 
11:07 AM
Retracting the vote. The question is now clear with the comments intact.
@Tunaki I want a cat.
 
Hey
 
@EricAya Bye
 
@PraveenKumar Cat eat fish, so no.
 
@kayess :D
I am a cat. I don't eat fish.
 
Mh, I've seen quite a handful of posts in my Watch closed by deceze. Go deceze! =D
 
11:21 AM
Any Java dupe for this?
(Or to point at it)
Scary question, pink elephant.
@Louis Commented
 
11:58 AM
lol, I just got an email complaining that I dupehammered some question.
 
@Gothdo LoL. What?
From the Mods or the OP?
 
Mods have better channels than this
 
From the OP.
 
@SmokeDetector nop. Q might be No MCVE/No repro though
 
12:19 PM
Hello :)
 
12:30 PM
Clicked spam flag just as it disappeared :P
Too slow
 
> This is spaaaaam! – Praveen Kumar 10 secs ago
Thank you, Captain Obvious.
 
Morning
 
@NathanOliver 'fternoon
 
12:40 PM
Image uploaded for code!
@Gothdo You are welcome! :)
!!/blame
 
@PraveenKumar It's Jan Dvorak's fault.
 
Ha ha ha...
@Braiam Why not a cheaper 2016 C?
 
Maybe we'll get a 2017 pre-alpha.
 
1:11 PM
Should a 500 character comment be posted as an answer if it explains why there code is broken but doesn't give them a solution and the why it is broken wasn't really asked for?
 
stackoverflow.com/questions/41122074/… is a wall of text, asking for a function, asking for mathematical background and more. Is this unclear, No MCVE, Too Broad or a tool rec?
 
@Kyll of course
There's a millionth dupe
 
1:27 PM
@NathanOliver the first step towards solving a problem is: identifying the problem. Explaining why a problem occurs is critical to know how to solve it (if there's possible solution)
 
OMG the answer are so wrong
 
@Braiam Yeah but that deserve to be an answer or should it be a comment to the OP?
 
@NathanOliver it's helpful to future readers?
 
meh. It is a common mistake people make but it is already covered in other questions and answers. Because they did not know about it, it really hits the performance.
 
you can instead change the question around, no?
remember, we try to favor good answers
 
1:31 PM
Yeah but really it is just a dissection of their bad attempt. I really do not want to solve the problem. I just want to let them know what the problem is with the code they tried.
 
then ask you the question and answer it, then point the OP towards it
 
Ah. had not thought of that approach.
 
Why remove the bug tag here? meta.stackoverflow.com/questions/335696/…
 
no idea.
afk
 
@Tunaki less work to do...
 
1:40 PM
Its only tag is !
 
@Louis ok, wth is grab?
 
@Braiam I suspect someone just created the tag when they needed to .
 
@Braiam the US president elect is an expert in that tag: naijaexclusive.net/…
 
@Louis le sigh
 
user6820627
"Hello, SOCVR!"
 
1:47 PM
Hi
I just made up a new word \o/
 
user6820627
what word @NathanOliver ?
 
indescrutible?
 
user6820627
closetory?
 
oh. should have checked google first. I used encapsulators which showed up as not a word from the spell checker but google results think it is right.
 
wafflicorn?
 
1:50 PM
How can chrome's dictionary not have the freaking word but google search know it is spelled correctly?
 
Because.
 
user6820627
btw, i really want socvr to have a phone number so i can call and talk to you w/o using SO chat
 
1-800-pls-close
5
 
:D
 
user6820627
@Tunaki is it real? i am calling
 
1:52 PM
There's Closey at the end of the line.
 
Man, that's cold Nathan. You gave him the number for the Lounge C++ party line
 
lol
Do you guys think hammering this with this is acceptable?
 
@NathanOliver yes
 
Done
 

« first day (1118 days earlier)      last day (2712 days later) »