« first day (2277 days earlier)      last day (2656 days later) » 
00:00 - 17:0017:00 - 00:00

12:38 AM
@nwp oh gdi, now I want to write one of those again. (I made one for a class project in uni, theyve since improved the API)
Although I might wait for the SC2 one, I think Blizz said they were opening one up for AI research? idk if you need to be a partner though
 
nwp
I wonder how the bots would do against pro players.
 
That would be interesting to see.
Hahahaha the flying eng bay is distracting the lings (who cant even hit it) while the vultures do dmg
10/6.5 strats
 
nwp
guess they only tested against the regular broodwar AI that doesn't do that
 
maybe
 
nwp
the person who named their bot Flash should get an A for the name and an F for making it play protoss
 
1:06 AM
@nwp A half-decent one that only takes a few days to mess with is vindinium.org.
 
I'm actually happy my wife bought this. It has to be the best Jenglish I've seen yet:
"It is hard to become wrinkles which stop with a debt."
I couldn't have said it better myself!
 
lol, that's some really nice text. Pelota Lavando probably is the scent _____ Lavender. Not sure what the first word would be. It's definitely called a Laundry Ball
 
have lavender in the yard, can't smell anything
 
it’s "washing ball"
@Aaron3468 think 'lavatory'
'lavender' shares a root cos it has been tied to washing things for a while, perhaps more obvious with the modern French (lavande) or Italian (lavanda) spellings
Basque pelota (pilota in the original Basque language also pelota vasca in Spanish, pelote basque in French) is the name for a variety of court sports played with a ball using one's hand, a racket, a wooden bat or a basket, against a wall (frontis or Fronton) or, more traditionally, with two teams face to face separated by a line on the ground or a net. The roots of this class of games can be traced to the Greek and other ancient cultures. The term pelota probably comes from the Vulgar Latin term pilotta (ball game). It is a diminutive form of the word pila which may relate to a hard linen or leather...
 
洗濯 - sentaku - refers specifically to doing laundry (the translation of washing is okay, but naive). As for lavanado, looks like you're correct and it's not english
 
1:16 AM
I don't mind having fragrant osmanthus tree in the yard, I love flowers that I can spot the scent before I spot the actual thing with eyes.
 
well it’s trilingual packaging
 
@LucDanton In other words, asking for trouble :) Mistranslations are always amusing to find
 
