« first day (607 days earlier)      last day (4324 days later) » 

3:01 PM
in Kyrostat, 26 secs ago, by Domagoj Pandža
Here's a deal, if we finish this, I'm buying you beer until you drop.
@DomagojPandža safe betting, good policy
@TonyTheLion see other room (starboard)
 
@sehe Your skepticism is amusing :)
 
@Neil (a) wut? It's a lot better already (b) it's not just me (c) have fun
I am
amusing
 
@sehe While I personally don't think there are high odds of the whole thing happening, even if it fails after a few weeks, it will be worth for those few weeks of writing possibly fun stuff :)
 
4 messages moved to Kyrostat
 
sbi
@sehe You're a star!
 
3:06 PM
@sbi you're free to roam the lounge again :D
 
oh we roam this lounge and talk about bacon sex! :P
 
@sbi Anytime :)
 
sbi
@thecoshman I was just looking at that tab and it said 700+ new messages. I despaired.
 
@sbi ironically, now we have our own room, it's rather hush hush :P
 
Well, this took me a lot less time than I expected.
 
3:08 PM
@thecoshman So we can entertain the ladies
@CatPlusPlus What?
 
sbi
@thecoshman Yeah, but that's what tends to happen if you scare everybody away with your private talk.
 
Looking at a flat from the offer.
 
sbi
Was it a flat offer?
 
Was it flat enough ? :)
 
sbi
Was she flat enough?
 
3:10 PM
Was it fat enough?
 
Did she offer enough?
 
Strooooong enough!
 
sbi
She offered a flat rate, no doubt.
 
Enough
Eunuch
@sbi A scarcely clad eunuch?
 
sbi
Now the @Cat is all miffed offended and rolled up in the corner of the couch.
 
3:13 PM
^ Oh nice. At least it's not clearcase
 
sbi
Go an look if you must, but please do not paste here what you had just banned from here.
 
@sbi Y ?!
 
@sbi Why?
@sbi In that case... you binned the wrong message
 
sbi
@sehe Yep. I am sorry.
 
1 message moved from bin
1 message moved to bin
Fixed. Almost
 
sbi
3:15 PM
Damn, you each one of those the very moment I had my finger on the trigger to do it myself. I am now trigger-itchy.
2 messages moved to bin
Ah. Much better now.
:)
 
@sbi What?
 
yep.
 
@sbi :) I'll leave the rest for you in case it needs to be done. Oh, you'll have to have access to the Cryogen room should you want to move messages here
 
sbi
@CatPlusPlus Nuffink, really. Go back to the couch, roll yourself into a furry ball, and sleep for 20hrs.
 
@sbi Well, that's a good idea.
 
3:18 PM
dammit =\ with 768px screen height I can't see messages I just starred =(
n00b-hints message is too long
it should be "Read this or GTFO. Thanks."
 
sbi
@Abyx I have replace the paragraph about asking questions on the newbie hints page by a reference to the @Cat's new page about asking question. (I also fiddled a bit with the latter, @Cat. I hope you agree with my changes.) I don't need that separate link to what's linked to from the newbie hints' very first paragraph.
 
@sbi Sure.
 
sbi
If you are new here, please read the newbie hints and keep the acronym list under your pillow.
16
 
still 3 lines, you can add some text there :)
 
Attract more attention. Wave in front of the glass pane
@sbi Yeah that's what he said. Still, wouldn't it be easier to just say, "I tried that, but I'm just not patient enough"
 
sbi
3:33 PM
8 messages moved to bin
Aplonk!
:)
 
Going Screensaver - When you notice a coworker spacing out, or dozing off in a meeting.
 
@Fanael Ok to shout out to @SOMEONE, but at least plink your intended addressee when you do
 
I think I'm gonna remember this one :P
 
sbi
I lurve that feature!
 
@sbi why you move so much?
 
sbi
3:34 PM
@Abyx To get rid of it.
 
@Abyx It's healthy
 
Y U MOVE SO MUCH?
 
also I can't make monitor of laptop bigger
 
@TonyTheLion What, you live in the bin?
4
I bet you can
It's a tradeoff
 
3:35 PM
lol
 
sbi
@Abyx Loser!
 
@sbi no. with smaller screen it's lighter
useless animals =(
 
sbi
@Abyx I carry a laptop around that comes with a power adapter the size of a netbook. I got my employer to buy two power adapters, though; one for home and one for work.
 
user784668
@Abyx Sure, use robots instead.
 
sbi
Due to popular demand...
 
3:44 PM
this room is empty
damn
 
Not really
 
talk about big ears :P
 
user784668
assert(Lounge<C++>::empty() && "the lounge is not empty")
 
@TonyTheLion maybe next time
 
sbi
@Fanael That would assume this room's empty() function to be static. I dare say that's nonsense. It's certainly dynamic.
 
3:47 PM
@sbi We're a global variable.
 
sbi
@DeadMG Actually, for all I know, you're virtual.
 
@sbi a static function can absolutely evaluate dynamically at runtime. The problem is that, although there is clearly only one Lounge<C++>, there is no reason to implement it in singleton fashion :)
11 hours ago, by Jerry Coffin
@Drise Got curious and did a quick check. The highest rep using claiming to be from China has a rep of 58; total activity: 1 question, 3 answers. Pretty sad for the most populous country on earth.
^ Tha is amazing
 
