« first day (1424 days earlier)      last day (3524 days later) » 

12:01 AM
also did anyone look at the new c++ IDE?
I stopped looking when the intro video showed the default project loads with a "hello world" containing using namespace std;
 
6
A: Difference between size_t and std::size_t

Michael BurrFrom C++03 "17.4.3.1.4 Types": For each type T from the Standard C library (footnote 169), the types ::T and std::T are reserved to the implementation and, when defined, ::T shall be identical to std::T. And footnote 169: These types are clock_t, div_t, FILE, fpos_t, lconv, ldiv_t, mbs...

 
@nightcracker seriously thats what stopped you? o.o
 
@nightcracker decltype(sizeof(0))
 
Ell
@night yeah I was disappointed by that :/
 
(just kidding)
 
12:02 AM
@Borgleader well yes, since I'm not particularly interested in IDEs to begin with, and it's hard to take a tool-writer serious that writes using namespace std;
 
I believe, however, that while backward compatibility with C was absolutely crucial when C++ was new, it's a lot less crucial now. Making it easy to switch when it was new was important, but I think most projects/people still using C have decided they don't want to use C++ (probably ever, in most cases).
 
@nightcracker laffo that's dumber than people dismissing good tools because ~~~~ugly~~~~~~~~~~
gj
 
@nightcracker It doesn't trigger auto complete if you type std::.
 
@nightcracker But are you at all sure that the same people wrote the code for the tool and the video? My immediate guess would be that they're not.
 
@Rapptz lol
@JerryCoffin it was the default "empty" project
@JerryCoffin so the one that came with the IDE
 
12:05 AM
@nightcracker Same question applies though. Did the people who wrote the IDE itself also write the skeleton code for the default project? While it's certainly possible, I wouldn't consider it a given.
 
im sure lots of qa time went into 'empty project' template
 
RIP too minor.
15
Q: Disappearance of "too minor" -- where is the relevant discussion?

David MolesI just went to review suggested edits and found my set of rejection criteria reduced to the following: copied content invalid edit radical change vandalism custom I assume the disappearance of "too minor" is deliberate policy -- either the option was removed entirely or perhaps it was set to ...

 
Fuck, someone downvoted me just before the repcap reset. Now it's not divisible by 5 anymore.
 
LOL
Too Minor suggests that the edit should be "substantial, addressing multiple issues in the post." If you are rejecting edits that don't meet that metric, but then failing to make the substantial edit yourself, isn't that kinda the pot calling the kettle black? — Robert Harvey ♦ 5 mins ago
4 people responded at the same time xD
 
12:09 AM
:stackoverflow:
 
custom -> 'too minor'
problem solved.
 
@nightcracker 3 people (plus one box for former people).
@Rapptz Custom -> "Didn't need editing".
 
meanwhile
suggested edit queue is slow as hell
 
tbh I'm just gonna start using 'invalid edit' in place of it
 
12:12 AM
@Rapptz lol, reviewing edits
 
I got another mail from LinkedIn :cripes:
 
yes
 
I'd do it if there was some standard to begin with
 
I review edits.
 
This time it went straight to spam so I win
 
12:14 AM
@JerryCoffin Custom -> "Obvious attempt at a rep grab." lol
 
12:39 AM
Standing room only at @chandlerc1024's talk on performance! #cppcon http://t.co/45j80lymQu
wtb vod
 
@Borgleader Where do I get to see those talks?
We usually have a link to them pinned in this room.
 
wtb vod -> want to buy VOD -> i want to see this talk
@Mysticial when i figure it out, ill tell you
 
@Mysticial Won't be available until a few weeks later.
 
fuck
 
@Rapptz fuuuuuuuuuuuuuuck D:
 
12:43 AM
> Now if you think there is no longer a good reason to attend CppCon in person, let me give you several. There will be recording but no live streaming (live streaming is on a whole new level, expense-wise). Because of the number of sessions involved, we will only be able to publish them about a month later. There will also be no recording of the “unconference” material: lightning talks, hackathons, BoF sessions, extended Q&A, etc.
'about a month later' according to cppcon
sounds lame, unfortunately.
 
its a surprisingly long window, considering Going Native was more like a week later
 
@nightcracker Look, yes. Unfortunately when they say they only support cmake at present... they mean it. You can do precious little without it.
But hey, it's an early access version.
 