1:29 AM
Hmm, I've never seen pelota played before
 
 
1 hour later…
2:41 AM
> "you can submit a PR"
submits PR
waits year(s)
[people](https://stackoverflow.com/users/819272/templaterex) prod maintainer
"it has conflicts, can't merge"
@JerryCoffin I don't wash my balls
12
 
 
1 hour later…
4:01 AM
can you imagining computing without internet?
 
4:49 AM
@Telkitty I can not only imagine, but quite easily remember.
@sehe I'm tempted to ask whether your wife knows this, but I doubt I want to know the answer to that.
 
5:29 AM
@R.MartinhoFernandes Boost.Test reinvents a convoluted form of zipping
the usual two pet peeves of mine: no good story for ranges (duh), and tests that are harder to compose than they could be
> To that respect, C-arrays are not forward iterable containers
 
 
1 hour later…
6:45 AM
 
7:08 AM
finally, I got the old code to work again
but I can't celebrate because I budgeted in 1 day but spent 10 days (part time) to get it going
at most it's a proof that I am not as dumb as I could be
 
@Telkitty Heh. What old code?
 
objective C </faint_from_embarrassment>
 
@Telkitty MacOX X? Objective C always looked interesting to me, since it is basically Smalltalk in C.
 
@Telkitty Oh that's the common IT estimate gap :D
"It will take 2 days"
Two weeks later "it's almost done!"
(emphasis on almost)
 
7:26 AM
@wilx ios
 
@wilx Obj c is an amazing lang...i enjoy to code objc way more than c. /
 
@Rerito it was working ... until recently, it's not like I am adding new functions
thought now most ios code uses swift
 
@Telkitty I meant when estimating the time needed to achieve a task
I constantly underestimate by a factor 2 or 3
 
same here
 
7:41 AM
^ /cc @R.MartinhoFernandes
 
8:40 AM
> I never thought I would write a comment like this on /cpp ever but you look so nice
Great way to start the day.
 
@Morwenn #Fabulous
 
Well, yeah xD
 
Ven
8:55 AM
hi
@milleniumbug that'll have to wait for 2018
 
Oh, and I've just been contacted by Louis Dionne to work at Amazon.
 
Hm, apparently cross-domain requests to Coliru broke when I updated the machine to Ubuntu 16.04.
So the example programs on cppreference are broken.
 
whoops
 
9:11 AM
Although if I try to run them on cppreference I see that requests arriving here and they are actually executed and a response is sent.
Hm..
@Morwenn cool
 
@StackedCrooked I'm not moving anywhere anyway, so it will be a « no » from me :/
 
I hate the breakage of coliru
I can't figure out what's wrong.
 
@Abyx 1337 number for Afghanistan.
 
@Abyx Wait, what are they doing in Pakistan?
Maybe it's near the Afghan border.
 
9:35 AM
@Abyx What does it have to do with democracy?
 
@R.MartinhoFernandes dunno, maybe there was another Osama or something
it's a meme
 
Ah, it's probably drone strikes against Taliban.
 
Ven
@Morwenn ewwwww
I sure hope their C++ team they tried to recruit you for are better than the ones who did the Amazon C++ SDK.
Those furiously suck at C++.
@StackedCrooked example?
I think you can just send back a accept: * to preflight CORS query?
 
9:52 AM
@Ven Plz add details :D
 
Ven
The C++ Amazon SDK sucks in vastly different ways. First off: you can't use std::string. You have to use their own string class, that they hacked together for android, but force you to use everywhere.
They have their own allocation layer, with their own facilities for shared ptrs and other stuff. Don't even try to touch that.
You have "Client" objects, which supposedly represent a connection to amazon, but there's still a global AWS::InitSDK() you have to make – or any attempt to create an object will segfault (in a part of the code that does sha256)
Their logger system doesn't work. Plainly. Or maybe the documentation is just that terrible: they don't even list log levels. And the logger in examples/ directory is broken as well.
@Rerito should I go on? :)
 
Yes please
 
Ven
Oh. and they also have two setter overloads for each setter: one with && param, one with const &. Which also sets another boolean m_didSet[Property]. Instead of just... using a wrapper class.
 
It's very enjoyable
 
@Ven What the fuck.
 
Ven
10:00 AM
 
Apparently it may be for « on the backend of the search engine that
powers Amazon » at A9. Not sure how it relates to the SDK.
 
