« first day (1138 days earlier)      last day (3810 days later) » 

3:07 AM
I've never seen furrovine :v
 
user3010322
@melak47 How's it going for you?
 
user3010322
@melak47 Why would you steal any of my stuff? It's all horribly bad.
 
I haven't really looked at the innards yet. I'm sure I'll reconsider :D
 
user3010322
Well, if you do take anything, avoid Graphics stuff
 
user3010322
I'm about to do a massive refactor due to @Xeo and @R.MartinhoFernandes' advice.
 
3:11 AM
:D
whatcha gonna do?
 
user3010322
@Rapptz I'm sure you wouldn't want to. :D
 
user3010322
@melak47 native_handle
 
I was thinking about looking at your FileWatcher
 
user3010322
Not even useful.
 
user3010322
It's horribly broke.
 
user3010322
3:12 AM
Will crash your code on exit.
 
user3010322
Sometimes beforehand.
 
:E
 
user3010322
Shrug.
 
user3010322
I guess I could fix it.
 
user3010322
Maybe. A little.
 
3:23 AM
you don't have to fix it for me :p
if you're revamping your graphics part, don't waste time on the filewatcher
 
user3010322
Nah
 
user3010322
I can do it
 
user3010322
Should be ezpz
 
"From a general perspective what is actually limiting most conventional multithreaded Windows apps from fully utilizing something like a 64 core system?" - The programmer(s) who wrote the code. — Mysticial 1 min ago
 
Hel-lo
 
3:38 AM
Jel-lo
 
Still working on the snake today?
 
Haven't gotten to it yet.
Though that is kind of my fault.
Chat has been distracting today.
 
Eh :D
ikr
 
And I wasted time making pretty diagrams and stuff.
Just randomly during the day, when I should be doing other things.
 
Diagrams are sexy
 
3:44 AM
WHATS UP DAWG
 
I'll probably lose all my reputation here. I've already casted three downvotes.
 
That looks awfully hackish.
 
The answers are even worse.
> strncpy
 
@Jefffrey see the text on this one though?
 
@Pawnguy7 aren't those the points of each path?
 
user3010322
3:48 AM
Octagons.
 
user3010322
Are fucking important.
 
user3010322
 
@Jefffrey yes. But I did it by hand.
 
I noticed :)
 
I cannot help but feel there is a better way.
It is strange.
I am not making successful AI.
But I keep trying.
Current living location of ugly diagram.
 
3:55 AM
@Pawnguy7 That's what's important
 
What is?
 
This is the ugliest unicorn I've ever seen.
 
I would argue that is not a unicorn.
 
Probably :D
 
user3010322
4:04 AM
Catchy as fuck:
 
user3010322
 
4:17 AM
Wait, why is there a copy constructor call in the end in here?
 
not noexcept
 
user3010322
 
Why two moves now?
 
user3010322
noexcept
 
hmm
 
4:21 AM
I think my lua wrapper is good enough for config files now
 
@Jefffrey Reallocation.
 
user3010322
@Rapptz Liar liar plants for hire.
 
it really is!
 
@MarkGarcia I don't get it :(
Oh wait. Yeah, got it.
 
OK. But I've already took an effort to make this.
:)
 
4:26 AM
this is why you should always reserve
 
right
 
Hello!
 
Hello fellow PHPer
 
Hello.
 
Does anybody here knows what are the best automation tools and languages for creating macros?
 
user3010322
4:31 AM
Your fingers.
 
user3010322
And an exceptionally twisted, convoluted mind.
 
Depends on your notion of macros.
 
@MarkGarcia I want the tools that can create macros for many different kinds of tasks.. Please help.
 
Oh. Macros as in Office/Word/Excel macros. No. I don't know of any.
 
@MarkGarcia Including web automation. Okay, thanks.
 
user3010322
4:39 AM
@melak47 Okay, so I think FileWatcher is stable now.
 
This guy had a really bad day with code formatting.
 
4:51 AM
@Jefffrey I think thats how most payroll code looks
 
@ThePhD s/Catchy/Annoying/
 
@jeffrey - (saw your profile) I hate smart pointers - because they are generally used in dumb places
 
@GlennTeitelbaum we are doomed then
 
user3010322
@JerryCoffin Aww, but I like the beat. ;~;
 
