« first day (2272 days earlier)      last day (2691 days later) » 
01:00 - 23:0023:00 - 00:00

1:01 AM
The mods are asleep! Quick, post dank memes
 
1:14 AM
@jaggedSpire hug
 
@Borgleader :D
:D and today's red panda video /cc @Borgleader @TonyTheLion @ThePhD @Ven @Xeo
 
Excuse me sir these are not dank memes
We only serve dank memes here at this hour
 
denied
we also serve floof, as you can see
 
No sir we don't allow this kind of content here
I'll kindly ask you to delete it
 
error: access denied
 
1:22 AM
sudo I'll kindly ask you to delete it
 
password?
 
SeizeTheMeansOfProduction1945
 
Sorry, try again.
 
BreakAMotherfuckingTableOverACoupleOfFaggotsAndCrackItInHalfJustToRealiseThatItW‌​asIronicSinceIWasSignedToAftermathAfterTheFact
 
Sorry, try again.
 
1:26 AM
Sorry, try again.
 
sudo: 3 incorrect password attempts
 
2:25 AM
Building with makefiles in 2K17
 
fantastic, eh?
Your next team solo project should be making a decent goddamn build system for C++
 
I wish that could be my team project.
Even if it was just a wrapper than generated CMake.
With Visual Studio getting CMake support, I'll obviously be less inclined to care about CMake being a piece of shit.
 
what does a good C++ build system need, anyway? Obviously a way to specify different compiler options in a compiler-invariant way--link and include directories, optimization and warning levels
probably also preprocessor directives for compatibility with cmake
A way to track changes to not only source but also header files, and dependencies between files
 
Yeah.
That's about everything you need top-level.
But then you need something lower than that.
 
a way to specify an output location for the binaries
 
2:37 AM
Something where you can inject things directly to the compiler
In the case of {special snowflake build system}.
But all the things you just mentioned are for building a single thing.
The next level -- and most important level, IMO -- is the concept of outputs.
Libraries (Static and Dynamic) that can be put in a common directory for proper linking to other build projects, build ordering based on that, ability to specify inputs and outputs and then have a custom command run for those, capturing the specified output and feeding it into other parts of the system (a la C-compatible-string-source generators and other things more interesting than that).
 
3:27 AM
@Mysticial So, elevating the PIC/HPET from the NT API got better precision responses on my condition variables, internal timeouts. Mystery latency went down from ~800us to ~500us. I'm using _sleep(x) to measure, where "mystery latency" is the difference from the number I enter. How do I explain differences between different systems, hardware configurations?
 
Why are you using HPET? Windows should be using TSC by default starting from Win 7.
 
How is this person even building using MinGW
 
Speaking of which, are you accessing the HPET directly? If so, how did you do it? I need it for competitive overclocking benchmarks.
 
Their makefile doesn't point to the right directories at all.
I don't get it.
 
3:44 AM
@Mysticial No, I just placed that NT API call in addition to the normal stuff to elevate thread priority. It lets you request an order of magnitude more precision compared to the multimedia API.
I have no clue what I'm doing but I gotta learn or else my embryos die/don't cure cancer
I find it interesting how the internet is overflowing with C++ knowledge, but its hard to find a guide on tuning your BIOS
So, disabling C-state tuning helped, but that one was obvious...
 
3:59 AM
sadness when you wrote something that hundred of people used, except you yourself don't understand exactly how you got it to work
 
Humans have limited neural capacity
@Mysticial Another weird thing, I have a hardware device, camera, that seems to have very precise synchronization, and timing. I'm thinking of maybe writing a hardware driver that services a callback. Know anybody doing stuff like that?
 
Nope.
Kernel driver writers are a rare breed.
 
Is it so crazy it might work?
 
5:03 AM
@Mikhail Not surprising--it's heavily about memorization because practically every mobo has at least a few unique settings, and when you get down to it, almost none of them make much difference in typical use anyway.
 
Recently on /r/cpp there was some dude talking about high frequency trading and the testing they do to keep the trading system response times down to nanoseconds. A lot of comments were disappointed he skipped the subject of mobo tuning.
 