1:03 AM
My first look at CLion's logo I first thought, why is it a dolphin?
I didn't get the pun.
Good morning.
 
I want to create a typedef for an integer type that is alignas(std::max_align_t) and has sizeof(TheIntType) == alignof(std::max_align_t)
what's the simplest way to do that?
 
Hmm. I haven't toyed with that kind of stuff, but I'd try making struct with just that one thing as a member.
 
@LeviMorrison std::max_align_t's size is not the same as its alignment requirement
(basically I'm looking for a type that allows me to make a tightly packed array of properly aligned objects with the maximum align)
 
that is a lot of dependencies
I don't want to be the guy that has to build that thing lol
 
1:12 AM
~dependencies~
It's probably built with Maven or Gradle
 
also, durr, std::aligned_storage_t<alignof(std::max_align_t), alignof(std::max_align_t)>
 
So you know, dependencies are not a problem
 
@nightcracker I should try that out on some of my perf-sensitive code that deals with a float[][]. I'm guessing the compiler is optimizing that... but it might not be.
 
does using g++ piped into less break for anyone else?
 
g++ doesn't settle for less
 
1:22 AM
hurr
 
Wow. Such pun.
 
are you fucking kidding me?
pool_alloc.cpp:5:38: error: ‘max_align_t’ is not a member of ‘std’
I have included <cstddef>
 
It's a bug.
 
lol?
 
> <cstddef> just hasn't been updated since max_align_t was added to <stddef.h>
 
TIL ubuntu uses gcc 4.8
well, ::max_align_t it is
@StackedCrooked how's deprecated doing?
 
libc is not going anywhere sadly
 
user457812
I like my cstdint.
 
2:19 AM
game jam rescheduled. I guess I got a head start but the subject will change. :(
damn it.
 
user1646075
Playa rollin' with his wingman:
http://www.auntmama.com/wp-content/uploads/2011/11/4crowcatground.jpg
 
I know it's possible to use a local static trick to create header-only global variables, like so: inline A& get() { static A a; return a; }, but is it possible to do header-only global variables who's constructor/destructor get called on program startup/exit
 
why don't you just use const?
constants have implicit internal linkage
 
I'm not certain what you mean, could you give an example?
 
const A a;
nvm
I just noticed you probably want to modify it
 
2:33 AM
well that wouldn't be a problem?
just mark all data members as mutable
 
you can accomplish the same thing without const with static A a; at global scope
 
You'll get one object per every TU that includes it
 
yeah
 
or you could use the init trick that the stdlib uses
 
2:34 AM
hmm, I don't think that matters for this particular object, it doesn't have to be a singleton
(I have another object which does need to be a singleton, but not this one)
for static objects like these the constructor/destructors are guaranteed to be run only once, on one thread, right?
 
3:22 AM
Is it allowed to modify an enumerator via reference to its underlying type?
 
no clue
 
user1646075
@StackedCrooked i thought an enum was strictly an integer constant without any storage whatsoever anywhere
 
I mean an enum object.
 
user1646075
lookin......
 
@StackedCrooked Don't see why not.
 
3:29 AM
Yeah.. But in the end they are different types, so it would break aliasing rules I think.
 
user1646075
seriously, I think no
 
@Rapptz I meant like this:
enum Color : int { Red, Green, Blue };
Color c;
int& n = reinterpret_cast<int&>(c);
n++;
 
user1646075
are you meaning that you want to do the equivalent of test(a)
 
Probably not allowed.
 
3:33 AM
what would that accomplish..?
 
user1646075
c would changfe from Red to Green
 
the cast, I mean
I'm not sure the cast is legal.
 
Yeah, the more I look at it the less legal it becomes.
 
user1646075
This?

#include <iostream>

enum Color : int { Red, Green, Blue };


int main() {
Color c = Red;
int& n = reinterpret_cast<int&>(c);
std::cout << "c is " << c << '\n';
n++;
std::cout << "c is " << c << '\n';
}

c is 0
c is 1
 
@StackedCrooked I know what I showed wasn't illegal.
accomplishes the same thing really
 
3:39 AM
yeah
 
hah, that's pretty good.
 
You inspired me to give it a try
I'm not sure what other use CPPMP has any more these days
 
received a very 'personal' email, addressed to:
Greetings [%name%},
 
user1646075
ha - along with [%legit_nigerian_financial_position%} ?
 
4:24 AM
site looks legit, just a bit newbish to address the recipients of your spam like this ...
 
user1646075
i dare not ask what URL is
 
user1646075
ohhhhhhhhhhh, now I'll have to click it.....
 
anyone know how hard the Java certifications are?
I'm considering doing one
 
user1646075
so you can get a McDonalds-style programming career?
 
user1646075
4:36 AM
sorry, I jest. Java is great and there's a lot of demand...
 
@AaronKyleKilleen I don't think any recruiter worth it's salt will even bother looking at "certifications" specific to programming languages
 
@nightcracker well I'm mostly doing it for my own knowledge, adding it to a resume would be a side benefit but not critical, I'll probably mostly use it for android apps.
I've been reading through The Java programming language 4th edition but I'm thinking some kind of deadline would be useful to discipline me
 
if anyone cares to help: my laptop is starting to screw up and it's going out of warranty soon and it's just intermittent enough that I don't think they'll be able to reproduce or fix it. What's a good laptop nowadays? My knowledge is a bit outdated.
 
@AaronKyleKilleen stop reading stuff
start making stuff
 
I'm mostly looking for something that's got a fast CPU and enough RAM because compiles.
 
4:40 AM
read if you're stuck making stuff
 
There's no such thing as a good laptop
 
Least bad then
 
Not VAIO
 
They're still overpriced POS then?
 
Fuck VAIO
 
4:42 AM
there are some small companies out there that will build one for you for a better price, I built mine from cyberpowerpc it's got a clevo motherboard and it was a lot cheaper getting it from dell or hp
 
I'm not really concerned so much about price as I am about performance and reliability. But like any sane human being I'd like to get a good deal if one is available, of course.
 
4:59 AM
Sony doesn't make Vaio anymore.
@OmnipotentEntity If you want decent laptops for a decent price get a Lenovo.
Unfortunately laptops now a days have a bunch of lame gimmicks to artificially increase the price.
Like 8 GB SSD (who needs that?) or a 'touch screen monitor'.
Sometimes they're unavoidable.
 
user1646075
@OmnipotentEntity anything you can get WITHOUT windows 8
 
@aclarke Shit advice.
 
I use Linux anyway
but I would like to be able to run windows on my laptop because currently my laptop is my only windows machine.
 
user1646075
@Rapptz Win 8 sucks donkey balls
 
user1646075
@OmnipotentEntity good move
 
5:01 AM
@aclarke I see.
 
user1646075
i've always liked Toshibas - rugged enough, and the touch pad had the best smarts for software
 
user1646075
I don't know if the latest toshibas stack up, the larger touchpads seem to be taking over and they don't feel as good
 
user1646075
i'm on a HP now, and not enamoured
 
Honestly, I'm considering getting a Mac and triple booting.
 
user1646075
5:03 AM
@OmnipotentEntity it's tempting, but it might be like passing through a broken stargate
 
@Rapptz, yeah, my current laptop is a Thinkpad X220
 
user1646075
@Rapptz lenovo is the ex-ibm thinkpads aren't they? Talk about ruggest but stolid machines.... are they still made of ruggedized thermo-nuclear plastic and cast iron frames?
 
Yeah. Lenovo took IBM's ThinkPad brand.
@OmnipotentEntity The Y50 looks good to me.
In terms of specs and price anyway.
 
Cool, I'll look into it, thanks @Rapptz!
 
Personally I like Toshiba laptops because magically theirs have survived a lot
But it seems their newer laptops have been utter shit.
 
5:08 AM
Well, I used to work in the largest laptop repair facility in the US, so my perception of a lot of brands was colored by that experience. And HP and Toshibas were utter shit
shit shit shiiiiiiiiiiiit
 
Yeah that's why I said magically.
People always say theirs break or something but mine never have.
 
user1646075
@OmnipotentEntity hah - i damaged the screen hinges of my last one, and one before that, too much stress on the power socket. What, in general was the common fault?
 
I wasn't repair lines, I just heard war stories, mostly bad motherboards and the replacement ones were also utter crap that didn't work. I worked in Hard Drive Recovery, firmware hacking, imaging, PCB and soldering work, that sort of thing.
plastics were expensive and often difficult to source, but that's a general problem.
nothing toshiba specific.
You're right that the hinges were shit though. Too weak, frequently cheap metal that just started bending
 
tbh I think that's true for all electronics
 
but again, that was more or less a common problem
 
user1646075
5:12 AM
ok. Dells have gone sihtty i've heard (down from their 2nd-tier quality) and an Asus I bought for my son recently is really cheap and nasty...
 
which is a shame, because Asus used to be great laptops.
 
my Nintendo DS Phat was the first time I ever had broken hinges.
It really made me sad
 
user1646075
actually I dropped it, and turns out some tiny nuts were embedded in the plastic; they were the only screw points for the hinges - thus unrepairable by an amateur
 
user1646075
The Asus might have just been the cheapest of teh line; but it feels like a cheap toy from a $2 shop
 
user1646075
and the touchpad drives me NUTS.
 
user1646075
the 'buttons' are just two patches at the bottom which have a microswitch under, AND yet the surface on top is still actively controlling the mouse, so when you click, it jumps microseconds before the click registers
 
@MarkGarcia oh right DDR4 memory is coming out
I completely forgot
I should hold off on a new computer then
I hope that my laptop doesn't entirely give up the ghost in the meantime though
 
@OmnipotentEntity If you do, then you should do so much later.
Early DDR4s have more latency than DDR3, but will sure improve like the state of DDR3 before.
 
user1646075
"opportinutically inverts data bits"? What the?
 
@OmnipotentEntity It'll be a couple years before DDR4 catches on.
 
5:17 AM
well bah
 
Just wait for Skylake.
 
user1646075
never wait for new tech. I follow the rule of buying last-years top product which is now on run-out prices.
 
You need to get Haswell-E to get DDR4 right now.
 
user1646075
at least CPU speed growth has slowed - harder to get caught out by that now
 
On an unrelated note.
I'm currently waiting for Smash 4 to come out (October 3rd) and I have nothing to do to kill my free time til then.
Any suggestions?
 
5:19 AM
Get to 20k so you can delete shit.
 
@Rapptz, what kind of games are you into?
 
@Mysticial Boring
 
I've played a few cool ones recently
but my tastes are a bit off of the normal.
 
Which ones?
 
user1646075
5:20 AM
only want for nintendo?
 
^ I can't solve it without modifying the given template function.
 
Well, PW and PL just came out, but I don't know if it's super good or anything quite yet. I think it's mostly you have to be a fan of the genres
I recently played Danganronpa, if you're into the Visual Novel Murder Mystery stuff it's really good.
 
@StackedCrooked I remember you posting this.
 
and DR2 just game out
but I haven't played it yet.
 
I'm still stuck :)
I should mail the author.
 
5:21 AM
@aclarke No.
 
I recently played Trails in the Sky
which is Steam or PSP
it's a very good RPG.
Actually one of my top 3 along with Chrono Trigger and P4.
 
user1646075
just had to return BF4 for PS3. Totally failing to save progress amongst other shocking bugs. You'd think they'd be fxed by now after a year of people howling for the blood of EA's release manager...
 
I mean, what kind of games do you like exactly?
 
I like things.
I'm not really picky.
Just doesn't have to be SJW-y.
issue is I don't have anything in mind
:<
 
Social Justice Warrior-y?
 
5:28 AM
yea
or 2deep4u kind of games
 
well,
if you're into PC gaming, there's Teslagrad which is pretty cool.
or Risk of Rain, but my company publishes that.
 
user1646075
@Rapptz as hinted by the excitement over smash 4
 
@StackedCrooked Nice border around the source code.
@OmnipotentEntity Lenovo Thinkpad
 
@OmnipotentEntity Already have it.
I know the developer, hoppo, from AGDG on 4chan.
@OmnipotentEntity Looks cool.
Reminds me of my own game idea :(
 
@Rapptz They have an "unconference", too? I didn't know that was an official term.
 
5:31 AM
Or, if you haven't played Shovel Knight, you need to immediately and with a quickness
 
oh right
Shovel Knight
I heard it's fun.
 
Same goes for Papers Please
 
Already played.
 
It's really fun, it's like Duck Tales meets Megaman
Shantae has a remake that they kickstartered a while back. I don't know if it's done yet, but I do know that I loved the GBA version
 
meh
Telsagrad is 4~6 hours of gametime for $10
I think I'll pass :s
 
5:33 AM
no worries
I'm just throwing out ideas
 
Shovel Knight is on the 3DS and Wii U so I could get it there.
My 3DS needs a dedusting since I haven't played with it in a while...
 
Ittle Dew is also a fun puzzle game, but it's also rather short.
There's Crypt of the Necrodancer which pushes all of the fun buttons in my brain, but is still Early Access and kinda short.
 
Ah. Shovel Knight is $15 on all platforms.
 
-2
Q: why C family languages are so popular?

meetThere are many computer programming language exist in world. But why amongst all these languages C family languages have gained so much popularity? What are the main reasons for this popularity?

 
How long is it?
 
5:36 AM
It can't be because C was first because Lisp and Fortran came much earlier.
 
Shovel Knight? It's like 6 or so hours.
 
:<
 
There's Half Minute Hero and Half Minute Hero 2.
 
That won't keep me satisfied for long.
Meh.
;-;
 
I have about 50 hours logged on HMH2, dunno how much on HMH though because I have that on PSP
 
5:37 AM
It's a shame you couldn't just play Calvinball, given that I already won
 
@Mysticial Thanks. I need to give more downvotes. ;)
 
I am sick and tired of people flagging non-English things ._.
 
Speaking of which, are we supposed to just validate them?
 
I don't
 
Is it forbidden to speak non-English on SO?
 
5:39 AM
29
A: Disallow languages other than English in chat

RapptzI don't think rooms without English should be removed. Although Stack Overflow is mainly English, there are many cultures and languages that encompass the group of people that make up Stack Overflow. Many popular rooms have multiple languages being used, Lounge<C++> by itself has German, Dutch, E...

 
I... somehow, have 21 hours logged on super hexagon
 
in a row?
 
Oh, Dust was fun. The story was a bit clique and furry though. But the actual game play was like 2D Kingdom Hearts/Devil May Cry.
I have about 16 hours logged on that, on a completionist save though
I have 27 hours in Rogue Legacy
fun game really
 
but, that's 3rd play through
Oh!
 
5:42 AM
this site's cool btw
 
of course
 
I use it all the time
 
SpaceChem
have you played it?
or hell, KSP
 
@OmnipotentEntity looking at it
a puzzle game lol
I like puzzle games
 
wonderful
it's essentially a programming game.
 
5:46 AM
they're better on mobile though
at least IMO
9 times out of 10.
 
oh speaking of fun programming games on mobile
Turing Turtle
 
Hmmm... have you tried Euclid the game?
 
not much to it
but it's free
and fun
 
@OmnipotentEntity The video didn't really explain anything.
 
well, here:
 
5:48 AM
5
Q: Can you delete a FILE object created from fopen?

Jesse JWhile investigating a crash, I came across this code: FILE * RejectFile = fopen("filename", "a+"); // other code happens delete RejectFile; My understanding is that you only call delete on objects that were created by new. Granted some of this old code is really bad so it's likely this is wron...

LOL
 
Can we make the flag button an autoban for whoever presses it
 
good idea
 
Wow... I'm looking at a 4-star program apparently
 
Aug 31 at 16:19, by FredOverflow
@PolymorphicPotato With a simple trick, you can have as many stars as you want:
 
@Xeo:
0
A: Has Stack Overflow performed any "social experiments"?

Jon EricsonUsually we have more than enough historical data to answer questions like To what extent do badges influence behavior? and Does the bounty system work? So there's usually no need to run experiments such as the ones you mentioned. Often the public data available to anybody (either via the tack Exc...

> Creating high-quality content ... is a challenge.
^^ lol at all the April 1st jokes we've done. (and they get hundreds of votes)
 
5:52 AM
I WILL BE PRESSING BUTTONS AT RANDOM UNTIL EVERYONE INVOLVED IS FUCKING BANNED
4
 
like I always say, there are plenty of idiots on the earth
not sure why it is logical to be motivated by money, power or be liked ...
surely anyone who's predictable can be easily defeated?
on the other hand, I need to thank to all those idiots, without whom I would be the dumber one
 
I just overloaded operator new operator for a class I have and got 2x speedup. I expected some speedup but not quite that much.
 
@chmod711telkitty How about being motivated by SO rep?
 

« first day (1424 days earlier)      last day (3524 days later) »