« first day (916 days earlier)      last day (4258 days later) » 

12:01
You guys read all these standards - is there anywhere where it is clearly stated that local variables must be allocated per thread?
error: array subscript has type ‘char’ [-Werror=char-subscripts] This is new. And interesting.
@MartinJames Local variables exist per function call.
@R.MartinhoFernandes OK, that makes them per thread as a side-effect, OK, thanks.
@MartinJames The C++ Standard's memory model will specify such things.
@BartekBanachewicz cd $(cat path.txt); I'd recommend making the path.txt a script:
target_dir="/some/place/else"
Now you can just source it:
{
    set -e
    . path.txt
    cd "$target_dir"
    # do something
} # end of subshell
@R.MartinhoFernandes huh. where is that. Oh, it happens if you index by a char
12:07
1
Q: Managing managers in a Singleton class

JoetjahI'm trying to get this straight and to see if my idea is correct or not. I'm having a few Manager classes. For example, an UserManager and a PhoneManager. Because I'm having quite a few problems with making all those Manager's static, I was wondering if I could solve it with a 'ManagerManager'....

^ lol @ title
@FredOverflow At least he gave ample tag warning
@FredOverflow HOLY MOLLY
Not opening THAT!
12:09
hm... and what's wrong with char as array index? o_O
Xeo
Xeo
@FredOverflow oh gawd... ManagerManager
@FredOverflow I'm going to cry
@Abyx What if the char is negative?
I hope this is a joke that was posted 18 days late. — R. Martinho Fernandes 11 secs ago
@FredOverflow What if ints are negative?
Xeo
Xeo
@FredOverflow What if the int is negative?
12:09
@FredOverflow what's wrong with negative index?
Xeo
Xeo
@Abyx A lot
@Abyx On an array? Everything?
@Abyx You cannot have a negative index into an array.
by array you mean T[N] and not T* ?
> Who's going to manage the ManagerManager?
lol
12:11
yeah
just wanted to post that
It's OK, the ManagerManager is a singleton.
Xeo
Xeo
@FredOverflow It's managers all the way down.
@Abyx Yes, the warning only applies to actual arrays.
Isn't it sad that we have to say "actual arrays" instead of just "arrays"? :(
does char c = ...; if (c > '0') f(arr[c]) yield the error?
12:15
Why does c need to be bigger than 48?
'\0', whatever
Why does it need to be bigger than 0?
it's just an example %)
Hmm.. trying to remember if I've ever used a negative index, even with those languages that allow such array declarations. I got nothin' so far.
12:22
@MartinJames ++it; ... it[-1] - stuff like that
e.g. str_equal - while (*a++ == *b++) if (a[-1] == '\0') return true;
huh, it's a plenary meeting but I don't see Stephan
@Abyx it is not an array.
@FredOverflow paraphrasing a comment, Java would be funny if it wasn't true
Schneier on Security: NSA Cryptography Course http://www.schneier.com/blog/archives/2013/04/nsa_cryptograph.html Now _that's_ some elite trolling display there
^ hahaha
I don't get it
Students' faces are white
and?
12:28
That's funny.
How so?
Because the students' identities are classified
Ahoy
man
opening session with a Dilbert comic
user142019
Mood gorning.
12:35
Apparently, I'm clueless??
so what's new?
mymap[0] = "Tony";
mymap[1] = "Bony";
Really?
lol
I was playing around with something
needed a quick example
@TonyTheLion That sounded wrong.
*right
12:38
:|
AFAIK pairs don't have op<<
ahaha
ah, so if I define op<< for a pair, it should work
N3602 and D3663 not moved at this meeting
Xeo
Xeo
What's D3663?
something about sized deallocation, I haven't seen it either
12:43
0
Q: Segfault in c++ program; Incomprehensible valgrind output

PirateDougTheBlackI'm currently writing my first big c++-project but encountered a segmentation fault when running the program. I already tried to debug it using valgrind, but so far without success. Since the program is quite big, I'll show only the relevant function in which the error occured: void RigidBody::R...

