« first day (1650 days earlier)      last day (3315 days later) » 

7:00 AM
it complicates it because you have two handlers for one set of collisions
{ X, Y } and { Y, X }
unless I'm missing something
 
They do the same thing. They are the same.
 
yeah I know {Y, X} would just forward to {X,Y} but that's still one extra handler.
 
morning
 
hi
 
health.stackexchange.com has been put to public beta
 
7:02 AM
sup
Time to ask questions about anal warts
 
@StackedCrooked great job :D
@Cicada wat? :|
 
Well, it's on-topic.
 
I am user #47.
 
@Cicada and I thought this room was about cooking
 
33,482 visitors/day
lel
 
7:03 AM
Great, theres
I'd bang user 97
 
I have just noticed, with my 9000+ points I am top 4 %. That's quote unexpected. I thought 9000+ was not that much.
 
I'm pretty worried about Health
hopefully everyone downvotes bad answers
but given the nature of the site who knows
 
السید____علی, Islamic republic of "IRAN"
101 2
lel
 
@Cicada You objectifying toxic masculine man, you, check your privilege!
 
7:06 AM
> Welcome presius litel snoflek, you've been logged in. Click here to refresh the page.
 
@Feeds is pale in comparison.
 
wtf is wrong with their cache coherency XDDDD
 
@wilx It is when you consider how many one-question accounts are created every day
good morning :)
 
> Another significant point is that: there are some verses in the Quran which mention: …. « أَكْثَرُهُمْ لا يَعْقِلُونَ » ، « أَكْثَرُهُمْ لا يَشْكُرُونَ » (most of them don’t understand …), then it shows that having the most population is not considered as a reason of the legitimacy, otherwise we could say that Christians are right, since they are more than Muslims!
oh boy
 
> since they are more than Muslims!
 
7:09 AM
@Rapptz Indeed. Given the nature of the site I expect anti-vaxers and homoeopathy etc., answers to win over truth based answers. :)
 
@wilx Not what I meant (and also not true)
 
@Rapptz How is it not true what I expect? Check your privilege!
 
35
Q: Faster alternative to nested loops?

benpageI have a need to create a list of combinations of numbers. The numbers are quite small so I can use byte rather than int. However it requires many nested loops in order to get every possible combination. I'm wondering if there's a more efficient manner to do what I'm after. Code so far is: var d...

^^ Holy shit...
 
Watch out for stackoverflow exceptions when allocating too many objects on the stack. — Andrew 23 hours ago
wtf?
 
@Mysticial Hmm... Dunno if I would have used nested loops. You can do that with DFS with a stack.
 
7:20 AM
This is actually just a heavily connected graph, all you gotta do is DFS or BFS starting from every node.
 
@Rapptz It's a subtle pun
 
having nested loops is dumb way of thinking about this problem
 
@Cicada If only.
 
Islam.SE best SE
It's the new 9gag
 
@Cicada I think you discovered that when you were still momotapa
 
7:25 AM
@Cicada Will I be banned from the whole site if I try to argue with them? :)
 
@wilx Not if you can cite the literally holy standard
@khajvah I did
 
sbi
Good morning.
 
hi
 
@sbi howdy
 
> recent names: 6
oh well
 
7:28 AM
Oh hey the ape is here.
 
sbi
Hey, @Puppy, would you suggest a place to meet for tonight? I am at the Marriott next to the Castle Park, but I walked from Clifton to there and back on Tuesday, so I know a bit of my way around that path as well.
 
user1804599
Hello.
 
@sbi I suggest out of the city :P
 
sbi
@thecoshman Naw. I was wearing new shoes on Tuesday, and am still a bit blistered... :(
 
user1804599
@StackedCrooked you cache it, fool.
 
user1804599
7:30 AM
The cache should store the timestamps.
 
I want to see more of Acquisitions Inc. games but I have already seen all of them including their early podcasts.
 
@sbi Bit blistering is a commonly employed technique in graphics for fast copies.
 
@sbi No wonder, you are a gorilla, after all. :)
 
inb4 3/10
 
sbi
@Cicada It's also commonly applied to feet walking around a city.
 
7:31 AM
@sbi new shoes need to be broken in though, no? would you not expect them to hurt if your first outing was a long walk
 
