« first day (1011 days earlier)      last day (3940 days later) » 

9:00 PM
@kbok D3D11 FTFY
 
Rugby on Rails
5
 
hmm how can i throw around a reference to a lock in different classes
boost::ref is unhappy
 
I wrote code to support this syntax: std::stringstream() << "HELLO " << world << throw_as<std::logic_error>; What do C++ people here think of that idea?
 
Your game can be written in PHP and you still won't need GPU rendering.
 
@MooingDuck why you not simply Boost.Exception? We don't like overloaded op<< BTW, use variadic templates.
 
9:02 PM
@MooingDuck I'd rather have the throw_as first
 
@MooingDuck Ugh. Boost.Exception and tagged attachments.
 
@BartekBanachewicz noted
 
Making a string is more logging thing than exception thing.
 
@BartekBanachewicz I didn't overload any op<<
@CatPlusPlus ah, good call
 
I mean the a << b << c syntax is kinda retarded.
 
9:04 PM
@BartekBanachewicz ah
 
cout(a,b,c) is superior in pretty much every aspect :F
 
^ print a, b, c
 
Also I'd like to see operator tostring in C++, but that's not gonna happen I guess. operator std::string is closest
 
... but that's python :(
 
I don't use exceptions much but if I did I'd like throw format_exception("blah") % abc % def
 
9:06 PM
@BartekBanachewicz And tostring would be different, how?
 
@CatPlusPlus how do i throw around a mutex between classes which are not friends
 
Also ugh implicit string conversions.
 
@BartekBanachewicz std::tostring exists....
 
@EiyrioüvonKauyf What?
 
@CatPlusPlus tostring would require language-based not library-based string type
 
9:06 PM
@BartekBanachewicz So const char*? :v:
 
@CatPlusPlus fuck that.
 
It won't go away, deal with it.
 
the concept of char* is so retarded I don't even
 
This is your language's string type.
 
bullshit.
 
Ell
9:07 PM
@BartekBanachewicz it's not that retarded
 
lol
 
@Ell "let's make operations on strings O(n) that makes sense"
 
heh, part of the motivation for boost exception reads: "This method seems to be particularly popular with C++ programmers with Java background."
 
it's completely and utterly retarded
 
@BartekBanachewicz too bad
@BartekBanachewicz it is basic minimal functionality with which to implement a real string library type
 
9:08 PM
except std::string is not really built on char*
c_str is a fucking abomination.
 
@BartekBanachewicz it more or less is
 
@CatPlusPlus ok i have two classes A and B in the same process; I want B to be able to lock A's mutex, run function Bstuff() and then unlock A's mutex ...
 
though vector is not built on T[]
 
Then do that. Why are you asking me, anyway
 
@MooingDuck I'm pretty sure it uses a dynamic array of T for that.
 
9:10 PM
@CatPlusPlus because you're responding to him
@Jeffrey it doesn't (in details)
 
.___.
how do you actually pass it though?
 
@EiyrioüvonKauyf BStuff(A& lockme)
 
  CPPFLAGS  += -MMD -MP $(DEFINES) $(INCLUDES)
  CFLAGS    += $(CPPFLAGS) $(ARCH) -g
  CXXFLAGS  += $(CFLAGS)
 
^ no that's not working :/
 
what the fuck
 
9:10 PM
neither is Boost::ref
 
@Jeffrey vector uses 3 pointers
 
@MooingDuck what then?
 
@EiyrioüvonKauyf Then your code is wrong, not the lock
 
@MooingDuck trying to put it in a boost::tuple a boost::tuple can't hold a boost::shared_mutex
 
@Jeffrey char* plus placement new
 
9:11 PM
@MooingDuck So?
 
> Une Poutine n'est pas faite pour être belle. Elle est faite pour être BONNE.
 
Oh, that guy
 
@CatPlusPlus people are stupid
 
Nevermind.
 
9:11 PM
I'm tired.
 
@CatPlusPlus How did you find Bioshock Infinite?
 
