« first day (1371 days earlier)      last day (3594 days later) » 

12:00 AM
it's a joke, a scrub reference
take it easy harold
 
Sorry for my stupidity, be sure I told you things I don't manage.
 
do you guys use American or English spellings for your stuff in code?
like I have unrecognised instead of unrecognized..
 
same
I program in English.
 
also Python spells "epilogue" as "epilog" which is a valid spelling but I've never seen it before.
 
user3010322
I use both when I have name collisions sometimes.
 
user3010322
12:08 AM
colour and color ~
 
user3010322
The default is English.
 
You use what when
 
@Rapptz c.f. "prolog", "analog", "dialog", ...
 
they have gone
 
@ThePhD you fucking what
 
user3010322
12:10 AM
<3
 
@Rapptz I do write "dialog" (as opposed to "dialogue") as it's found American verbatim in so many APIs, and because I almost consider it to be a whole new word in its software sense
 
Yeah I kinda consider that to be "overloaded" too.
 
user3010322
@R.MartinhoFernandes If I have some collisions, sometimes inside of functions I'll use colour or something else to disambiguate.
 
My favorite moment in AoE3 was when British accent changed into American.
 
12:11 AM
i'm not like a biggot telling you repeat the >Oh God ....
 
@StackedCrooked :(
 
I'm telling you 'talk to the spirits'
you can understand more than me
 
It was around 1800 iirc. Settlers in the wild west.
 
hope no one tries to correct my spelling
 
12:12 AM
you di
you do
 
when I was in English class they'd always try to correct it
always bugged me
 
you do it
 
haven't noticed many spelling mistakes from you
 
you can do it
 
I tend to forget whole words for some reason.
 
12:13 AM
I meant the alternative spellings.
 
@StackedCrooked Me too, sometimes
 
my mistakes are worthless
 
@StackedCrooked Oh, fair enough then. As long as it wasn't all characters, because that would signify an impression that "speaking American" were the same as "progression into a modern society", which is a US bias I particularly despise
 
we need you
 
@StackedCrooked Our inner voice speaks too fast.
 
12:14 AM
@Rapptz for a moment I thought you'd said "when I was in English class they'd always bugger me"
 
we need evolved spirits
 
@Jefffrey ​​​​​​​​
 
so we need you all
 
someone new to add to the ignore list
fun
 
@ThePhD You what
How does it disambiguate anything.
 
12:15 AM
 
"Color" or "colour" are the same thing.
 
He means new identifiers.
like instead of auto&& color1 = ...; auto&& color2 = ...; he does color and colour
at least that's how I interpreted it
 
Ask a better question, get a better answer. Start here: w3schools.com/sql/sql_insert.aspRobert Harvey ♦ 22 mins ago
WTF is Robert doing promoting w3schools?!
 
@LightnessRacesinOrbit TOO FAST
 
12:21 AM
nn
@StephaneRolland: I thought you were going to stop spamming?
 
do you thinf i'm spamming ?
 
yes
stop
 
if you do i might think otherwise
 
Don't really care what you think.
 
i think you're right
but what is the lane where you are so wrong to me ?
 
12:24 AM
std::string<std::string>
silly typo
:<
 
@LightnessRacesinOrbit y u no plonk and move on?
 
if i stop rigth now is it ok ?
 
@Borgleader Where's the fun in that?
 
buh this is probably a dumb question but how do you send form data in a curl command?
 
12:26 AM
-d
 
then just write it as json?
 
I love Kalafina
 
Allan Kardec, 1850. The Spiritiism. The Rationnal way to explore the... what you want.
 
@Crow querystring format
just like it's found in the actual HTTP POST data
 
@R.MartinhoFernandes You might be right. It sounds like it's similar to Terry.
 
12:27 AM
@Crow the POST data (can be anything)
 
assumes no crazy encoding requiring MIME
@StackedCrooked no, it can't "be anything"
 
@Crow curl stacked-crooked.com/compile -d '{"cmd":"echo $RANDOM","src":""}'
Oh, form data.
I misread.
I assumed HTTP POST request.
 
anyway it really is bedtime baiii
 
@StackedCrooked that kinda worked, I guess I forgot the quotes on the outside
 
if i stay here whatever the things you make fun of me. Don't you think I'm trying to tell you there's something happening.
 
12:31 AM
> Lenovo recommends Windows.
I wonder if this is because I'm browsing the site on Linux.
 
link
 
anything look wrong with this? curl localhost:5000/api/login -d '{"email": "email@email.com", "password": "password"}'
 
@Borgleader lol great customisations
 
12:37 AM
ikr
 
12:51 AM
1 message moved to bin
 
i accept. but these were the words by which you could have understood.
i'm too small to explain what I don't understand
peace
remember Allan Kardec.
bye
 
Hi all, any OpenGL experts in the room?
 
No.
 
sorry, i didn't want to bother = Not my style. I will come back with concrete things for yout souls. In right time. If ever.
I = something i don't know. I will come back.
Cognac, though full of destruction, cannot kill me. @R.MartinhoFernandes
i just tell the truth, the way I'm seeing it.
 
1:09 AM
Didn't you say you were leaving?
 
But your right, sometimes my truth is wrong.
 
Apparently I took a wrong turn at Albuquerque and ended up in LooneyBin<C++>
 
The Spiritism: Let me re-tell you what the Spirits said: The Only law in the Universe is Evolution.
The only Law in universe: Evolution.
bye
 
Did we just get another troll?
Speaking of which, looks like our Knuth impersonator is back:
-3
Q: What is the point of "Order of Complexity" when constants are disregarded?

Dr Donald KnuthCan someone straighten me out here? Why is an algorithm that is O(9999999999^99999999999999999*n) considered O(n)?

 
@Mysticial Don't startle the witch D:
 
1:18 AM
@Mysticial No.
 
till you don't understand that YOU ALL DO SPEAK WITH SPIRITIS IN YOUR MIND...
this is what is important to gather, we are all one
sorry bye
 
wow, interesting day in the lounge, I see
 
Good morning.
 
@Borgleader that needs to go in the motd
 
hello
 
1:24 AM
So the guy with the 80-core machine sent me benchmarks of 100 billion digits. All in ram.
That's unheard of.
The CPU utilization is much better at 86%. But the performance wasn't that great. Likely due to the NUMA latency.
 
@Mysticial Is he running a supercomputer?
 
@MarkGarcia An 8-socket 10-core Westmere.
 
I don't usually link to my own question here but I'm really surprised no one's had any ideas so far! stackoverflow.com/questions/24803430
 
@Mysticial Hm. Don't know anything about that, but I remember seeing that VC++ backend guy in GoingNative remote connecting to a machine with that much cores.
 
Those benchmark log show some very interesting numbers. The relative timings of different parts of the program are very different from on a normal desktop.
I can start to see which parts are more sensitive to the NUMA and parts don't seem to give a shit.
 
1:35 AM
@Mysticial So you're serious working with this guy?
 
@MarkGarcia No. I'm just looking at the benchmark file he sent me.
The program outputs a file that has timestamps for when different stages of the computation are reached.
He actually sent me two benchmarks. One with 40 threads on Windows Server. And one with 160 threads on Linux.
 
 
2 hours later…
3:40 AM
We should have floating point enums in C++ enum bars{foo=1.5f} because why not? If I had a static cast it would work.
Maybe #define? But I don't want to get any strange looks...
 
4:02 AM
 
 
1 hour later…
5:22 AM
If my game has a speed setting hard-coded in the binary. Can I modify the it by editing the binary?
 
yes
 
@StackedCrooked Yes, but depending on the game, it may be non-trivial--some have anti-cheat measures, such as doing a hash of the executable code before allowing the code to run, or using a compressed executable so you have to decompress before modifying.
 
It is one member variable.
I tried it with a binary diff
And the result is.
Oh, wait it's not a member variable the single code change is this:
computerPlayer->setMoveSpeed(allComputer ? 200 : 20); // v1
computerPlayer->setMoveSpeed(allComputer ? 100 : 20); // v2
This seems to cause way too many changes in the binary.
Unless it stores other stuff in there. Like build dates.
 
@StackedCrooked Yes, many do.
 
The diff seems to have one change with dark color and the other changes are dim.
Let me check the manual :P
Oh, there is none.
Oh, the dark color is the currently selected one.
I suspect there's some kind of crc going on that causes the single differing byte to spread all over the code.
Ah well.
Might be a good SO question.
@JerryCoffin I don't think it's compressed. (It's my own old project btw.)
So I just recompiled with values 100 and 101.
The result is that there is a difference of value 1 in the binary every 20 - 30 bytes..
 
5:44 AM
@StackedCrooked ...and some people wonder why binary patching has fallen out of fashion.
 
If I change some random byte with a hex editor and try to run it still works...
So it's not a integrity check which is checked at startup.
@JerryCoffin Maybe it became even more appealing to the some people who have insane pattern-matching skills.
 
6:09 AM
@StackedCrooked That's not surprising--when I suggested that, I didn't realize this was something you'd written yourself. If you'd done anything like that, you'd almost certainly realize it.
 
Btw, I noticed that clang++ on Mac no longer bothers to make std::random_shuffle random. (Setting a seed based on the time stamp has no effect.)
So I had to update to modern random.
Ok. Two identical builds are also different.
Perhaps each object file gets a unique id when it's created.
And they end up into the big binary.
 
Also timestamp macros.
 
I'm not using them. Maybe in the libraries..
Boost wave and boost spirit use it at some places.
TIL @Fred is disgusted by a single nested if. (Around 51:53 in his latest video.)
 
Do you gus know any sutiable methods of tokenizing a string?
I'm writing this grep like script. I want to take input such as
"red blue %{0}" and turn the %{0} into another string.
I'm not sure where to get started or where to look. Been researching for a while now.
 
6:26 AM
I think %{0} is too complicated.
%1, %2, %3, ... should be sufficient
If I understand what you are doing..
 
What the hell
lol
Did you just have that memorized?
 
have what memorised?
 
and yeah it is kind of weird.
at first i wasthinkign useing something like find_first_of() but I needed multiple deims
I wanted to take the %..} and then process the char before the lat }
gonna be a weird one
 
