« first day (1388 days earlier)      last day (3578 days later) » 

12:00 AM
 
@Jefffrey lol
You know what you did.
 
a terrible mistake?
I know you are all going to go full "that show is for mere mortals", but I really enjoyed "24" (first season).
 
LRiO also likes that show.
 
My friends quite liked that show
I'll probably watch it some day
 
Nothing special, but it's well made.
 
12:16 AM
> A crew of engineers from Winnipeg airport clambered into a van and headed for Gimli to assess the damage. During transit, however, their vehicle unexpectedly ran out of fuel, nearly ripping a hole in the delicate space-irony continuum. The Gimli Glider
Oh god. That pun
@Jefffrey I hated it. But I probably watched a total of 20 minutes over ~3 episodes. I don't TV very well
 
@sehe lol
I've read about the Gimli Glider, but I didn't know about that part.
 
The whole story is kinda pushing the limits of prose. It's a good read
 
12:45 AM
I'm embarrassed. I can't even write a reverse singly linked list function.
 
@Jefffrey What are you trying to write?
 
@Borgleader A function that reverses a singly linked list.
 
10
Q: In-place reversal of a singly linked list

Jerry CoffinAs suggested in The 2nd Monitor, I'd like a review of this in-place reversal of a singly linked-list: #include <iostream> struct node { int data; node *next; }; node *reverse(node *list) { node *prev = NULL; node *next; while (list) { next = list->next; l...

 
@Jefffrey i thought a function that operates on a singly linked list
thats why i asked
 
12:47 AM
No no no. I need to do this on my own.
 
@Jefffrey is it homework? :P
 
Before you get down on me for asking for a review of such a nonsensical bit of fluff, look at the date when it was posted.
 
@Borgleader It is me reading this and realizing I'm not ready to get a job yet.
 
I think I am trying to do something dumb...
 
Don't have unprotected sex FFS.
 
12:49 AM
@Jefffrey mother of wall of text, will read that later, busy with this atm.
 
@JerryCoffin oh
I was wondering why you'd ask it and the comments and everything seemed serious..
 
Can someone try to implement it and tell me how long did it take? Assuming a node as:
struct node {
    int info;
    node* next;
};
 
is it a list containing a node, or is the first node "the list" ?
 
@Jefffrey come on man
 
@Jefffrey I think the code linked above took about...20 minutes? Maybe half an hour? (but it was also intentionally a bit crappy, to leave room for "review").
 
1:00 AM
@Borgleader The first node is the head of the list. That's the one you pass in.
 
> The next pointer should almost certainly be a unique_ptr instead of a raw pointer.
it's a bit troublesome to do that
sadly
 
Doing some looking and subtraction, it was apparently about 13 minutes.
 
@JerryCoffin I will look at that question after I've succeeded in implementing it. Sorry.
@Rapptz what?
 
@Rapptz A little.
@Jefffrey NP.
 
Better to have a master list type that owns all nodes
Well, easier
 
1:02 AM
@Jefffrey std::unique_ptr requires a complete type
(there are ways to make it compile)
 
@Rapptz and?
 
the type is incomplete
 
If you want to implement things you'll never use, try doing a cons list without using new or make_unique or make_shared explicitly
 
@Rapptz I'm not using an std::unique_ptr
 
1:03 AM
@Jefffrey okay?
The quote above is from Jerry's link.
 
4 mins ago, by Rapptz
@Jefffrey come on man
that is referring to me though
 
Do you not see the quote block?
 
what quote block?
 
nvm, forget it
 
@Jefffrey new list of in-place reverse?
 
1:08 AM
@Borgleader in place reverse, yes. Something like [w/e] reverse(node* head)
 
@Xeo Fucking SAO cliffhangers.
 
@JerryCoffin "in-pace" - that's correct for "in peace"
 
@sehe ...or "in pieces", if something interrupts it in the middle of its operation.
 
though that's not what Loki used in his comment :)
 
Clearly you should implement STM first
 
1:15 AM
Indeed. I'd suggest a doubly linked list
 
@CatPlusPlus Obviously its real shortcoming is that it doesn't incorporate an IoC framework, and any function names at least 100 characters long.
 
Just use Obj-C and you'll be set for function names
 
@Borgleader Succeeded?
 
@sehe But then there would be no question--and April fools is, like, important!
 
It is <padding padding padding/>
 
1:18 AM
@sehe Without the exclamation point, your statement seems to lack real conviction.
 
OMG I fucking did it.
inb4 good job
 
inb4 crash
 
April Fools is named after people who believe April Fools is a good idea
 
Clever. I called it :) A doubly linked list would be well-suited. And the XOR trick is one devious trick. Oh, using unique_ptr<> in the node is prone to stack-overflow on default destruction. Don't forget to iteratively reset the nodes if you use it! — sehe 17 secs ago
 