@sehe That was incorrect
 
@Drise Only last week. I see
@Drise And hi
 
Hey lol. Make y u take all my ram?
II had to switch to my phone, I practically crashed my computer.
 
3:55 PM
@Drise When? That's not normal. Unles you have < 512mb of ram
 
the most crowded room on stackoverflow Hello
 
I changed a header so it's having to relink all the dependencies.
AAnd someone was running a simulation on my of, which was also taking up ram.
Pc, not of.
Ah, there we go.
Make finally released it's resources.
I really need to turn down -j
make -j is almost guaranteed to crash your pc if on less than 4 GB of ram. I'm on 12, and it still takes me down.
 
@Drise that will help
@Drise depends on what you are compiling. Lot's of boost TMP? Perhaps PCH is something for you
 
@sehe I'm compiling Qt and Vtk
I dont even know how many lines this is.
But its a lot.
FILE* pFile = fopen(strFileName.c_str(), "r"); Who wants to rage?
 
@Drise that explains
@Drise I don't. It's just legacy code. Could be fine, IYAM
 
4:08 PM
@sehe But it's ugly and not type safe. Also segfaults if it reads when nothing is there.
 
@Drise What do you mean 'nothing is there' (where)? What do you mean: not type safe? Also, the docs to fopen clearly do not allow it to segfault (unless the filename arg is invalid, in which case... )
 
@sehe If I give it an invalid file, and there is nothing to read, I get segfaults.
 
In 20 minutes I'll know if I passed my exams. I'm damn nervous.
 
@Drise fopen does only take a filename, and it doesn't read. Are you, perhaps, referring to some other code that you didn't show?
 
@sehe yea, fgets
 
4:13 PM
@Drise So what do you reckon happens when using iostream? Pass a stale reference to an istream& and you'll get fried just the same.
 
@sehe using cin only breaks the stream, not my program
 
That's incomparable. I get what you mean, but fopen is perfectly fine in legacy code. Heck, it's even sometimes what I'd use (or creat/open) when I need to do blockwise IO in a highly portable/efficient manner
 
sbi
@RadekSlupik 15mins now.
 
@sbi Yup. :D
 
Like he needed the help :)
 
sbi
4:17 PM
@RadekSlupik 12mins now.
 
I know, @sbi. You don't need to mention that every three minutes.
I can count too.
 
user784668
@RadekSlupik You won't.
 
sbi
@RadekSlupik Ok, then only every four minutes?
@RadekSlupik Of course. But this is backwards!
 
@sehe I meant to be raging about fopen and the code that follows. It's all written in C and has been giving me headaches for the longest time.
 
@sbi Every 30 minutes is fine.
@Fanael fy
:P
 
sbi
4:20 PM
@RadekSlupik But that I cannot do, if you've only given me a 20mins notice!
 
Okay, every ten minutes then.
 
user784668
@RadekSlupik 10 minutes.
 
sbi
@RadekSlupik But that's just passed, too! I guess I stick to the original 3mins interval then, Ok?
 
9, silly.
 
sbi
Only 9mins left, @Radek!
 
4:21 PM
for ifstream, how do I clear the error bit?
 
@sbi k every 7 minutes is fine.
 
I can't remember.
 
I never really realized how our OS's limited harddrive size. I'd always assumed that for a 64bit OS, the max harddrive size would be 256TB-16EB, but It appears that Linux/ext3 tops out at 32TB. Windows XP tops out at 256TB.
 
sbi
@RadekSlupik Starting from when you announced the countdown or counting down myself?
 
