« first day (1391 days earlier)      last day (3550 days later) » 

6:00 PM
or a Hulk.
 
I like private inheritance and inheriting constructors.
And thread-safety enforced by the class design.
 
6:18 PM
nice exception-unsafety with pop(), though.
and general unsafety, because the user can never be sure that there is an element to pop off and can't check to see if there is.
 
@Puppy why is it exception unsafe?
Return statement could induce copy which throws?
 
@melak47 sup?
 
@jalf MS and not lagging behind ._.
 
@StackedCrooked Yep.
 
Ell
@JerryCoffin I've been getting into making cocktails recently and I've learned that it's not as easy as it's made out to be on tv and films :)
 
6:27 PM
@Puppy I could use a scope guard!
 
well-known in C++, the original stacks all did T pop(), and then there's a reason why the Standard moved away from that idiom.
 
Ell
I just keep trying different amounts until it tastes right :)
 
    auto pop_back_on_scope_exit = make_scope_guard([&]{
        vec_.pop_back();
    });
 
@StackedCrooked you could, but will you? :o
 
I will it.
 
6:31 PM
@Ell if you keep drinking the ones you make, I guarantee it'll taste right soon enough :p
 
ah balls
fuckin' Itanium ABI
 
I made a frying pan that I don't know how to texture
but geometry-wise it looks like a frying pan from 90's games
 
why is your frying pan made of rusty wood :p
 
@Ell Is anything ever as easy as it is on TV/in films?
 
@melak47 well it's supposed to be rusty iron... or something
something to fit in an environment with these colors
 
6:39 PM
@Puppy The typical std approach would require the user to call back() to get the top value followed by pop_back(). However, I probably shouldn't return a reference from back() because that could lead to thread-unsafe code. So returning by value seems like the way to go.
 
@StackedCrooked Would have been unviable pre-move-semantics, but now you can return std::move(back()).
 
@Puppy how will you do the pop_back?
 
@AlexM. Making a BDSM game?
 
@Puppy I really think scope_guard is a valid idiom for cases like this.
 
@PolymorphicPotato only if you wanna star in it ;)
 
6:43 PM
:o
 
// btw, is it weird (or wrong) to move-assign to an output parameter?
void try_pop(T& t) { t = std::move(vec.back()); vec.pop_back()); }
 
@StackedCrooked I'll simply ban throwing moves /solved
but try_pop is far more idiomatic than pop in this case.
normally I dislike output params but the size problem is fairly serious.
 
@Puppy I mean where do you put the pop_back here: T pop() { return move(back()); }
@Puppy What is the size problem?
 
@StackedCrooked Nothing wrong with T pop() { T local = move(back()); pop_back(); return local; } if you ban throwing moves.
@StackedCrooked You need to know whether or not the vector's empty before you can pop_back from it which introduces a data dependency. try_pop has no such problem because you can try_pop at any time.
 
@Puppy Plus the requirement that T is movable.
 
6:47 PM
@StackedCrooked Well, yes, but you can't put non-movable types in a vector/stack/whatever anyway.
 
@Puppy Copyable is not sufficient for vector?
 
Copyable is Movable.
 
Copyable is movable?
 
yes.
how else does move semantics work backwards-compatibly?
of course requiring a noexcept move isn't backwards-compatible.
but that's why I invented my own language instead.
 
@Puppy AFAIK, if a class implements a copy constructor then the move constructor is deleted and std::move will trigger the copy constructor. When returning a local object then RVO (not sure if this terminology is still used in C++11) will be applied, so it's a elided copy. Is that what you mean with movable?
 
6:53 PM
@StackedCrooked Stating things slightly more formally: moving doesn't have any requirements beyond copying. It just allows something that copying doesn't: it can destroy the original. class move {}; class copy : public move {};
 
@StackedCrooked Well, it meets the Movable interface in the entirety- you can assign and construct from rvalues.
 
Does copyable also mean move-assignable?
Probably not I guess.
 