@Ven ...that's... levels of bad I don't think I've seen before. At least of this kind.
Either way I'd assume Louis not to agree to a job that forces him to write shitty C++... :P
(If he did that, I'd have to fully reevaluate my opinion about him. :P)
 
Ven
I'm gonna stop on that one, but there are many more suckings lurking in the shadows. I could go on talking about how their error facility simply doesn't work: when some queries to our custom S3 endpoint 403'd, the error the SDK gave us was "unknown region eu-eu"
 
Apparently they're in the middle of porting the thing to C++14.
 
Ven
@Griwes yeah, hence my original "NOT THIS TEAM. NOT LIKE THIS."
 
10:03 AM
@Morwenn ...that sounds like a gigantic source of horrors though.
 
@Griwes Years of fun :D
 
You'd probably end up fixing those horrors, but you'd still witness them. :D
 
@Ven I have a test setup here. As you can see I can reproduce the issue. (See the javascript console log for output.)
 
Ven
@StackedCrooked coliru needs to answer with header Access-Control-Allow-Origin: <host that queried you>
(or *, I think that should work)
 
Hm, I did specifiy that in the webserver code.
 
10:08 AM
Hello
I am new to c++ and have a problem to call a method from a .h file in my main cpp
 
@Ven Also it used to work up until I upgraded my machine to Ubuntu 16. However, that may also have triggered an upgrade of sinatra (the webserver app).
So maybe something changed there.
 
How do I call the encode method in my main.cpp file
// Builder.h file
namespace foo
{

namespace builder
{

class SEnc: public foo::Reference
{
public:

virtual bool_t encode(const char_t* in, const char_t* out) = 0;

};

...
 
@JohnDoe2 probably you should learn first some basics of C++ OOP before coming here and dumping such abc questions?
 
Yes it is a "stupid" question but I am actually really in a hurry to get a solution
 
Ven
@StackedCrooked I don't see
 
10:15 AM
Not sure if meaningful.
 
Ven
@StackedCrooked I said "Access-Control-Allow-Origin", not "Access-Control-Allow-Headers" :)
@StackedCrooked You can add response["Access-Control-Allow-Origin"] = request.ip, I think
(maybe "*" would work. i dunno)
 
I'll try it.
Hm, the "*" seems to work.
 
@Ven Having to initialize a library by calling a function is not a bad thing. IME, it is nearly impossible to initialize a library automatically.
 
@wilx <iostream>
 
@Ven lol, that's pretty bad.
 
10:24 AM
Or a function with a static function-local variable that uses that variable as a sort-of call_once.
 
@Griwes That has no global state that I know of.
 
@wilx The inclusion of the header guarantees you initialization before any global construction in your given TU.
en.cppreference.com/w/cpp/io/ios_base/Init, in case you don't know it.
 
@Griwes That's error prone. People tend to think of it as magic and call it during shutdown when the static function-local object is already dead.
 
Ven
@StackedCrooked good. :D
 
@wilx Well clearly creating API objects during global destruction is a bug.
(In their code.)
 
10:26 AM
@Ven Thanks :)
Still don't understand what broke it though.
 
You put a warning in your documentation that that is not supported and yell at your users for doing that.
 
Ven
@StackedCrooked That I can't tell you, really...
@Griwes now now, don't go full ThePhD on your users...
 
@Ven Oh come on.
This particular situation is 100% warranted to be undefined.
Global destruction means you're shutting down hard.
 
@Ven Ok no prob :)
Code is getting really hacky though.
 
Ven
not sure what you'd expect from some untyped roobie! </fold>
 
11:02 AM
@Griwes OK. But that is a rather simple case. I have had issues with mutexes that could not be used during shutdown. Well, it was Visual Studio 2013 or 2015... Also, the global objects construction on Windows is done under the loader lock, IIRC, so you cannot do some otherwise very useful thing during that time.
@Griwes After literally years of trying to make this work I did do that. :)
 
@wilx Isn't only DllMain run under a gigantic lock?
 
@Griwes Nope.
 
Eh, another reason why function-local statics are superior on Windows. :P
 
They are?
Are they?
 
^ I predict a steep rise in reported right-wing violence.
 
11:16 AM
Wait, they would be normally deported if attacked? I'm confused.
 
@Griwes They aren't. Up until some very recent Visual Studio they were not thread safe. They are subject to the same destruction issue I have had with mutexes some time ago because they are destructed under the loader lock as well, AFAIK.
 
> Germany has seen a sharp uptick in hate crimes and attacks on refugee homes in recent years as the country has taken in record numbers of asylum seekers.
You're late.
 
@R.MartinhoFernandes No, I am, not. It can be even steeper/worse. :D
 
I really don't understand what the decision is.
Why would you deport the victims?
WTF
 
@wilx Ah, so basically you're saying "screw Windows". :P
(I know about the no-thread-safety bug.)
 
11:21 AM
@R.MartinhoFernandes ¬_¬ that's probably a joke I don't want to make...
 
@Griwes I am saying this shit is hard and having to call a function is actually very reasonable. :)
 
No.
No, it still isn't.
Hell, even forcing me to create an API object is more reasonable.
Because then I can't just make a mistake of not initializing it.
TRWTF is how it can never be caught at compile time and will always be caught at runtime.
 
@R.MartinhoFernandes AFAIK, the point it that even if you were to be deported but you somehow become a victim of some far-right violence you won't be deported even if the decision was already made to deport you.
 
> until at least the end of the investigation or trial of the crime.
How is this not the default?
 
nwp
germany is a shitty country with shitty people
I thought you'd have figured that out by now
the real issue is that I can't find anything significantly less shitty
 
SSL_ERROR_NO_CYPHER_OVERLAP
 
