« first day (2262 days earlier)      last day (2704 days later) » 
00:00 - 23:0023:00 - 00:00

12:22 AM
Fuck, everything is closed because of Christmas
 
12:37 AM
Yes, you sadman, you should be out with your family
 
Starting a family is too hard, can I just adopt a complete unit?
 
Do you accept PayPal?
Actually all I got is bitcoin
 
@DietmarKühl Merry xmas.
 
here's an old paper (partly) by bill gates sciencedirect.com/science/article/pii/0012365X79900682
 
12:45 AM
@Borgleader: Merry X-mas to you, too.
Actually: Merry X-mas to everybody over here!
 
Ell
1:04 AM
Merry Christmas!
 
user1804599
my %mapping{Int:D} =
    (do with $mapping-file { .slurp } else { DEFAULT-MAPPING })
    .lines
    .map(*.trim.split(/\s+/, 2))
    .grep(*.elems == 2)
    .map({+$_[0] => $_[1]});
 
user1804599
<3
 
1:53 AM
@Mikhail I saw a Xmas party for orphans with 15 - 20 people attending
I also spent Xmas eve alone, so I checked out shopping centre at 10pm
My relo was going to host Xmas dinner last night, but parents went to their friend's place for oldies only Xmas party
 
Xmas eve, silent night it was not!
one of the neighbours was hosting a huge party & could be heard 50 meters away where I was
a lot of cars in the shopping centre until 10pm when it closed
Also I lived by myself since 18 for over 10 years, I have my own unit/apartment most of the times with no flatmate. So I am used to being alone.
 
2:55 AM
Merry Christmas Lounge.
 
3:17 AM
@Ven Merry Christmas
 
Merry Xmas everyone
 
 
1 hour later…
4:34 AM
I think your website might be having browser compatibility issues.
When I look at your blog in Ie, it looks fine but when opening
in Internet Explorer, it has some overlapping.
err
 
partners in crime https://t.co/NPEoWKcQAj
/cc @jaggedSpire @Ven @Morwenn
Maybe @Xeo too
 
4:56 AM
@Borgleader :D
 
5:17 AM
0
Q: Winterbash 2016 - why unicorn so small

TelkittyI am not sure whether I am the only one noticing this, but if you have a look at the bottom of the Winterbash page, there is one massive reindeer on the left and one tiny unicorn to the right. Sure, you might claim, that the reindeer is in the foreground while as the unicorn is in the backgrou...

 
@EtiennedeMartel Joyeux Noel
 
Merry Christmas, Lounge :)
 
6:07 AM
building old working code on new xcode gives me 134 errors
 
6:24 AM
@EtiennedeMartel That sounds even more inflammatory than I usually post here. :)
 
@wilx It's only inflammatory if you have something against gays ;)
 
@EtiennedeMartel ...but why do people care?
 
@jaggedSpire I especially like the people who say it's "shoved down their throats". I mean, it's supplementary material.
 
do they consider themselves to be gay by association if the character they prefer playing is gay?
 
You have to go out and consume it yourself. It has zero impact on the game itself.
 
6:30 AM
How does that even make sense?
 
Well, there's the "Tracer is my waifu" crowd, but I don't think that's that.
I think it's that kind of people who don't like to be reminded that gay people exist. Who'd really like it if they all remained in the closet.
 
maybe
 
Is it homophobia? I'd argue it is.
 
I guess even a small minority would result in a seemingly large reaction if their reaction was loud and outraged enough
 
And that's why manufactured outrage isn't a SJW-only thing ;)
 
6:34 AM
nah, all extreme ends of an opinion who mass themselves based off moral arguments seem to have that
at a guess these would be the people who used to go "but think of the children" and "it's unnatural/against God" a decade ago
and a few people who felt uncomfortable and jumped in with the outrage just for an opportunity to be heard, I guess
 
More outrage. (but not really)
 
didn't really think the moralizing Christian element had much presence in gamer circles, admittedly
 
So, I just spent the last 30 minutes trying to figure out why half my project (in MSVC) was rebuilding even when nothing changes...
 
@jaggedSpire "Degeneracy" is a pretty important nazi buzzword, by the way. You can see that kind of homophobic bullshit from the fascist crowd.
 
hm, maybe I'm wrong. People can be weird about sexuality all by themselves.
 