I'm the one who wrote the stuff I linked :v
 
6:30 AM
Ohhh haha, I just read that.
Well. I'd like to stick within the realm of the STL
Or building it up
I've been searching through practice c++ questions and tests on the net in the recent weeks. came accross this one and I've gotten to deep to stop :/ lol
 
it's not really hard to write
just do a simple recursive way of doing it
you'd probably never get a stackoverflow anyway
what does the number in the format string mean anyway?
 
> 7.21 Runtime type identification (RTTI): Runtime type identification adds extra information to all class objects and is not efficient. If the compiler has an option for RTTI then turn it off and use alternative implementations.
I wish Agner was a little more comprehensive about this.
 
Yeah I've looked around SO, and had no luck finding something close to what I'm looking for.
and imagine this
cat input.txt | program "big %{0} red black"
well then I'd turn that into regex
"big (.)* red black"
that would match things like big dog red black
or big x x x x x x x x red black
the 0
 
um, in the case of a family of algorithms with a base class or interface, you can just avoid the base class or interface entirely if you use templates, am I right? I'm sure there must be examples of situations where this doesn't apply but I can't think of any
 
is jsut a number in that case, it doesn't do anything really.
 
6:36 AM
is this the main idea behind policy based design, since it was described as compile-time strategy?
 
