« first day (901 days earlier)      last day (4063 days later) » 

9:00 PM
What about lhs implementing |= , rhs being a simple OR. ? I'm not aware of a reason why it shouldn't work.
 
Xeo
Of course we could invent all kinds of things
 
such as PHP
:)
 
This is now a music dump
 
@Mysticial That's one tickbox right away.
 
@Xeo Wha? :o
 
9:03 PM
@Mysticial A class static member is not visible outside the defining file/scope. This is one of the more crazy php'isms I've ever encounterd
 
@CaptainGiraffe wut? wrong reply?
 
Xeo
16 mins ago, by ThePhD
Mind =+ blown;
 
Ooh.
 
+= used to be called =+ a long time ago, but then someone noticed the ambiguity.
 
Too bad they didn't notice the rest of C is bad, too
 
9:06 PM
C is an excellent language
 
@FredOverflow Are we still allowed to use trigraphs?
 
No, it's not
 
fairforitstime.tvtropes
 
@CaptainGiraffe Allowed? Sure. Encouraged? Certainly not.
 
@CatPlusPlus Thompson was asked what he would like to change in unix, if he had a time machine. His reply was "rename creat create"
 
9:07 PM
Ha ha, I love the CSI Pathologist.
Well, the dude who gets to study the corpses to figure out how they died. Is that the Pathologist or someone else?
 
@CaptainGiraffe Yeah, so?
 
@CatPlusPlus So nothing at all. Just a curiosity.
 
@R.MartinhoFernandes Right, I love him.
 
9:10 PM
Does your partner know?
 
@R.MartinhoFernandes Nah, she doesn't like CSI. She probably doesn't care.
 
Help me out guys, I feel trapped in a kafkaesque situation
@KonradRudolph: anyone can see that you're lying. just stop. it is untrue that i've said what you attribute to me, and you don't quote for the good reason that you know it is a pure lie. — Cheers and hth. - Alf 47 secs ago
 
Quote him.
 
@CatPlusPlus I love it.
 
That's what he wants.
 
9:12 PM
@KonradRudolph You should look into Gödels theroem of incompleteness .
 
Hm, I think YT watch history is capped at 10k, because I have exactly this many entries apparently
 
@KonradRudolph Unrelated, but shouldn't this be closed as a dupe?
 
DATA LOSS
 
Time to try PhysX now
 
@BartekBanachewicz PhysX?
 
9:14 PM
@CaptainGiraffe yeah
I am comparing how easy it is to create a mesh in various engines
 
@BartekBanachewicz yeah, what is it?
 
@CaptainGiraffe you don't know what PhysX is?
 
@BartekBanachewicz Ah, my apologies =)
 
I voted to close as a dupe
 
Xeo
@KonradRudolph Meh, Alf can be quite obnoxious at times. Just ignore and move on.
7
 
9:16 PM
@Konrad FTR, my MinGW installation defaults to -std=c++11 and I suspect Alf's too. Comes from here nuwen.net/mingw.html
 
That comment thread escalated pretty quickly...
 
PhysX is a thing
 
And nobody has mentioned Hitler yet.
 
It used to be a bigger thing, but now it's just a thing
What comment thread, we can still fix this
 
Xeo
lol
 
9:17 PM
Hitler couldn't compile this code. By Godwin's law, thread is over. — R. Martinho Fernandes 12 secs ago
^^ LOL
 
That was too silly.
 
Ye gods number literal formatting again
 
@R.MartinhoFernandes screencapped
 
You should have closed that as a dupe
 
I did
 
9:18 PM
I even wrote code for this shit some time ago
 
but I'm the only vote :(
 
Oh gosh, not that.
 
and it's already accepted and pointless but whatever
 
@Rapptz link?
 
Oh hey Konrad even links to it
Silly him he should know better than to answer with two links to other answers
 
9:19 PM
Also code wouldn't compile in MinGW @KonradRudolph so he's right
At least partially..
String conversion functions, std::stoi, stoll, stod, to_string etc are broken in MinGW.
 
MinGW doesn't have stoll
 