5:50 AM
@Mikhail Chances are his IT has things set up so he can't even look at that...
 
6:15 AM
Morning!
 
6:27 AM
How is life going?
 
 
1 hour later…
7:32 AM
I have planned my life out but it wants to do it's own thing,
8
 
7:43 AM
A lot of people don't want Catch as a submodule for sol2...
... And a lot of people want the files under an include directory...
 
@Telkitty I can relate.
@Telkitty So, what is/was your five-year plan? :)
 
be alive
Xcode 8, iOS 10 ... and Bra size 14DD - 3 tabs I just had
 
8:36 AM
The fuck.
 
9:02 AM
I hope my Google search for "bra size australia 14dd" will not get noticed by our corporate overlords...
 
:x
 
OTOH, I am likely to get even more ads for bras everywhere now.
 
hopefully no pop ups
coz that would be embarrassing
 
@Telkitty Well, it was pretty bad already when I clicked on image search results and the screen got covered in lace clad boobs.
 
9:32 AM
Sup badlets
 
10:01 AM
ritoto
 
10:11 AM
@Rerito @rightfold's cock
 
@набиячлэвэли When is it not?
 
When it's dawn.
 
Jdm
 
10:45 AM
Jtm aussi <3
 
11:44 AM
TIL needle printers have menus! youtube.com/watch?v=0bqpmPw7jxo
 
11:59 AM
@Morwenn I think this suits your hair style really well - NSFW
 
12:16 PM
derp I'm reading the triump service manual
13 pages in and roughly 60 health warnings so far
 
IRTA "trump service manual"
 
Ell
@Telkitty I didn't know *14*DD existed :V
 
@Telkitty Can't see it but the url seems explicit enough
 
@milleniumbug replace President every 4 years
 
Ell
@Telkitty a little extreme for day-to-day use don't you think? :P
 
12:23 PM
> Always replace encapsulated bolts
geeez
Object-Oriented Bolts
I should buy another fire extinguisher for my workshop
 
@Telkitty Eh, maybe it'd suit me if I actually had a sexy body to go with it :p
 
@Rerito it's safe for work ... if you are one of the ladies :p
@Ell not everything is for day-to-day use, i.e. your hiking gears :p
 
> The Hewland AE75 is a lightweight aircraft engine that was manufactured in the mid-1980s by Hewland in Maidenhead, United Kingdom. The engine, a two-stroke inverted inline triple of 750 cc (46 cu in) displacement, is liquid-cooled and yields 75 hp (56 kW)[1]
from 49kg
and that flies
 
nwp
1:16 PM
 
OMG
> Member for 6 years, 9 months
welp
possible he had this avatar for more than I did :D
 
It's not like vault boy is not a well known figure of video games
 
It's mine! ALL MINE!!!!11
 
Where it's basically "here's the bug I'm getting in my instance of code, with no reductions or debug poking done on my end except commenting out what doesn't work. Help me."
This Augmentum bug I have to literally build all of Augmentum to figure out what's wrong.
 
nwp
Is there a class on how to use documentation?
QString::sprintf exists and compiles fine in my code, yet when looking at the list of all members of QString including inherited members it apparently doesn't.
 
1:31 PM
Probably an implementation detail.
That they left out in the public interface.
 
nwp
These things keep happening to me and I keep blaming the documentation, but that doesn't fix the problem.
 
Since friending everything that would need it would probably be a dumb hassle.
 
@nwp Docs suck.
that'll be $100.
 
 
1:48 PM
@wilx Isn't 14 like, extremely small?
Who am I kidding; those sizes are just random numbers they put on the labels.
 
Ell
I think 14 is extremely small
9
 
2:06 PM
LOL
@Ell Take your shameless star
 
@R.MartinhoFernandes I think it is not that small in the Australian numbering scheme. In one table I have seen it was roughly in the middle of it.
I got the impression it was about my palm sized. :)
 
You have a palm tree?
 
@wilx Well usually the number is the circumference of the trunk "underboob" while the letter indicates the size of the boobs themselves
 
depends on whether it's inch based or centimeter based
 
@StackedCrooked No, but I got hands!
@Rerito Ooooh! TIL.
 
