« first day (927 days earlier)      last day (4036 days later) » 

4:00 AM
But your mom does. :)
 
@Mysticial UB
 
@JerryCoffin ah ok. thx
 
user142019
Is UB valid IB?
 
yes
I think
sometimes the standard requires IB to be "consistent"
such is the case for signed integer right shift.
 
user142019
Well, if you want to be consistent with the standard everything has to be UB.
 
4:03 AM
@rightfold Sort of -- IDB has to be documented.
 
user142019
@JerryCoffin I could document it as UB?
 
"consistently fail"
 
what do you guys think of my question here
0
Q: C++11 'native_handle' is not a member of 'std::this_thread'

Nicholas PezolanoIn the following code snippet, void foo() { std::this_thread::native_handle().... //error here } int main() { std::thread t1(foo); t1.join(); return 0; } How do you get the native_handle from std::this_thread from within the function foo?

 
@rightfold You could document it as failing, or giving unpredictable results.
 
user142019
OIC.
 
4:04 AM
worthy of a std proposal so i can make a slightly easier cross platform thread profiler/ debugger?
 
user142019
@NicholasPezolano it's about a bad library of a bad programming language.
 
@NicholasPezolano You got an answer from Howard Hinnant - whose on the committee itself.
IIRC
 
yeah he wanted a good reason
is mine good enough?
 
No opinion here. I'm not into language design, nor am I a language lawyer.
 
user142019
@Mysticial IMSN
 
user142019
4:05 AM
ISkype
 
@rightfold ???
 
user142019
IFacebook Chat
 
@NicholasPezolano Are you trying to give threads a name?
 
@Mysticial The answer seems off the mark though.
 
Everyone's been trying to do that lately.
 
user142019
4:06 AM
Man.
 
user142019
It's six o'clock but I don't wanna sleep.
 
@Rapptz yeah i think i was the one who started the thread naming craze xD
 
@LucDanton I didn't try to understand his answer though. Since I'm not too familiar with std::thread to begin with.
 
@NicholasPezolano I don't see where you've really given any reason. In any case, it's more realistic to shoot for C++17 than 14 -- they've already pretty much locked down what's going to be in 14.
 
4:08 AM
@NicholasPezolano Why don't you just use a std::map<std::thread::id,const char*>
or std::string if that's your thing
 
@Rapptz where thread id = char *?
 
mymap[std::this_thread::get_id()] = "my name here"; or something
 
thats the whole point , exception thrown in thread 0x1160e0000 doesn't tell you much
 
user142019
Stack trace.
 
user142019
Time to sleep.
 
4:11 AM
night
 
Anyone know how to get the pid of a started child process?
Not like fork()
But execvp() or similar calls
 
user142019
fork() returns the PID of the child, and since you start a child process with fork(), well… just store its result somewhere.
 
I need to start an external process, with execvp()
 
user142019
It will have the same PID as the process from which you call execvp.
 
But that function only tells you if the program started or not
 
user142019
4:14 AM
execvp only returns on error.
 
user142019
Otherwise it never returns.
 
Oh
 
user142019
It replaces the current process.
 
Get it
 
user142019
If you want to start a child process from a file (binary), use fork and then call exec in that child process.
 
4:14 AM
Right thanks
 
user142019
fork() returns twice: pid of child in parent process and zero in the child process.
 
So, yeah.
Just gonna leave that here.
 
why am I so lame
 
sorta what I meant
 
@Crowz Because you keep telling you that.
 
4:18 AM
I'm not as awesome as Australian Liquorice :(
 
@Rapptz Erm, isn't that a concurrent access on a map?
 
Yes.
 
rvalues are fancy
@Rapptz yeah but in order to get it to come up as "thread1" in your profiler however
 
I'm not crazy enough to profile/debug threads! Just giving help.
Or well, trying to
 
xD
@Rapptz it is a cleaver solution thou
 
4:25 AM
I'm not too keen on thread safety so I just label the example as shitty
then again I'm not sure why std::thread::id would have std::hash defined if it wasn't meant to be used in an unordered associative container.
 
@Rapptz That's not a license for data races :p
 
Yeah I know.
 
that could help as well lol
ok found something new std::this_thread::yield();
time to sleep
 
4:43 AM
Time to go bug huntin'.
 
5:28 AM
Ugh
 
 
1 hour later…
6:40 AM
@CatPlusPlus Feeling sufficiently wasted?
 
Everything's terrible
 
Hee hee.
 
6:58 AM
@CatPlusPlus You don't have any serious work to do today, do you? :o
 
I have a backlog of everything
 
Oh.
Well, what's in that everything?
Uni? Work :O
 
Lol, all of the above.
Welll, good luck with that. :D
 
7:14 AM
exception specification of overriding function is more relax than base version
a.k.a. fucking old stdlib.
also, Lounge. Population: 3.
 
Wha?
 
Xeo
4
 
hi :)
@ThePhD throw() vs noexcept
 