sbi
@thecoshman I had worn them for a few days at work when I came here and I didn't expect anymore problems. But the worst was over due to that, so it's not like I am totally footsore. (I did suggest a pub that was a 15mins walk away from the hotel last night.)
@wilx At conferences I always put a picture of my avatar into my name badge. Yesterday someone looked at the badge and said "Oh, that is you?!" :)
 
Xeo
mornin
 
@sbi :)
 
sbi
Hey, @Jerry, you really ought to go to bed! :)
 
someone> is that ape you?
sbi> yes
ITT sbi is an ape
 
sbi
7:37 AM
Well, I gotta have a shower, and then go to have breakfast. Otherwise I'll be hungry during the first talk. And who would want to have a hungry gorilla sitting next to them? :)
 
It's okay they're vegetarian
 
sbi
Ping me here for a suggestion, @Puppy. I can look for it during lunch or after the talks. (I would be available at 7pm, BTW.)
 
@MarcoA. hey
 
sbi
@Cicada You wish. A hundred years ago several zoo gorillas bit off wardens' fingers. Today it's assumed that they were lacking animal proteins.
Anyway, have a nice day, everybody!
 
@sbi Maybe the warden was an Ent
 
7:39 AM
ITT an ape is hitting on a puppy ... wait, wouldn't the headline be more interesting if it's "an hungry gorilla stalks a puppy"
 
@Cicada omg I'll never forgive you
lemme downvote some of your posts randomly
 
nowei
 
then I'll upvote some of my posts
I'll ask my grandma to upvote my posts
it shouldn't take long, in a few years I'll get an upvote
 
7:53 AM
> qui a le plus grand zizi.
I don't know what that means and at the same time I think I do.
 
Pretty girl. Also, the videos are kinda interesting. :)
Yes, "pretty girl" is the first thing.
 
user1804599
> O(φ^k n^2)
 
user1804599
dat complexity
 
Xeo
O(f^u c^k)
 
user1804599
O(enough)
 
7:56 AM
/cc @Lighting
apparently they are from rottingham
 
Hah! Stuff levitating in the nodes of the standing wave. Interesting.
 
If you get rid of some code, what do you write in the git commit message? erase? remove? delete? Something else?
 
Get rid of / remove
 
Xeo
remove, usually and if it's just removal. refactor, maybe.
 
@rightfold O(my god)
 
user1804599
8:05 AM
@fredoverflow Pulverise.
 
remove it is then. It just seems a bit weird, because the previous commit is a "move code from foo to bar", and in that neighbourhood, "remove" kinda sounds like I move some code again (re-move) :)
 
user1804599
@fredoverflow Demolish.
 
@fredoverflow English and consistency~
 
user1804599
@fredoverflow Ruin.
 
It's not like I destroyed something.
 
user1804599
8:06 AM
@fredoverflow Zap.
 
user1804599
I like "zap". :D
 