FFS why do I keep subscribing to mailing lists full of fucknuts.
 
Xeo
?
 
Unicode or C++ one?
 
Unicode is usually sane. The UTF-64 incident was an isolated occurrence.
And it was totally worth it.
 
9:23 PM
lol
UTF-64? Why?
 
Tehhehe
 
good evening, my cretins!
 
@Rapptz Error correction at character level
 
user142019
std::vector< const Candidate * >
 
user142019
Dat code style.
 
9:23 PM
@Xeo Don't you mean, "Cheers"? ;P
 
@Rapptz The only reasonable answer to that question is "NO", anything else is trickery. Konrad provided that trickery.
 
@Zoidberg Dat storing pointers in vectors >.<
 
-1 Not enough spaces
 
@CaptainGiraffe I meant it's a dupe
 
@CaptainGiraffe No, because the question doesn't ask for underscores in literals exactly
It still should've been closed instead of answered
 
9:24 PM
Just went through explaining arrays to someone in intro to programming. That was fun
 
@CatPlusPlus Yes it does. At least digits nonconformant to c++
 
Mit freundlichen Grüßen,
Martinho
Well aren't you fancy.
 
@CaptainGiraffe What
The question is literally "Is there some similar way for C++?"
 
@CatPlusPlus Answer is no.
 
9:26 PM
The answer is yes, macros or UDLs
 
@Rapptz That's not fancy, that's pretty much standard.
 
That's why it can be answered with macros or UDLs instead of "no"
 
Signing with Sincerely in German?
 
@CatPlusPlus And that is stupid for so many reasons, I can't even believe you are suggesting this.
 
@CaptainGiraffe What
 
Of course it's stupid but that's not relevant
The question has a clear answer and it's not "no"
 
@CatPlusPlus Why not currency expansion too=
 
@CaptainGiraffe What
 
Why not unit expansion?
 
@Rapptz still not owner wtf?
 
9:28 PM
What the fuck are you on about
 
Are you trolling?
 
@CatPlusPlus Expanding literals is a really bad idea
 