the intent of solving ownership issues has become a crutch fostering a lack of understanding of memory management
(I also like 0 instead of nullptr) I guess I am not a pro :(
 
4:59 AM
no, you most assuredly are not.
nullptr is way better than 0 in basically every respect, and smart pointers are the invention that makes C++ a usable language.
 
Merge branch 'asdfasjkfdlas/alkdjf' into sdkjfls-final
11
 
http://www.newegg.ca/Special/ShellShocker.aspx?cm_sp=ShellShocker-_-33-146-005-_-11262013_1
70% off... it must be really shitty
 
@Feeds lol. Mine's more like fluctuating.
 
user3010322
WD specialized in harddrives
 
user3010322
5:05 AM
What makes them think they can make routers. =l
 
user3010322
@JerryCoffin Alright, I concede those points.
 
user3010322
C++ is getting to me <__>
 
naha
you suck more than Clang :P
 
@ThePhD WD has made all sorts of things, including CPUs. They once built the LSI 11 (a 2-chip implementation of the PDP-11) as well as the "Western Digital Microengine", a hardware implementation of Pascal P-codes -- that era's equivalent of a JVM in hardware.
 
@DeadMG I still bemoan the fact that 64bit pointers are twice as large as 32bit pointers - so smart pointers are huge to me
 
5:08 AM
@GlennTeitelbaum Er, unique_ptr is only sizeof(void*) if you don't need a stateful deleter.
you must be one of those morons who thinks that shared_ptr is the only one that ever existed.
 
user3010322
auto_ptr <3
 
boost::intrusive_ptr is a good one if you want to reduce the size, you can use an intrusive refcount block.
 
@DeadMG Nope - I'm the kind of moron who checks critical code in asm to make sure its optimized correctly
 
yeah, and I'm sure that the huge sizeof(void*) of a unique_ptr is so much more of a problem than the sizeof(void*) of a regular pointer.
and I'm also sure that you care so much about the timing of all your memory leaking and double deleting programs.
 
std::vector is not guaranteed to allocate the memory on the heap, is it?
 
5:12 AM
@Jefffrey Basically, yes.
 
I agree that unique_ptr is fine - it's smart pointer being used where a regular pointer or uniq ptr would do
 
user3010322
@Jefffrey It effectively has to.
 
By the standard?
 
I'm pretty sure it has to
 
@GlennTeitelbaum Again- which smart pointer?
 
5:14 AM
AFAIK, the standard doesn't have a notion of both stack and heap.
 
smart pointer is a blanket term... there are many smart pointers with many different characteristics.
 
sorry - shared_ptr
 
@Jefffrey The default allocator is well-defined to use ::operator new.
 
@MarkGarcia I meant "dynamic allocation".
@DeadMG Good thanks.
 
@GlennTeitelbaum Well, I agree that shared_ptr can be overused and unique_ptr is my personal smart pointer of choice.
 
5:15 AM
@Jefffrey A non-empty vector allocates storage on the heap by default (i.e., by default it uses std::allocator<T>, which uses operator new), but you can specify an operator new for the class or globally, or you can specify a different Allocator class when you instantiate vector.
 
but if you need refcounting, doing it manually would be so hideously error-prone that the respective performance of manual vs shared_ptr is essentially irrelevant, since you'd basically never get a working program from that.
 
how would you declare the data members of a doubly linked list node? I use *
(shared_ptr is great when questions of ownership arise)
 
@GlennTeitelbaum You worry about the size of pointers, but then you turn around and waste a gazillion of them by using a doubly-linked list?
 
pwned
 
lol
 
5:18 AM
the pun
 
lol, I use them to teach pointers and sentinels
 
user3010322
@melak47 Yep, the FileWatcher definitely works.
 
user3010322
You can even give it a specific file name, and it'll only track that filename, including deletes, renames, etc.
 
user3010322
You can also recursively watch directories.
 
I have seen nodes declared using shared_ptr's
 
user3010322
5:20 AM
It uses IO Completion ports internally and I took out all the async threaded nonsense, so you specify your own timeout or use an infinite timeout. If either are unacceptable, you can std::async the work just like everyone else. :3c
 
do this with a shared pointer :) stackoverflow.com/questions/19991506/…
 
