« first day (1101 days earlier)      last day (3853 days later) » 

7:26 AM
@ScottW You're supposed to always use the comma for adjectival sequences but, as you say, it can still "look right" without it in some cases.
IME it tends to work without the comma when you have relatively few adjectives (2-3 only) and each describes a completely different sort of property.
@StackedCrooked It's 70% of what a comma does.
@ScottW Yes.
 
fuck formal thinking
 
user1804599
0
A: How do I change this variable into an array c++

not-rightfoldHere is an example that uses actual C++. #include <algorithm> #include <functional> #include <random> #include <vector> std::mt19937 prng(seed); std::uniform_int_distribution<> dist(MARGIN / 4, MARGIN / 2); std::vector<int> radii(16); std::generate(radii.begin(), radii.end(), std::bind(dist, pr...

 
I have to admit, I have no idea what separates a formal fuck from an informal one.
"I give my Royal Assent for you to insert your penis, kindly have five witnesses to sign"?
well I gotta admit, I can't imagine the Queen of England fucking at all, let alone doing it like that
welp
I'm gonna catch like, 1h30 sleep
or try to at least
 
@not-rightfold I would have done a lambda rather than bind (no extra include necessary)
 
user1804599
@Rapptz I like std::bind. :P
 
7:41 AM
hurm hurm, sbi's offer looks interesting
 
They both work the same way so in the end it's a personal thing.
 
user1804599
In the end it doesn’t even matter.
 
@ScottW not really, gotta finish my education first n'stuff
 
@not-rightfold lol
That song's so old.
 
also what
11 hours ago, by tony b
f*** u
10 hours ago, by sehe
@not-rightfold It's in good condition
made me laugh too
seems like I've been missing a lot, this whole "life" thing I got is overrated
 
7:44 AM
Should probably sleep. It's 3:45 AM so I could go to bed 10 minutes earlier than sehe.
lol I'll see if I can help
 
Also I've noticed that in lyrics to "Get Jinxed"
> [Intro]
> Blah blah blablah.
@ScottW you makin a game?
console?
ah, like, CLI.
write it in Haskell!
 
Xeo
Eh, Rapptz seems to have some aversion against Haskell
 
what
so what are you going to, use, uh, C?
I despise inferior languages.
damn, my stomach hurts
I drunk too much wine yesterday
 
user1804599
@ScottW Use Erlang.
 
user1804599
Or COBOL.
 
7:52 AM
Erlang is good for servers, but I fail to see its advantages in game programming vOv
how is it not?
@ScottW doesn't matter.
I mean, the only thing that really changes is perf requirements.
But since you should have "fuck perf" attitude already...
@ScottW you also rarely implement those.
 
@ScottW CLI physics?
 
I mean, that obviously depends on the resources you want to use, but still...
 
user1804599
> 1, 10, 11, 2, 20, 200, 21, 3
 
user1804599
This sorting is funny.
 
Alphabetical sorting?
 
user1804599
7:56 AM
ASCIIbetical.
 
Or alphanumerical?
Or is that not a word?
@ScottW People are gonna call you Ass Key Jones.
 
Hai all. How ya all been?
 
spot on.
 
@GamesBrainiac I've been fine.
 
@ScottW get any sleep?
@StackedCrooked I wanted to ask, how long does Coliru store files?
@ScottW Whats on your mind then?
 
7:59 AM
I want to store them forever.
 
@StackedCrooked every file has a unique ID, and you have only so much space. :P But I do love Coliru, its awesome :D
 
But I can't make any guarantees of course. If get hit by a bus then coliru will probably go down after a few days or weeks.
Because disk cache has gotten too big.
I might have a script that deletes it every few days, I don' t remember.
 
@StackedCrooked Its written in Ruby, who knows what it does :P
 
@ScottW He's my biggest promoter :)
 
@StackedCrooked what are big friendly polar bears for, rite?
 
8:01 AM
@ScottW I don't plan to add new features. It's probably gonna stay like it is now.
@ScottW I know sweetheart.
Also Sourav.
 
Xeo
> Neither boost::any, nor the proposed version of std::any allow me to obtain a pointer to the stored value without knowing the stored type. This makes std::any unusable for any kind of type erasure.
 
I thing its an upvote-ponzy scheme.
 
@Xeo lol
@GamesBrainiac We are part of a new nation. We shall prevail!
@Xeo Is boost::any's copy constructor a deep or shallow copy?
 
user1804599
Deep.
 
Ah, it's a deep copy.
 
8:09 AM
Whats the difference? Its still a copy.
 
Shallow copy is not a real copy.
If you modify the copy the original is changed as well. Because they point to the same object.
 
Hmm, I see.
 
@StackedCrooked that's not even a copy, that's just two references to the same object
 