I haven't trolled in a while
:(
 
@GamErix No, stop linkdumping
@CaptainGiraffe What
 
user1182183
@CatPlusPlus Pet will continue to dump shit into the room.
 
9:29 PM
What
This is approaching :psyduck: levels
 
I think the macro solution is slightly better than the udl
 
What the fuck is "expanding literals" and how it matters in this context
Hint it doesn't, there's nothing expanded here
 
@Rapptz I think both solutions scream for doing it the correct way.
 
WTF is the correct way.
Stop talking in kōans.
 
I have no fucking idea how units even come into play, because they're totally unrelated
(Or even how you can "expand units")
 
9:32 PM
@R.MartinhoFernandes Seriously. Typing in one million as 1,000,000 or as 1000000 ? I that a frcking koan?
 
"I that a frcking koan?" ?
 
People use digit separators you know
 
@CatPlusPlus Yes for input not in code.
 
Stop drinking/smoking/whatever, you're not making much sense
 
"There is no way to do it. You should do it the correct way"
 
9:33 PM
0
A: Nicely formatting numbers in C++

Lightness Races in Orbitint main() { int x = 1e6; }

 
@CaptainGiraffe Except when they do, because some languages do support separators natively in syntax
 
itstimetostopposting.jpg
 
programmers.txt
 
@LightnessRacesinOrbit that's shitty
 
@Rapptz it's a half-troll; it does solve the stated problem, though!
 
9:34 PM
@CatPlusPlus So is 13,000 = 13.000 or are they 3 magnitudes apart?
 
@LightnessRacesinOrbit Maybe. You are depending on one million being representable as double.
 
@CaptainGiraffe what are you talking about?
 
@LightnessRacesinOrbit Anyway, a half-troll would be int x = 5e5; :P
@Rapptz No one knows.
 
0
Q: how hard can it be?

Alexander Chrystopher HarringtThia hasnt got anything to do with any specific set of code, since it's more of a pondering, really: What makes coding so hard? In just a couple of weeks I've gone from knowing virtually no php to having a good idea of what it takes to fulfill many of my ideas. Obviously, I'm still a rookie. So...

 
@CaptainGiraffe Depends on the country
Woah chat broke
 
9:35 PM
@CatPlusPlus He comes?
 
@Rapptz source code that apparently breaks hard if compiled in a different location.
 
He cames to me too earlier.
 
@CatPlusPlus Yeah, same here. But refresh fixed it.
 
because of a macro
 
9:36 PM
@CaptainGiraffe What
The
Fuck
Are you talking about
 
@CaptainGiraffe Change the code to use whatever separator you feel like using?
 
Honestly I don't get it
 
@CatPlusPlus We were talking about using odd separators for numbers in the source. That then went in a rocket trajectory to include input
 
This thread went beyond :psyduck:
 
9:37 PM
@R.MartinhoFernandes hah
 
So here's a cat video
 
@CatPlusPlus lol
 
(And no I'm not interested in continuing this discussion so don't ping me about it mkay)
 
@R.MartinhoFernandes yeah :( Though isn't it mostly guaranteed? I genuinely forget.
 
@LightnessRacesinOrbit I doubt you can find one non-esoteric platform where it doesn't work.
 
9:39 PM
@LucDanton :D
 
god dammit pointers everywhere
 
@R.MartinhoFernandes Sure- but you know me- even now I'm being a
 
C++03 is fucking unusable without smart pointers
 
@BartekBanachewicz Well that's nonsense :(
 
    btBvhTriangleMeshShape* shape = new btBvhTriangleMeshShape(trimesh, false);
    delete body->getCollisionShape();
    body->setCollisionShape(shape);
fuck me if it's OK.
 
9:41 PM
delete body->getCollisionShape(); looks terrible.
 
I don't even know if I should delete it or not
because of unclear raw pointer semantics
 
Read the docs?
 
@BartekBanachewicz Are you already making use of the history feature? (Because with current update all previous history is gone, albeit recoverable from the JavaScript console: localStorage.history).
 
Body doesn't own it's own COllision SHape?
 
@StackedCrooked ummm? aah.
 
9:42 PM
Maybe it was not you.
 
why is it gone?
 
!!!!
I found a new use for TaggedValue !!
 
@BartekBanachewicz didn't say it was nice :P
 
I will now use it everywhere in my engine.
 
@StackedCrooked I feel like that was directed towards me.
 
9:44 PM
@R.MartinhoFernandes there is literally nothing in the docs
203         virtual void    setCollisionShape(btCollisionShape* collisionShape)
  204         {
  205                 m_collisionShape = collisionShape;
  206                 m_rootCollisionShape = collisionShape;
  207         }
oh that's helpful as fuck
 
ooh
   46 btCollisionObject::~btCollisionObject()
   47 {
   48 }
 
Ah okay.
 
yeah sweet.
 
So it's totally non-owning.
 
9:45 PM
@R.MartinhoFernandes so totally delete body->getCollisionShape();
 
Delete everything!
 
How nice of you to paste the line numbers.
:P
 
@Rapptz that's not my fault they use doxygen which generates html which makes me copy them
 
Oh, that kind of docs.
 
9:47 PM
you meant like "reference manual something"?
 
"Here, have a truckload of signatures and highlighted HTML source code just in case you want to figure out how the function behind some signature works"
 
Now, you never have to be confused again when working with my libraries ^
 
Some of the signatures have docs: getCollisionShape: gets the collision shape; setCollisionShape: sets the collision shape; toString: toes the string; etc.
 
user142019
:!emacs
emacs: Terminal type "dumb" is not powerful enough to run Emacs.
It lacks the ability to position the cursor.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type.  It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.
shell returned 1
Press ENTER or type command to continue
 
toes the string? lol
 
user142019
9:49 PM
:(
 
@Rapptz I wouldn't be surprised if docs did that.
 
@Rapptz Sadly, I am not making this up... google.com/#q=%22toes+the+string%22
5
 
@R.MartinhoFernandes wow that's really helpful
@R.MartinhoFernandes oh my
 
@R.MartinhoFernandes Ahahahahahaahahahaha HOW
How do you get away with shit like that XD
 
lmao
 
9:51 PM
"Toes the string" genius.
 
also, in java this code is much cleaner
since you don't have to worry about deleting at all
 
@R.MartinhoFernandes ALL FUNCTIONS MUST BE DOCUMENTED
State of the industry
 
@CatPlusPlus sadly it's open source I was complaining about
 
OSS is especially bad at documentation
 
also did I mention bullet isn't in a namespace?
 
9:53 PM
I should put that in the list!
 
@R.MartinhoFernandes please do
 
Repeat after me: there is no global namespace in C++.
2
 
There... what?
 
Huh?
 
@LightnessRacesinOrbit It's not truth; it's something that you (as in, everyone) must be indoctrinated with.
 
9:54 PM
Is this a form of pedantry?
 
> [C++11: 3.3.6/3]: The outermost declarative region of a translation unit is also a namespace, called the global namespace. [..]
 
Oh okay
 
It's a form of niceness.
 
Screw you
 
@R.MartinhoFernandes Hah, okay. I can get behind that, actually.
 
9:54 PM
You made me doubt myself!
 
@Rapptz The power of Robot.
 
Meanwhile, check out my lightning-fast standard-quoting skillz baby
 
@LightnessRacesinOrbit nobody gives a fuck
 
@R.MartinhoFernandes Do not forget the #defines outside of everything
 
9:55 PM
@LightnessRacesinOrbit "I googled for global namespace C++ and pasted the first thing I saw"? :)
 
@BartekBanachewicz Oh. It is there already. #13.
 
@Rapptz No... I opened the standard, ctrl+f'd it, and got lucky. :) Then copy/pasted and formatted with ludicrous speed
 
When someone writes a library, sometimes they tend to put everything in the global namespace. This is a problem when people want to not have your shit fill their application's global namespace, and function conflicts arise.
 
I never Google for standard quotes
 
I just googled "Global namespace C++"
0
A: Global scope vs global namespace

Eric ZWhen you declare a global variable int i for example, we say i is in the global namespace and has the global namespace scope. That's all. Excerpt From C++03: 3.3.5 Namespace scope The outermost declarative region of a translation unit is also a namespace, called the global namespace. ...

 
9:56 PM
It's completely unavoidable with C API's, of which bullet is a C Api.
 
@Rapptz Congratulations
 
Looks like C++ from the code snippet Bartek posted..
 
does it mean that when destroying objects
I have to destroy each part by hand?
 
@LightnessRacesinOrbit Thanks! Where are the balloons and dance girls?
 
9:57 PM
bullet can be exported as both C or C++ api, IIRC.
 
@BartekBanachewicz nobody gives a fuck
@Rapptz you don't get them until a later level
 
@BartekBanachewicz C++ terminology is "by fist"
 
@CaptainGiraffe haha
 
I can't do it.
 
need help with pseudocode, anyone game?
 
9:57 PM
No, I mean, really.
 
@ThePhD even in C it's avoidable
 
@Berzerker I'm not "game" but if you ask your question I may help.
 
I can't fucking dabble with pointers.
 
I just want a working physics engine.
 
9:58 PM
Ahhhh, wait.
 
Why would they require pointers.
@R.MartinhoFernandes You have spoiled me with C++11!
 
bullet has its API being translated to C at hte moment.
It's a work in progress.
 
@BartekBanachewicz Because of C.
 
@R.MartinhoFernandes but every fucking part of it is in C++
 
9:58 PM
@LightnessRacesinOrbit I've got most of it written, not sure if its right.
 
that's the point
 
Storing references is a pain.
 
@BartekBanachewicz But written by recovering (or not) C programmers.
 
if it was in raw C, okey.
 
@ThePhD That is irrelevant for the API.
 
9:59 PM
I would just wrap it.
But now, in its current state.
 
@R.MartinhoFernandes I know, but still. :c
 
Still what? It costs you two characters.
 
@ThePhD still better than storing non-owning pointers
 

« first day (901 days earlier)      last day (4063 days later) »