6:37 AM
Turns out that I edited a file in Linux where (as a result of dual-booting) had its clock set forward by a day.
 
@Mysticial Huh, why is your clock in Linux so far off?
 
@wilx Linux and Windows both use the BIOS clock, but with different timezone standards and offsets.
So every time I switch back and forth between the two, the clock shifts forward by X hours.
 
@Mysticial Yeah, that's the most annoying thing about dual booting.
 
And I need to manually fix it, or wait until one of them does a periodic resync with an external server.
 
@Mysticial Uh, why do you have different time zone offsets?
 
6:40 AM
137
Q: Clock time is off on dual boot

Bill WaldenDual boot system Windows XP Pro and Ubuntu 12.04. I have the bios set for the correct time and Ubuntu set for US Eastern time. Ubuntu will boot up and the time will be off by -4 hours. If I correct the time in Ubuntu then when I boot up in Windows XP the time will be off by + 4 hours. This is...

 
@EtiennedeMartel degeneracy I think is just a common buzzword in all sorts of circles that put the past on a pedestal/say we're slowly descending into an age of sin/hell/other excellent way of inciting moral panic
 
@Mysticial I see.
 
Whenever there's a group of people aiming for more sexual anything there's always a group that pushes back because <insert reason here>
it actually happened with comics, too. It's the source of the Comic Code Authority that kept comics from addressing serious issues in the 50s and 60s, and probably is one of the primary reasons the medium is still regarded as a joke by most of the population
The first comics addressing drug use took a huge risk by going against the CCA, and they only did that in the 70s
before that, you could only address drugs in a way that made the issue unquestionably black and white, which isn't useful for any sort of dialogue about why drug use is so problematic, or why people use drugs or anything.
Especially because if you're a comics company you don't want to skirt the edge, so you just don't touch the topic
...Maybe people still bind up a lot of their identities into straight/bi/gay categories?
That would explain the willingness of some members of the gamer community to go along with what are usually Christian moral panic arguments against queer representation in media--if they feel their identity is threatened by association, I think people would have a very negative knee-jerk reaction to that
and just go along with whatever
 
6:55 AM
Hey guys, I'm sorry to disturb. Is there any English language room?
 
it wouldn't take many people having strong ties between their identities and orientations, either. As noted above, loud minorities can sway dialogue in one direction quite easily.
@HassanAlthaf As in, English as a second language room, or english room for C++, or for c++ questions?
SE has a policy of preferring mostly English in the chat rooms, because the mods speak English and can't be guaranteed to be able to moderate a non-English chat room effectively.
 

 English Language & Usage: Multi-Layer

Not for the faint of heart or those easily triggered by Englis...
 
I suspect it's different for sites like es.stackoverflow.com but I've never checked.
On the other hand I've got no psychology training, so I'm shooting wildly in the dark with what might be a gun, and might be a haddock. So.
 
7:48 AM
That hasn't stopped anybody, including psychologists
 
8:00 AM
Happy holidays from the #FBI https://t.co/l9VoIbQXnx
 
Thanks for the hats. Can you arrange a cocktail delivery? In all likelihood, I'd probably wear that.
 
@Mikhail So much salt.
 
looks like the meta crowd has seen my question, got a massive voting down consisting of 2 consecutive downvotes!!!
 
8:31 AM
Just read some of the Boost Fibers docs. Basically it's Windows 3.11.
But presumably faster.
 
Or Qt
So, I struggle with understanding the use cases for these kind of co-routine style threads. It seems to be well suited for tree traversal, but besides that?
 
await everything!
 
I'm sorry, I can't join you
 
@Mikhail I/O in GUI stuff, I think.
Or I might be thinking of another entirely different thing.
 
GUI stuff is Qt, maybe MFC, maybe WPF
 
@Mikhail cringe
 
You're not getting the joke
 
Okay I'll bite, explain?
 
> The fact that Java doesn't have stack allocation is the reason why Minecraft had significant performance loss when the team switched from separate x, y, z parameters to a Point class. Always makes me smile.
wow
 
9:32 AM
Switched in the wrong direction. Most cods like LAMMPS have structure of arrays rather than an array for structures...
 
@Mikhail Array of structures can be fine, especially if you're using all the elements of each structure. Rather a different story when it's not really an array of structures, and is instead an array of groups of pointers.
 