@R.MartinhoFernandes Where?
 
12:09 PM
Goodreads.
I have only a small set of cyphers enabled for SSL.
 
Is there anyone who develops drivers in mac?
I have a USB HID device to communicate with. Some settings need to be changed and read from device. Will I need to make a driver, or are there easier methods to communicate with HID devices?
 
12:33 PM
@ThePhD I got one as a gift! :D
 
@LucDanton Sigh.
 
@R.MartinhoFernandes Holly molly!
 
@nwp Your language and your content does not match the rules. Please stay to objective arguments
 
lol 3DES, CBC, TLS 1.0
@ArthurP.R. What.
 
Sorry I don't like blank statements this way :|
 
12:50 PM
Which rule did he break?
> Kyrostat is not dead.
This is a rule, btw.
 
For example the rules of how smart people talk to each other.
I thought especially programmer on stackoverflow now how to speak objective and correct
However that's not my main intention here.
 
@ArthurP.R. You know what else they know? How to speak subjectively and carelessly.
 
@matt007 libusb or something?
Interestingly, there is also TLS_RSA_WITH_AES_256_CBC_SHA and TLS_RSA_WITH_AES_128_CBC_SHA beside TLS_RSA_WITH_3DES_EDE_CBC_SHA but those do not get used.
 
nwp
1:11 PM
@ArthurP.R. I think your understanding of the lounge and mine differ a lot. You may interpret my text as a poor way to objectively state that I am generally unhappy with how germany is doing lately.
 
Ven
Sigh, HTML. <a><input></a> means that, when clicking the input field, you follow the link. Bah.
 
@nwp I'm sorry it's worse of mine to have any previous thinking about how things are. It's difficult to decide whether it's needed to apply any thoughts I've had about situation or whether I just should study the situation
 
hello all!
anyone here participating in facebook hacker cup 2017?
 
nwp
0
A: Weird flow in loop

Yves DaoustYou may be experiencing one of the following situations: func never returns, func never returns true, doWork never returns, semaphore.wait waits forever, updatePosition never returns, there is a compiler bug, the compiled file was corrupt, the NSA took control of your scheduler.

 
user1804599
Hehe, if you rotate the Sentry logo by 120 degrees it looks like a pile of poo.
 
user1804599
1:24 PM
 
Ven
1:35 PM
hi rightfold
 
@rightfold It looks like poo anyway
 
Ven
> On success, sbrk() returns the previous program break. (If the break was increased, then this value is a pointer to the start of the newly allocated memory).
What does that mean, sbrk? Do you return the previous or the new??
Actually, I think it means you get a pointer to the base, not the top
meh
 
1:53 PM
> enthusiastically promote user-centric action items
@Ven It returns the previous break pointer, which corresponds to the beginning of the newly allocated memory, which is what that description tells you. :P
 
@Ven The break is the end of the allocated memory. The previous end is the new beginning.
 
Ven
@Griwes alas it's not a portable behavior :[
 
Why are you even reading the docs for sbrk?
No-one in their right mind uses that shit anymore.
 
Ven
I need to use it.
 
Argh, I have a pure virtual function call and there are not ctors involved. WTF.
 
1:56 PM
why
 
Ven
YES GRIWES I KNOW GRIWES BUT SCHOOL, GRIWES.
 
@R.MartinhoFernandes dtors?
 
@Ven Is the exercise literally saying "use sbrk"?
 
Ven
it's literally saying "reimplement malloc using brk and sbrk"
and since I'd rather use sbrk than brk...
 
1:58 PM
kek
 
Ven
kek
 
you're so fucked, man
 
I'm guessing there's some memory corruption perhaps?
 
Ven
well, it's about ~50 lines or so.
it's just zzz
 
How would you go about deliberately causing a pure virtual function call without being in a ctor or dtor?
 
Ven
1:59 PM
void *malloc(size_t s) {
  void *ptr;
  ptr = sbrk(s);
  return (s == (void *)-1 ? NULL : s);
}
: ^)
 
I get how it's good that people know how basic shit works... but ergh...
 
lol good luck implementing free() for that
 
@Ven You don't have to implement free as well?
 