I PASSED MY EXAMS. :D
(It's on the internet.)
 
user784668
4:22 PM
@RadekSlupik :(
 
sbi
@RadekSlupik And preliminarily, too!
@RadekSlupik Cong-rats and other rodents!
 
@MooingDuck Bull that xp tops at 256TB
 
@sbi Thanks!
@Fanael Die!
 
sbi
@MooingDuck Actually, without UEFI BIOS, you're limited to 2TB. And XP doesn't know how to handle UEFI.
 
I'll be gone for a few hours.
 
4:24 PM
> You've earned the "Popular Question" badge for Constant reference to void* pointer. See your profile.
 
user784668
@MooingDuck It's a filesystem, not operating system limitation. ext4? XFS?
 
Reference to void* is popular :)
 
@sbi according to wikipedia, "Itanium versions of Windows XP and Server 2003 can boot from disks partitioned to a size larger than 2.2 TiB"
@Fanael true, I just learned this. I havent found ext4 or XFS yet
 
@RadekSlupik LINK or it didn't happen :D
 
sbi
@MooingDuck Oh, I didn't know that.
 
4:25 PM
@Drise "For example, using 64 kB clusters, the maximum Windows XP NTFS volume size is 256 TBs minus 64 KBs. "
 
user784668
@MooingDuck Seriously? ext4 is THE Linux filesystem for some years now.
 
(I think the cluster size thing is relevant)
 
@MooingDuck 64K clusters is completely wasteful.
 
@Fanael I don't know anything about linux, the first few pages I found didn't mention it. They're probably old
@Drise point stands
 
user784668
@Drise Not when storing lots of big files.
 
4:26 PM
@Fanael For normal users? My point stands.
 
@Fanael there we go! "The ext4 filesystem can support volumes with sizes up to 1 exbibyte (EiB) "
 
EXT4 is boss. Pure and simple.
 
user784668
@Drise I have some disk images on my HDD.
 
@Fanael Enough to compensate for 64k clusters? I think not.
 
@Drise Except, of course, cases where other FS rock more
 
4:29 PM
How many programs do you have installed? How many text documents do you have? How many README.txt's are there as well?
 
user784668
@Drise Have you ever heard of partitions?
 
@Fanael Yes, I'm aware. But no one mentioned using seperate partitions.
 
user784668
@Drise By the way, what do you mean by "programs"? The number of executable files?
 
@Fanael I think he's referring to the number of files significantly less than 64k. If you make a empty text file, it will use 64k of your hard drive.
 
@Fanael Programs that include a bunch of little files.
 
user784668
4:34 PM
@MooingDuck I know, I'm nitpicking. And no, an empty file won't take no space, except an entry in the file table.
 
Under " 5HAVO" in the popup.
 
Am I the only person who thinks UML inheritance arrows point the wrong direction?
3
Q: Porting an existing class structure to smart pointers

betabandidoI know this question is rather long, but I was not sure how to explain my problem in a shorter way. The question itself is about class hierarchy design and, especially, how to port an existing hierarchy based on pointers to one using smart pointers. If anyone can come up with some way to simplify...

 
@Rob No.
 
UML is wrong.
UML is an over-engineerd waste of time.
 
Jun 6 at 17:55, by FredOverflow
@Drise UML is overrated. You'll learn more hanging out in the lounge, laughing at my puns.
 
4:38 PM
I don't see why C++ prevents a class from inheriting from two+ of the same type, when one or more were template parameters. I can't think of any reason for the limitation other than consistency with non-template classes, and that doesn't seem good enough for me.
 
Jun 6 at 17:55, by FredOverflow
@RadekdaknokSlupik The most prominent use case of UML is teaching it.
In short: We've had this discussion before.
 
And not that long ago.
 
sbi
@Robᵩ I wouldn't know, but inheritance arrows have been pointing to the base class long before UML came along.
 
@MooingDuck Because in general, you can't possibly distinguish the two subobjects.
Consider: class foo : blah<T>::type, blah<U>::type {};, for example. Which one should blah<typename pick_one<T, U>::type>::type refer to?
 
sbi
@RMartinhoFernandes Depends on pick_one, no? :)
 
4:45 PM
@RMartinhoFernandes I'd think there's a lot of places where pick_one would fail.
 
@sbi No, if T and U are the same, it doesn't, because pick_one always gives the same result.
@MooingDuck How so?
 
@RMartinhoFernandes I'm speculating, I don't recall a pick_one
 
It's an hypothetical trait that returns either the first or the second template parameter based on some secret sauce.
// for example
template <typename T, typename> struct pick_one { using type = T; };
template <typename U> struct pick_one<void, U> { using type = U; };
 
sbi
@RMartinhoFernandes Why? It could return int or float, depending on the source line number.
 
@sbi I thought the name was self-explanatory :(
 
4:48 PM
//used for inheriting from same type twice
template<class sub_expr>
class inherit_again : public sub_expr {
public:
	inherit_again(sub_expr rhs) : sub_expr(std::move(rhs)) {}
};
//This is my workaround
 
template <int, typename T> struct tagged : T {};
 
@MooingDuck Your istream overload works for sstreams, right?
 
@Drise I... think so?
 
Ps. I'm using it to rewrite the C file i/o on my project at work.
 
what is Kyrostat and why are we in it?
 
4:52 PM
Some game people from the Lounge are planning to write.
 
user784668
@MooingDuck Super secret black project.
 
So your proud work will actually get used. :D
 
@Drise That one is definitely cool
 
I love the idea, and its awesome to bring that kind of functionality to a more safe setting.
I wish I could give you more upvotes for it, because seriously, its awesome.
 
4:58 PM
@Drise just edit/comment it once in a while to keep it on the "recent" page :D
 
user784668
@MooingDuck What's cool?
 
@TonyTheLion: No, just sorta handing out in the room. I may or may not actually read it
 
oh I see
 
Besides, they don't trust my code :D
 
@RMartinhoFernandes Y U NO HELP US?
 

« first day (607 days earlier)      last day (4324 days later) »