« first day (824 days earlier)      last day (4139 days later) » 

Ell
7:00 PM
@CatPlusPlus doesn't that defeat the point of futures?
 
@Ell No? Why?
My future value is "loading complete", I don't need anything else
 
@MooingDuck > However, starting with the Windows XP version of the Platform SDK, the Microsoft Layer for Unicode on Windows 95/98/ME Systems (MSLU for short) can help developers solve this important challenge. This component provides a layer over the Win32 API on Windows 95/98/ME so that you can write a single Unicode version of your application and have it run properly on all platforms.
 
Ell
Hmm then I don't understand futures
 
Markdown fail.
 
can't quote block and reply to a message using lame chat markdown
 
7:01 PM
It's a value that might not be ready yet
 
Ell
I thought it was so you could add code onto something without having to hook up callbacks and the like
 
No, it's just a value
 
Well, it's Michelle Obama's birthday.
 
Thank you for this useful bit of information
 
>.< I hate MSVC9. really. "go to declaration" only works like half the days.
 
Ell
7:04 PM
@CatPlusPlus I thought you could do stuff like .then on it?
 
Use ctags
 
Ell
else why call it a future if it's just a value?
I remember it being a value which you can use, whether it's ready or not
 
@Ell future is a variable that will have a value in the future, not code that will execute in the future.
 
@Ell future is just a proxy to a value
 
4 mins ago, by Cat Plus Plus
It's a value that might not be ready yet
What additional API it might have in particular implementation is another thing
 
Ell
7:05 PM
@CatPlusPlus Oh gee that's helpful
 
What? It's a very simple concept
 
Ell
I know, but reposting something I've already read won't help :P nevermind, I need to watch that concurrency talk again xD
 
std::future<std::vector<stuff>> data = load_data();
do_other_stuff_while_loading();
do_stuff_with_data(data.get()); //waits until data is finished, then does stuff.
 
@Ell I really don't know what you mean by that
You're probably overthinking this
 
Ell
@CatPlusPlus Sorry, the sarcasm was uncalled for
2
 
7:07 PM
Oh I can see the sarcasm, I just don't know what's not helpful about describing a concept completely in one simple sentence
Simple concepts are the best
 
Ell
well it was because you'd already said that. To me it's like expecting this:
A: "What is a tomato?"
B: "It's a red fruit"
A: "Sorry I don't quite understand"
B: "It's a red fruit"
A: "Oh I understand now"
 
If you need an analogy, future is a one end of a pipe
There's nothing there when you get the pipe, but something might arrive one day
 
@CatPlusPlus the *output end of a pipe
 
Lol that sucked.
 
You can't do much about the thing that might arrive until it does
All you can do is peek into the pipe
And wait
But you don't have to stand around the pipe all day
You just check it when it's convenient for you
 
Ell
7:11 PM
Right okay, I understand :) Apologies for the sarcasm, it just irked me
 