I disagree, most compilers struggle to insert the correct vector instructions. Additionally, in a typical use case, you're praying to god the compiler will inline everything.
 
9:49 AM
@Mikhail I've found that praying to myself rarely accomplishes much.
 
Yeah, thats why I try to invoke a more powerful deity
Possibly, Matt Godbolt, if that is, indeed, his real name
 
@Mikhail I'm the most powerful deity of which I'm aware. Once in a great while, praying to myself accomplishes a little. None of the other deities accomplishes even that much.
 
@Mikhail what about Goddess of hacking and good coding
 
Do you even lift?
 
Ever since I have started to pray to Goddess of hacking and good coding, my online luck has improved significantly
I have not been kicked from any room for a whole year!
also, very little time spent on fixing compilation errors ... probably because I don't code as much ...
 
Ven
9:58 AM
Heya
 
@StackedCrooked Such a messy codebase to work with, but it's improved in newer versions.
 
10:11 AM
Also somebody should have pointed out that Java has a complicated hybrid allocation scheme. The bigger problem is difficulty in analyzing the use of pointers, and the inability of the compiler to vectorize stuff.
 
Damn you, James Gosling!
 
FYI, the guy's website
Looks like he was *really tired* when he wrote Java
http://nighthacks.com/jag/res/SouthParkJAG-small.png
 
lol
 
 
2 hours later…
11:54 AM
Gladiator great movie
 
nwp
12:20 PM
@Telkitty -1, no hand drawn circles
@ELEC ask here
 
12:42 PM
> Note: this article was edited on the 21/12/16 because Sean's mate was going to get fired and we really like that guy.
 
"The Frog Prince; or, Iron Henry" (German: Der Froschkönig oder der eiserne Heinrich, literally "The Frog King; or, The Iron Heinrich") is a fairy tale, best known through the Brothers Grimm's written version; traditionally it is the first story in their collection. The 2009 Disney film, The Princess and the Frog, is loosely based on this story. == Plot == In the tale, a spoiled princess reluctantly befriends the Frog Prince (meeting him after dropping a gold ball into a pond), who magically transforms into a handsome prince. Although in modern versions the transformation is invariably triggered...
how do I know that I am not hacked ... my macbook is behaving weirdly ...
also could be because I upgraded the OS
 
@sehe dat subtle RGB color mix.
 
@Telkitty That's how you got hacked
in C++ Questions and Answers, Dec 16 at 0:31, by Luc Danton
you are missing a semicolon
@LucDanton is becoming a champ in the questions room I see
 
 
1 hour later…
2:13 PM
In the ideal @jaggedSpire household.
 
Ven
:3
 
2:35 PM
@Borgleader :D
 
user1804599
Perl 6, where you can take the square root of a file path.
 
user1804599
2:46 PM
constant PULP = $*DISTRO.is-win ?? "pulp.cmd" !! "pulp";
constant PERL6 = $*DISTRO.is-win ?? "perl6.bat" !! "perl6";
 
user1804599
Meh.
 
@StackedCrooked It gets even more fun when you account for a vtable and a monitor pointer object
because I've always wished to synchronize on a Point
 
user1804599
Lame.
 
Ven
3:08 PM
@rightfold yup
 
user1804599
.grep({
    state $skip = True;
    $skip = False if $_ eq "# BEGIN PURSPGPP OUTPUT";
    $skip = True  if $_ eq "# END PURSPGPP OUTPUT";
    !$skip && /'.purs'$/
})
 
user1804599
This is rad.
 
user1804599
And because I read these filenames from the .gitignore file, you can't forget to put them in your .gitignore file. :D
 
