« first day (774 days earlier)      last day (4173 days later) » 

12:00 AM
I'm like mascaraaa and I'M GOOD TO GO
 
Xeo
@StackedCrooked Like LWS, so it doesn't try to compile as soon as I leave my fingers off the keys for more than a millisecond.
 
I tried interfaces and basic inheritance but didn't work: one force me to implement every methods in A and the other just take methods from B when I pass A...
 
Actually I can't input anything at all. Am I supposed to use the top box or bottom box?
 
@Crowz You'z trolling
 
12:01 AM
Used to work on Opera but doesn't anymore. Looks fine with Firefox.
 
@Borgleader lol one time I made an oil painting of boxxy
 
Oh wait actually I can't read the left-most columns.
It's shifted to the left.
 
@Crowz o.O I suck at art.
 
@Borgleader So do I
 
hmmm
 
Xeo
12:04 AM
Btw @StackedCrooked: The output box immediately scrolls back to the top on FF.
 
when dealing with SO I should really open with the big guns
> StackOverflow profile- I have answered nearly three thousand individual questions over two and a half years.
 
@Xeo well he's half right
@Jeffrey virtual
 
You know what? Why the fuck am I doing this?
 
because you have some kind of hardon for strange legacy encodings, I presume
 
Xeo
Is there any way to get a link to the compilation output?
 
12:06 AM
but if you have discovered that the thought of Windows1252 no longer causes you to become erect, then feel free to stop
 
@Xeo Ok.
 