I have fixed this bug so many times..... :( Something has the wrong filepath for the hold music.
 
If you want real examples of futures bitbucket.org/piotrlegnica/goblin-camp-pl/src/…
Ignore the other parts or you'll faint and die
Well, line 507
 
@Ell Maybe a different analogy will work better. A future is a bit like a mail box. When I get a job somewhere, I give them my address. I won't get paid right away, but eventually I expect them to send me a pay check. Every once in a while, I look in my mail box to see if anything has arrived. If I want to badly enough, I can decide to just camp out at the mailbox until the mailman delivers something I'm waiting for.
 
What's wrong with my analogy save for issues with physics
:<
 
// another example: load audio and video concurrently.
// wait until both are finished before continuing.
auto audio = load_audio();
auto video = load_video();
audio.get();
video.get();
 
7:18 PM
@CatPlusPlus Nothing necessarily wrong with your analogy at all. But sometimes somebody finds one explanation easier to relate/understand than another.
 
I don't really see a how I would use futures in a GUI app though. Because calling future.get() in the main thread would block the UI.
 
You can poll a future
 
@StackedCrooked don't use future.get then. Just use future.valid, which is non-blocking
 
Ah, I haven't used that yet.
For GUI I always post callbacks on the main thread.
 
But you'll likely to have a framework for async events anyway
So just plug I/O into that
Or whatever
 
7:22 PM
I say "and stuff" too much. Wife doesn't like it much :(
 
Don't say "wife and stuff"
 
"You're pretty" is a compliment, but "You're pretty and stuff" apparently isn't.
 
Keep it simple stupid
 
ewww Qt
 
7:25 PM
Sometimes ugly people are useful.
 
ah curses, I have to restart. That means closing and reopening our visual studio solution :( 11:25AM start time. going to bathroom...
 
@DeadMG It encapsulates the ugly and provides a std interface. Isn't that nice?
I could capture the functor as a template parameter actually.
Oh, no, that would require exposing Qt in header files.
 
@MooingDuck I do this.. except I say "and the such" instead of "and stuff" sometimes
 
@MooingDuck That's because "and stuff" could mean ANYTHING. Including mean things. Which it obviously does. WHY ARE YOU SO MEAN?
 
I hate the default Windows indexer thing since Windows XP. I always get "no results found"
 
7:33 PM
I think the problem is that adding "and stuff" dilutes the "you're pretty" part.
 
Use locate32
 
It's like saying, yeah you're pretty, whatever...
 
@MooingDuck you're doing it wrong. Vista ditched the XP indexer btw (at least it's off by default)
 
Windows 7 search is pretty good
 
@MooingDuck Aren't you the one running a pitiful more-than-a-decade-old version of Windows?
 
7:35 PM
He's running on 2003 technology!
 
@DeadMG yes
@Rapptz 2008 (except with WinXP because Vista = dumb)
 
2003 in real years.
Windows 7
 
@CatPlusPlus that looks pretty good actually
@Rapptz that's 2009, I'm on 2008 tech -vista
 
IOW, 2003 tech
since they put almost all meaningful improvements between 2003 and 2008 into Vista.
 
Vista's from 2006 apparently
 
7:39 PM
close enough
 
I thought it was older
 
Vista-worth-using was probably 2008.
 
You mean SP1?
 
Yerp.
 
the only real problem Vista ever had was poor compatibility
but that was a very long time ago.
 
7:40 PM
Yeah SP1 came out in 2008.
 
It also sucked
 
You might as well just use Windows 7 and save yourself the Vista cruft.
 
agree
but I used Vista since beta and never had a reason to go back to XP.
 
You're using Vista? In 2013?
 
If you had the right Hardware Vista was less of a monster.
 
7:41 PM
@Rapptz Not since 7 came out.
 
Ah okay
 
oh, my computer is attempting to reboot :/
 
I just wish Windows 8 didn't disable all my Windows-based apps if I don't have UAC on. =/
Metro-based*
 
I think I'm going to skip Windows 8.
 
A smart choice.
They'll work out the Metro kinks in Windows 9 hopefully.
2
 
7:42 PM
me too
 
Oh speaking of reboots, I forgot to change that autorestart policy
 
@Rapptz Windows 8 is doing more to break Microsof't's monopoly than Apple and Linus combined.
 
if they allowed me to have Folders on my Metro Screen, to have Quick Shortcuts on the Metro screen, and allowed me to open metro apps in not-fullscreen-mode, then it'd be good.
 
7:45 PM
The problem with the Metro screen is that its so full-screen-app oriented and so tablet-masturbatey that it forgot about people who want to use Windows to get any kind of work done or manage multiple windows.
 
Is the ribbon UI good for windows explorer
 
Windows Explorer isn't good, no UI can save it
 
@Rapptz No (but it's not good for anything else either).
 
@CatPlusPlus I don't mind Windows Explorer, so each their own lol
 
@Rapptz it's too-blocking and pauses all the time. It's a nightmare.
 
7:47 PM
@JerryCoffin See, this was actually one of my biggest issues with the new UI change. It seemed unnecessary, I don't like the Ribbon UI on MS Office either.
@MooingDuck I don't know if I should take your word for it. I don't really have issues with the one on Windows 7.
 
@Rapptz Not only unnecessary, but counterproductive.
 
Windows 8 File Explorer WAS massively improved, though.
It's non-blocking, completely asynchronous, very informative, and its replace-a-file and replace-a-folder semantics are VERY good, informative, and intuitive.
 
Huh
So that's why I've never seen WU autoreboot
 
@Rapptz I forgot I'm on old tech again >.< nevermind
 
It only applies to updates installed via scheduled task
 
7:49 PM
@MooingDuck Gotta get dat upgrade, man.
There's no method for directly submitting an array of vertices and indices to the GPU on-demand...
 
you mamma's so fat she needs two unique_ptrs
 
So what I've ended up doing is for every unique Vertex Type, I do special indexing and keep a VertexBuffer and IndexBuffer in memory for that type.
 
oh right >.< computer still thinks it's logging off
@ThePhD templates?
 
@Rapptz lol
 
7:52 PM
When someone says "Draw this raw array,", I hot-swap the data inside the vertex buffers on demand, if and only if the data is different and the length of the data.
@MooingDuck Yep, all the template wankery
 
@MooingDuck Wow, is your computer that old that it takes forever to shut down too?
 
oh, MSVC9 had a popup, invalidating my shutdown timings :(
 
How do you live with that ;_;
 
Lol
Get owned. :P
 
7:54 PM
Why'd I click that
 
@bamboon I liked Tomalaks' answer :D
@bamboon what's interesting about it?
 
@MooingDuck unfortunately, I couldn't see it.
@MooingDuck well, did you know it?
 
@bamboon yes
 
Rule of zero and it doesn't matter
 
7:56 PM
@CatPlusPlus Rule of zero: follow the hero.
 
@bamboon en.wikipedia.org/wiki/C%2B%2B11 "This comes with a caveat: C++03 considers an object to be constructed when its constructor finishes executing, but C++11 considers an object constructed once any constructor finishes execution."
oh pft
nevermind
C++ (Redirected from C++14)
 
@MooingDuck thanks, I have read that good page several times but always only some parts of it.
 
Can I delete an old answer that is accepted?
 
Probably
 
I'm not sure why C++ doesn't just front-declare all the functions you write.
 
7:58 PM
Huh? So once the very first constructor of your program finishes execution then all objects in the entire program are considered constructed.
That doesn't seem right.
 
> Finally, several authors have remarked that C++ is not a true object-oriented language.
lol so what
 
@ThePhD Single-pass
 
@StackedCrooked no, once any one constructor for an object finishes execution, that object is considered "constructed" until the destructor begins execution
 
is Single-pass a mandate of the standard?
 
@FredOverflow That's like saying "I'm an idiot".
 
7:59 PM
It's designed around that idea (also C)
 
If not, I'm probably going to write my own C++ compiler in the future that multi-passes and doesn't behave like an asshole.
 
@StackedCrooked If you have a delegating constructor, if the first of those finishes execution, you have an object. If one that delegated to it throws, the object will be destroyed (i.e., the destructor will be invoked).
 

« first day (824 days earlier)      last day (4139 days later) »