Ven
@Griwes ;D
@R.MartinhoFernandes can be a "super" call as well
 
free can be a noop
 
2:00 PM
@Ven Not good enough. Your malloc might not return sufficiently aligned memory.
 
Ven
@Griwes I'll just use a linked list with all my allocs
 
nwp
@wilx how would you even know about alignment requirements? You just align on 8 bytes and hope it is good enough?
 
@Ven shouldn't you use ptr in the return statement?
 
Ven
@ratchetfreak yup, right
 
2:01 PM
@nwp alignof(max_align_t)
 
@nwp You align to the minimum that the hardware might need.
 
oh this is just painful.... I had some letter through about having to renew paper work thing... may parents emailed me the smallest photos you could imagine
 
@wilx That's, e.g., 1 in x86. You mean the maximum :P
 
@nwp I think C mandates that malloc aligns to at least 16.
 
people in the 70s would call these tiny photos
 
2:02 PM
@R.MartinhoFernandes Some of the SSE shit requires alignment, hence minimum.
 
Ven
@Griwes nah, sizeof(int)
 
@wilx Yeah, but lower alignments are not forbidden.
 
@R.MartinhoFernandes OK, I do not know this very well but I think (might be wrong) that some operations/instructions actually cannot work with insufficiently aligned memory.
 
> If allocation succeeds, returns a pointer to the lowest (first) byte in the allocated memory block that is suitably aligned for any scalar type.
 
@wilx No, my point is that in x86, the minimum that might be needed is 1.
 
2:04 PM
This'd imply that it aligns to sizeof(long long).
It must've been POSIX that defined "at least 16" then.
 
Ven
"that's int"
:P
 
@Griwes Not quite, because the implementation can provide additional scalar types.
 
huh? wot?
 
@R.MartinhoFernandes But 1 is not a minimum because if it is used shit gets broken. I mean, I guess I could have said minimum usable alignment, maybe?
 
Hmm. Can't back the 16 byte claim by anything.
 
nwp
2:06 PM
@Telkitty that happens when you google "how to rob a bank"
 
but I'm half sure I did see it somewhere
 
@R.MartinhoFernandes that's the minimum that one thing might need, not the minimum that that is usable for everything...
 
> the minimum that might be needed is 1
@wilx That's also 1.
Alignment 1 is usable, and it's the lowest.
 
@Griwes Well, XMM register is 128 bits, which is 16 bytes. MOVAPD needs 16 bytes alignment, so the alignment should be at least 16 bytes or more.
@R.MartinhoFernandes No, it is not, see above.
 
@wilx movupd
 
nwp
2:10 PM
@wilx "at least" means maximum
 
@wilx I mean, I thought I've seen "at least 16 bytes" written somewhere verbatim.
 
@wilx See here an example of usage of alignment 1: coliru.stacked-crooked.com/a/4442c99fff222d9e
That should be enough to convince anyone that it is usable.
 
@nwp ..."at least" means "this is the minimal allowed value".
 
@ratchetfreak Well, what with it? If your code contains MOVAPD and your malloc does not return sufficiently aligned memory then your code will crash and burn.
 
@nwp : bank robber's balaclava, now available at many colours!
 
2:11 PM
@Griwes And the value is the maximum of the alignments of the scalar types.
 
must be a best seller
 
Ah. Got the context now.
 
@wilx Yes, but that's more than 1, so clearly not the minimum that might be needed.
It's the highest value that might be needed, therefore, maximum.
 
maybe the website thinks that I am poor, and is suggesting that I should rob a bank, then I can afford to by things on it
 
@R.MartinhoFernandes No, maximum is something else. IMHO.
3
 
2:14 PM
What.
 
@wilx what
 
Come on.
FFS.
 
has anybody had problems cross compiling sfml?
 
What about this: The infimum of allowed alignments is 16 bytes.
 
nwp
@wilx if by infimum you mean supremum then yes
 
2:15 PM
That's not a redefinition of "maximum".
 
@nwp Did I get it wrong? lol
 
What @nwp said.
 
Er.
I think he's right (in his rephrasing).
This is getting messy.
 
how
 
The infimum is the greatest lower bound.
The supremum is the least upper bound.
Alignment requirements are lower bounds.
 