@GlennTeitelbaum That certainly seems pretty pointless (if you'll pardon the pun), but I doubt it makes the list of the 1000 worst programming mistakes ever made.
 
mistake?
 
misteak?
 
Mmmm steak - heh now stop that
 
5:26 AM
@GlennTeitelbaum Wait -- my steak. Get your feelthy hands off!
 
with a shared_ptr<steak> we can both eat it and neither of has to clean up
 
I'm not sharing my steak!
 
steakoverflow
 
@JerryCoffin ooook
 
Spent another half a day shopping for a replace for the wracked car ... I want a huge black German tank 4WD, but could not afford it ... I might have to settle for a mazda 3 :'(
 
5:35 AM
@GlennTeitelbaum Premature optimization?
 
Nope - needed to optimize a data structure after analyzing cache misses and realized that the size savings made a diff
 
Today while helping a fellow student debug crashes I realized he essentially had while(1) malloc(32).
He kept wondering why it was crashing after 2 min.
 
thats a lot of memory :)
 
@GlennTeitelbaum It was buried inside a fugly loop that executed slowly..
Some pieces of code just make me sad.. this was one of them
 
my favorite sad code was somebody trying to understand why you couldn't use a shared_ptr as the user data arg to pthread_create
@jozefg so how did you unwind it?
 
5:47 AM
@GlennTeitelbaum toss the thing into a profiler and notice that it was systematically allocating chunks of memory in the main loop that didn't seem to go anywhere. It didn't take to long. The actual offence was ignoring the return of some function that expected you to deallocate it explicitly. That whole codebase was basically one huge "connect the malloc and free" puzzle..
And with that I ran back to Haskell
 
and thats why I hate shared_ptr, had it been C++, they could have used shared_ptr and not had the bug and thought that they could program and got a job as a coder, and got together with all their peers and wrote software and then come to me for help
 
> and thats why I hate shared_ptr, had it been C++
how is shared_ptr not C++ ?
 
malloc isn't :)
 
I decided to cave and watch Breaking Bad.
 
@Rapptz And?
 
5:53 AM
First episode has an extremely awkward handjob.
 
( I must admit, I found it ehhh )
 
It's okay so far I guess.
I don't get how he randomly got lung cancer but my friends told me not to take accuracy into account when watching it.
 
It's television, why the hell would you let reality get in the way
 
I don't know, blatant lies and plot holes get to me.
 
I think this is gonna be a rough show for you
The science is.. creative.
 
5:57 AM
Yeah and I'm a scientist but I won't let it get to me. I'm used to bullshit science by now.
Scrubs was pretty good at being realistic.
Can't say the same for many others :v
 
I like scrubs. I also enjoyed Dexter for a while if you've never seen that. (I believe it's on netflix)
 
@Rapptz I have the same problem with Bones. I feel like they get most of their stuff right, except anything computer related and that's the field I know most, so I'm more prone to seeing where they just made shit up
 
@Borgleader My friend's an physical anthro major and twitches a little during most of the show so I don't think the rest is much better
 
@jozefg Well then, I guess ignore is bliss huh?
 
@Borgleader Yep! I love the show haha
 
6:04 AM
Why would a high school teacher cook meth?
I guess money. iunno.
 
@Rapptz Money, Power, The rush that comes from running around with chemicals in one's underwear.. who knows
 
Is wikipedia down?
 
@Rapptz Nope
 
@Rapptz nope:
The Tawny Frogmouth (Podargus strigoides) is an Australian species of frogmouth, a type of bird found throughout the Australian mainland, Tasmania and southern New Guinea. The Tawny Frogmouth is often mistaken for an owl. Many Australians refer to the Tawny Frogmouth by the colloquial names of "Mopoke" or "Morepork", which usually are common alternative names for the Southern Boobook. Frogmouths are not raptorial birds. Taxonomy The Tawny Frogmouth was first described in 1801 by English naturalist John Latham. Its specific name is derived from the Latin stems "strix" "owl" (Latin: strix) ...
 
Hm.
> Oops! Google Chrome could not connect to en.wikipedia.org
 
6:07 AM
Hurray I have a gold language badge, so many fake internet points!
 
Well, at least he's taking safety into consideration when cooking meth. That's good.
 
@jozefg yay I hit 1000 rep and have my Mortarboard badge :)
@Telkitty I had 999 rep for a while today
 