yeah it's just a number
if i find something like %{[any number]} then I'd copy it into a string
or regex
as a (.)*
string str = "STARTDELIMITER_0_192.168.1.18_STOPDELIMITER";
unsigned first = str.find(STARTDELIMITER);
unsigned last = str.find(STOPDELIMITER);
string strNew = str.substr (first,last-first);
ahh something like this could work
first as %{ last as } take the x
or xg or xsx
at least, it's in the general direction of where I'm going. kind of
 
5
Q: Simple parsing for string formatting (version 2)

Chris_FThis is my second attempt (version 1) at writing a string formatting utility which uses parsing. This time I more explicitly designed it as a finite state machine. I have very little experience with writing FSMs. As before, I'm not 100% sure that this code does not contain any critical flaws. In ...

 
@ThePhD in the end I got rid of the abstract class and since all of its children were just implementing this tiny function, and instead went with freestanding functions that I pass around wrapped in std::function
 
Oh my god, PARSING!!!!! god damnit, that's the term that's been on the tip of my tounge
 
user3010322
@AlexM. You wat.
 
user3010322
6:48 AM
So, quick question for everyone.
 
user3010322
Is it impossible to use Paypal to donate to someone in a different country?
 
I don't beleive so.
Definitely not.
I used to perform transaction with a guy from india very often.
 
@ThePhD 1 interface for some algorithms that apply a function to a specific datatype; instead of implementing a new class for each algorithm I wrote some freestanding functions instead
@ThePhD you can use paypal for worldwide stuff without problems
 
@ThePhD Nope.
@JerryCoffin A lot different than what I wrote lol
I don't check for matching braces.
 
user3010322
Wat.
 
user3010322
6:54 AM
Wait, I thought your implementation did?
 
what?
 
watt
 
Well. I do.
Technically.
But you don't have to escape }.
So {{} returns {}
 
user3010322
Oh, right.
 
user3010322
That makes sense.
 
user3010322
6:55 AM
} should only mean something if preceded my an unescaped {
 
I kidna see where you were going with it.
 
user3010322
But I'm sure that'll drive people insane.
 
user3010322
cough Jerry cough
 
I don't like escaping }. Seems silly.
 
template <class Collection>
void Client::ConvertPixels(Collection& pixels, std::function<Pixel(const Pixel&)> func)
{
	std::transform(pixels.begin(), pixels.end(), pixels.begin(), func);
}
yay, this is much simpler than what I had before
 
6:57 AM
don't use std::function for parameters
 
why is it bad?
 
it has overhead
 
Xeo
It's the wrong tool
 
std::function is for storing functions
 
what should I use in this case?
 
6:57 AM
not for passing them as parameters
a template parameter
template<class Collection, class Function>
 
let me try that
 
Xeo
template<class R, class F>
void map(R& r, F f){
    using std::begin; using std::end;
    std::transform(begin(r), end(r), begin(r), f);
}
 
user3010322
Lel.
 
Xeo
But there's really not much reason to have such a function - just use std::transform directly
or boost::transform
 
you can use templates for anything huh
 
6:59 AM
templates are pretty good
 
just how complicated is a C++ compiler
 

« first day (1371 days earlier)      last day (3594 days later) »