2:18 PM
hmm apparently the parts to the 955i are quite widely available and an authorized service center is a few clicks from my place
dang it
 
@Rerito So DD is not that small?
 
can't wait till monday
 
@wilx It's a p big rack
 
@Rerito :D
 
hello guys i have a very interesting question that i would like to have an answer
 
2:21 PM
FFS @Morwenn did you put make-up on your profile pic?
 
What would happen if you break the HDD/SSD encryption in the middle of the process by cutting off the power?
 
@lewis4u Depends on the encryption scheme
 
green petya
full disk encryption
 
This can vary from the data being recoverable to loss of everything that was encrypted before the power loss
 
2:23 PM
i see
 
If it's a virus (which it seems), I think you're better off losing part of your data
Than losing it all
So yeah, cut the damn thing and salvage whatever you can
 
it's ransomware
 
I would rather loose all of it than pay a dime or 1 CZK.
 
i did so that is why i ask
 
if you know your way around encryption software you could maybe use a debugger to recover the key while the encryption is busy
 
2:25 PM
@wilx Sure but cutting power before the end of the encryption will leave some of your data untouched and you can recover it after :)
 
encryption was on reboot in CLI
it started on reboot
 
> very interesting
 
and i figured it out and said---ooh no you wont
 
@lewis4u a standard practice is to turn off the power
 
you shall not pass
 
2:26 PM
and i plugged the cord
out of the wall
 
then you can use regular drive salvaging tools to get the software back
 
ok thanks
 
or simply plug the disk in to another PC and see how much was affected
 
that was all i wanted to hear
there is hope!
o/
 
yeah, basically you want to stop the process ASAP and waiting for graceful shutdown can take too long or be blocked by the ransomware itself
 
2:27 PM
@Rerito I didn't.
 
dd your way out /cc @wilx
@Morwenn I freaked out a minute when that thought occured to me I must admit
 
since the goal is to save the bulk of the data, corrupting a few files isn't that important
 
Damn, this reminds me I should make some backups or something.
 
@ratchetfreak that's risky
@wilx always a good reminder eh
don't store data you can't afford to lose is my principle
 
@BartekBanachewicz I have a lifetime of code snippets and stuff like that that I would not want to lose.
 
2:30 PM
@wilx lightweight code snippets belong in remote repositories
github is free, so is bitbucket
Flickr gives you a free 1TB for photos, YT gives you free unlimited space for videos
put everything else in Glacier or something and call it a day
 
What about pr0n mirrors heh?
 
Xeo
... 502 on google. That's new.
 
Ven
Not really
Also hi
 
@Rerito What. Why?
 
2:48 PM
I generally dislike makeup on both men and women
it's way too close to simply being dirty for me
 
I sometimes find makeup fun, but I'm really bad at putting it on anyway.
And I'm way too lazy for that.
 
3:00 PM
> I remain skeptical of the entire transpiring phenomenon
 
Ell
3:22 PM
@Rerito lol I didn't even think about that >.<
@BartekBanachewicz I dislike it because it can be rather deceiving :P
 
@Morwenn Well it would be extremely awkward for a profile pic
 
@Rerito I don't really see why.
The profile picture is yet another place to have fun.
 
Plus I pictured it with some Cannibal Corpse or smth playing in the background
Which added to the bizarre of it
 
x)
 
3:40 PM
sweet, I found a complete service manual for my small bike's engine
mmmm dunno maybe I'll actually do a complete overhaul on it before the next season
I did clean it recently, a bit
I could take the whole thing apart down to the bolts and do an actual setup but I hate forgetting to order one oring and then waiting a week for it
also ugh parts costing 3.40 PLN and 8 PLN shipping
maybe I should order from china, that actually ships free :/
$10 for 600 orings
global economy is so weird
 
@BartekBanachewicz It's like "meh, fuck it, 10 bucks, let's get it" and then when it arrives: "Jesus wtf am I gonna do with 600 o-rings"
 
@R.MartinhoFernandes I had that last time I ordered giant LED displays
 
Ell
ah they're assorted
that's much better than 600 of the same size
 
yea lol :D
 
@Ell They look sorted in the box :P
 