Bartek-sama and Xeo-kun woke up~
 
Xeo
throw() and noexcept(true) should be equivalent
 
7:16 AM
I woke up a bit earlier, was reading mails in med
 
Xeo
Also, Domagoj left again?
 
Apparently, this time for realsies.
 
His account is plain-out NUKED.
I don't know whether it's foul-play on his SO account or if he's legit checked-out.
He didn't give any "I'm-checking-out" indications...
 
maybe something bad happened to him again
 
7:19 AM
We won't know unless we kick his house's door down.
 
write him an email; IIRC you have that
 
Xeo
$ cat main.cpp
struct X{
  virtual void foo() throw(){}
};

struct Y : X{
  virtual void foo() noexcept override{}
};

int main(){}
$ clang++ -std=c++11 -Wall -pedantic main.cpp
$
@Bartek ^
 
indeed. I found that I accidentally commited VS fix (that broke clang build)
yay for consistency and standard conformance
 
Xeo
What VS fix?
 
#define noexcept
 
Xeo
7:25 AM
...
baka
 
now you calling me names, huh?
 
Xeo
Atleast do #define noexcept throw()
 
@Xeo I figured.
now, really, that's not my fault :/ It's MSVC++
 
Xeo
And conditionally define it, at that
It's your fault for trying tricks :P
 
I had #ifdef MY_COMPILER_IS_RETARDED
@Xeo it worked, so I didn't really try.
my 2nd favorite is /* = delete*/;
 
Xeo
7:27 AM
@BartekBanachewicz Okay, how come Clang used that macro then?
 
hmm, damn you english. I had had that macro.
 
Xeo
Mhm
 
I just thought "no way I am commiting shit like this"
I am not @ThePhD :)
now really, I will prolly use boost for that
I bet'cha there's stuff there
also this is not the real problem I am having ATM :/
in Lua C++ API project, 11 hours ago, by Bartek Banachewicz
luaVm.register_function("get", []{ return 5; }); // works
luaVm.register_function("get", []{ return 5u; }); // not works
 
Lolwat.
unsigned breaks the lambda?
 
breaks boost::variant<signed int,...>
 
7:30 AM
Oooh.
 
Xeo
What, got no unsigned data types in Lua?
 
of course.
show me a script language with unsigned data type
 
Xeo
AS3
 
@Xeo 5.2 has bitops.
 
@Xeo oh it's "statically" typed
 
7:31 AM
Come to think of it I have no idea what those operate on.
 
but really, it would be unnecessary complication
in lua there's number and that's that.
 
morning all
 
I got a weird problem. I'm getting an access violation in memcpy when trying to use more than 4GB of memory in a x64 program. 'New' didn't throw any errors, any of you folks have any ideas?
 
maybe memcpy is limited to 4GB
 
@Mikhail then don't use memcpy
 
7:35 AM
do you mean you are copying 4GB block?
 
99.9% of the time you really do not need it
 
No, I am copying 10MB chunks, when I reach over 4GB (relative to my application) memcpy throws an access violation.
i'm going see what happens if I manually copy
 
why are you using memcpy?
 
@thecoshman Where are you going with this? Is std::copy really going to help here?
 
@Mikhail What version of VS?
 
7:38 AM
@LucDanton I am just curious as to why he is using memcpy in the fist place, I suspect XY
 
I'm guessing to copy bytes around.
 