@Telkitty I have a strong urge to +1 you on something now
 
someone did, currently @ 1121
 
6:18 AM
@GlennTeitelbaum It would best be done using unique_ptr. Obviously only one of them can be unique_ptr and the other would be T*.
 
@DeadMG does that actually make sense - why not both T*
 
@GlennTeitelbaum Because then you'd end up having to go around manually deleteing stuff for little valid reason.
 
^ this
 
(actually, the picture becomes a little more complex when you consider the needs of allocator-aware containers, but I chose to ignore that for now).
 
is this really that much to keep track of node->prv->nxt=node->nxt; node->nxt->prv=node->prv; delete node;
 
6:29 AM
er, yes.
it really is a stupendously bad idea to do that.
compared to, say, node->next = std::move(node->next->next);.
 
how does that handle the back ptr?
 
it doesn't, but that's a trivial assignment that's of little interest to anyone.
hmm... non-default destructors... ?
 
@DeadMG Hm?
 
I'm not sure it's simpler - are you?
 
@jozefg Well I was just thinking about allocator-aware containers and how RAII isn't the greatest fit for them.
@GlennTeitelbaum Yes.
 
6:37 AM
This show's weird.
 
if you write one single delete in your program, it is immediately a thousand times more complex than the non-delete equivalent.
because the slightest cockup has terrible results and you have to manually not cock it up to a high standard everywhere.
why wouldn't you want to get the compiler to do your work for you if you could?
that's it's job.
 
@Rapptz I just finished Season 1 and I actually like it.
 
I'm on episode 2 of season 1
 
because I'm thinking its just as easy to mess up using auto_ptr, if not easier
 
@GlennTeitelbaum That's because auto_ptr is hideously broken and I never recommended using it.
but it's pretty difficult to fuck up using unique_ptr.
 
6:40 AM
arg - sorry using unique_ptr
 
with unique_ptr you can only fuck up two ways (assuming you didn't go memcpy()ing everywhere or something equally stupid)
the first is using release() (which a sane person virtually never uses) and the second is if you accidentally give a node ownership of itself.
other than that, you can never, ever, create a scenario in which unique_ptr fails to correctly release the resource.
 
true, but you can have code that releases resourses that are still needed
 
if you decide to release a resource too soon, you're just as fucked whether you release it by deleteing it or by destructing a unique_ptr holding it.
the difference is that it's a lot easier to use unique_ptr to control when it's released.
 
^ this
 
@Rapptz I wouldn't spoil you or anything, but you'll start feeling torn by their decisions. Some kind of Stockholm syndrome but in the other way.
 
6:44 AM
I think they're idiots thus far.
 
@GlennTeitelbaum this is not specific to unique_ptr, this will fuck you up either way, however unique_ptr will save your ass in a bunch of other cases
 
@Rapptz And that. And more on later episodes.
Much more.
 
@Borgleader I'd be interested to see how a bunch of coders did if half used pointer/delete and half used unique_ptr for a doubly linked list
 
Badly because not using smart pointers to hold dynamically allocated resources is dumb
RAII or die
 
@MarkGarcia Seriously they're retarded. This is almost hard to watch.
 
6:49 AM
@Rapptz Then stop :P
 
I feel like I wouldn't give it enough of a chance :s
 
@GlennTeitelbaum why not use std::list?
 
because std::list is bad :P
 
not everything regarding a node is a linked list
but the example given feels like it I guess
 
@Jefffrey I believe the question is about the implementation of std::list.
 
6:52 AM
@Rapptz Just enough cringe-stimulation for me I guess.
 
@DeadMG I know, I'm just being Mr. std::guy.
 
anyone know what std::list uses?
 
well there are many implementations
 
The irony is that we're using unordered_map/set, and it uses linked lists...
 
@GlennTeitelbaum its implementation dependent
 
6:53 AM
but they probably use manual destruction because stateful allocator support and RAII aren't the most compatible things ever.
 
I meant have you seen any implementation and seen what they used
 
What do you girls think about concepts?
Looks pretty neat to me.
 
the Committee can't decide what they want or how to implement it.
 
@Jefffrey Looks like very ugly typeclasses.
 
I like that they have scheduled concepts-lite
 
6:59 AM
@jozefg ugly?
 

« first day (1138 days earlier)      last day (3810 days later) »