3:52 PM
I'm also thinking about getting a stainless spring washer set
but $15
 
Ell
are they silicon & heat proof?
 
@Ell they're supposedly "automotive"
k I'll get that, my local store has shitload of washers anyway
stainless bolts aren't really a problem either
the orings and seals are super rare for whatever reason though
shit I've used my virtual CC last time and I forgot the number for it
welp I'll buy them when I get back home
 
Ell
@R.MartinhoFernandes yes :P
A sorted assortment
 
union
{
  void*      _M_file;
  mt19937    _M_mt;
};
^ libstdc++'s std::random_device
 
Wow.
 
4:07 PM
...so not only MinGW has non-random std::random_device, others have to suffer because of humonguous sizeof(std::random_device) even when there's a working /dev/urandom
 
std::random_device isn't the sort of thing that's gonna be copied all over, though.
 
yes, if only because it's non-copyable and non-movable :)
 
it's meant to be created, get some entropy out as seed for another RNG and then destroy it
 
FWIW, libstdc++ can use RDRAND, so I'm not sure if MinGW always has non-random std::random_device
 
Yeah, MinGW still sucks.
 
4:14 PM
I'd guess that it only uses the shitty one if there's no RDRAND.
Even on Linux, it doesn't use /dev/urandom if it can use RDRAND instead.
 
MinGW still produces the exact same numbers everytime.
 
@Morwenn Even if you compile with -mrdrnd?
 
Eh, then I don't know.
 
I think I’ll start the new year with some Haskell
> curl -sSL https://get.haskellstack.org/ | sh
oh great start ._.
 
-sSL https:// :D
a shame it's not -SSL instead :D
 
Ell
4:23 PM
the haskell infrastructure isn't great >.<
 
no man pages ._.
 
hmmm
now squashing 30 commits into one
3655 insertions, 1864 deletions
 
nwp
@Puppy for what?
 
Ell
I don't see the point of squashing commits
 
oh good now I have nearly 2GB of garbage in .stack ._.
 
If you frequently commit. It makes sense to squash when you need to push
 
4:55 PM
another annoyance stemming from the fact that decomposition declarations are restricted to statements: can’t decompose in a constexpr constructor
 
also git keeps track of all commits, so squashing them saves disk space
 
@peter Why?
@ratchetfreak Not locally, not unless you regularly run a cleanup.
 
@nwp work
 
welp I’ve been putting that off for way too long, I need a new SSD
 
@Ell To improve history?
 
5:06 PM
In fact, squashing them uses more disk space because it creates new commits and doesn't delete anything.
 
Meet the Real Housewives of ISIS... https://t.co/WXpVp8Zmbg
 
@R.MartinhoFernandes isn't half the point of git that you have history locally?
 
@ratchetfreak My point is that squashing on its own doesn't save any space.
 
disk space sure ain't why I'm squashing
 
And unless the commits being squashed consist mostly of undoing each other, squashing and pruning by, say, cloning a fresh repo, won't save a lot of space because the diff is still large regardless of how you break it down.
 
5:13 PM
so the downside is that I now have to figure out how to break down my massive commit of death
which I'm struggling to do even after agreeing with my team that I did not have to follow our usual rule of each commit building and passing tests individually
 
Wait, why did you squash first, then?
Anyway.
I'd reset; and then do an interactive staging, commit, repeat.
 
the original history wasn't really any better
I still had a 2100-insert, 1600-delete commit, and then a bunch more commits that were like, "Fix this thing I missed in the previous commit"
 
Hi everyone. Is there any room for asking question on C programming language?
 
@R.MartinhoFernandes That is what I'm doing. I just need to decide what I'm going to stage
no
 
depending the the actual question you may get an answer there
 
5:17 PM
ok thanks...if any of you who is in both of the room ...can you please give some attention to that room?
 
otherwise there's a big site where you can post questions called StackOverflow
 
It's regarding one of my answers here.
 
Ell
6:17 PM
@Puppy how does it improve history?
what if you've introduced a bug in one of those commits?
 
6:29 PM
I wouldn't be able to sleep :)
 
