« first day (1073 days earlier)      last day (3865 days later) » 

12:15 AM
The internet is such a lovely place.
Oh my God, are you guys ok?
Why are you all inactive all the sudden? Has something happened where you live?
 
Yes.
It's called "night".
 
There's no "night" in the lounge.
 
But there is "night" where we live.
 
Yes, but some people go to sleep and some others wake up. It's the day cycle with different timezones.
 
The thing is, Lounge is mostly based in Europe.
 
12:24 AM
and it is night
 
the darkest.
 
it's over
 
@DeadMG There's that dry, understated English wit!
@Griwes At least if you pay attention primarily to quantity, not quality!
 
1:12 AM
0
A: What happens when there's insufficient memory to throw an OutOfMemoryError?

user2805447this happened to me and it borrowed memory from games and reset games to beginners level

^^ lol
 
1:22 AM
happens all the time
 
1:58 AM
@Mysticial looks like it was deleted
 
0
A: How to overload >> operator to take variable argument list

Code-GuruRemember that the comma is an operator. It evaluates each expression and returns the value of the right hand operand. Also, it associates from left to right. This means that 4, 1, 2, 3, 4 >> vX; is equivalent to ((((4, 1), 2), 3), 4) >> vX; but 4, 1 evaluates to 1, so the above evaluates to...

 
meh @ question
 
yah, but my answer deserves an upboat!
 
2:22 AM
Yes.
 
I was thinking of the Java one, sorry.
I wonder if C# would be better for me right now.
What do you think?
 
C# is pretty easy, go for that since you can't escape the OOP musk.
 
Haha. Well, I was thinking.
At this point in time, I am not learning anything, say, low-level.
And my main issue is design.
And we both know nobody is going to use/play what I make, so portable doesn't really matter.
 
You don't have to use "low-level" in C++.
Anyway I should go play some vidya.
 
I don't.
I am saying... well, if you were to say I was using it to learn still. Not sure what I was thinking of when I said that.
 
2:29 AM
Do whatever is easier for you to conceptualise. Design issues are language agnostic.
 
That was my thought. Perhaps it would aid me somewhat, in learning design, and not wondering why I got a linker error because the build system.
Speaking of which, I think I found what I do:
Analysis paralysis or paralysis of analysis is the state of over-analyzing (or over-thinking) a situation so that a decision or action is never taken, in effect paralyzing the outcome. A decision can be treated as over-complicated, with too many detailed options, so that a choice is never made, rather than try something and change if a major problem arises. A person might be seeking the optimal or "perfect" solution upfront, and fear making any decision which could lead to erroneous results, when on the way to a better solution. The phrase describes a situation where the opportunity cost...
 
@Rapptz IMHO, not necessarily. You go by how the language permits or restricts you to do something. And we see that libraries in different languages often have different designs.
 
True.
 
@Pawnguy7 That comes up a lot here yes
 
@Pawnguy7 You should do your design incrementally.
 
2:32 AM
@CatPlusPlus it does?
 
You can never have a perfect design, much less a perfect design in your first try.
 
I don't think it is perfect. I just... well, I made terrible things in the past, you see, and vowed to never do it again. So I guess I get nothing done, because I am afraid it will suck.
 
@Pawnguy7 Just as the saying goes, learn as you go. Learn from your mistakes. More importantly, don't let mistakes bug you down. In fact, you should be happy to discover that you've made mistakes, which some people doesn't want to acknowledge.
 
@MarkGarcia can you expand on this? I am not certain what this is.
 
2:42 AM
I found them, but I still didn't understand.
 
No code is more broken than code which never gets written
 
Also in many other nicknames.
@PaulGriffiths At least it doesn't have bugs. :)
 
@MarkGarcia Sure it does - that code I just didn't write doesn't calculate this prime number at all, I can't figure out why...
 
Why do I always see the crap from MLP, Justin byber, and mylus w/e, on the places where I do not see them.
 
@PaulGriffiths lol. Then a better way would be to let the compiler or linker shoot off some errors. ;)
 
2:46 AM
@MarkGarcia I just tried and it said "no input file", wut m i doin wrong???
 
Hola people! :D
How are we all doing this fine morning?
 
Anyway, I guess, as with seemingly everything, it is a balance: Don't charge in, but don't think about it forever either. I just hope I follow through.
@MarkGarcia is it basically, "make stuff when you end up needing it?"
 
@Pawnguy7 Or just "Just do your stuff, find problems and fix them, do better than the previous one."
:)
 