1:23 AM
@CatPlusPlus Somehow reminds me of a time somebody asked me a question years ago: "who's better off? Somebody who's right but miserable, or wrong and happy?"
 
@CatPlusPlus Nobody thinks it is a good idea. Like fireworks or bungee jumping, like talent shows or popcorn. But it's fun
 
@Jefffrey Testing
 
@Jefffrey I love how you avoid double-frees
 
I am sure people who love to play practical jokes think April fools day is a great idea
 
@sehe By memory leaking, yeah. I'm a genius.
 
1:25 AM
So insensitive to poor Coliru.
Leaking its memory everywhere.
How could you?
 
@JerryCoffin lol
@Rapptz That's what it deserves for being down all the time.
 
Think about international children day or women's day, not all holidays are for everyone
 
@Jefffrey You bastard
 
@Jefffrey Got it. So ~15 min
 
@Borgleader shall I see?
 
It took me ~40 min
 
thanks, Jared
 
fuck, Jared
 
@sehe I've run into a handful of these compulsive editors that make the most insignificant edits.
And others that just make wrong ones.
I'm guessing theres a badge for edits? (That would explain a lot of things)
 
I think his edit was an improvement. But to change the bracing style really pushes the limits of what is an appropriate edit
@Borgleader I would suspect there are a dozen :)
@Jefffrey come on, don't get petty on my posts
 
1:34 AM
he started, mum
 
@Jefffrey To be fair, I had to implement a doubly linked list in Java for a class like 4 years ago. So this sort of thing is not entirely foreign/new to me.
 
@Jefffrey See. You didn't even last 2 minutes
 
i cri evrytim 2
 
@Borgleader Did any of your implementations handle cyclic lists :) /cc @Jefffrey
No documentation is no pre-conditions
 
define "handle"
mine will happily cycle it all the way to infinity
It might hit stack overflow some time though
 
1:38 AM
@sehe Absolutely not
 
@Jefffrey good boy
 
Let's test it.
 
Okay guys. Bed time. I'll try to last at least 4 hours.
Top that
 
Hold on to your butt Coliru, this is going to be a hell of a ride.
 
@Jefffrey It will just kill it in 5 seconds IIRC
 
1:40 AM
but i dont think it would be very hard to add, just an extra "cycleNode" ptr that moves ahead twice as fast, if cycleNode ends up being the same as currNode then you throw an exception or something
 
@Borgleader then there are perfect periods. So, you'd need to cycle it modulo some prime number. Not very efficient
 
@Borgleader Did you came up with that or did you study that technique in compsci?
 
Just keep a set of visited nodes
 
1:42 AM
@Jefffrey Someone told me in the lounge at some point, I think it might have been @JerryCoffin
 
@CatPlusPlus that's going to take linear space
 
It's usually known as the "turtle and hare" algorithm (or something similar).
 
@Jefffrey Who cares
 
@CatPlusPlus A bloom filter for very large sets. Actually, that's a particularly dumb idea. But it's more space efficient :) LOL
 
sehe
I think
 
1:46 AM
very good photoshop job
 
@sehe How would you deal with false positives (that are going to be a lot for large sets)?
 
if a site is in multiple languages, how is that usually handled? Each page is just added to an i18n?
 
Yes no maybe depends
 
it's a news site, and people write articles in a rich text editor and submit the article. It's supposed to be translated to other languages too
 
That is going to suck.
 
1:57 AM
indeed. Meh, whatever
 
You effectively need multiple correlated articles
 
just add something in the url then? site.com?lang=de or something?
 
Automatic translation (google-translate-like) is going to suck. Badly. Either you hire someone to translate them manually or this will be terrible.
 
Nobody said anything about automatic translation
 
He said that people write and submit articles (in language X) and it's supposed to be translated to other languages too. If you are hiring translators then what's the problem?
 
2:40 AM
no need for automatic translation. There would be translators, it's just how does this effect the database when they make their translations?
 
Just have a article table that stores 1) author 2) date of post 3) last edit 4) etc... and an article_translations table that has a foreign key to the article table.
One to many relationship between an article and a translation.
Or if you want to store revisions, than have a revision table that has a foreign key to the article table; and have a translations table that has a foreign key to the revision table.
 
3:01 AM
Hello all,do u guys mind if i ask a programming language that's not C++?
 
yes
 
@Zenix what's the language?
 
Wow wtf. For the first time, Visual Studio beat GCC to a feature.
I've been using this for the past few weeks, and everything broke when I tried it on GCC.
 
Which one?
 
VS2013 and ICC14 both have that intrinsic. GCC 4.9 does not.
 
3:10 AM
Oh. Intrinsics.
 