@Mysticial using 11 with update 2... should be the latest and greatest
 
@Mikhail Then you should be clear of that overflow bug I hit a while back.
Are all your indices and stuff 64-bit?
 
@Mysticial I like how you just assumed it was VS :P
 
Good morning Internet
 
7:40 AM
Jalf-san!~
 
@thecoshman :)
evening jalf
 
Xeo
@jalf "Good"... hah...
 
@jalf well, if you are greeting the internet you probably shouldn't try to time box it
 
@Xeo Awww, the rest of the day will get better, I promise. <3
 
@thecoshman well, "access violation" is usually a hint that someone is on Windows, and when you're on Windows, odds are good that you're working with VS. :)
 
Xeo
7:41 AM
No, the rest of the day is filled with Flash and AS3
 
@ThePhD are you baking a cake, perhaps?
 
xeo-so-c++
 
Xeo
:(
 
@jalf would you not get the same on Linux? or does it call it something else?
 
I am caking a bake, later in the week, actually.
 
7:42 AM
@thecoshman You get the same underlying error, of course, but it's called a segmentation fault, or segfault
 
Yesterday, I made a meat-cake, though.
 
Access Violation is the Microsoft name for it
 
.... baking a cake*
 
@Xeo I was about to ask what you where sulking over
 
I made pancakes, does it count?
 
Xeo
7:42 AM
I got cake at work, does that count?
 
@BartekBanachewicz Well, it does have cake in it.
 
@jalf ah right right.
 
How the fuck does FF underline "advisor" as misspelled...
I mean...
 
Adviser?
 
FF is only one letter from FFS
 
7:43 AM
England ftw?
 
... which I've never really understood, tbh. I suspect it's a leftover from the happy days of segmented memory, but I haven't checked. :)
 
just sayin'
 
@Mysticial It's adviser oyy
:D
 
@Rapptz I like advisor. :P
 
@Mysticial advizar!
 
7:44 AM
@Rapptz My school uses "advisor". The NSF pages use "advisor".
 
@jalf Isn't Vizar some kind of advisor to the sultan?
Or is it Vizier?
I dunno.
 
@Mysticial adviser is from UK
 
All I know is that's what Jafar was.
 
@jalf yeah, was just thinking, neither name really conveys the fact you are trying to access memory that you do not have permission to do so. Well... I guess the MS name does
 
@Rapptz So FF is mainly developers based in the UK?
 
7:45 AM
@Mysticial yeah, but user base is mainly in USA
 
You more than likely have an .en_GB set up as your dictionary
 
@ThePhD Vizier is correct
 
The why doesn't FF bitch about "color" and "behavior"?
 
Jafar the Vizier.
Sounds evil already.
@Mysticial Maybe officially recognized by Britain?
 
I have one FF which uses BE and one that uses AE, and I'm fairly sure both machines are set up with an en_DK locale.
 
7:46 AM
I dunno.
 
Xeo
lol
 
@LucDanton that sounds pretty fucked up :)
 
Hm.
Oh!
I need water.
That's why my brain is derping out.
 
@ThePhD nope
 
Colour it is then~
 
7:47 AM
@LucDanton maybe language selection is like pressing the button for pedestrian crossings?
 
@jalf I could have set up one of the browser to use whichever dictionary for the spellchecker and that overrides the system-wide settings. I've never looked into it because I'm not sure what there is to fix. Plus, it's a good excuse so that I don't have to bother with consistent spellings.
 
heh
 
@BartekBanachewicz So what're you gonna work on for the break? :O
 
@ThePhD are you asking if I am coding Minicraft right now?
 
Uh
I guess?
 
7:58 AM
of course.
 
@Mysticial I figured it out 50% of the way. It seams that the method of buffer alignment I am using can mess up in x64. Now to figure out hwo to align to a ~16 and not get a error...
 
std::align.
 
@Mikhail How were you aligning it before?
 
(It's a joke, don't use it.)
 
I love how my brain is retarded. I wrote, in that order: enum, enum class, enum class X : char, : uint_8t, : uint_fast8_t, and finally realized what the fuck am I doing
 
Xeo
7:59 AM
lol
 

« first day (927 days earlier)      last day (4036 days later) »