Ell
@jalf haha too right :P
 
@StackedCrooked It does if copy-assignable is included in Copyable.
copy-assignable means move-assignable, just as copy-constructible means move-constructible.
 
Ok I see.
If you have an old SmartPtr from C++03 codebase which does refcounting. And you do ptr1 = std::move(ptr2); then ptr1 will not be a unique copy. Isn't that bad? (Or does SmartPtr not meet the copyable requirements due to "shallow" copy)
 
7:00 PM
if SmartPtr does refcounting, then it's perfectly legal.
it's not necessarily maximally desirable, but it's perfectly fine and legal.
 
I mean like boost::shared_ptr from an pre-C++11 boost version.
 
this is exactly what happened with the original boost::shared_ptr/tr1::shared_ptr
 
@Puppy Ok, for a minute I thought it would be bad that ptr1 and ptr2 will still share the same underlying object after the fake move. However, accessing the moved-from object would be illegal anyway (apart from assigning a new value)
 
@StackedCrooked It's perfectly fine because a refcounting ptr is designed with the intention that there are multiple instances sharing the same object.
and accessing the moved-from object would be perfectly legal.
 
@Puppy But ptr->foo() on moved-from object would be fine in the old boost::shared_ptr<T> but a null-deref in the new std::shared_ptr<T>
 
7:11 PM
@StackedCrooked Sure. But that doesn't mean the only legal op is re-assignment. You can use all state-querying and state-setting functions. It's only functions with a state precondition, like de-ref or pop_back, that are iffy.
 
if (ptr.use_count() > 0) ptr->foo();
^ Not sure about this one.
 
depends on how use_count() is defined.
if it's 0 on empty ptr, then perfectly legit, if a strange way of writing if (ptr) ptr->foo();.
 
If the object was supposed to be moved to another thread then this would trigger a race condition.
 
generally not considered The Done Thing to allow inspecting the refcount though.
 
Agreed.
 
7:14 PM
@StackedCrooked If it was supposed to be moved, then you are move-semantics-aware and can use a move-semantics-aware smart pointer.
or you can swap it in C++03 which retains the same semantics.
 
@Puppy But if "copyable is movable" then it should also apply to C++03 classes.
 
@StackedCrooked Right, but if you're writing C++03 code you don't try to std::move a pointer to another thread. Because there's no such thing as std::move.
if you depend on move semantics to have correct code, and somebody passes a non-move-aware smart pointer, then they've violated your preconditions.
 
#include <boost/shared_ptr.hpp> from an old version of boost should still work in a C++11 codebase.
 
it does still work, exactly how it should do.
if "how it should do" is incompatible with "what you need", then you need to document your requirements.
 
I'm writing C++11 code which happens to include a C++03 library.
 
7:19 PM
gah
down to just 19 test failures.
finally.
 
@Puppy I agree with that. I'm only questioning how far I can stretch the "copyable is movable" idea.
 
Ell
I don't really see how copyable can be moveable
btu I haven't read the transcript
and I've drank a lot of rum at this point
 
@StackedCrooked Copyable is Movable. The requirements you've suggested, like moving emptying the source, are not part of Movable. They're additional.
Movable does not require in the slightest that the source be left in any particular state.
oh
technically, Copyable isn't Movable if you had one of those batshit-insane copy constructors that were not const T&.
but basically nobody ever did that.
 
@Ell Simple: move takes data from A and puts it in B. It may or may not affect the state of A. In the case of a copy, it does not affect the state of A. In the case of what you'd usually think of as a move, it does affect the state of A.
 
Ell
@JerryCoffin I guess the "It may or may not affect the state of A" is key here
in my mind it always would
 
7:24 PM
@Ell It seems like Puppy and Jerry are talking about implementation details.
 
@Ell If I use the filesystem analogy then "copyable is movable" makes sense. Move to other directory inside the same file system is implemented by means of inode manipulation. Move to external disk is still possible because it can be implemented in terms of copy. So the only requirement for move is copy (ignoring delete permissions on the source file).
 