@thecoshman My point exactly, so why call it a shallow copy at all?
 
a shallow copy is where you copy an object that it self contains references, but both these two objects refer (internally) to the same object)
 
8:15 AM
@TemplateRex nah. a 4" S3 mini. no tablet ;)
 
(for completeness) a deep copy is one where N objects becomes 2N. Any objects referenced internally by the main object you want to copy, are also copied. Completely detaching the copy from the original
@GamesBrainiac not entirely sure about the contexthere
 
shallow copy = copy the pointers addresses, does not copy the values contained inside
deep copy = clone (all values are copied to other memory locations)
 
user1804599
“Shallow copy” only makes sense on containers.
 
user1804599
It means that you copy the container, but not the elements.
 
@ScottW that is correct :p
 
user1804599
8:22 AM
And in C++ it’s silly.
 
user1804599
Copying an array of objects of reference types in C# does a shallow copy.
 
java & c# both do ... shallow copies by default
 
user1804599
So deep, so hard.
 
user1804599
tiefus
 
@not-rightfold oh you
 
user1804599
8:26 AM
oh me
 
@CatPlusPlus How are you doing?
 
He's going around making love to everything
 
@thecoshman No its like shallow copy just gives you the object reference in python, so I feel like it has no uses! :P
 
user1804599
Why do people use the terms “call-by-value” and “call-by-reference” to refer to “pass-by-value” and “pass-by-reference?”
 
user1804599
I don’t understand how you can call something by value. :v
 
8:30 AM
@not-rightfold objects can be containers too in this context
 
user1804599
> two
 
user1804599
🍐🍐🍐
 
I hate testing my own software/apps ... always so many bugs at the start
 
@not-rightfold shallow copy is the heart of the flyweight pattern - which is not about containers ;)
 
user1804599
Oct 15 '10 at 7:55, by vaibhav
anyone dere..?
 
user1804599
8:33 AM
:P
 
user1804599
Oct 15 '10 at 14:39, by spoulson
Anybody here good with DirectX?
 
user1804599
@PUPPY BIN IT
 
@Telkitty猫咪咪 hence, testing
 
@ScottW The original owner(s?) disappeared shortly after it was created.
 
@JerryCoffin in other words, we are all squatters
 
8:34 AM
@ScottW You can, and sometimes it's been changed, but was was Lounge<C++> at the beginning.
 
@thecoshman then when it is almost bug free, I start having this immerse fear that I would create more bugs by fixing a new one.
 
@Telkitty猫咪咪 Unit tests? TDD?
 
@thecoshman Not really. For a while we started a second room which would have some owners to keep it in line. Mods then merged them, and made everybody on the "Frequently in this room" list an owner.
 
@JerryCoffin oh right
@Telkitty猫咪咪 how are you testing? just trying random things?
 
user1804599
Testicle-driven development.
 
8:36 AM
I have a list to tick off
 
In Japan: Tentacle driven development
 
@Telkitty猫咪咪 yuck. Can't be many tests.
 
permutation of all possible controls
 
@Telkitty猫咪咪 o_0 you... mean like "run automated test suit" right?
 
user1804599
> suit
 
8:38 AM
field testing gps related stuff
 
Non-repeatable tests are the best.
Once you fix them, they never fail again.
 
@ScottW lol
 
user1804599
Use “test test test testicle” as test data and forget to take it out before shipping.
 
FDTD? failure driven test development
 
@not-rightfold o_0 I know it is not 'sweet'
 
8:43 AM
@ScottW without fail. I get existential doubts if i answer without actually running code testing it.
 
@not-rightfold I've used "(╯°□°)╯︵ ┻━┻" in test data :P
 
user1804599
@thecoshman ¬_¬ lemme guess to test support for non-ASCII characters?
 
WTF why did I leave a debug session runnnig halfway through on Friday? Did I think I could continue it today?
 
user1804599
Because you suck.
 
@R.MartinhoFernandes Sounds like somebody was in a hurry to leave Friday night.
 
8:44 AM
@not-rightfold can't recall actually...
 
@R.MartinhoFernandes maybe you left out of frustration? Or the bus was coming? Or you simply dozed off and forgot? :P
 
@ScottW Of course they do. Without a home, what good would the homing beacon be?
 
@ScottW yes. Others call it power outlet ;)
 
user1804599
homing bacon
 
user1804599
Cool.
 
user1804599
8:51 AM
Voting machine software in Belgium is open-source.
 
Well, almost 0300 here. I guess I should go try to get at least a little sleep...
 
user1804599
And written in C with French comments. :v
 
user1804599
/*
   Envoie une commande au LCD
   Parametre: commande a executer
              donnee propre a la commande
   Rend void
*/
 