@MooingDuck are we still talking about std::vector?
 
I'm rewriting Makes to Sconscripts and it feels good
 
@Jeffrey yes, std::vector<T> uses char* underneath (or unsigned char*)
 
@MooingDuck Is that standard mandated?
 
9:13 PM
@EtiennedeMartel Okay. I actually figured out the big twist before Miss Exposition happened.
 
@EtiennedeMartel no
 
@MooingDuck So, it doesn't use it.
 
Well, partially.
 
user142019
Wrong; it may.
 
> Internally, vectors use a dynamically allocated array to store their elements.
 
user142019
9:13 PM
You mean "doesn't have to use it."
 
@CatPlusPlus clearly people should stay the hell away from online gaming
 
There's no mention of char anywhere
@MooingDuck D'you have any reference for that?
 
yay, works at first time
it's a bit small though
I dunno if it's g++ or I did something wrong
 
Uh why would vector use char* buffer?
 
@Jeffrey no, I was trying to figure out where my belief came from, since it's clearly false. I realized it was based on an invalid assumption I made when first learning how vectors worked, before I understood allocators.
 
Xeo
9:15 PM
> So I suggest a new c++11 keyword, "whatever" or "whateverreturn"
 
That would probably run into alignment problems.
 
my bad
 
Xeo
1
Q: How can I determine the actual type of an 'auto' variable

user1676605In this response: http://stackoverflow.com/a/14382318/1676605 this program is given: std::vector<int> vi{ 0, 2, 4 }; std::vector<std::string> vs{ "1", "3", "5", "7" }; for (auto i : redi::zip(vi, vs)) std::cout << i.get<0>() << ' ' << i.get<1>() << ' '; I have no idea what the type of au...

Nobody even mentioning decltype, man
 
@EiyrioüvonKauyf You'll amazed what typing a few not so random words into a box on Stack Overflow can do
 
@CatPlusPlus it doesn't if it uses new char[] internally
 
9:16 PM
@Xeo nah, fuckitall, so you can return fuckitall; or even throw fuckitall;
 
@sehe i have orz. closest I've got is how to use a shared_lock
 
@EiyrioüvonKauyf Having a look
 
2
A: How can I determine the actual type of an 'auto' variable

nioTry to change auto into a char and read the error message.

 
@EiyrioüvonKauyf I can't find it
 
Ahahaahahahahahhaahaha oh god
 
user142019
9:17 PM
@Xeo I guess OP wants to find out himself what type it is.
 
user142019
Not let the compiler do it and still not show him.
 
At least in the implementations of vector I've looked at (VC++, MingW, STLPort a long time ago) it's always used a T *. Usually, since it has to provide a typedef for it anyway, they just use the name pointer.
 
user142019
template<typename T> void foo(T&& x) { static_assert(std::is_same<T, struct foo>(), "fuck"); } may work with diagnostics. :D
 
@CatPlusPlus That's clever if it works.
 
9:18 PM
@JerryCoffin yes, we already established that I spoke amazingly falsely
 
Xeo
@user1676605: decltype would like a word with you. However, that likely won't help you - redi::zip returns a lazy range that depends on the original ranges being alive. It just uses iterators into those original ranges, so if they are gone, the returned range from redi::zip is dangling. — Xeo 2 mins ago
 
@EiyrioüvonKauyf Ah you found an existing answer. It's a bit hard to see where you're stuck then. Code? (pastebin, codepad.org, ideone.com, coliru)?
 
Xeo
@rightfold Always asserts, even if not invoked
 
user142019
I have to make it depend on T?
 
Xeo
template<class T> dependent_false : std::false_type{}; static_assert(dependent_false<T>(), "fuck");
 
9:19 PM
@MooingDuck Sorry -- just catching back up after lunch + errands.
 
@sehe no it doesn't work :/ >> isn't applicable
 
user142019
Blewrg.
 
I HATE DEBUGGING
 