Ven
You can use ff here
(and those if $_ eq could've been when)
 
user1804599
oh rad
 
user1804599
3:18 PM
does ff use state?
 
Ven
yes
.grep({!('# BEGIN' ff '# END') && /'.purs'/ })
 
user1804599
No not, also and short-circuits.
 
Ven
here
 
user1804599
"# BEGIN PURSPGPP OUTPUT" ff "# END PURSPGPP OUTPUT" and /'.purs'$/
 
user1804599
This works.
 
Ven
3:21 PM
oh you want the files inbetween?
 
user1804599
yes
 
Ven
oh ok
 
user1804599
for
    ".gitignore".IO.lines
    .grep({"# BEGIN PURSPGPP OUTPUT" ff "# END PURSPGPP OUTPUT" and /'.purs'$/})
    .map(($*CWD ~ *).IO)
-> $out {
    my $in = $out.subst(/'.purs'$/, ".purspg").IO;
    run PERL6, PURSPGPP, $connection-string, $in, $out;
}
 
Ven
nice :3
 
user1804599
Thanks.
 
Ven
3:23 PM
PureScript General Purpose P..?
 
user1804599
PureScript PostgreSQL preprocessor.
 
Ven
aaah
I see
 
user1804599
I am rewriting my build system in Perl 6.
 
Ven
3:36 PM
I... know you are :p it looks good
 
user1804599
3:46 PM
Perl 6 > PowerShell
 
Xeo
4:07 PM
Guys. I need someone proficient in (Postgre)SQL
 
Ven
Don't ask to ask xeo
 
Xeo
well, who knows if anyone here does postgresql stuff :P
Anyways, I need a random sample from a table, filtered according to some criteria.
I googled around a bit and found tablesample, but that operates on the whole table, and can't operate on filtered sets
and since that table is potentially very large, I'd prefer not to sample over all of it before filtering.
 
Ven
ORDER BY RANDOM() sorts after filtering.
Are the filter clauses indexes?
 
Xeo
?
it's something along the lines of where player_id != mine and level between X and Y
 
Ven
You want to do filtering, you said. Do you have indices on the columns you're filtering on?
 
Xeo
4:20 PM
I should prolly clarify that I haven't done much if anything with SQL before
so all that jargon means pretty much nothing to me :/
 
Ven
Basically "is the filtering costly"
If it isn't, but the table (even post-filter) is huge, you can select a count, take a slice, then come back for a SELECT LIMIT/OFFSET
(Even if OFFSET isn't the best thing)
 
Xeo
There do seem to be indices on the player_id and level, if I interpet this SQL correctly
 
Ven
And how many characters are there?
 
Xeo
9 mins ago, by Xeo
and since that table is potentially very large, I'd prefer not to sample over all of it before filtering.
 
Ven
Those indices aren't gonna help you. Your WHERE clause is going to trigger a FULL TABLE SCAN
Which is potentially Bad(tm)
 
Xeo
4:26 PM
okay
any chance to make it not do that? :P
 
Ven
(It can't use two indices at once, basically)
Well here I wouldn't filter on the player_id first
 
Xeo
can I filter twice?
 
Ven
SELECT *
Fuck.
You can't shift return on mobile....
SELECT p.*
FROM players p
LEFT JOIN (
  SELECT p.player_id
  FROM players p
   WHERE level BETWEEN 1 and 3
 ) pp ON pp.player_id = p.player_id
WHERE p.player_id != 3
ORDER BY RANDOM()
LIMIT 10
This might be very costly if you have a lot of player in that range tho...
Actually I didn't ask before. Does it really need to be random?
 
Xeo
Random-ish, at least? I want to present the player with random people in his level range
 
Ven
Okay. Well you can use my example and replace the ORDER BY with a TABLESAMPLE. That should work on a subquery.
 
Xeo
4:34 PM
I might also just skip the player-id filter, since every player can have 3 at most, and I can just sort that out post-query
would that help?
 
Ven
Yeah
 
Xeo
Also, I just remembered, we have something similar already elsewhere... suggested friends
 
Ven
don't forget to benchmark/EXPLAIN
 
Xeo
Okay, thanks.
 
user1804599
5:01 PM
@Xeo present
 
user1804599
@Ven no, don't use that
 
user1804599
@Ven Not if you have an index on (player_id, level).
 
user1804599
@Ven TABLESAMPLE only works on tables and materialised views, not on subqueries.
 
user1804599
@Xeo Create a compound index: CREATE INDEX ON player_character (player_id, level);. The query planner can then do an index scan.
 
user1804599
Then show the result of this query:
 
user1804599
5:06 PM
EXPLAIN ANALYZE
SELECT player_id, level
FROM player_character
WHERE
        player_id <> mine
    AND level BETWEEN x AND y
 
user1804599
Actually I think just an index on level is enough for this.
 
user1804599
Anyway, you need a working query first, then you can optimize.
 
user1804599
@Xeo SQL is basically boost::multi_index on disk.
 
Xeo
It feels like an index scan on level and a simple filter on player_id afterwards should be fine for my purposes
 
user1804599
If there is an index on level then it'll probably decide to do that.
 
Xeo
5:11 PM
And worst case, I can do the player_id check in code afterwards, dropping 0-3 characters from the requested amount
 
user1804599
EXPLAIN ANALYZE displays how it executes your query, and how long each step took.
 
Xeo
what's the difference between <> and !=?
anyways, that looks fine
 
So, guys, do you know software that can automatically search for and smudge car ID plates and human faces?
I found HD traffic cam under the tree today.
 
user1804599
@Xeo nothing
 
user1804599
except <> is ANSI SQL and != isn't
 
user1804599
5:17 PM
@Xeo Yeah, so it quickly finds records with the correct level, then uses linear search within that small set to filter out the player_ids.
 
Xeo
that should be fine for my purposes
So, and for the random part?
 
user1804599
Show query and explain output
 
Xeo
I literally only have what we just discussed, simple select + where. You also mentioned to Ven not to use order by random()
 
Ven
@rightfold he said he didn
Also I'm strongly against such a compound index.
It's a total waste of space and RAM.
Just select one player more "just in case" and filter in your app
 
5:42 PM
@Ven Splitting the query to SQL and your application seems counter-intuitive at best.
 
Ven
My other suggestion (select count then requery with limit and pffset) still stands. Dunno how it would perform
 
Ell
5:56 PM
I don't understand how indices work :D
 
Ven
Read "use the index, luke"
 
@Ell They are usually B+trees with pointers to page and offset of given record.
 
6:23 PM
> EDIT i have already closed the question being duplicate but still getting downvotes thats discouraging
 
@wilx s/ace/ece/
 
user1804599
6:56 PM
@Ven you need to disable dirty reads if you do that
 
user1804599
@Ell simplified: a table is just a list of records, an index is a dictionary from column value to offsets in list
 
user1804599
@Ven also count does a full table scan to filter out records that are only visible to other transactions
 
user1804599
It's not O(1).
 
@набиячлэвэли Oh you nasty nasty man! :D
 
7:18 PM
/cc @jaggedSpire :D
 
Ven
:3
 
@Griwes is that your cat?
 
My parents'.
 
d'aww :3
 
7:22 PM
She's really pretty.
 
Ven
pet her
 
@Mikhail So I have my quad-opteron box up and running. 250 million digits of Pi looks like this:
- Windows Server 2016: 110 seconds
- Ubuntu 16.10: 88 seconds
- Ubuntu 16.10 (with NUMA interleave): 76 seconds
I would've expected that Linux (without interleave) would be around the same speed as Windows.
 
Pff, Linux biased :P
 
@Borgleader :O
@Griwes :O
 
What puzzles me even more is that I have a working prototype NUMA-aware FFT. On Windows:
- NUMA-unaware FFT: 10 seconds
- NUMA-aware FFT (with correct node affinity): 10 seconds
- NUMA-aware FFT (with intentionally wrong node affinity): 11 seconds
The NUMA-aware FFT does extra data-copying. So I'm not surprised that it isn't better than the NUMA-unaware FFT. But I am surprised that the NUMA locality has so little effect.
 
7:35 PM
such lovely kitties!
 
Xeo
> The NUMA-aware FFT does extra data-copying. So I'm surprised that it isn't better than the NUMA-unaware FFT.
shouldn't that be "unsurprised"? :P
 
@Xeo fixed typo
 
user1804599
Q: What is non-orientable and lives in the ocean? A: Möbius Dick.
 
user1804599
badum tsj
 
@Mysticial is this lounge's NUMA NUMA guy
(Don't mind me, my memory is Random Access and this got dragged into the same cache line)
7
 
7:40 PM
lol
 
> This video contains content from SME, who has blocked it in your country on copyright grounds.
 
@Griwes just google NUMA NUMA guy I'm sure you'll find it, its probably been reposted a billion times
 
Ven
8:01 PM
@Borgleader Cette vidéo inclut du contenu de SME, qui l'a bloqué dans votre pays pour des raisons de droits d'auteur.
(:
 
8:51 PM
@Ven RIP you
 
Ven
RIP moi
 
user1804599
pourquoi
 
> The destructor ios_base::Init::~Init() swallows all exceptions from flush called on all open streams at termination.
It never told me that!
 
9:22 PM
lol
 
9:34 PM
@StackedCrooked It (the standard) does tell you that, but finding it isn't necessarily easy: §[ros.on.exception.handling]/4: "Destructor operations defined in the C++ standard library shall not throw exceptions."
 
Ah, my bad :)
They would be better off not throwing them in the first place.
 
@StackedCrooked Sure--but what are you going to do if you try to flush a stream, and (only then) find out the disk space has run out?
 
Hm. There's no happy end here.
It should check available disk space before the flush.
:)
It's an interesting problem though.
Flushing is a thing that can go wrong and it's also the thing that's likely to run in a destructor.
 
Oh, wow. That's a bad implementation then?
 
It's inherent I think.
If a stream object goes out of scope and it still has data buffered then the destructor is it's last chance to do the flush.
And flushing to disk is not a noexcept thing normally.
One possible solution would be to shift this burden to the programmer and require a flush before destruction. (Kinda like thread::join.) But nobody wants that.
 
9:45 PM
So then before it follows through with destruction, there should be a stage that ensures disk space is okay. And if there isn't space, then it should throw an exception and then destruct without flushing, right?
 
better is to have the destructor just swallow the exception
if flushing fails what are you going to do anyway?
the object's scope is ended, you can't do shit with it
 
I suppose.
If the data is very important then there's gonna have to be extra checks in place anyway.
 
@StackedCrooked Yup--pretty much the only way to go.
@StackedCrooked I prefer another solution: disks with infinite capacity and 100% reliability.
 
10:00 PM
@StackedCrooked Definitely. Ideally an exception would throw and objects would be destructed automatically as normal. That way at least programmers have the option of catching destruction before objects disappear mysteriously
 
The force required to make the exception go upwards can be channeled so that it helps the remaining data go downwards.
 
@JerryCoffin lol
@StackedCrooked but of course
 
@StackedCrooked These are not the hard disks you're looking for...
 
10:21 PM
I'm halfway through the game TIS-100. $3 for a few hours of experiencing debugging that I already do for free. Not a bad game though and I'm not finding it too difficult.
 
10:36 PM
I
am going to buy 8 18650 batteries
and power my entire house
 
Mr. Musk wants to have a word with you
 
Wait, what? Are you running solar power or something?
 
user1804599
@Ven WTF
 
user1804599
			$sql = sprintf("SELECT pg_get_serial_sequence('%s','%s') as seq", $table, $column);
			$query = $this->query($sql);
			$row = $query->row();
			$sql = sprintf("SELECT CURRVAL('%s') as ins_id", $row->seq)
 
user1804599
10:41 PM
This is code igniter.
 
user1804599
To get the latest generated primary key.
 
user1804599
What could POSSIBLY go wrong.
 
@rightfold what, then, does it do
 
user1804599
@sehe converts it to a string, then to a number, then takes the square root.
 
...
 
user1804599
10:44 PM
> dd 42
42
(Any)
> dd 42.IO
"42".IO(:SPEC(IO::Spec::Win32),:CWD("C:\\Users\\r"))
(Any)
> dd 42.IO.sqrt
6.48074069840786e0
(Any)
 
That's weird. Why have the intermediate step?
 
user1804599
Well, it's identical without it.
 
user1804599
I don't know if it actually does the step.
 
@sehe Cool, I'm checking it out right now
 
user1804599
But why not look at the source code!
 
user1804599
10:46 PM
> method Numeric(IO::Path:D:) { self.basename.Numeric }
 
user1804599
> method basename(IO::Path:D:) { %.parts<basename> }
 
user1804599
wait what it takes the basename
 
user1804599
> '/foo/bar/42'.IO.Int
42
 
user1804599
top kek
 
user1804599
well could be useful I guess
 
user1804599
10:48 PM
if you know the basenames are numbers
 
user1804599
full paths almost never are
 
user1804599
thanks Larry
 
Whyyyy? I feel dirty reading that.
 
Ven
@rightfold LOOOOOL
You can also try 'file4.txt'.succ (or ++)
 
user1804599
nice :)
 
00:00 - 23:0023:00 - 00:00

« first day (2262 days earlier)      last day (2704 days later) »