3:02 AM
@GamesBrainiac hey dude
 
3:33 AM
@A.H. Yo man! :D
Hows it goin?
I sometimes really wonder what outsiders think when they look at the shit we pin on our walls :P
 
their opinions are irrelevant
 
@DeadMG You use 'irrelevant' way too often. Find a synonym.
 
synonyms are irrelevant
 
I am getting better at overnight hiking $
The first day we did 12km-15km ... and half way on the 2nd day on the exact way back, I wanted to jog it with my backpack
 
@DeadMG You sure you're not a bot?
 
3:45 AM
bots are irrelevant
 
@DeadMG Well its good to see your messing around a bit. I was thinking you were becoming crazy. :P
 
crazy is irrelevant
 
Glad you're feeling better
 
better is irrelevant
well, not really
man, I cannot wait for that frickin surgery
 
@DeadMG Us too, and we'll finally hear better things from you other than your whining. :)
 
4:00 AM
 
@DeadMG Hope your dog finds you more tolerable after that :P
 
heh
stupid mutt needs us to find her more tolerable, not the other way around
 
4:17 AM
why the fcuk am I not asleep?
oh yeah, that's right.. insomnia.
fuck insomnia.
gotta be ready for a shoot in about 2 hours, just saw my face in the mirror and I look worse than normal.. thank god for make-up, or whatever.
 
4:33 AM
aw, man
I just watched Dexter finale
I kinda agree.
er
anyone here against spoilers for that shit?
well, screw you all then
I was kinda expecting what happened to Deb
but I'm definitely bummed about what Dexter did at the end... I was looking forward to Argentina
I know.
I just saw the most recent episode
and is it me, or could it really sum up as "Not much happens"?
almost all the characters are in the same situations they were before.
pretty much the only thing that changed is Walter's approach to his situation
hmmm, I dunno
I couldn't bring myself to care about that too much.
she's just been a side character for too long
heck, I hardly cared about her when she was part of the main plot before
@ScottW I was also thinking that they have the same enemies.
Jack and his crew.
so I dunno, but I think that Jesse just got a taste of why Walt's still a better man than many others
and I think the last ep will have to be a Jesse/Walt teamup.
Jesse/Walt vs Jack.
Gus was that kind of worse too.
 
Just answered a python question, poor bastard forgot to save the file.
 
I agree.
but he also struck me as kinda savage.
more than necessary
who's Victor?
oh wait, is that the guy who tried to cook when Gale died?
ah.
no, not really
what I was thinking was that the whole Gale thing was really Gus's fault. If he had just kept his dealers in line, he would never have had a problem with Jesse, and the whole thing wouldn't have gotten off the ground.
and even after all of that, when he had Jesse to cook, threatening Walt's family was really over the top, IMO
hmm, I disagree.
he already knew that Jesse could be trouble after he killed Gale.
and there were the grand sum total of two cooks who could cook his blue meth.
it can't continue without the cooks.
yeah, but they can't get the return on investment he needs to fund that superlab
and he put a vast amount of money into it
true.
well, I think that he wouldn't have been dead if he hadn't threatened Walt's family on top
his special blue meth is worth too much of a premium on the regular meth
they didn't realize just how dangerous he could be
 
4:50 AM
Really? We're talkin about fictional meth now?
 
I could also talk about the hideous pain in my guts
 
@DeadMG Hope you get your surgery soon. Hope you get well soon man.
 
one of the things that makes Breaking Bad great
is how they know when not to play any music at all.
somehow it's just never occurred to me before how I've never seen some scenes which are basically completely silent
 
5:38 AM
0
Q: What's the best way to allocate HUGE amounts of memory (C++)?

extracrispyI'm allocating 10 GB of RAM for tons of objects that I will need. I want to be able to squeeze every last byte of RAM I can before hitting some problem like null pointer. I know the allocator returns continuous memory, so if I have scattered memory from other programs, the max continuous size wi...

lol
 
> I want to be able to squeeze every last byte of RAM I can before hitting some problem like null pointer.
what?
 
the hell. someone is giving me crap for using int main() instead of INT WinMain(CAPSLOCKPARAM something...)
 
the fuck?
 
I mean ok it was a Win32 window application, but still...why would I ever want to use WinMain :/
 
@melak47 I needed to do this kind of shit once to get an ultra low latency piece of gl code...
 
5:53 AM
I've a class host in util namespace
But util::host makes compilation error
it thinks util::util::host
I hate making ::util::host
not getting why compiler thinks util::host as util::util::host
However it resolves If I use ::util::host
 