@Jeffrey It's not clever, it's hilariously bad.
 
user142019
No, you hate debugging C++ code.
 
9:19 PM
@EiyrioüvonKauyf "It"? It sits on the couch all day?
 
@CatPlusPlus Does it work?
 
@rightfold especially that
 
@EiyrioüvonKauyf >> isn't applicable. Very clear.
 
@rightfold s/C++ code// FTFY.
 
user142019
@sehe Dat pun.
 
user142019
9:21 PM
@JerryCoffin That boils down to the original statement so it wouldn't make any sense.
 
In other news I fixed my spreadsheet.
 
@sehe o_o wait i got it to compile
 
user142019
Time to sleep bye.
 
In other news I've built GLload with my script
 
@EiyrioüvonKauyf Nope
 
9:22 PM
@EiyrioüvonKauyf what
 
@rightfold night
 
@EiyrioüvonKauyf stop using javascript; problem solved
 
@rightfold Yes, it does. I'm saying that (yelling aside) the original statement was more accurate; all debugging sucks.
 
@EiyrioüvonKauyf wat
 
You can flag, call the mods, bin it yourself. Good luck
 
9:22 PM
Nobody cares about your room drama.
 
nvm i'll just ask a mod :3
 
@JerryCoffin its makes me wanna yell
 
@EiyrioüvonKauyf why would you kick someone just because he/she says she is a girl?
 
And?
 
Gotta take the popcorns then
 
9:23 PM
What's orz, anyways
You can very much stop keeping us posted. Plonking now
 
Xeo
@sehe It's a guy on his knees
 
The bee's knees
 
Xeo
the o is the head, the r is the arms used for support, the z is the legs
 
also OTL
 
to my wifes irritation, I randomly stopped liking carrots like two months ago. It was pretty wierd.
2
 
Xeo
9:27 PM
lol
@Xeo: The original ranges may be alive still, we don't know that they aren't (Unless the construction of redi::zip creates temporary ranges from the vectors?) — Mooing Duck 4 mins ago
That would be amazingly stupid.
 
@Xeo it would be yes
wait, it wouldn't even work
would it?
 
Xeo
Also, notice that i said "likely"
@MooingDuck No, only if it returned that temporary range
FWIW, here's an eager zip stackoverflow.com/a/17157576/500104
 
> You could use Eclipse, but it's pretty heavy weight and a lot of seasoned Unix people I've worked with (me included) don't care much for its interface, which won't just STFU and get out of your way. Eclipse also seems to take up a lot of space and run like a dog. here
 
yay SIGSEGV
 
@Xeo Wow. Even with the explanation it took me >30s to get it
 
Xeo
9:30 PM
It's from Japan vOv
 
@MooingDuck So it's all sticks and no carrots, now?
 
Also I have a tab open with a transcript on two years ago, who made me do that
Mar 1 '11 at 20:50, by PiotrLegnica
My studies are free, so I don't complain much at quality. I knew some part of it will be boring and oh-I-knew-that-already anyway. ;)
Ohohoh what an idiot.
 
Lol. That split personality
 
@CatPlusPlus +1
look, he even smiled back then
 
aptana is a nice branded eclipse; comes with some nice things
 
9:33 PM
@EiyrioüvonKauyf you used "nice" and "eclipse" in one sentence; gtfo
 
Mar 1 '11 at 20:58, by PiotrLegnica
I actually started writing C++ kernel a year or two ago, never had the patience to finish. :P Intel manuals are great, though.
 
heck, you even used "nice" twice
 
Ell
gah flashing things makes me so nervous
 
> smilies
> great
 
@Ell flashing people make me more nervous
 
Ell
9:33 PM
hah
 
Damn Cat, Lounge transformed you.
 
@Tuntuni it was university
 
Oh wait. I said I would have never get back to the Javascript room ever again. Fuck!
 
Xeo
@Tuntuni I'd rather say that university is at fault.
 
I am installing newest ICC
I am curious if anything new works
 