Copyable isn't Movable w.r.t. the language actually considering them the same
we have different traits for both of them
and passing one of them doesn't mean you pass the other
 
@Rapptz It's not an implementation detail. Movable requires that you can construct from and assign from an rvalue. Both of those traits are provided by taking const T&.
 
@Ell Yes, it's key. In the typical case for which move is designed, it will affect the state of the source--but in some cases, there's no gain from its doing so. Prime example is a string with short string optimization. In a typical case, moving a string means grabbing the pointer from the source, but with short string optimization the data is stored directly in the object, so you can't. Emptying the source would just be extra work, and the whole point of a move is that you no longer care.
 
@JerryCoffin The other reason why not guaranteeing affecting the source state is key is precisely to permit C++03 Copyable classes to qualify as Movable.
it would be an incredible bitch if C++03 Copyable was not Movable- you'd have to write two versions of everything and have some magic trait to determine which to apply to every type.
 
7:28 PM
@Puppy True--my point is, however, that even if you didn't care about backward compatibility at all, there are still cases where your only real choice is to allow copying.
 
yes, I concur.
primitives in general showcase this.
 
I can only find MoveAssignable and MoveConstructible concepts. Does Movable mean the combination of both?
 
I don't think I agree with your reasoning. Copyable and Movable are different things. The backwards compatibility thing is just the compiler generating different things.
 
@StackedCrooked Yes, the same as Copyable. I believe that C++11 split them both because some functions don't require assignable anymore.
 
Actually the official definition MoveConstructible really makes it clear why "copyable is movable".
> The new value of rv is unspecified
 
@Rapptz Not at all. If you have a function that requires Movable, you can pass a C++03 Copyable class in with no problems.
otherwise we'd have to duplicate all our C++11 code for C++03 and C++11 classes.
C++03 Copyable gracefully degrading to Movable is essential for backwards compatibility of new C++11 code and an explicit intention of the design.
@Rapptz Elided, and that really is an implementation detail (mostly)
 
@Rapptz That's copy-elision, not move.
 
you get the same behaviour in C++03.
 
Yeah I realised.
I forgot to pass -fno-elide-constructors
 
7:34 PM
I find it interesting that copy-elision is unaffected by optimization level. It's always enabled (unless you explicitly disable it with a special compiler flag).
 
it's about code generation simplicity.
I elide constructors already in Wide in quite a few cases because it's easier than not eliding them.
 
I also think that it would be bad if debug and release builds behaved differently.
 
it's unavoidable.
 
I guess that's true.
Sometimes a bug can only be reproduced in release mode.
 
that stuff is just a difficult problem with no easy solutions.
 
7:37 PM
Heisenbugs are the worst.
 
there's too much optimization based on UB to spew the user if you do it and there's too much optimization to be done to not do it
 