70 issues fixed this week by CWG, 90 more submitted
Net result: +20 bugs.
not all submitted issues are defects
Stop ruining my joke.
also: Core complains about people submitting a bunch of crap to them
Xeo
Xeo
12:50
Example?
no specific example given
but the Core guy basically said that there were many papers that were basically wasting the CWG's time
@Lightness Races in Orbit: So you know what they are or not? It is secret information? — Pulsating Ambience 4 mins ago
Oh - is that thing still rumbling on :(
@DeadMG lololol
default lambda arguments moved into working draft
12:54
@MartinJames for as long as I draw breath sire
@DeadMG Can't stop laughing at that.
lol lol lol
binary literals moved into working draft
:(
That crap they don't consider a waste of time...
the waste of time was more about low quality of paper, not necessarily questionable design direction
12:56
binary literals are sorta useful
I expect people to start using them immediately. Code will be so much more readable!
duh. I explained my GF how memory works once
could've used them that time
ITT binary literals are useful to explain stuff to girlfriends.
2
Xeo
Xeo
@R.MartinhoFernandes The sarcasm is overflowing
binary literals?
12:57
maybe CWG has a lot of GFs
upvotesgifs
@LightnessRacesinOrbit Game of Drones...
Hey guys
LO kbok!
Does anyone has a Google recruiter on their linkedin they are willing to introduce me to?
13:00
runtime arrays moved into working draft
What is that?
Xeo
Xeo
Wait, what?
typo
Xeo
Xeo
"literals" - "arrays" -> "typo"
That's a fucked up keyboard you have here
13:01
I was reading something else about literals at the time
Xeo
Xeo
@DeadMG Couldn't you have cried out loud at that point? :(
return type deduction for normal functions moved into working draft
Xeo
Xeo
yay
decltype(auto) <3
'Amanda Knox claims to have been reading a Harry Potter book, smoking marijuana and watching the film Amelie at her boyfriend Raffaele Sollecito's flat on the night that Meredith Kercher was killed.' The weed and the book I could believe...
@MartinJames You know her well then? Did they question you?
13:03
@LightnessRacesinOrbit No, but I've seen the first 20 minutes of the film :(
@MartinJames Perhaps the film drove them to murder.
generalized captures for lambdas moved into working draft
@MartinJames In other news, Amelie is widely acclaimed, and made over $173m at the box office.
@LightnessRacesinOrbit It drove me to drink.
Xeo
Xeo
@DeadMG Btw, Herb anywhere in sight?
13:05
no, he left already
@MartinJames Drink-driving is illegal. Then again, so is murder.
Xeo
Xeo
@DeadMG meh
@LightnessRacesinOrbit $173m? For that crap FFS! I gotta get into the film business!
Wait, the English title is just "Amélie"?
member initializers and aggregates (some core fix I don't recognize) moved into working draft
13:07
@Xeo why not just auto as in gcc?
Xeo
Xeo
@bamboon Both work, but I want decltype(auto) for perfect-returning
@R.MartinhoFernandes Yeah
Xeo
Xeo
Read the paper to see the difference
But basically, decltype(auto) preserves the value category of the return-expression, while just auto will always copy, and auto&& will always create a reference
increased implicit move generation, n3667, voted into working draft
Xeo
Xeo
wait, is that about special members?
13:09
@Xeo ah ok, makes sense. Do you know the paper number out of your head.
yup
Xeo
Xeo
@bamboon N3582
@DeadMG bummer
I hoped it was about generating automatic moves :<
that might yet come up
Xeo
Xeo
I hope
seriously less restricted constexpr currently up for discussion
> Allow declarations within constexpr functions, other than:
static or thread_local variables
uninitialized variables
> Allow if and switch statements (but not goto)
> Allow all looping statements: for (including range-based for), while, and do-while
13:11
@Xeo thanks
> Allow mutation of objects whose lifetime began within the constant expression evaluation.
> In addition, in discussion of N3598, Option 2 was selected, which removes the rule that a constexpr non-static member function is implicitly const.
Xeo
Xeo
@DeadMG woah
Xeo
Xeo
Oh hey, that's Richard's stuff
13:12
@DeadMG NO!
so IOW, constexpr functions just got a whole lot more useful and a much bigger punch
if this makes it
no vote yet
I want runtime literals.
Xeo
Xeo
lol
13:13
Meh, not that excited about constexpr stuff.
C++ has really turned into a sack of shit
the next one is digit separators
God knows how often I needed a magic constant 1_000_000.
a magic consonant please, Carol
13:19
constexpr paper deferred for more discussion
user1357851
Where is the link to the list of all discussion topics?
@DeadMG Are you making pictures? :)
user1357851
@LightnessRacesinOrbit Don't be angry, you are only 1 year older today
13:22
lol, Java lambdas postponed again :D
but other people are
@jalf What??? Come on! Linky?
@Telkitty than your ass?
Didn't someone around here try to convince me that "this time" it was a sure thing?
@jalf probably me
13:23
@jalf wish it weren't too late to postpone Java
admittedly, this time the reason is different, but it's still funny
user1357851
@LightnessRacesinOrbit pretty sure my ass is the same age as me, but they are round from all the jogging I have been doing for the past 5 years, thank you ... for nothing
@jalf The article says lambdas will be in Java 8, but Java 8 will be postponed until 2014, right?
That's how I read it, yes
newbie hints post unpinned
13:24
So lambdas aren't taken out of the version they were scheduled for, but that version has been postponed
I thought by "Java lambdas postponed again" you implied Java 8 without lambdas.
quick @LightnessRacesinOrbit
contest for a new one, huh?
user1357851
No newb ever reads the newb hint, what's the point?
13:25
Welcome to your new favourite place! Please read the newbie hints so that you can feel at home.
15
digit separators getting a big bashing in Committee
@juanchopanza: What is "the chat room"? — Lightness Races in Orbit 4 mins ago
trollolol
Welcome to the Lounge! This is where dreams (and little ponies) come true. Do read our hints, though...
@Telkitty the glory
user1357851
Want to ask C++ related questions? Press here
@LightnessRacesinOrbit dude, not cool
2 mins ago, by kbok
quick @LightnessRacesinOrbit
13:27
Yeah, well, not quick enough
digit separators deferred for additional discussion
@kbok Yeah, well, we'll see.
OMG SO MUCH BOLD what is happening.
Xeo
Xeo
@DeadMG s/discussion/bashing/
I think :8948139 should become the pinned message
dammit
13:28
I chose a winner.
you took it away :(
@LightnessRacesinOrbit Don't be sad. You had one of yours there several times in a row now.
@R.MartinhoFernandes and I was just getting used to it
13:30
Grumpy much?
@LightnessRacesinOrbit k
@kbok not listening
iPod touch?! mmm not sure that counts tbh
lalalala
Xeo
Xeo
Our little princess is butthurt.
<3 mega drive though
@Xeo na na na na na na na na na na na
13:32
honestly bold and italic text at once looks bad imho
@BartekBanachewicz I agree, bold and italic combined looks weird. You should also make it underlined. And blinking and stroked.
@kbok wonder how they decided on some of those links
@Collin Yeah, some are pretty arbitrary IMO.
@kbok Power glove, lol
permitting optimizers to batch new and delete calls moved into working paper (apparently, existing practice, but now officially sanctioned)
13:34
Why is the Wii zapper unrelated to the NES zapper? Come on
@R.MartinhoFernandes Power Glove? Isn't that a song by Huey Lewis? :)
It's also a band
template variables moved into working paper (apparently, includes static class member and constexpr?)
hehe, I'm practically watching xkcd.com/349 unfold live right next to me. :D
No sharks yet though. But I haven't given up hope!
Stay on high ground!
13:38
Would not have guessed russians
Xeo
Xeo
@jalf With popcorn at hand?
@DeadMG What is that? :( template <typename T> int whatever;?
yes!
hell fucking yes
@Collin oh wow, sounds like a video game, "During the pursuit, grenades and other explosives were thrown from car by the suspects"
13:40
@R.MartinhoFernandes doesn't break anything.
@jalf yeah, where the hell did they get grenades?
@Xeo Sadly not :(
@BartekBanachewicz Doesn't add anything useful.
I don't want a more complex language that can only do the same things as the old one.
I guess they could be IED like things they built, just getting called grenades in the chaos
you can buy Grenades there just class 3
Xeo
Xeo
13:41
@R.MartinhoFernandes As a member should be interesting...
but you have to have a FBI background check so I'm guessing they have illegal ones
@Xeo but definitely enjoying the show
@Xeo It's not feasible as a non-static member, so I don't see any interest.
One less scope?
Xeo
Xeo
@R.MartinhoFernandes Ah, I overlooked the "static"
Yeah, useless. Saves 2 keystrokes
13:42
generic lambdas moved into working paper
Xeo
Xeo
Yay
Huzzah!
user784668
The topic is wrong. My documentation doesn't suck, it doesn't exist.
Can we have a celebratory room description update?
13:43
aha! ^
room topic changed to Lounge<C++>: [](auto cpp) { return Lounge<cpp>(); } [c++] [c++11] [coliru] [no-helpdesk]
Xeo
Xeo
room topic changed to Lounge<C++>: auto foo(){ return [](auto& C){ return C++; }; } [c++] [c++11] [coliru] [no-helpdesk]
2
that's it for CWG papers
LWG coming up
Oh, [coliru] tag, heh?
Xeo
Xeo
13:44
@DeadMG Now that doesn't work!
oh yeah
Xeo
Xeo
@DeadMG /cry
hahaha totally asking questions as soon as I have some
what's a good font for code?
user784668
13:46
@TonyTheLion Comic Sans
fuck you
user784668
@TonyTheLion Consolas
no, I don't like Consolas
user784668
@TonyTheLion you're welcome
@TonyTheLion lucidia console
13:47
Ewwwwwwwwwwwww
ok Robot, tell me a font that's decent
I like Consolas and Inconsolata.
optional isn't on the formal motions list
it might have fallen this morning in LWG
Xeo
Xeo
template<class R, class... Ps>
auto operator->*(R (T::*p)(Ps...)){
  return [this, p](auto&&... vs){
    return (get()->*p)(std::forward<decltype(vs)>(vs)...);
  };
}
hmmm
user784668
@TonyTheLion then the question is not "what's a good font for code" but rather "what monospace fonts the lion likes"… which is best answered by yourself, since you're the lion.
Xeo
Xeo
13:48
Finally an easy operator->* for smart pointers!
> easy
@rerun blergh
@Fanael this is true, but I wanted to see what other people used and then find one that I like
@TonyTheLion Consolas or Pragmata($$$)
user784668
@kbok yeah, that's easy
13:49
Terminal is the one VS used to have
I actually quite like that one
although...
Isn't that a bitmap font?
Let's settle on "easier than before"
I don't know
> Terminal is a family of monospaced raster typefaces.
Suxorz.
user784668
@TonyTheLion ewwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww bitmap
user784668
13:50
ewwwwwwwwwwwwwwwwwwwwww no unicode
yay dynarray fell in the LWG
what? Ah the full dynarray
yeah
I use cursive fonts in vs just to make my code prettier
user784668
WTF's a dynarray?
13:51
We should make our own C++ with blackjack and hookers and without people making time-wasting proposals.
@rerun Erm.
you don't want to know
@R.MartinhoFernandes Wide.
@rerun if you want prettier code, write better code :/
user784668
@R.MartinhoFernandes in fact, fuck C++ and blackjack
Fixedsys > Terminal anyway
oh god fucking VS isn't able to edit 1.5k LOC file
kill me
13:52
:lol:
@CatPlusPlus No one is taking font advice from you.
Such a good editor
user784668
@BartekBanachewicz WORKSFORME
@BartekBanachewicz having already mastered that I want my code to look like the constitution
13:52
@R.MartinhoFernandes Fixedsys owns and you have no soul
Xeo
Xeo
@BartekBanachewicz You just suck
user784668
@rerun Write in Perl
Xeo
Xeo
Seriously, 1.5k LoC? that's nothing
@BartekBanachewicz Why? I used to be able to open 10k+ files without issues
@Xeo it literally hangs when scrolling
Xeo
Xeo
13:53
We have a 12k LoC and it works fine
but I only have i5 here
that might be the case
and even better, it fell due to the issue I raised
@CatPlusPlus I said nothing about Fixedsys. I merely ad hominemed you by trying to invoke your experience with telling fonts apart.
Xeo
Xeo
(Although nobody here is proud of that 12k line monster)
13:53
@R.MartinhoFernandes My point still stands
At my previous job we had this huge file eq_evop.c so it was splitted into eq_evopa.c, eq_evopb.c, eq_evopc.c and eq_evopd.c each ~5k. Refactoring
user784668
@BartekBanachewicz I used to open 20 KLOCs in VS on a friggin' Athlon XP.
@CatPlusPlus To be fair, vim also craps out with gigantic files unless you set some options (though "gigantic" here is some orders of magnitude over 2kloc)
Note the 8.3 names
Xeo
Xeo
13:55
@BartekBanachewicz No, you just suck
user784668
@R.MartinhoFernandes but from what I see to make vim suck at files the files have to be 100+ MB.
@rerun I use recursive fonts for my functional language
4
Who starred that, it was so lame
@kbok lol
user784668
Recursive? "Fuck. Fuck again." Is that recursive? Well, it's a curse and a recurse.
13:57
Stop with the recurring puns please
@Xeo tell me more how it's my fault that VS sucks
Xeo
Xeo
Nov 30 '12 at 9:43, by Xeo
@Cheersandhth.-Alf Recursing is natural to developers: "Fuck fuck fuck fuck fuck...."
I really have to learn vim
Xeo
Xeo
@BartekBanachewicz worksforme.jpg
user784668
13:58
@BartekBanachewicz :qa!
user784668
Now you know how to use vim.
@BartekBanachewicz Get a time machine. Travel back to 1972. Log on to a VAX terminal.
@Xeo Gesundheit.
@Fanael very funny
vim did not exist in 1972.
user1357851
13:58
@Fanael :set tabstop=100
wait, no.
I suck.
9

« first day (916 days earlier)      last day (4258 days later) »