Now I need to decide whether to make a GCC compatible path for everything that uses that intrinsic. Or try to wait it out until a later GCC.
The only alternative in GCC is inline assembly.
Or I can just throw some half-assed emulation of that intrinsic and call it day.
 
Man.. wtf
I go back to Windows after 2 weeks and my font looks weird
 
lol
 
Is this how Consolas looks like?
I'm really confused. I share settings on Linux/Windows.
But this looks really weird to me
 
Is that VS's dark theme?
I don't use it.
 
3:16 AM
No that's Monokai
 
@Rapptz Yup.
 
looks tiny
 
Consolas looks best on 10pt.
 
That is 10pt
 
I know.
Also, Stack Overflow uses Consolas.
 
3:46 AM
^^ I didn't even notice since I was repcapped.
 
3:57 AM
@Rapptz consolas is a windows only font. You can export the files and import them on linux but they'll look like shit in most cases because of a lack of DirectWrite subpixel rendering for which consolas is heavily optimized.
 
Er.. No.
It's not DirectWrite
It's ClearType
Which is implemented in GDI too.
 
@Rapptz not on Vista and 7 in the same way
 
Regardless
That's not the reason
Subpixel rendering is on other operating systems
 
although GDI on 8 is just a layer over Direct2d/DirectWrite
 
Firefox UI died again how fun
 
4:03 AM
MY RESULTS ARE A SIGNIFICANT IMPROVEMENT ON THE STATE OF THE AAAAAAAAAAAART
2
 
4:54 AM
Steam gave me two -60% coupons for Drunked Robot Pornography
First review: not recommended, "Not actually porn"
 
maybe it's dumb, but if you re-assemble "who cares", it could be read as "c as whore"
 
Amazing
 
morning
 
5:18 AM
Morning was yesterday and I'm still awake therefore it can't be morning
 
5:30 AM
hi.
 
Hello.
 
user3010322
6:08 AM
GUISE
 
user3010322
Need headset.
 
user3010322
OPINIONS NAO.
 
Sort by price ascending
Pick second one
 
"headset"?
 
Tis what we call headphones with integrated microphones
 
6:15 AM
I'm not sure if he meant w/ microphone or w/o.
 
Headsets without microphone are called headphones
 
I know but it's ThePhD.
3
 
user3010322
Cat is right. :c
 
user3010322
I'm not that much of a noob!
 
Hey man. Past experiences and all.
 
user3010322
6:17 AM
:v
 
My brother uses Turtle Beach brand headsets.
I can't vouch for them.
But he likes them and they don't seem too expensive.
 
user3010322
Don't seem too expensive > first pair is easily 100 bucks
 
More like, <$50.
 
Also since I think you're in New York you should buy from B&H.
 
6:53 AM
@CatPlusPlus lol
 
7:21 AM
@Rapptz No screenshots. :v
 
user3010322
@Rapptz No longer in New York.
 
user3010322
Also, uh. APi question.
 
?
 
user3010322
void ( optional<Thingy&> woof );
void (Thingy* woof);
 
user3010322
Which would you all prefer and why?
 
7:25 AM
The former, as it captures semantics.
 
former I suppose
 
Or two overloads, one of which takes no parameters.
 
user3010322
void( optional<Thingy&> woof = nullopt );
 
user3010322
"No parameters" version.
 
user3010322
You could do that with = nullptr too, though.
 
7:27 AM
void (Thingy& woof);
void ();
 
know what the world needs?
more SSDs
 
user3010322
@PolymorphicPotato That's writing two functions which can be covered by the space of an optional and a default parameter.
 
user3010322
So I think I'll just do the optional.
 
7:42 AM
@ThePhD You can put the whole program into a single function, but that doesn't make it better just because you wrote fewer functions.
 
user3010322
Less functions to maintain, even if it's just "forward each function call to an internal one that takes a Thingy*"
 
user3010322
And, it also clearly conveys to the user that Thingy is not mandatory and the function will operate with or without it, whereas an overload might do other things if not provided with a thingy.
 
user3010322
@Rapptz So TurtleBeach, huh?
 
Yeah
 
@ThePhD Only if the API writer is a total batshit moron.
it's well-accepted that in the general case, the overload solution is preferable.
 
Xeo
7:58 AM
@Mysticial Haven't watched SAO yet, except for Ep1
 
encoding='cp1252' ;_;
 
You can start. Don't go past ep3. 4 and 5 are consecutive cliff hangers.
 
@Mysticial It sucks that episidos are only 2 minutes.
 
@StackedCrooked wut?
 
Or at least that's the feel.
 
8:08 AM
How is ::this_thread implemented?
 
user3010322
Magic.
 
probably a wrapper for HANDLE WINAPI GetCurrentThread(void); on Windows I'd say
 
not what I meant lol
in C++ you do things like
std::this_thread::sleep_for(...);
I don't know how the namespace is implemented
 