@DeadMG Windows-1252 is still a common encoding :(
But what I mean is that I am just going to write a generic table-based encoding thing, and rip the mapping tables from the unicode.org site.
 
@Xeo I'm planning to do that next. I first wanted to get the sandboxing right.
 
@MooingDuck, I tried to make all methods of B virtual (virtual void *() {}) but yet it force me to define them all in A otherwise it throws something like "Function not declared in A"...
 
12:06 AM
stacked
I thought your site automatically compiled and executed?
 
I normally does that.
 
cause I'm noticing a giant-wtf-huge pile of nothing right here
 
Hmm, there is already a draft for 6.3. These guys are working fast.
 
@Jeffrey it shouldn't do that unless you also mark them as pure.
 
12:08 AM
@R.MartinhoFernandes nice:
#	Name:             ISO 8859-7:1987 to Unicode
#	Unicode version:  3.0
#	Table version:    1.0
#	Table format:     Format A
#	Date:             1999 July 27
#	Authors:          Ken Whistler <kenw@sybase.com>
 
@DeadMG Ok, there might a bug where it doesn't compile the on the very first load. Does it change if you modify the code?
 
yes
as soon as I changed "GCC" to "STACKED YOU MORON" then "(compiling)" came right up
 
@sehe What about it?
 
user1182183
hmm, how do I retrieve data if concurrent queues do not have .front() ?
 
> Hello STACKED YOU MORON 4.7.2! Hello Thread!
 
12:08 AM
You know, I have to write JS code to make it work. :P
@DeadMG Seems to work then!
 
@GamErix try_pop
 
@R.MartinhoFernandes So many versions. That's actually 8859-7b they 'forgot' to mention it in the header of the actual file, I see
 
2 hours ago, by R. Martinho Fernandes
@JerryCoffin As I understand it, the story goes like this: they fucked up (ISO 8859-1). Then they "fixed" it and to "distinguish" added a dash to the name. But it was still fucked up, so they "fixed" it, but it was a breaking change, so they named it ISO 8859-15. But it was still fucked up, so Microsoft came and "fixed" it again, and that is Windows-1252. However, some people started to mislabel Windows-1252 as ISO-8859-1, so software authors "fixed" it by interpreting ISO-8859-1 as Windows-1252.
 
@MooingDuck, oh no, sorry, I just tested it out and it runs the default method from B.
 
aright you scrubberies
 
12:10 AM
@R.MartinhoFernandes I know. I starred that message
 
I rewrote the first half of my CV
 
user1182183
PassVector.try_pop(<what here?>);
:structure:
 
user1182183
std::vector<cell> Paths;
int extraid;
AMX * script;
int MoveCost;
 
want to see it?
 
12:10 AM
Sorry, busy fapping to still way too used legacy encodings.
 
@GamErix T t; if (queue.try_pop(t)) { // There was an object to pop }
 
@GamErix Trying out for the 'most conflicting naming/coding conventions in 10 lines of code' award?
 
@Jeffrey then (A) it isn't virtual or (B) the signature is different.
 
user1182183
just <structure name> var; try_pos(var) , oh, so simple.
 
@sehe rof
I farted
 
12:13 AM
I believe you
 
@DeadMG Did it scare you?
 
@MooingDuck, oh yeah, It was a typo in A. Thanks for the help.
 
@StackedCrooked I dislike stacked-crooked.com because the domain name interferes with my use of Ctrl-T 'sta' <Enter> to reach Stack Overflow
 
@sehe Well, I have it much worse.
 
Also, note that the Style causes Opera on windows to not display anything in the code area. If I disable the font-family CSS style on the edit widget thingie, it displays. I found out I can still paste code, even though it doesn't show up :) (on linux, Opera had no such problem a week (or so?) ago)
 
12:16 AM
No. Not again.
 
what's that smell
 
@R.MartinhoFernandes sup?
oh, that Crowz scrub
I plonked him long ago
 
time you followed suit
you plonker
 
Hmm, the reverse table may be complicated.
 
12:19 AM
you're complicated
 
I mean, I am not going to slap a 64K table here just to get 256 values out of it.
Meh, linear searching through a 32-array should be fine.
 
lol wat happened to Crowz...
 
@R.MartinhoFernandes hashmap?
 
@MooingDuck Maybe if I could make a perfect hash for this (I know I can). But not today.
 
note to self
there's a reason why you think the dog attempting to eat plastic is stupid
because it's not fucking edible
 
12:22 AM
@R.MartinhoFernandes profile it :)
 
@sehe Profile what? I am picking the non-optimized version. I don't have to profile for that.
 
@R.MartinhoFernandes "should be fine" -> detected normative, not neutral statement, just saying
 
Xeo
Hm. Question. Shouldn't the following code "work", as in, either tell me the mininum arity of the overloaded operator() or spit out an error about instantiation depth if F doesn't have an overloaded operator() that takes the argument type?
template<unsigned I, class F, class T, class... Args>
auto invoke_test(int) -> decltype(void(std::declval<F>()(std::declval<Args>()...)), std::integral_constant<unsigned, I>{});
template<unsigned I, class F, class T, class... Args>
auto invoke_test(long) -> decltype(invoke_test<I+1, F, T, Args..., T>(0));

template<class F, class T>
struct min_arity : decltype(invoke_test<0, F, T>(0)){};
 
@R.MartinhoFernandes Do a quick comparison to a std::map and/or std::unordered_map to see how much (if any) you lose with a linear search.
 
@sehe Ah, by "fine" I meant that "not too slow for a start".
@JerryCoffin Tomorrow! It's 01:24.
 
12:24 AM
I will be ok
 
@R.MartinhoFernandes even a regular hash is better than the table, and maybe better than a linear search. Just a thought.
 
@R.MartinhoFernandes It's 00:24 for people in real timezones.
 
@R.MartinhoFernandes Today (but you're welcome to sleep first). You have 22:36 left of today...
 
@JerryCoffin I suppose a map will by definition lose. A heap or sorted array would possibly be faster
 
12:25 AM
cough. How many times do we have to mention you should probably always invoke arguments with RFV?
 
Xeo
Nobody on my arity question? :(
 
@Xeo the goggles did nothing
 
Xeo
Hey, it's just 6 lines! Can't be that hard. :P
 
@Xeo Reminds me of the 'visibility of templates in overload set' problem. Try moving the methods into a class 'namespace'. This changes the visibility rules for lookup names for overloads IIRC
 
seven, you forgot the empty one
 
12:29 AM
Oh, it's over there.
 
@Xeo An ugly dwarf can still be ugly
@R.MartinhoFernandes In the middle
 
Xeo
@sehe Ah, the second overload not finding itself may be the problem.
 
@DeadMG Doesn't really matter. People in "real" timezones need to go to work one work earlier anyway.
 
Xeo
@R.MartinhoFernandes What kind of unit is a "work"?
 
@R.MartinhoFernandes Is a work like, a second or something?
 
12:32 AM
@Xeo It's one hour.
Duh.
 
@R.MartinhoFernandes Only if they has job
 
For a moment "Woot! Passes tests!". Then realization dawns: "Wait, I did not write tests yet."
 
Is there a limit to how big the Stack can be?
Er, I'm sorry. How much can be allocated in a single Stack Frame?
 
Yes. Something.
 
.. Ah. That explains why my program is exploding in a fiery doomsday the moment a function is called.
 
12:34 AM
damn
I'm never gonna get UTF-8 literals fixed
and it will be forever impossible to write a C++ string worth using
 
Resistance to your idea?
 
Xeo
Gaaah, and now GCC recurses endlessly... whyyyy
Oh wait, I guess I know why.
 
I mean, I don't see why anyone would resist it. Any halfway conscious library developer could realize that anybody could pass anything in a char* , and that a type to incur at least a small amount of safety would be nice.
But this is C++: Foot-shooting is what we do here.
 
Xeo
No, doesn't make sense after all.
 
Albeit, though it's not very performant, you could just scan the string for anything outside of the usual ASCII range.
 
12:36 AM
@ThePhD Because the wrong has been done.
 
the main issue is
 
@ThePhD Nope.
 
firstly, there's a large body, mostly Unix, code which deals with UTF-8 char.
secondly, there's also the possibility that people actually wrote code with UTF-8 literals in their current broken state, which may well be broken if the Committee fixes them
 
1024 KB is too large for the stack?
Cmon windows. D:
CMooooooooooooon.
 
1024 KB is the size of the stack.
 
12:38 AM
... Oh.
 
you can increase it, but it's dumb.
 
user1182183
is there a safe way to get the size of a concurrent queue? ; o
 
@ThePhD WTF are you trying to do?
 
@GamErix Of course not.
 
user1182183
so _Internal_size is of no use.. mkay
 
Xeo
12:39 AM
Gaaah, sense, Y U NO MAKE ANY?! :(
 
@R.MartinhoFernandes I'm trying to scan the Master File System Table.
 
the instant such a function returns, the size could be changed by another thread.
 
@GamErix Any value you would get from a size() function could be obsolete the moment it is returned.
It's not worth it.
 
making the return value meaningless
 
Xeo
Robot. Halp.
 
user1182183
12:39 AM
ok
 
@ThePhD I don't see why that requires putting ginormous crap on the stack.
@Xeo What happened?
 
I can across some C Code that used a 1024 * 1024 size buffer to do the scanning, claming it was able to scan a 6K file system in barely any time at al.
 
Xeo
template<unsigned I> using Uint = std::integral_constant<unsigned, I>;

struct invoke_test{
  template<class F, class T, class... Args, unsigned I>
  static auto eval(int, Uint<I> c) -> decltype(void(std::declval<F>()(std::declval<Args>()...)), c);
  template<class F, class T, class... Args, unsigned I>
  static auto eval(long, Uint<I>) -> decltype(eval<F, T, Args..., T>(0, Uint<I+1>{}));
};

template<class F, class T>
struct min_arity : decltype(invoke_test::eval<F, T>(0, Uint<0>{})){};
 
So I was like "Oh, let me use a 1024 * 1204 byte buffer too."
 
Xeo
^ not compiling happened.
 
12:40 AM
[ Break. ]
 
don't take tips from C code
 
Xeo
Doesn't seem to find the second eval overload during recursion in the trailing return type.
 
@Xeo Sorry, man, too sleepy to keep two sets of code in my head.
 
Xeo
:( k
 
I'm gonna try a 1KB buffer I guess
Though that seems drastically small...
 
Ell
12:41 AM
Woo now its automated!
 
Too sleepy to spell properly too, it seems.
 
@ThePhD Or just allocate it off the fuckin' heap.
 
Xeo
@R.MartinhoFernandes If only you wrote "two" now in that message... :P
 
It wrote "semes".
 
@DeadMG Apparently the DeviceIoControl function in Windows can detect if the data you're allocating for the function comes from the Heap.
 
12:42 AM
@ThePhD so put the buffer on the heap
 
And it will throw an error the minute you give it a pointer to data allocated on the Heap, or even not in the function you're call you're doing.
 
did you actually try that?
 
Which baffles me, I don't even know how they figure that out - especially if it's a class variable that's allocated on the stack.
 
@ThePhD ?
 
Xeo
Oh well, I guess I'll leave that code for tomorrow then.
 
12:43 AM
because I smell bullshit
 
@ThePhD what? nonsense
 
Xeo
Or maybe @LucDanton wants to help me?
 
user1182183
no infor about return vlue
 
user1182183
nor if it waits to add
 
user1182183
12:43 AM
and no try_push..
 
Apparently I wrote if(b > 0xFF) where b is an unsigned char...
 
lol... nice
 
@GamErix What information would you want?
 
It was inocuous because it was for validation. Just useless.
 
@GamErix It adds as soon as possible.
 
12:44 AM
@DeadMG I did. And it kept returning (IIRC) GetLastError() 1784, whcih is like ERROR_INVALID_BUFFER or something
 
@GamErix Pushing won't fail.
 
I will try it again right now and see what happens, because I have the call working.
 
@ThePhD That has jack shit to do with stack vs heap
 
user1182183
so it waits forever if it has to?
 
@GamErix It won't have to.
 
12:45 AM
@Xeo vidya gaems, can it wait?
 
Xeo
@LucDanton Sure
 
user1182183
@DeadMG hope that :$
 
Xeo
I just contemplated going to sleep anyways.
 
user406009
@GamErix It doesn't seem like there is a max size for the queue.
 
12:45 AM
@ThePhD Also, I don't think Windows API can throw an error.
 
@GamErix Consider the requirements for having to wait.
 
I cannot have a static constexpr array in class scope without an external definition?
 
then consider how they would have to become infinite.
 
Xeo
Must be getting old to be so sleepy after just 21h of being awake on a stressful day.
 
@MooingDuck It's not an actual throw, sorry. Wrong term.
 
12:45 AM
namely, another thread would always have to be attempting to add to the queue- not just for a bit, always.
 
Xeo
Including 10h train travel
 
Function returns FAIL, GetLastError() 1784
 
then, the OS would always have to schedule that thread ahead of the waiting thread.
 
@Xeo Travelling is tiring.
At least for me.
 
Xeo
@R.MartinhoFernandes Not if you plan to use it where an lvalue is required.
 
12:46 AM
@ThePhD then you gave it an invalid input buffer or something
 
user1182183
@DeadMG there isn't anything like priority? the program has to know the main thread has bigger priority
 
user1182183
:x
 
Xeo
Btw robot, the fix is easy, just add constexpr array_type Class::array_name; outside of the class definition.
 
Spelling has bigger priority
 
Xeo
Can still use it for constexpr stuffs.
 
12:47 AM
@GamErix What? It won't matter for such small things.
 
user1182183
@DeadMG okay
 
the main thread will spend 2 cycles moving some shit on to the stack to call another function, and the worker will push on.
 
Xeo
@R.MartinhoFernandes I think the frustration with the Jobcenter is also getting to me.
 
oh, and, the producer and consumer contend separately.
 
@ThePhD ERROR_INVALID_USER_BUFFER "The supplied user buffer is not valid for the requested operation."
 
12:48 AM
huh
for some reason, my foot is suddenly really warm
I like it, but suspicion abounds, as it's fucking cold
 
@DeadMG Stop sticking it inside the PC case, for Pete's sake!
 
@MooingDuck Yes, I read the docs this time.
 
@sehe I haven't done that since I got back from university
 
So, € symbol not converting properly. Fuck.
 
12:50 AM
@R.MartinhoFernandes I'm flattered, but I don't swing that way, sorry. Ask Etienne, he likes the bromance.
 
@ThePhD What dwIoControlCode did you pass, did you pass input/output buffers, and did you format the input buffer properly?
 
@DeadMG So, you learned valuable life skills after all
 
lol
 
You could cut yourself by doing that.
 
Okay, I can prove it does not work.
Consider the following call to FSCTL_READ_FILE_USN_DATA:

success = DeviceIoControl( targethandle,
				FSCTL_READ_FILE_USN_DATA,
				null,
				0,
				(void*)buffer.data,
				buffer.Size,
				&readbuffersize,
				null ) != 0;
 
12:52 AM
[Started section: 'replacement']
test\windows1252.c++:56: encoded[1] == 0x80_b failed for: Ç == Ç
[End of section: 'replacement' 1 of 4 assertions failed]
 
Where buffer is a std::array<byte, (BUFFERSIZE)>
 
if the problem is in the buffers, what the fuck do you expect us to see without the buffer definitions?
 
Dammit, why doesn't this display chars as numbers.
 
=l
 
@ThePhD Woot. That's generally the easy part. That's why testers make little software without the developers
 
12:53 AM
I'll just post the code on ideone.org
... com?
Something.
 
ye
 
@R.MartinhoFernandes static_cast<int>?
 
liveworkspace.org, ideone.com
well, except LWS is dead
 
@LuchianGrigore please don't insult my intelligence. I know what a debugger is. Like I said, my program runs fine. It just doesn't stop to output. So no, you are not helping. — user1787078 1 min ago
 
@sehe Yeah, but I need to add that everywhere :(
 
12:53 AM
@DeadMG Post it there, nonetheless
 
>:) muhaha
 
@R.MartinhoFernandes make it a trait?
 
@sehe A what? I didn't roll my own unit test framework.
 
user1182183
well some simple tricks already reduced the total execution time from 700ms to 45ms
 
user1182183
that's quite an improvement :o
 
12:55 AM
@R.MartinhoFernandes Oh, that way. Yeah, that could be annoying. So, make boost/googletest use a trait/visualizer
 
@ThePhD and you're certain the target handle is a handle to the file or directory returned by the CreateFile function?
 
@GamErix sounds like one. Wait till you spot the bugs
 
user1182183
@sehe yeah :/
 
user1182183
I just removed all the locks and changed to concurrency queues
 
user1182183
instead of normal queus
 
user1182183
12:56 AM
I hope that won't result in many bugs..
 
better?
@GamErix It will fix bugs, not result in them.
 
@MooingDuck I'm step-throughing my functions. I check for failure. I know it's working. I will just post the full code so you can see what I'm getting at.
 
user1182183
@DeadMG well it was about improving speed, because there were no known bugs :p
 
lol
 
Fuck yeah, I win.
 
12:57 AM
@ThePhD it's clearly not working since Windows is giving you an error
 
Ok, folks, see you tomorrow.
 
@ThePhD several people are saying it can give that error if there's too many outstanding asynchonous IO requests
 
my main() consists of nothing but a single call to this function. So, I don't see that as a likely case.
 
@ThePhD theres no other programs on your computer?
 
@MooingDuck Mmm. There is hal.dll, ntoskernel, etc.
 
user1182183
12:59 AM
34.546 avg total execution time
 
user1182183
calculated 1000 GPS routes in 34 seconds
 

« first day (774 days earlier)      last day (4173 days later) »