user1804599
> Lcd_Caractere(3, 0x38);
 
user1804599
Who the fuck writes code with non-English names and comments. :|
 
8:57 AM
> Rend void - that's the most brilliant part
oh fuck. I just typed return <newline> { and instantly remembered why JS sucks.
 
user1804599
No, that’s nice.
 
user1804599
You should be punished for putting { on a new line.
 
=\
{ after newline is the only right style
 
user1804599
No. It’s retarded.
 
it's symmetric
 
9:06 AM
@not-rightfold anyone writing code only for a non-English company
 
@ArneMertz nope. normal people write only in English
 
@Abyx there's no such thing as "normal people" - there are no norms for people :P
 
(or in what they think looks like English)
 
and no, many people dont write english. I've seen C++ code with Cyrillic (!) comments
 
goto cleanup - please help yourself
 
9:10 AM
@ScottW I see how your brain has been messed up :P
 
@ArneMertz lol I see that a lot.
 
Xeo
@ArneMertz The Nintendo Revolution SDK had Japanese Comments
 
user1804599
C++ is beautiful.
 
user1804599
@Xeo Many Vim plug-ins have Japanese readmes. Super annoying. :P
 
9:38 AM
PHP was never invented, it just came into existence.
 
@sehe Why would you not want to update your Java? At least as a security measure, if you have to run it anyway.
 
Why would you not want to update your syphilis?
 
9:56 AM
@R.MartinhoFernandes You have reached the point where your analogy simply does not apply anymore. :)
 
@wilx because just uninstalling it saves you a lot of work and annoyance. Especially on Windows when you usually dont log in as admin.
 
@ArneMertz You can uninstall it. But if you have it and have to use it?
 
@wilx then I'd have to deal with it, including maybe updating it. But sehe's point still applies: even if I had that pest and if I had to deal with it, it won't get better just because so many devices also have it. So there's no point in advertising it that way.
 
Can I subtract two null pointers?
 
@R.MartinhoFernandes You can, if you do not tell anyone!
 
10:06 AM
@ArneMertz You suck at advertising.
 
@R.MartinhoFernandes IIRC pointer substractions are UB if they don't poitn to the same array/object - that includes null pointers
 
Then maybe convert to std::ptrdiff_t and subtract those?
 
@ArneMertz Ugh, so I need to pick a random pointer to make an empty range :S
this, this it is.
 
@wilx You're asking the wrong guy. Also: "update Java" presumes it was already installed. Way to assume :/
 
OK :)
 
10:12 AM
@R.MartinhoFernandes yeah looks like it: $5.7,6:
>Unless both pointers point to elements of the same array object, or
one past the last element of the array object, the behavior is undefined.
$5.7,6:
> If two pointers point to the same object or both point one past the end of the same array or both
are null, and the two pointers are subtracted, the result compares equal to the value 0 converted to the type
std::ptrdiff_t
so basically you can just write std::ptrdiff_t(0) instead of subtracting that pointer from itself
 
"or both are null", so I can actually subtract two null pointers.
 
@R.MartinhoFernandes where does it say that?
 
In your quoted bits.
 
ouch ok didnt see that ^^
 
Xeo
@R.MartinhoFernandes Half-open range?
Wait, nvm
 
10:26 AM
welp
 
@DavidRodríguez-dribeas What about it? I suggest you clearly give me the failing example, because the test program I posted a day ago already contains that precise test in lines 60,61? (PS. I noticed that both the coliru's linked from the answer mistakenly printed B instead of the merge results, fixed that Could this have been your confusion?). — sehe 1 min ago
@DavidRodríguez-dribeas I'd really appreciate if you could review your judgement and retract a downvote, as I think it's wholly unfair unless you can point me an example that is failing. — sehe 53 secs ago
 
nurse utterly failed to get a usable amount of blood from me.
 
^ Post working algorithms, get shot down without evidence. GRRRR.
 
so I stopped sleeping off the horrible, caused a bunch more horrible by drinking massive amounts of shit, for absolutely fucking nothing.
as per usual.
 
@DeadMG Aw, maybe they should just tap an artery :(
-1
A: Merging two lists efficiently with limited bound

seheYou could write an algorithm to merge them by walking both sequences sequentially in order, inserting where appropriate. I've chosen a (seemingly more apt) datastructure here: std::map<Value, Occurence>: #include <map> using namespace std; using Value = int; using Occurence = unsigned; usi...

^ the funny thing is, his own answer just vaguely waves at the same algorithm without even attempting to show the code.
Ah well, I'm off to by a graphics card.
 
10:37 AM
@DeadMG get any sleep last night?
 
@GamesBrainiac No.
 
user1804599
10:51 AM
Hello, world!
 

« first day (1101 days earlier)      last day (3853 days later) »