oooh
 
I guess it's magic
 
user3010322
8:09 AM
static function in this_thread ....?
 
user3010322
Like.
 
user3010322
It gets the current thread ID. Which is a thing you can do.
 
could it be that std::this_thread::sleep_for always queries the calling thread as a static method?
 
user3010322
If it even needs to (e.g., for sleep, no.)
 
static std::this_thread::sleep_for {
    get current thread;
    make it sleep;
}
 
8:12 AM
@ThePhD possible.
 
@Rapptz static class maybe?
 
user3010322
@AlexM. Or you just call sleep, and it implicitly sleeps the thread that the function was called on.
 
@thecoshman those are called namespaces in C++ man.
 
@ThePhD well yeah, good point
 
@Rapptz ¬_¬ you win this round...
when in doubt, blame compiler magic
 
8:14 AM
@Rapptz Name overloading?
 
well I guess it just queries the thread ID and just executes the functions based on that like ThePhD said
 
8:26 AM
man computers are so awesome
I love computers so much
 
They compute very well.
 
yes
and they only compute what I tell them to <3
 
@AlexM. You mean, you love "man computers". Right?
 
woman computers suck
 
my computers are neither females nor males
they're coffees
my desktop's name is creamy cappuccino
because kinky and tasty, obviously
I tried moving my browser on the left screen and keeping my IDE on the right
it is indeed more comfy
 
Xeo
8:32 AM
erm, hi
 
> The Boost System Library will become part of the C++0x Standard Library.
...really?
where is it?
Oh.. whoa..
It is there
 
speaking of boost, I've taken a look at some of the emails from and to a guy who tried to get his logging lib into boost
it seemed fucking hard to get anything to be accepted in boost
 
@Rapptz system_error IIRC?
 
Not just system_error
the whole suite is there :v
under <system_error>
now the question is, does GCC support it
 
@AlexM. Please. Don't make me remember that Boost.Application guy...
 
8:35 AM
@AlexM. For good reason.
 
@MarkGarcia huh, now you made me curious
link please, googling "Boost.Application guy" didn't get me very far :(
@Rapptz yeah I get the reason, though the process still seemed rather draconic
 
@AlexM. I see him almost everywhere promoting his library. Last time I checked his mail to the Boost mailing list just got ignored.
 
literally first result man
 
cringe
 
@Rapptz my first result was
> Paths to a Navy Commission - US Military - About.com
 
8:37 AM
that's amazing
@AlexM. hey I get that too
 
nvm
 
that's an ad
 
> The BOOST program is conducted at the Navy Education and Training Center
 
man this <system_error> saved me so much time
I'm glad it exists
 
@Rapptz errors usually cost me time :)
@Rapptz btw, what are you using it for?
I haven't checked it out yet.
 
8:39 AM
@Rapptz I was hoping to see emails with refusals :(
 
@StackedCrooked cross platform errors!
like on Windows I have to fiddle with GetLastError() then turn that into a pretty string
 
@Rapptz btw it was kinda broken in MSVC
 
and on Linux I have to go through errno
@Abyx I don't care lol
 
ok
 
everything's broken in MSVC :v
 
8:44 AM
is there any actual need for something like boost.application
 
no
 
that's what I thought
 
@AlexM. cringes again
 
@MarkGarcia Where'd you hear about this anyway?
 
Boost mailing list.
 
8:46 AM
are those public?
 
Of course.
 
actually is there anywhere I can see the boost guys telling the boost.application guy to fuck off?
 
yikes..
 
@AlexM. lol you really want to see it
 
yeah I'm serious I liked reading the boost logging thingy mails
 
8:47 AM
the group under "Who's using 'Application'?" is his own company..
I don't think that counts...
 
bwhahaaa, I love today's xkcd
 
btw there are a lot of non-boost libraries that call themselves Boost.Stuff
it's kind of weird
 
it looked sad to me at first
 
I don't think I've seen many actually get accepted
 
"look I'm not boost but I want to be!"
"please notice me boost senpai"
 
8:49 AM
so you are STL ...
 
@AlexM. The Boost mailing list gets boring to read as time passes, though you might like it. There's some interesting bits here and there.
 
@AlexM. I've seen this a couple of times.
Where's people write a library that "pretends" to be a boost lib.
I think it's a bit pretentious.
 
Just yesterday I saw something called Boost.Hana.
 
it creates a screensaver with flowers?
 
no
a C++14 metaprogramming library
there's like no way that'd get accepted I think
 
8:51 AM
I should write Boost.Boost library.
Maybe not.
 
can't you already use asio with files?
 
TIL about this: ci.nedprod.com
 
> for(auto &ih : ihs)
 

« first day (1388 days earlier)      last day (3578 days later) »