You are inside util?
 
No I've never used using namespace util in my usercode
my host class is written inside util namespace
> host is not a member of util::util
compiler says when I use util::host in my usercode
Oh! I see
I forgot to put the closing braces of namespace util{
So it was putting everything inside util
 
@Mikhail WinMain is just if the subsystem isn't console application..
@melak47 Because if you don't have a WinMain then the subsystem is console and you'll have a console window open.
 
@Rapptz afx does crazy shit based on which subsystem you selected. It sets a few other things.
 
user1804599
6:09 AM
lol
 
user1804599
Erlang! retweeted my complaint about file:read_file returning {error, eisdir} on named pipes.
 
6:38 AM
@Rapptz so if its just main a console pops up when it runs ?
 
@A.H. Yes.
 
@MarkGarcia tell him to reserve 10GB in the bss
@Rapptz does WinMain affect anything else?
 
-2
Q: How to find a girlfriend with stackoverflow

cokimonI am new to stackoverflow. I am searching for a new girlfriend. My father told me that i will get a beautiful girlfriend with stackoverflow. But i have no idea how to use this account for finding my girl.Is it possible? If any girls intersted please give me your mobile number. Pleasee help....

 
lol
 
> put on hold as primarily opinion-based
ahaha
I held off on VTCing that because I couldn't choose a reason. lol
 
6:46 AM
@Mysticial lol. That's what I'm gonna say.
 
@melak47 haha CAPSLOCKPARAM
@MarkGarcia That's what I said.
 
@Mysticial this was just too good.
 
I think beautiful girlfriends are cheaper to purchase from under developed countries
 
@Telkitty猫咪咪 o.O
 
user1804599
7:34 AM
@Mysticial Awesome.
 
@ScottW great to know :)
 
7:53 AM
> Perl has, for some reason (extreme future-proofing?) internal support for 72-bit characters.
TIL
 
user1804599
Perl is cool.
 
user1804599
Perl is hot.
 
Xeo
3
A: Raw pointer lookup for sets of unique_ptrs

YakkIn C++14, std::set<Key>::find is a template function if Compare::is_transparent exists. The type you pass in does not need to be Key, just equivalent under your comparator. So write a comparator: template<typename T> struct pointer_comp { typedef std::true_type is_transparent; // helper do...

interesting /cc @DeadMG
 
user1804599
That would be most useful in my garbage collector.
 
user1804599
I use std::find_if right now. :v
 
7:59 AM
Too bad std::unique_ptr can't be compared with raw pointers.
lol. There's a little bit of pun in there :)
 
sigh "The whole point of C++ is object oriented programming. Not functional." stackoverflow.com/questions/18952921/…
@MarkGarcia you can make a functor to do the comparison for std::unique_ptr
 
@MarcClaesen Yeah, and you need to have is_transparent in it.
 
@MarcClaesen Bjarne would like to have a word with that guy.
 
I'm sure :P
 
Just read your comment :)
 
8:02 AM
@MarkGarcia ah, gotcha
 
@MarcClaesen I think is_transparent is unnecessary though, though I think they put it there for safety.
 
@StackedCrooked I was pretty disappointed to see a 17k rep user spout such nonsense
 
Xeo
@not-rightfold You can also use a custom deleter that has a bool which says if it should actually delete
 
@MarkGarcia I am completely uninformed wrt to the new features in C++14, I'm still getting up-to-date with C++11
 
@MarcClaesen Me too. There's just a lot yet to be discovered. You'll just be surprised that there's this and that feature in C++11.
 
8:11 AM
@MarkGarcia getting updated with c++11 sometimes feels like learning a new language to me
 
user1804599
@Xeo Huh.
 
user1804599
I do have a custom deleter, but only because I don't use RAII in the objects themselves.
 
Xeo
struct maybe_delete{
  bool do_it = true;
  template<class T>
  void operator()(T* p) const{ if(do_it) delete p; }
};

template<class T>
std::unique_ptr<T, maybe_delete> make_find_ptr(T* p){
  return std::unique_ptr<T, maybe_delete>(p, {false});
}

my_set.find(make_find_ptr(p));
something like that
 
@Potatoswatter waffle!
 
Xeo
@Potatoswatter That does not look like fun
 
I found the error somewhere in the middle
 
@MarcClaesen There's no error. It's all just FYI.
 
man C# is just so friggin awesome
 
8:37 AM
@Potatoswatter nice. although it looks like you asked for it (amalgam_functor_slice_upto) :)
@GamesBrainiac get in a boot :/
 