9:34 PM
@Xeo @BartekBanachewicz Oh dear, what awaits me then? :(
 
Oh, Cilk Plus is new!
I want to try it
Would need to properly abstract it, though :( I don't see it becoming a standard anytime soon
 
Xeo
Mar 1 '11 at 21:50, by thecoshman
The notion of using Get*() and Set*() functions is just second nature to me
ahaha
 
in 2011 my code was full of singletons and I was proud of it
 
Xeo
Man, Cat used so many ":P" back then.
 
@Xeo I think all the answers focus too much on his incorrect wording and not enough on the code, because the type in question is "int&".
 
9:37 PM
@Xeo This!
 
@Xeo Back then when? The first time in here he was bashing Wikipedia
He was already grumpy back then
 
Doesn't look like it.
 
Xeo
@MooingDuck tuple<int&, int&>
 
Guys, halp
> Remember (if you've learned this. If not, then you're learning something new!) that an array is essentially a pointer. In C/C++, the array name is a pointer to the first element of the array
 
Mar 1 '11 at 21:57, by thecoshman
@PiotrLegnica you've confused me their. What do you mean making it a property
 
9:39 PM
@BartekBanachewicz ... without any metadata
 
Well pirate didn't change
 
@Xeo er, right, I forgot what zip iterator does
 
@EiyrioüvonKauyf what?
 
@BartekBanachewicz arrays are pointers without metadata you can do sizeof(array)/sizeof(element) but not sizeof(pointer)
 
@CatPlusPlus :D
@EiyrioüvonKauyf ugh no. not even close
2
A: The array data type in C / C++

MGZeroAn array is a contiguous block of memory. This means it's laid out in memory sequentially. Let's say we define an array like: int x[4]; Where sizeof(int) == 32 bits. This will be laid out in memory like this (picking an arbitrary starting address, let's say 0x00000001) 0x00000001 - 0x00000...

 
9:40 PM
@Rapptz Nevermind.
 
@EiyrioüvonKauyf dude can you stop with this already
 
@BartekBanachewicz. ok welp let me go read arrays
 
@EiyrioüvonKauyf in C++ standard, I presume.
what the fuck
that's not even valid.
 
Damn Windows Server licence in OVH costs as much as the lease.
 
@EiyrioüvonKauyf wot
 
9:41 PM
Arrays are not pointers.
 
@EiyrioüvonKauyf you're saying a lot of things and they don't quite make sense
 
array not pointer
sometimes interchangable
 
int[N] is an array not initialized to anything specifically; but it's not apointer; that's int*; gg
 
I remembered when I learn that :D
 
Ell
I don't remember learning things.
 
9:42 PM
T[] and T* is the same thing, array types are T[N].
 
Xeo
@CatPlusPlus Nope
T[] is an incomplete array type.
 
@CatPlusPlus he is right
-2
A: The array data type in C / C++

Seth HaysJust think of an array as a pointer. They can be used interchangeably.

 
@Xeo depends on context
 
seriously, so much stupidity
 
9:43 PM
@Xeo i.e. you can't use it in code?
 
Xeo
@MooingDuck Does not
Fuck me, I need to get these insect nets installed asap.
 
I stopped trying to remember all crappy details about C++ type system.
 
@Tuntuni you can use incomplete types FYI
 
@Xeo So int[4] and int[5] are different types?
 
Xeo
Yes
 
9:44 PM
@BartekBanachewicz Oh?
 
@Tuntuni yes
 
Spreadsheets are way more fun.
 
Always
 
@Tuntuni you need to complete them to create something from them, but they can be passed in intermediate template instantiations obviously
 
Xeo
@MooingDuck You're likely thinking of function declarations like foo(int x[])
 
9:44 PM
@Xeo yes
 
Xeo
They are simply transformed to be foo(int* x)
 
@BartekBanachewicz Ah, right :)
 
Xeo
But int[] is still an array type.
 
@Xeo that doesn't make sense to me
 
Man this chat room has really chaged
 
Xeo
9:45 PM
@MooingDuck When the compiler sees foo(int x[]), it changes it to foo(int* x).
 
@EiyrioüvonKauyf Thanks :)
 
look who's talking
 
@Xeo yes, that part I acknowledge, but the fact that it's still "an array type"?
 
Xeo
Also, unique_ptr<T[]> vs unique_ptr<T*> - the former uses the array form of unique_ptr
 
@Xeo I acknowledge that as well, as part of "depends on context" :D
 
9:46 PM
Okay. What we have here is an invasion led by some trolls. Everyone, on the plonk cannons and happily ignore
2
 
Xeo
That's whacky thinking
 
@sehe really?
 
@BartekBanachewicz You haven't noticed yet. Come on. I can't be that fast. Or you already plonked people I didn't
 
Xeo
cough
 
@sehe there's this kaser guy, plonked already. anyone else?
 
9:47 PM
Yup.
 
Hm.
 
@Xeo oh wait, in the spec, they have a typedef int UNKA[];, since the typedef may be used in every context I was thinking, you are therefore correct.
 
Relevant song for relevant people.
 
Installation Complete
 
@CatPlusPlus There are no relevant people
 
9:48 PM
let's see
 
Xeo
@CatPlusPlus Gema prevents me from getting out.
@MooingDuck Of course I am correct. :P
 
Masterpiece
Use a proxy~
 
eh, so, when is vs2013 full coming out?
 
2014.
 
Because the crashing compiler makes it pretty useless
 
9:49 PM
lol
 
Anything beyond a hello world is a roulette really.
or maybe it's just Lundi :v
It's not a trivially compilable library, I admit
eh, fuck, still segfaults
 
I was contemplating magically filtering users based on if the Lounge is in the "commonly in rooms" on their profile, but turns out pawnguy7 hasn't achieved that yet. So such a magical answer has false negatives :(
 
lol
 
Lock the door and throw out the key
 
> WARNING: terminal is not fully functional
 
9:52 PM
@MooingDuck add him explicitly
 
Guys
 
thanks git
 
If I want LLVM / Clang 3.3 from the SVN,
 
@ThePhD no
 
how do I tell the SVN to only checkout as far as the 3.3 deltas go?
 
Xeo
9:53 PM
Oh frag. Ys Origin and Ys: The Oath in Felghana both 66% off
 
and VS crashed again
sigh
 
@BartekBanachewicz it was a completely hypothetical magical filter. Maybe a feature request. a "boot everyone with less than 250 messages in the room" button.
 
Coliru archive is no already 5225 items. I wonder if my flat directory structure is gonna cause trouble.
 
@StackedCrooked meh, 5k is nothing
 
Agreed.
 
9:54 PM
@BartekBanachewicz I think the discussion is about scalability, not the current state of affairs
 
100k would probably still work
 
@MooingDuck see above
 
@ThePhD They probably have tags for releases.
 
if I have stuff on constructor initializer list
 
SVN has tags... hm.
Guess I'd better read up on how to do that.
 
9:56 PM
do I have to set up default constructors by hand if one object constructs from ref to another?
 
@BartekBanachewicz you use travis-ci right?
 
can you link me a .yml file so I can steal from it ? ;p
 
@BartekBanachewicz A() :first(), second(first) {} versus A() : second(first) {} ?
 
@A.H. use robot's file (rmartinho on GH). Mine are on lundiorg/lundi
@MooingDuck yes
 
9:58 PM
@BartekBanachewicz beware of declaration order though
 
@MooingDuck ah fuck it follows the order of declaration, always
 
@BartekBanachewicz members are constructed in the order they're declared in the class definition, period. You don't have to have first() in there
 
@sehe yeah.
there goes my segfault
 
@BartekBanachewicz msvc would warn on that if you had first() in there.
 
thanks
 
9:59 PM
@MooingDuck I use icc, and it warns indeed
 

« first day (1011 days earlier)      last day (3940 days later) »