user1804599
:(
 
@fredoverflow Everybody would put a hyphen in re-move.
 
user1804599
why would anybody use postscript
 
8:11 AM
Because this guy is awesome:
yesterday, by André von Kugland
C++ is a bloated language, hard to learn, hard to debug. Today, when Java already has the same performance as C++, there is no reason whatsoever to use it.
Okay I'll switch from C++ to Java then :)
 
user1804599
Does Haskell guarantee which exception will be thrown by the program module Main where main = print ((error "a" + error "b") :: Int)?
 
Interesting question. Would upvote on SO proper.
 
@rightfold IIRC no.
 
@rightfold TL;DR?
 
8:20 AM
@fredoverflow wise choice
 
user1804599
@fredoverflow TL;DR unspecified.
 
@rightfold that's why impure exceptions are evil
 
horribly hate my netgear router
sleeps regularly when I try to configure it
lazy ass
 
template<typename T, typename U>
void nop(const T&, const U&)
{
}

int main()
{
    try
    {
        nop(throw std::runtime_error("foo"), throw std::runtime_error("bar"));
        // error: invalid use of void expression
    }
    catch (std::exception& ex)
    {
        std::cout << ex.what() << '\n';
    }
}
I can't pass void expressions to templates? :(
 
you’re very limited in what you can do with void expressions.
 
user1804599
8:26 AM
@fredoverflow Did you really expect C++ to have any form of sanity, consistency and lack of special cases?
 
Well, I can return void-expressions from void-functions. So why not pass them as well? :(
 
Xeo
@fredoverflow nop(false ? 0 : throw ..., false ? 0 : throw...) :P
 
What type does ?: infer?
 
@fredoverflow Everything you can do that involves a void expression is an explicit exception in the language, not the norm.
 
@Xeo Or nop((throw ..., 0), (throw ..., 0)); :D
 
Xeo
8:27 AM
@Griwes oh yeah, or that
 
user1804599
The type of throw expressions must be bottom not void.
 
@LucDanton Except write the expression in the first place.
 
user1804599
Scala ftw. :D
 
@Xeo IT WORKS!!!
 
@fredoverflow I'm not familiar with void expressions but that code doesn't quite make sense semantically to me
 
8:28 AM
@fredoverflow But... why? :D
 
I mean by just reading and trying to figure out its purpose
 
that's because it doesn't make sense.
 
@Puppy Actually that’s precisely my point. The official description of void is "The void type has an empty set of values." That you can have expression of such a type is an exception to begin with.
 
To show that the order can differ?
 
@Griwes I have no idea. Is the void cast to int? :)
 
8:29 AM
@fredoverflow No, I mean "why" as in "why are you doing this" :P
 
@LucDanton Doesn't seem so to me. I don't see anything exceptional about a set with a zero size.
 
If I were to work with you and you wrote code like that all day, I'd be cursing you while(1 != 2)
 
@MarcoA. I wanted to calm rightfold down: "Don't worry about the Haskell code, this example isn't well-defined in C++ either!"
 
@fredoverflow throw expressions are ignored when inferring the type of ?: or something like that.
 
@fredoverflow Remember the last time: are there parens?
 
8:29 AM
@fredoverflow Ah. :D
 
@fredoverflow ah okay, missed that point. Sorry
 
@Puppy Yeah me neither.
 
@LucDanton wat
 
Xeo
@LucDanton The interesting part here is actually "void is an incomplete type", and you can't have (evaluated) expressions of incomplete type
usually :P
 
23 hours ago, by Luc Danton
@fredoverflow It’s not a cast. The tell-tale sign is lack of parens.
 
8:31 AM
Coercion it is then.
 
Xeo
@Griwes yeah, if one of the operands of ?: is throw, the type is that of the other operand.
 
@Xeo TIL
 
user1804599
In Mill the order is LTR, however this had the problem that in the VM I had to reverse the arguments before passing them.
 
user1804599
Turned out I already used random access iterators to pass arguments.
 
Now, for fun...
 
user1804599
8:32 AM
So I could just pass reverse iterators instead of reversing the argument vector!
 
Damn, I can't into editing here.
 
nop(0?0:throw std::runtime_error("foo"), 0?0:throw std::runtime_error("bar"));
^ Nominate for most beautiful hack of the month
 
Xeo
O?O
it's a face. the ? is nose and small mouth
 
can I flag that for moderator attention?
 
lol
 
8:34 AM
Ladies and gentlemen, I present to you: The void-to-int-cast operator 0?0:
 
user1804599
I might invest in SmallVector.
 
user1804599
I'll wait till Boost has it.
 
user1804599
And a VLA for the operand stack.
 
Now, a small modification and it's suddenly well defined: coliru.stacked-crooked.com/a/80cb6fb809d2b462 (for extra fun, replace the {} init with () init) @fredoverflow
 
Xeo
@fredoverflow Wrong. It's the "throw-to-int" one
 
8:35 AM
@rightfold Doesn't Boost already have it? Just read about it the other day...
@Xeo throw is not a type, is it?
 
@fredoverflow void-to-int is (void-expression, 0) :P
 
@Xeo They’re complementary! Although interestingly the Standard doesn’t really define what an expression is (beyond the syntax) even though it uses the term all the time. 'Value-computation' may be the standardese that’s closer to the language-agnostic notion.
 
user1804599
@fredoverflow no
 
user1804599
it's an operator
 
user1804599
should be a statement but C++ is terrible
 
Xeo
8:36 AM
@LucDanton mhm
 
Scala has a type for throw expressions, it's Nothing :)
 
There’s a nice non-normative note that seems to suggest that 'expression' really is intended syntactically, too.
 
Xeo
@fredoverflow which is the only correct thing
 
@rightfold No, it being an expression is good.
 
Xeo
8 mins ago, by rightfold
The type of throw expressions must be bottom not void.
 
user1804599
8:36 AM
In Mill the return type of throw is irrelevant since it's dynamically typed. :D
 
@rightfold "I avoided the problem by introducing more problems."
 
user1804599
There's Bottom which is useful as the return type for non-returning functions, and as an operand to isa? to always return false and subtype? to always return true.
 
Then again 'value computation' refers to 'prvalue evaluation'. Mmh…
 
user1804599
Speaking of which, I should implement type checks if I haven't done so already.
 
Xeo
@LucDanton Let's stop this exploration into the wilderness here, our resources (sanity) will not last.
 
@Xeo But it’s kinda fundamental stuff!
 
@rightfold What a terrible language to write code in.
 
user1804599
Noo! Perl is awesome!
 
no
Let me explain something to you, @rightfold: not every language you encounter is awesome.
 
user1804599
Indeed; Java is pretty terrible.
 
Xeo
8:42 AM
So is C++
 
@Xeo, TIL about Windows 7-tan.
lol
 
Xeo
As we just discovered again :P
@Mysticial haha
 
user1804599
Nooo C++ is awesome!
 
Clearly I started watching Anime after Windows 7 launched.
 
8:43 AM
@Xeo Also remember when other standards were made fun of because they were not Very Serious International Standards™? It’s nice to call people out on that and point to the very same hand-waviness that happens behind the obtuse wording.
 
ergh... @Cicada you've fallen in with this 'chocker' fetish too
 
@Xeo I should probably install the Nana Mizuki voices for the Windows sounds.
 
Hi all.
This is my first time here.
 
@Mysticial I have a machine here with a Xeon and 32 GB RAM
 
@AnirudhRamanathan rip
 
8:48 AM
but it was dimensioned by a moron and therefore it is used for compilation with a slow mechanical HDD
 
Xeo
@AnirudhRamanathan That's a lie
 
@MarcoA. 32GB is enough to ram drive it. Unless the source code is massive.
 
@Xeo Hahah.. I had no recollection of that!
 
You know what else is massive
 
@Mysticial believe it or not, I'm trying some optimization passes which use all that memory
I'd prefer a SSD : /
 
8:51 AM
@Xeo, I mostly hang out on IRC. I haven't given really been on SO chat for long. It seems nice enough, although there don't seem to be too many around. What is the peak activity like in general?
 
When you bring Haskell on the table with Bartek around
 
@MarcoA. Yeah, I started using a real SSD in December when I built that rig. Now everything else is painfully slow.
 
Xeo
Huh, reading the GCC 5.1 changelog, they got some nice stuff in there, eh
 
I’m still not through that.
 
@Mysticial then I envy you
 
8:52 AM
SSD master race
 
Now I need an SSD for my laptop.
 
@Mysticial out of curiosity, how much did you spend on that one?
seems pretty expensive
 
My laptop doesn't have enough memory to ramdisk a compilation.
@MarcoA. $3100 USD
 
uh that's a lot
and it's not even Apple
you should be set for quite some time by the way
 
that's a good thing
 
8:54 AM
@MarcoA. If it was Apple, you'd only get a quad-core with half the ram for that price.
 
(hopefully, Moore is always kinda right)
 
And definitely not at 4 GHz.
 
@Mysticial yep
 
Full specs of my rig are here: pcpartpicker.com/b/FLqkcf
 
Woah Cicada's hotter than Lightness today
8
 
8:56 AM
thx u bby~ ♡
 
how do you do the heart thing
 
Xeo
> Excessive template instantiation depth is now a fatal error. This prevents excessive diagnostics that usually do not help to identify the problem.
hm
 
apart from copy-pasting it
 
Xeo
 
Ctrl+Alt+LotsOfLove ~ ♡
 
Xeo
8:58 AM
@AndyProwl alt code
 
@Mysticial NVIDIA card, good
 
@MarcoA. heh. btw did you ask that hardware guy how indirect jumps and stack are implemented on your presius hardware?
 
ASCII (he)art
 
Xeo
> G++ now supports C++14 aggregates with non-static data member initializers.
ooooh
 
8:59 AM
@Xeo struct whatever { int b; int i = b; } or something like that?
 
Xeo
members the other way around, but yes
 

« first day (1650 days earlier)      last day (3315 days later) »