When I review code, I usually go through commit by commit. So if changes are fragmented across different commits, sometimes I'd think you missed something because I haven't looked at the next commit.
 
Xeo
6:53 PM
collapse the commit range into a single diff
 
@Xeo what if there is a completely different commit in between
 
Phone Interview this Friday from 11:00 AM to 2:00 PM, Pacific Time.
Here we go.
 
Ell
7:12 PM
good luck :D
 
Please help
20
A: How to unroll a short loop in C++ using templates?

Johannes Schaub - litbDeleted. Please refer to the comment above Community: Feel free to add an answer instead.

(read comments)
 
which comment?
Doesn't C++17 have some iterative template stuff? Or is am I daydreaming...
 
Iterative template?
Fold expressions?
 
7:30 PM
what do you mean by iterative templates
@Mysticial ah i see what you mean. that would be elegant
 
Andrei Alexandrescu gave a talk at our company some months ago. And he said something that sounded like some sort of iterative templates. He didn't go into detail though. And I might've misremembered.
 
I don't like one of the answers in that question
Because it essentially produces N function calls
all doing the exact same thing
int from, int to can easily just be dropped into a regular for loop as the boundaries and the compiler can unroll from there.
Even if the linker and inliner can fix it up,
it's still REQUIRED to emit N function calls
that OBJ is going to be fat as fuck.
 
@ThePhD From my experience, compilers often don't even do that. The thing that does work is to stick with the template recursion with force-inline semantics. But that's brutal.
So I usually end up doing my unrolling manually.
Which also gives me the flexibility of manually reordering things. (such as interleaving different iterations of a loop)
 
Maybe just a regular function call with force_inline that takes indices and offsets, to allow for at least a little bit of copy-pasta re-do-ability?
I dunno.
At this point it might as well be macros.
 
@ThePhD I do that actually. I pull out the loop body into a force-inline function. Then I manually call it multiple times.
I rarely unroll more than 4 times so that approach is fine alternative to TMP.
for (){
    body(i + 0, x);
    body(i + 1, x);
    body(i + 2, x);
    body(i + 3, x);
}
^^ That is readable enough. No need to overkill things with TMP.
I usually stay away from macros. But they do have one advantage: They don't break the compiler's aliasing analysis. Functions (even when inlined) have a tendency to break aliasing analysis depending on whether it does the analysis before or after the inlining. This gave me some headaches with ICC when I did a set of "harmless" conversions of macros to functions which led to a noticeable slowdown caused the ICC generating a shit-ton of unnecessary load/stores.
 
7:49 PM
ah working with stock trading programs must be fun. there must be a lot of machine learning there
and you gotta be very fast with them. every ns counts
 
8:28 PM
@Mysticial kinda, the indices thing (which Johannes, of all people, will be familiar with)
 
8:54 PM
what is the johannes of all people?
 
9:08 PM
@JohannesSchaub-litb It's like Johannesburg, only nobody lives there so it's free for all people.
 
@JerryCoffin i don't understand
 
@JohannesSchaub-litb Well, a "burg" is a place that people live, so "Johannesburg" is a city. "Johannes" (without the "burg" part) is a place that nobody lives. Since nobody lives there, it's free for everybody (so it belongs to (is "of") all the people.
 
download.qt.io is down
 
@Mikhail Seems to work for me.
 
weird
 
9:15 PM
21 in. screen, 64 GB of ram, 4 x 512GB SSDs. Might be good enough for coding.
 
four 512 GB SSDs inside a notebook, really?
 
I got 2, in RAID0
 
@milleniumbug Bare minimum, considering the $9000 price.
 
@milleniumbug That's easy. M.2 SSDs. My own laptop has 4 M.2 slots.
 
The real problem is the 3x markup.
 
9:19 PM
> 19.4 pounds
 
@Mysticial See, I never got that bullshit. If you put 9000$ on an actual PC instead of a laptop you'll get something way more powerful and just as portable as this fucking brick.
 
@Mysticial Helps keep your lap flat.
 
So, my laptop has 64GB of RAM, 4 hard drives, a 770M, 4k monitor, and total cost was about $2000.
They have almost the same thing for $9000?
 