@sehe eh?
lol
 
@Xeo wait was C++14 released yet or is it just cppreference.com fucking around?
 
Xeo
Not released yet
 
@sehe There are a lot of things going on there. It pretty much traces through half the metaprogram. That little gem returns a reference to a subset of a functor-tuple, so elements in the tuple's type-list can initialize themselves from preceding elements in the same tuple, without being confused by finding themselves.
 
@Xeo I should rather ask about the definite 14 there, but I guess the answer would be the same
@sehe WRT your top starboard post, I have "Object Oriented Analysis and Design" from the same series, and I find it very good.
 
8:42 AM
@Potatoswatter sounds very useful
@BartekBanachewicz So you mean there's Head First OOAaD?
 
@sehe When I realized I needed it, I did some soul searching… but this will all turn out alright…
 
:)
 
Xeo
I don't really get arrows, but Arrow's function instance alone is cool.
 
kids gonna love toys
 
pretty much.
 
8:46 AM
Hi, y'all.
I have a C question, don't know if it applies to C++ as well... anyway, you can set the pack pragma around a struct, but what if I have a typedef struct?
 
@Markus neither standard C nor C++.
 
well gcc c
 
we don't use "gcc" C. There's Standard C and Standard C++
now correct me if I'm wrong, but #pragma pack is an extension.
 
ok, but how about the __attribute__(packed) then?
is that a standard?
 
@sehe it has a lot of stuff dealing with, for example, interaction with clients and proper requirements setting.
@Markus that would be original GCC extension. #pragma is typical to Microsoft tools
I don't think C has a way to enforce what you want, but then again C is a terrible language no one should use.
 
8:48 AM
#pragma once <3
 
@GamesBrainiac fuck it. I want modules.
 
Xeo
^ that
 
@BartekBanachewicz lol agreed. but that sames you a lot of goddam IFDEF staments
 
user1804599
@Xeo Ohh. Well, I store that Boolean in the objects themselves. :v
 
@not-rightfold for kreeft?
 
8:49 AM
Well I can't really just go and rewrite the whole code to C++ by my self, so C will have to do for now...
 
user1804599
Your approach is better, because then I can use multiple garbage collectors. :P
 
@BartekBanachewicz lol, it's the same pose as the girl
 
@Markus could you just change compiler to a C++ one for now?
if you're using gcc, you might as well use g++
 
@Markus The #pragma applies to all struct definitions in its scope. It does not affect typedef, which merely aliases to a preexisting struct.
 
@StackedCrooked I think all the books from the series have that.
 
8:51 AM
@Potatoswatter how do you mean aliases to preexisting struct?
 
Xeo
hm... you'd think there's a provided function for span p >>> second (dropWhile $ not . p)
 
> Consequently, gets() was deprecated in C99. C11 removed it entirely, replacing it with a safer version called gets_s():
 
Xeo
There's some stuff in Data.List.Split, but that (obviously) doesn't result in a tuple
 
ahahaha I will be so pointing that whenever I see gets now
 
@Markus A struct type exists even if you don't give it a name. A typedef is just an alias for another type. When you do typedef struct { int q; } mystruct;, you have an unnamed struct (which may have #pragma pack applied) and a named alias to it.
 
8:53 AM
@Markus > Taking after C++11, C11 introduces facilities for probing and enforcing the memory alignment of variables and types. The _Alignas keyword specifies the requested alignment for a type or an object. The alignof operator reports the alignment of its operand.
 
ok, and the pragma won't be included at the struct (inside the typedef)?
 
so you should use _Alignas instead, as it seems.
 
@Markus That sounds like the opposite of what I'm saying.
 
@BartekBanachewicz Alignment.. aliases.. what?
 
> you have an unnamed struct (which may have #pragma pack applied)
 
8:55 AM
(They're different)
 
@Rapptz it all started with #pragma pack
@Xeo what's the problem with struct X again?
 
@Xeo Weird.. I can do using x = struct { char x; int y; }; just fine
 
Xeo
@BartekBanachewicz It's not using X = !
@Rapptz Yeah, but then you can't define constructors.
 
@Xeo Ask Herb to standardize it! :)
 
Xeo
8:57 AM
Or use X at all within the class.
 
Xeo
@BartekBanachewicz I really like the name = stuff form :P
 
@Xeo As a poor VS user I had to work my mind around it :/
wait, does it work already?
 
Xeo
RC may have it
 

« first day (1073 days earlier)      last day (3865 days later) »