2:18 PM
...the required alignment is the upper bound of the set of sizes of scalar types.
That makes it a supremum of that set.
 
@Griwes "infimum of allowed alignments"
 
The supremum of that set is the infimum of the allowed ones, yes.
 
What.
You mean the maximum?
 
:D
 
One thing is sure. We suck at maths.
 
2:20 PM
The upper bound of the set of sizes of scalar types' sizes is the lower bound of the allowed guaranteed alignments.
 
Infimum and supremum are for subsets.
 
Ell
specifically proper subsets? :P
 
@Ell No, but the rephrasing is pointless if you don't restrict yourself to that ("allowed alignments").
 
@R.MartinhoFernandes Yes - both the set of sizes of scalar types and the set of allowed guaranteed alignments are subsets of all values of size_t. :P
 
@Griwes The thing is, this chat.stackoverflow.com/transcript/message/35006455#35006455 is a claim that his statement is wrong, and that it becomes correct by s/infimum/supremum/, which is false.
 
2:24 PM
Ah.
Now I see it.
:P
 
user1804599
2:38 PM
@Ven hiven
 
Ven
hiveven
 
user1804599
Hyves
 
user1804599
git cherry-pick and git rebase are super sick
 
user1804599
faking history like a politician
 
I'm falling asleep.
 
Ven
2:44 PM
mix some coffee, tea and redbull, and drink that. or don't.
> A language is as good as its libraries are. Do you provide libs for IOT?
SHIT HN SAYS #434532984549375839457923498578962453524352983458702780345
 
@Ven I assume he means that not providing libraries for IOT is an upside?
> Sesja%20wygas%C5%82a.%20Zaloguj%20si%C4%99%20jeszcze%20raz
 
Ven
@Griwes no he argues golang is a good language because it has IOT bindings
 
...you had one job, webdevs.
 
@Ven I'm drinking coffee, but it's only making my heart beat faster.
 
In other news, I'm finally gonna have my own DSLR tomorrow, they just shipped the body and I'm picking up the lens today.
 
Ven
2:59 PM
@Morwenn you know what makes my heart beat faster?
 
@Ven Endorphins
 
Ven
coffee and redbull, though i guess threats would as well.
 
@rightfold cherry pick isn't about faking history...
 
Ven
IT'S A FOLD
 
hello
 
3:08 PM
@JerryCoffin Oh she knows. She's the lavender!
 
What are IOT bindings?
Having an HTTP client?
Does that mean golang supports this we-vibe.com/we-vibe-4-plus? (NSFW: it's an IoT-enabled sex toy, whatever the hell that means)
 
It means that the manufacturer can spy on your masturbation habits.
3
 
Ven
I already send them videos, though?
 
Uncon videos.
 
Ell
3:34 PM
xD
 
nwp
3:45 PM
asking a question at this time was not smart, should have waited until tomorrow morning
 
Ven
wow, inverted aquariums are so cool.
 
Ell
if they're anything like inverted commas, I'll be disappointed
 
According to Google images, it looks like the equivalent of adding a wing to your house
 
@Griwes . Every company is tracking it's users these days
 
Ell
4:01 PM
and it's terrifying :O
 
can my Uncon hype get a pin please, need to generate maximum hype
 
@rightfold oh god, another infatuation
@R.MartinhoFernandes The landing page suggests it's just for relatives of Donald Trump
Or the mafia in Dubai
Oh wait.
 
Thank you mysterious person with power
 
No problem.
 
what is uncon
 
4:18 PM
not a conference
 
You're getting this problem because a known compiler issue. What else is there to know? — sehe 17 secs ago
 
hey... what the devil happen to Martin James?
 
Ell
No clue vOv
 
@thecoshman He went to the pub
 
@sehe well, facts check out
 
4:51 PM
Well, at least one of Czech EU MPs have responded to my email regarding copyright changes in EU. More than I expected. :D
Though it was basically something like I do not specialize in this and I will inform myself and make up my mind later.
 
@wilx what changes?
 
00:00 - 17:0017:00 - 00:00

« first day (2277 days earlier)      last day (2656 days later) »