Apparently my current "gaming" laptop can't always use the in-flight chargers. In-flight chargers will automatically turn off when the current is too high. And my laptop's power brick has enough capacitance to draw enough current to trip it.
 
9:21 PM
I was sooo pissed.
 
get a charger with two power connectors, you could connect to the neighbours' socket then :D
 
Fortunately it worked on the international flight.
 
@Mysticial No problem, since it exceed the weight limit for domestic flights anyway. Now we know why you travel from to Chicago via Montreal...
 
@JerryCoffin why is "Johannes" a place that nobody lives? How can you live a place anyway?
searching google finds nothing
 
@JerryCoffin There's no carry-on weight limit for US domestic flights or international flights with one end US.
At least for US carriers.
 
9:26 PM
@JohannesSchaub-litb I explained that. A "burg" is a place that people live, and Johannesburg is a city, so "Johannes" without the "burg" part is a place that nobody lives. (No, this doesn't really make sense, so Googling won't help).
 
But for the rest of the world, the limit is 7kg. Which is about the weight of an empty suitcase.
 
how can you live a "burg"?
I, at least, live a life
 
In the US, they didn't seem to care when I lugged 100 lbs of textbooks home at the end of a school year because the check-in baggage had a 50 lbs limit.
 
what's this word puzzle
 
@Mysticial I hit a 50 pound limit on Southwest, or 22kg
 
9:29 PM
@Mikhail Carry on or check-in?
The 50 pound check-in limit is pretty universal - even outside the US.
 
@Mysticial There seems to be some disagreement, at least about some airlines. The carry-on bag can have a maximum dimensional length of 45 inches and may weigh up to 40 pounds. I haven't bothered to read through all the fine print on the airline sites to confirm/deny that though.
 
@JerryCoffin Interesting. United doesn't have a weight limit. And if they do, they never enforce it.
But the 7kg limit outside the US is so stupid. It's burned my parents many times. Where they go over 7.1 or 7.2 and then have to either check it in, or take things out and wear it.
If you're gonna weigh check-in baggage, you might as well weight the person as well.
 
@Mysticial I suspect it's an "annoyance" kind of thing, kind of like jay-walking. 99% of the time, they ignore it--but if you show up smelling nasty or something like that, they suddenly find lots of regulations that you're either breaking, or at least they need to spend enough time checking on them that you may easily miss your flight...
 
I can understand a higher (like 50 pound) limit for carry on bags so you don't break the overhead bin, or hurt someone it the process. But really 7kg?
There's been a few times where me (and my parents) have gotten so pissed at the international 7kg limit where we literally wear everything (laptop chargers are scarfs). Let them weight the empty suitcase. Then put everything back in in front of them.
11
 
@Mysticial Does seem pretty silly, but a lot of this stuff does to me. I think a lot of it is really just an attempt at generating extra money by requiring you to pay extra for everything short of breathing.
 
9:41 PM
Or to put it another way, we were forced to dress and undress in public.
2
 
@Mysticial We already do that to get through security...
 
True. And it's sad that has become so ingrained that I forgot about even that.
 
Is this alarmist or is it realistic?
 
@JerryCoffin My Chicago winter coat works as wonders when going to cold places. Because it is so big and I can hide so many things inside it.
They usually don't weigh you at security, only during check in or boarding.
 
@Mysticial Skinny guy, big coat...look, it's really the whole family traveling on one ticket. :-)
 
9:46 PM
Laptops are harder to wear. (not sure how they do it Akiba's Trip /cc @milleniumbug) But usually an empty suitcase + laptop alone will stay just under 7kg.
 
Ell
@EtiennedeMartel the screen is the difficult bit
 
Everything else we can be taken out and worn.
 
just happened to have this screenshot
@Mysticial magic
clearly this laptop levitates
 
Oh that's tough. I'm not sure I can levitate a laptop.
 
10:15 PM
hmm I just had a brilliant wheeze
when I dropped something and was searching the floor for it, I could put on my glasses to see it better
 
10:36 PM
I suck at that complexity thing.
 
01:00 - 23:0023:00 - 00:00

« first day (2272 days earlier)      last day (2691 days later) »