@StackedCrooked Depends on the compiler. gcc does [N]RVO even with optimization turned off. VC++ does it only when optimization is turned on (e.g., won't normally do it in a "debug" build, but will normally in a "release" build).
 
Ah. I only tested with GCC.
// does having two return statements affect elision?
std::vector<int> get() {
    if (!ready) return {};
    std::vector<int> result;
    // fill the result vector
    return result;
}
 
@StackedCrooked All the world is not a...well, okay, yes gcc really does run on nearly everything.
 
gcc is nice
it's ran on everything I use
R. Pi, Windows, Linux.
 
7:45 PM
I used to write programs that needed to work on both Windows and Mac (and sometimes also Linux).
 
@StackedCrooked Not usually, no. Copy elision basically means it passes a reference to the destination into the function, and the function just writes to that destination.
 
oh and my phone
 
But I'm losing the portable mindset since working 4 years on a Linux program.
@JerryCoffin Oh.
 
@JerryCoffin Well, that's not strictly accurate. It means that it directly constructs the local/whatever into the destination, instead of moving it into the destination later.
 
@StackedCrooked For anything too large to fit into registers, it pretty much has to do that anyway, so copy elision just becomes a matter of passing it a pointer to the ultimate destination instead of allocating a temporary object somewhere, passing a pointer to that, then copying from there to the destination.
 
7:48 PM
the basic criteria for RVO is that the compiler can prove that, for that code path, you always return a local variable after it has been constructed.
 
// Wikipedia example
std::string f(bool cond = false) {
  std::string first("first"), second("second");
  // RVO might not be applied depending on argument.
  return cond ? first : second;
}
 
I have a function template which has two iterators as argument arguments of the template type T so I write template<typename Titer> void doSomething(Titer begin, Titer end) { // How do I get the actual type of T later? }
 
@StackedCrooked Begging to be inlined, really. But Wikipedia is right that in the source form, it can't be RVO/NRVO'd as they are traditionally done.
 
0
Q: Why in my test scala 2.11 faster than c++ qt 5.3?

engineerAs I know c++ have very good performance. Scala haven't. And I write simple task. Create 100 Mb array, init it in a loop and write it to disk, 10 times. Qt (5.3 clang) code: QTime myTimer; myTimer.start(); int size = 100*1024*1024; for (int i = 0;i <= 10;i++) { char *mem = new char[size]; ...

 
I'm thinking about improving that in the Wide ABI.
 
7:51 PM
@Nils If by T you mean the container that gave you the iterators, you can't. If you mean the value_type of the container then you can do decltype(*begin).
 
but that's far in the future.
 
Heard anything from CodeMentor?
 
no.
 
no fun
 
// I once had this.
// checksum for contiguous data range
uint16_t checksum(ByteRange range);

// enable checksum for non-contiguous data with multiple passes
// does not include the final bitflip
void checksum_part(ByteRange range, uint32_t& intermediate_result);

// Can you guess the problem?
 
8:00 PM
inorite.
@StackedCrooked uint16_t vs uint32_t& is what I'm seeing.
 
@Puppy That's fine. It must use uint32_t as intermediate result and reduce it to uint16_t later. But that's a detail.
 
then no I don't immediately see the problem.
 
checksum_part turned out to be super slow
 
some problem with the copy constructor of ByteRange?
 
too many copies in C++03
 
8:04 PM
uint32_t& is written to. And ByteRange (char*) is read from.
 
so really, way not enough details to possibly guess the problem.
just tell us what it was.
 
I think it was due to aliasing.
 
if ByteRange is accessed as a char*, then it could indeed alias intermediate_result.
 
ah decltype! of course thx @Rapptz
 
So I changed it to uint32_t checksum_part(ByteRange, uint32_t intermediate);
@Puppy I was worried for a sec.
I thought you would spot the problem immediately. But you didn't so I thought I was wrong in my conclusion.
 
8:07 PM
you barely presented any data at all.
even after knowing that ByteRange is a char*, it really depends on how the function was written for aliasing to be an issue.
nowhere near enough data for a conclusive diagnosis
for example, the old checksum_part can be written trivially in terms of the new one, and if that's what your memory accesses to intermediate_result actually looked like, then aliasing would be a non-issue really.
 
aliasing only pops up as a problem with certain access patterns
 
But it was first time I actually had a real-life example of aliasing affecting performance.
Btw, I think the robot once told me this is not UB:
// buffer is char* to array with size > 2
short s = *reinterpret_cast<short*>(buffer);
Is that the case?
I suppose it could be equivalent to short s; memcpy(&s, buffer, sizeof(s));
Which is allowed.
 
@StackedCrooked No--it's the reverse that's allowed. Allocate a short, point a [unsigned] char * at it, read and write as you see fit. As is, you can get UB because buffer may not be aligned to read/write as a short.
If, however, buffer points to data that was allocated with malloc or new, it would be all right (those guarantee alignment to be used as any type, or at least any type up to the size allocated).
 
I'm not sure about the alignment issue.
I would agree that this is definitely bad:
short& s = *reinterpret_cast<short*>(buffer);
Because of the reference.
But if you store the result in a copy then maybe it's different.
 
8:21 PM
@StackedCrooked Still attempts to read a short-sized object from buffer, which may not be sufficiently aligned to allow that.
 
What am I doing wrong?
 
decltype(*begin) not decltype(*type).
 
ah
Now why can't I use auto in a lambda parameter?
 
@Nils Because you're not using C++14.
 
says it all
 
8:45 PM
hola
 
humm xcode 6 only gives me the choice between c++11 or 98
but clang already supports 14, right?
 
hi
I'm doing clean up on the tag btw
You seem to be gratuitously adding it to a lot of things for like no reason :|
 
@Nils Xcode doesn't ship with the latest clang (I have no idea how up to date it is wrt. C++14 though)
 
@TemplateRex see, e.g. here: chat.stackoverflow.com/…
last two anyway
 
@Rapptz it's not gratuitous
 
8:58 PM
It is
 
it's to allow easier searching for c++1y techniques in Q&As
there's plenty of Q&As on Meta that explicitly encourage this
 
that's not how tags are used
well, find me one
but if the title says C++11, the tags say C++11 then it makes no sense to add because an answer uses C++1y.
Absolutely nothing to do with C++1y.
 
22
Q: Should I retag a question with a tag that is based on the answer and not the question?

o.k.wI tried to search for a similar question, but can't find one (yet). Here's a scenario: Someone asked about "How to build a SQL query to get count and blah blah blah..." His only tag is mysql. I added the sql and count tags to it. Someone else answered with a nice SQL statement that has a "gro...

 
The question doesn't even mention it.
 
Ell
@Rapptz is the answer?
 
9:02 PM
No the only answer that makes a vague mention is TemplateRex
And he's the one that added the tag.
 
Ell
ah
 
@TemplateRex This isn't how it's worked in .
I'm not the only one who does this BTW
 
@Nils C++14 is comprehensively supported in Clang 3.4. But XCode may not have that version, or support passing -std=c++1y.
 
I might as well add to every single question I've answered on this site.
But I won't because that's stupid
 
@Rapptz if it's about c++11, by all means
 
9:04 PM
No
You're the only person doing the tag adding
 
@Rapptz I add lots of tags, yes, because I want ot be able to find stuff again
but if you want to start an edit war, be my guest
 
take it up with meta
Or rather, I will.
Gimme a sec.
 
the Effective C++ Q&A that you rolled back is another weird example, IMO. Clearly, Scott MEyers himself writes that the new book will be about C++11/14, so why can't I tag it that way then?
 
I learned to do UV mapping, yay
it's still ugly, but at least it's textured properly
 
the Luc Danton answer I can understand, that is borderline, because it wasn't the accepted or a highly upvoted answer.
 
9:08 PM
@TemplateRex Scott, unfortunately, seems to have a somewhat limited idea about effective C++11 or C++14.
 
@Puppy well, that may be so, but that's beside the point. And he should come with an update pretty soon
 
yes, updating it with his limited idea.
 
@Rapptz for a while, I also tagged many Boost questions with their specific Boost library tag, and vice versa, do you also find that wrong?
 
no
this is about language revisions
 
or adding C++11 when either the Q or the (accepted/upvoted) A makes essential use of C++11?
 
Ell
9:11 PM
@AlexM. better than anything I ever made :P
 
from what I gather on meta
the answer has to be accepted (not upvoted) for it to matter
 
some people will downvote C++11 answers if you don't tag them as C++11...
@Rapptz not any upvoted, but say top answer or top 2 answer
some people don't accept anything
 
it'd be like me tagging a question that is with just because the answers mention python3k.
the OP didn't want so why add it in the question?
the version specific tags are there for a reason
 
@Rapptz look, if it is deemed inappropriate, by all means have a field day rolling them back. but I tag Q&As (not just one I am active in myself) quite liberally
@Rapptz but Q&As are not just there for the OP, also for future readers
 
version specific tags are sorta special
lemme find the relevant meta question
 
9:14 PM
if a Q's answer differs per language version, it is useful information to keep that
once everyone is using C++11, I agree, it should be merged with C++
 
the answer should make a disclosure but you shouldn't add the tag to the question because it implicitly changes the meaning of the question
 
no it adds extra information to the question
 
if the OP just has then they're looking for C++11 answers (assuming the body doesn't mention C++1y)
 
@TemplateRex Nah. The C++11 tag only applies to questions that are only relevant to C++11. That's gonna remain true in the future.
right now C++ means C++11, soon to be C++14, as that is the most recent revision of C++.
 
well the OP wants to solve X using C++11, but suppose it becomes much easier with C++1y (generic lambdas whatever), then adding that shoudl be reflected in the tags, IMO
 
9:16 PM
it should be a 'tangent' like it is with most questions
like "Note, in C++1y it's easier and you can do x, y, and z"
the generic is the catch-all
version specific (, , and ) are special
 
but if one asks: "how can I do X in C++1y" , it will be closed as a duplicate of "how can I do X in C++"
 
see here and here
@TemplateRex yes
add another answer
that's always been the standard protocol
 
@Rapptz and now it's hard to find the C++1y specific technique
 
@TemplateRex That's because when C++1y is published, C++ will mean C++1y.
 
@Puppy well at least for 3 more years, the bulk of all SO users will not use it
 
9:19 PM
@TemplateRex Irrelevant.
if a questioner is limited in his version, he should explicitly state so.
 
A while back I answered a really old question with an updated answer
2
A: How do I concatenate multiple C++ strings on one line?

RapptzUsing C++14 user defined literals and std::to_string the code becomes easier. using namespace std::literals::string_literals; std::string str; str += "Hello World, "s + "nice to see you, "s + "or not"s; str += "Hello World, "s + std::to_string(my_int) + other_string; Note that concatenating st...

 
also, it's generally expected that C++14 adoption will be way faster than C++11- gcc and clang are already pretty much done with supporting it and even VS is adding a C++14 feature or two (well, as as far as any "feature" is ever added.)
 
notice the only tag the question has is
yet there are answers for and
 
53
Q: Old question, new technology, new answer

Patricia ShanahanWhat should be done when a question is similar to an old question, but the answer to the new question depends on technology that did not exist, or was not usably mature, at the time of the old question? Should a new answer be added to an old question even if the new answer was not available at ...

relevant meta question
 
9:21 PM
@Rapptz well good luck finding your answer if you don't know that it exists
 
Ell
@TonyTheLion haha true
 
@TemplateRex Just search for the C++ generic technique, and you can easily see if there are revision-specific technique answers. Then all the techniques are in one spot, as they should be.
 
@Ell the sad thing is, you can do it, it just takes having the right settings for the picture and some fiddling
I don't know why they didn't make that easier....
 
@TemplateRex Just search for C++14 and the answers will be in the search result. If you can't find it then, use to search.
 
@TonyTheLion people making 3D pie charts deserve to have their documents messed up
 
9:23 PM
@TemplateRex kek
 
what the heck am I doing wrong. I am passing the array to a function that has a pointer variable argument with the same type. However, the values are null in that pointer variable. sigh
 
@cyberspace009 Not using std::array.
 
@cyberspace009 Not using std::array.
 
really?
 
@cyberspace009 Not using std::array.
 
9:25 PM
@cyberspace009 Expecting C arrays to work reasonably well.
 
@Rapptz my view would be to use for generic c++, for Q's that allow C++11 solutions, and for Q's that need only c++11 solutions
 
well, we discussed this and we decided the other way.
 
would this not work? SDL_Rect setOfWalls[total_tiles]======>player_move(SDL_Rect *walls)
 
2 mins ago, by Puppy
@cyberspace009 Not using std::array.
 
@Rapptz the martijn pieters meta suggests that it's OK to add version tags, but discourages to use version tags exclusively
 
9:27 PM
ok i will try
 
Ell
@cyberspace009 Not using std::array
 
give me a minute
 
66
A: Should I not use the generic tag if my solution is limited to a specific version?

Martijn PietersYou'd be better off still including the generic tag; the generic tag serves to attract the domain experts, the version-specific tag to communicate that the problem is version specific. Take Python for example; version specific tags, even for the current versions, have a limited number of followe...

 
so
who wants to help Puppy debug his Wide compiler by staring at a wall of LLVM IR.
 
> me
- nobody ever
 
9:29 PM
the Fr33dan meta Q&A is not relevant because that is about exclusive version-tagging, and I only added exclusive versions, and kept the generic one
 
Ell
@Puppy Not me :D
 
lol
 
@Rapptz so by your rationale, you would remove the tag from this Q&A of yours?
 
no?
it's the generic version tag
 
but the Q is c++11 only
 
9:33 PM
<-- "I'm asking a C++ question" <- "However I'm only looking for C++11 answers"
also wow I missed the comments on that answer
it's literally in the tag wiki
> Please tag questions about C++11 with the c++ tag, along with the c++11 tag.
 
@Rapptz ok, so tags are to be read as using logical AND, not logical OR
 
how does beer manage to taste so much like shit after it gets warm
 
a lot of drinks taste bad when warm
only drinks I can think of that taste fine warm are coffee and tea
 
Ell
Mulled wine
 
Ah yeah.
and hot cocoa
mmm hot cocoa
haven't had that in eons
 
Ell
9:41 PM
and bitter? (idk alcohol categories really)
 
Man I'm hungry
 
^^ AHAHAHA
I totally saw that coming.
 
Something tells me you had something to do with this eh
 
@Mysticial Aren't you, ya know, working there?
That's like me being so like "Ha, I knew it" when Ludia publicly announces a new game release.
 
I actually like rick's song :(
 
9:46 PM
Mar 28 '13 at 19:27, by Rapptz
Screw you guys. I enjoy being rickrolled.
 
@AlexM. It's a good song, but it's not as good as this one.
 
@Rapptz Not me, but I know who did it. And I'm actually working with him on another project right now.
 
@Mysticial See? I'm not impressed.
 
damn
 
9:48 PM
@Mysticial booes
 
I found and fixed a totally unrelated bug.
 
@Rapptz is similarly not impressed.
 
now my IR is three times the size.
 
@Mysticial inb4 he drops a string like "half life 3 confirmed" this time
 
So now for an important discussion.
 
9:49 PM
@EtiennedeMartel I only like this one by her :( youtube.com/watch?v=NJsa6-y4sDs
 
How do you spell 'booes'?
Is it 'boos' or 'booes'?
 
I don't have enough authority anyway to do something like that.
 
@AlexM. This one is good too.
 
@Rapptz well it isn't exactly like "boos" but it's close to it
closer than to booes anyway
there was this guy showing people how to install "homeboo" software on their PSPs on youtube a while ago
I lol'd when I watched his videos
 
9:51 PM
> Why is this code doesn't compile?
 
-1
Q: Writing pure code without using header files

user3919837As try to learn C/C++, I'm always finding it frustrating that I need to use the header files. It makes it seem like it's not my code, but I am using some other person's code instead. I simply want it to be pure, and be written by myself without using the header files. I know for certain that C/...

Holy shit.
 
Ell
Hmm I can't figure out lua modules
 
they're easy as dirt
 
Ell
if I have a module("json") do I have to prefix all the functions defined in it with json?
 
9:57 PM
local my_table = {}
-- populate table
return my_table
then you do
 
Ell
Or do I have to attach the functions to a json table inside the module?
 
local x = require("stuff")
etc
 
Ell
kk cheers
 
you call the functions in the example above like x.function
it's the equivalent of doing something like import stuff as x
 

« first day (1391 days earlier)      last day (3550 days later) »