« first day (1565 days earlier)      last day (3373 days later) » 

8:00 PM
and buy the one that was most useful
there, you make a smart acquisition
and you make scott happy too
 
Hmmm
 
@AlexM. you sold your body for Effective C++?
 
I wonder if scott's hair twitches when he's happy
@ScarletAmaranth lol
 
@AlexM. I am not here to judge; could have been enjoyable for both sides! (or was it just the other dude that it was enjoyable for?)
 
That's it, I know! I'm gonna buy this one!
 
8:03 PM
good choice
 
In 21 days I will be an expurrrt
 
even I took more than 21 days to become a C++ expert
more like 21 months
 
and I sprang forth from my mother's womb the pinnacle of knowledge and skill
 
8:07 PM
impressive
 
@Rerito Modern Effective C++ does not replace Effective C++, it is more of an addendum.
 
Let's say I have 10 public functions in MyClass. How can I make them all static without manually going "int static foo1(), int static foo2(), etc..."
 
Too bad I haven't received my copy yet :(
 
@FredOverflow It's also not particularly effective.
 
@DonLarynx Let's say wtf
 
8:08 PM
@DonLarynx Is it really so hard to copy/paste the word "static" 10 times?
Or just remove them from the class?
 
Let's say you use vim Visual block mode
 
Why would you need static functions inside a class when you could just use... functions?
 
yup
take those functions out
slam them in some namespace
bang! static becomes redundant
 
@DonLarynx Use a namespace.
 
But namespaces aren't object-oriented!!!
 
8:09 PM
they're object-orientationed
orientified
 
object disoriented
 
OOP means everything is an object, so does FP mean everything is a function? :)
 
user1804599
lambda calculus called
 
user1804599
pun intended
 
@FredOverflow let me remember what books say
something about functions being a first class citizen
 
8:11 PM
@рытфолд Haskell called. Who would have thunk?
 
with lots of privileges
unlike working class noobs
who can't afford food
 
Being tossed around freely doesn't sound very privileged.
 
this is a very toss-around centric society
 
Language features being "first class" is a weird notion.
First class functions are those functions that didn't drown when the Titanic sank!
 
I'm cracking up right now.
 
8:15 PM
No wait, those were first class functionaries.
 
at least we're entertaining
 
Ladies and gentlemen, please welcome Mr. Tainer!
 
user1804599
When I eat oranges my ears get itchy, and my palate and stomach start to hurt.
 
So... don't eat oranges, I guess?
 
user1804599
And given oranges aren't very tasty anyway, I think it's not worth it eating them.
 
8:16 PM
Do you get similar symptoms when you eat an apple?
 
user1804599
@FredOverflow No.
 
user1804599
Only with oranges, AFAIK.
 
That was a trick question: You can't compare apples and oranges!
 
@рытфолд oranges are delicious though. you just have bad taste
 
@рытфолд What about lemons or limes?
 
8:18 PM
C++ doesn't throw an error when I declare my functions static in my .h file, but not my .cpp file
 
user1804599
I never eat those, so I don't know.
 
user1804599
But it does not happen with tangerines.
 
@DonLarynx Why should it?
Are we talking about static member functions or static non-member functions?
 
@FredOverflow static member functions
 
You don't need to define them with static. You're compiler is correct.
 
8:20 PM
@FredOverflow inb4 Grammar nazi
 
user1804599
Mathematica y u millions of dollars.
 
@FredOverflow I get the error "Error: A storage class may not be specified here" if I declare them static in the .cpp file.
 
@DonLarynx ok
 
@FredOverflow I'm going to use Google
 
@рытфолд wrong question
right question would be: y mathematica
 
8:22 PM
@DonLarynx Why? Just accept the error and don't use static.
 
user1804599
y not
 
because it's millions of dollars
 
I don't know what the basis is for the error
 
What does that even mean?
 
Sage is free
but it's a VM :(
 
user1804599
8:23 PM
VMs are good.
 
1
Q: Static function: a storage class may not be specified here

sccsI have defined a function as static in my class in this manner (snippet of relevant code) #ifndef connectivityClass_H #define connectivityClass_H class neighborAtt { public: neighborAtt(); //default constructor neighborAtt(int, int, int); ~neighborAtt(); //destructor static st...

 
try Sage
 
@DonLarynx That's just how static member functions work. You won't find any additional information via Google.
 
you can write Python in it
 
First hit on Google :|
 
8:23 PM
so you don't need to learn some new language
I think Mathematica uses its own language
 
user1804599
I don't want to use Python.
 
user1804599
Python is shit.
 
lol
what's wrong with Python
 
@рытфолд You should write a VM in Vim and call it ViM.
 
Well, I guess that's life. Like "Why does life have assholes in them" Is almost as good as my previous Q.
 
8:26 PM
You specified static in the class definition => class method. I guess that if you put it in your cpp file, the static tells the compiler to bind your function to the file (like in C)
 
@DonLarynx the declaration already made that a static. it makes sense to mark a method static when in a class declaration, outside it...
 
@Rerito Oh, and then it wouldn't be visible. Good catch!
 
@FredOverflow My thoughts exactly (that's how I interpreted the answer to the question I linked)
 
Interesting article on value categories in C++
2
 
@AndyProwl he looks like chuck norris
 
8:33 PM
@AlexM. lol he should grow long hair
I really like his blog btw
too bad he's not very active anymore on SO, he was an excellent contributor
 
@AndyProwl agreeing
@AndyProwl I think that means he still is. Contributions don't fade. At least, not the most meaningful ones.
 
@sehe Well, yeah, you know what I meant :)
 
Not really. People contribute a while. Even Skeet is on the decline
 
Skeet is still quite active, anyway if Skeet will stop being active, that will be a pity too
 
I liked the "fool" technique @sehe
But how were you able to replace them each with different numbers?
 
8:45 PM
I wanted to code a little bit this evening (Ukkonen's suffix tree building on the schedule). Didnt do nothing
 
@sehe On the decline, yes. Still posting at a rate of ~200/month though--a massive decline from his previous highs of ~800/month, but still far more posts than most of us ever have.
@Rerito Procrastination is bad. Remember--never put off 'til tomorrow...what you might be able to get out of doing completely.
 
Anyone know of any libs I can use to implement timers in a cross platform way? I thought I could use boost.asio but the level of abstraction its giving me isn't really what I want. And just looking at asio's general design it feels really... unintuitive.
I've looked at libuv but its hardcore C. :[
 
@JerryCoffin Instead of putting things off til tomorrow, you suggest I should put them off til never? Uberprocrastination in other words :p
 
@DonLarynx ^A vimdoc
@Pris still that (if it's deadline timers/waits). If it's measuring, chrono
@Pris that's worse indeed
 
@Rerito One of those times that being male is good.
 
8:52 PM
@Pris So, what is it you want to do? Wait ten seconds? std::this_thread::sleep_for(std::chrono::seconds(10))
 
Its not measuring, its waiting asynchronously. I find asio so bizarre though. You set up async operations but you don't get callbacks; you have to call a blocking function instead to execute your callbacks. What's the point?
 
Ahah great
 
@sehe I prefer: std::this_thread::sleep_for(10s)
 
Of course. He was asking about portable :)
boost::this_thread::sleep_for(boost::chrono::seconds(10))
 
@sehe It is portable (to at least one compiler!) :-)
 
8:54 PM
Impressive
 
@sehe In a sense I could do something like what I want by spawning a thread, calling sleep, executing a callback, then terminating
 
@Pris deadline_timer seems a good deal
 
@sehe Yeah, but it has the same issue in general with asio. The pattern I want is:

deadline_timer timer(duration, callback);
timer.start() // don't block my calling thread, call the callback when timeout occurs
 
With asio you have to do something like:

deadline_timer timer(duration,callback, io_service);
timer.start(); // starst timer
io_service.run(); // blocks calling thread until timer is timed out
 
8:58 PM
look above
 
@sehe hmm
i guess that works :)
but at that point, why use asio at all?
 
another question not asked on SO :S
@Pris because it gives you async callbacks that you apparently need?
 
user1804599
eww callbacks coroutine pl0x
 
in je mand!
 
just call std::this_thread::sleep in the thread you spawned
 
user1804599
9:03 PM
Stackful ones, to be exact.
 
user1804599
Stackless coroutines are hilarious.
 
@рытфолд asio has both, but I dont know what either are :[
 
user1804599
Stackful ones are good, stackless ones are terrible.
 
@рытфолд stackless ones are even better (but less generically applicable). Stackful ones are the problematic ones with portability and idiosyncratic requirements on exception pass-through
 
9:05 PM
@sehe 'async' meaning I don't want the calling thread to block... that's my point. In the example you posted is there any point to using asio instead of just sleeping? It amounts to the same thing because io_service.run() blocks
 
Indeed. You will be getting the callback on a different thread regardless
 
user1804599
If I have to change my API to fit in your optimisation, your optimisation is terrible.
 
user1804599
Therefore, stackless coroutines are terrible.
 
Unless you don't have to change the API for them
 
user1804599
Async I/O must only be used as an optimisation and nothing else.
 
9:07 PM
When will americans use the metric system :(
 
user1804599
High-level I/O APIs should always be blocking.
 
to be totally honest I don't really care which thread handles the callback since it'll just be posting an event (hooray for indirection) but its annoying because I don't get why anyone would use "async" routines in asio with threads, packaged_tasks, etc
 
user1804599
And low-level ones must be used only in libraries implementing a bridge between the OS' async I/O API and coroutine scheduling.
 
user1804599
Which is what Boost.Asio is a good ingredient for.
 
@Rerito never because that's grumpy old man voice communist!
 
9:14 PM
@Pris Because you cannot handle 10k clients with 10k threads but you can handle 10k clients with 100 threads and async IO?
 
user1804599
lol 100 threads
 
user1804599
useful if you have 100 CPU cores
 
Unless you have 90 cores, 100 threads make no sense to me.
Performance wise.
 
@wilx you likely cannot handle 200 clients with 100 threads.
But you can handle 10k/s clients with a single thread
 
@wilx still don't see the point of asio if I have to block to do anything. if i want to handle 10k clients ill use a thread pool
 
user1804599
9:17 PM
You don't block per operation.
 
user1804599
You block until there are no more operations left.
 
Does ASIO stand for Asynchronous IO?
 
user1804599
And those operations can be executed in any order.
 
@Jefffrey yes
 
TIG
 
user1804599
9:20 PM
The point is that write is async. And read is async. And timers are async.
 
user1804599
Not run. You typically only call run once per thread you want to run on.
 
user1804599
Now a good API abstracts this all away and provides blocking calls so you can actually write readable code (also see GHC, Go and Erlang).
 
user1804599
> What kind of dev are you? We're trying to figure it out so we can deliver a more relevant Stack Overflow experience. Fewer crappy questions. Better targeted job recommendations.
 
AHH
function skeleton + arguments -> function.
 
@sehe In the end, yes, you can do that. But with what latency?
 
9:26 PM
@рытфолд run just quits when all your async ops are done... so its basically like an event loop. and like i mentioned earlier thats really not the level of abstraction i want. oh well
seems really neat
 
user1804599
@Pris Yes.
 
Guys: I am a pussy.
 
 // // Open a remote file, read the content, and then count the
// // number of lines of text.
// // Note that none of the calls here block. `file`, `content`
// // and `lineCount` are all initialized immediately before any
// // asynchronous operations occur. The lambda callbacks are
// // called later.
// Promise<Own<File>> file = openFtp("ftp://host/foo/bar");
// Promise<String> content = file.then(
// [](Own<File> file) -> Promise<String> {
// return file.readAll();
// });
// Promise<int> lineCount = content.then(
 
I can't be gay.
 
@wilx depends on how you process the request (if /dev/null, no problem)
 
9:27 PM
its like node for c++! :]
 
user1804599
Yes that's what Boost.Asio is.
 
@Pris quite apt
 
@рытфолд no, imo, boost asio is something you would use to build node js
 
user1804599
> If Func itself returns a promise, the promises are joined, so you never get Promise<Promise<T>>.
 
user1804599
Shitty unusable library. Congrats.
 
9:28 PM
@Pris except, who would build node
@рытфолд std boost::future<T>::unwrap
 
user1804599
It is now impossible to write generic code!
 
pet peeve much
 
user1804599
Implicit conversions are so good!
 
user1804599
what is pet peeve
 
user1804599
> A pet peeve or pet hate is a minor annoyance that an individual identifies as particularly annoying to himself, to a greater degree than others may find it.
 
user1804599
9:30 PM
Yes, I am indeed very annoyed by special cases.
 
user1804599
Especially when introduced by morons who don't know the difference between map and monadic bind.
 
Guys
What's the difference between map and (>>=)?
 
@Jefffrey bind flattens
 
Serious guys. Stop with this "let's star any 'Guys' message" thingy.
 
We can't.
We're keeping it alive for litb.
 
9:40 PM
@Jefffrey Let's stop with the "Guys" thingy
 
@sehe Dudes then?
 
Dudettes
 
doaudes
 
user1804599
"Morons"
 
user1804599
Same thing within Lounge<C++>.
 
9:45 PM
you're just too primitive to comprehend my advancements
 
This is what happens with my own projects.
 
So true :')
Well it's time... See you tomorrow fellows
 
@рытфолд "What a maroon!"
 
user1804599
@Jefffrey This is what happens when you say "yes" instead of "no."
 
user1804599
So say "no" and you'll be happier.
 
9:48 PM
So say "no" and get "no" money.
 
You should just shut up until you know whether it's yes or no
 
"Will you do task X?" - "..." -- "I said, will you do task X?" -- "..." -- "Hey, I'm talking to you. Can you hear me?" -- "..." -- "Fuck you then. You are fired."
So say nothing and get nothing.
 
user1804599
"I don't know."
 
user1804599
"I don't, no."
 
user1804599
:D :D :D
 
9:52 PM
If you're disciplined enough, you won't need more than one "..."
and usually you'll be able to provide a reasonably accurate estimate in a reasonably short amount of time
 
> Yeah, I think that's what it made me realise, that I am that lonely. I mean I have I friends and whatnot, but I'm lonely in that sort of way. And I've done it deliberately too, I think, because I don't think I'm capable of sharing myself completely with someone. It's complicated.
 
@JerryCoffin Jim Carrey (lern2spelplix) hasn't made a good film in like, 20 years
 
How many times does average 40 years old Joe go out with friends during the week?
I want to see my future.
 
it depends
does old Joe have a wife and kids?
is he rich and single?
 
9:56 PM
No wife no kids, single, and average salary.
It's average Joe after all.
 
Then I'd say twice a week
 
That actually made me cry a little.
Also Sophie replied and accepted me.
Yay.
 
Although in Italy going out twice a week if you have an average salary might not be affordable by the time you'll be 40
 
I love her already.
@AndyProwl Dude, ok, stop. Thanks.
I don't want to see my future.
 
2 mins ago, by Jefffrey
I want to see my future.
16 secs ago, by Jefffrey
I don't want to see my future.
 
9:58 PM
Yeah, I changed my mind.
 
"ješte že člověk nikdy neví co ho čeká"
 
user1804599
I want to write my compiler.
 
@Puppy Even if you disregard Eternal Sunshines of the Spotless Mind, which came out 11 years ago, The Truman Show only came out 17 years ago.
Your culture sucks.
 
I admit that whilst most people did not like The Truman Show or so it seems, I rather enjoyed it.
 
@Puppy Most people did enjoy that film.
 
10:03 PM
It's a great film
 
most people I have encountered don't like it
 
Looking at both the box office and critical response.
So, yes, Jim Carrey made at least one good film in the last 20 years.
 
user1804599
TIL code in a BEGIN block is run before the rest of the file is parsed.
 
user1804599
I thought it was after the rest of the file was parsed.
 
@EtiennedeMartel Incidentally, those are the only two films featuring Jim Carrey that I like
 
10:07 PM
@AndyProwl They are also two of his most "serious" films.
 
Yes
I really dislike when he does the joker
I find his mimic exaggerated and dumb
In those two films he manages not to act like a cartoon
 
He still acts in an exaggerated manner.
But it works, somehow.
 
A bit, but much less exaggerated
 
He manages to come off as your everyday excentric normal dude.
 
@AndyProwl I was never excited about his Riddler either, but did think The Mask was a decent movie.
 
10:09 PM
I liked him in Liar, Liar.
 
various SDKs often provide some drawing toolkit similar to HTML5 canvas - for example Java has Java 2D, C# has something similar, so does Android etc. Now here's my question : is there C++ library that provides something similar but in portable fashion?
 
@mrpyo Why hello there.
 
hello
 
@mrpyo For some definitions of portable, sure. If you mean "included in the standard and required in every conforming implementation", then no.
 
I actually had to look at your history because I was certain you were new here.
You really should waste spend more time in the Lounge.
 
10:10 PM
Simple DirectMedia Layer (SDL) is a cross-platform software development library designed to provide a low level hardware abstraction layer to computer hardware components. Software developers can use it to write high-performance computer games and other multimedia applications that can run on many operating systems such as Android, iOS, Linux, Mac OS X, Windows and other platforms. SDL manages video, audio, input devices, CD-ROM, threads, shared object loading, networking and timers. For 3D graphics it can handle an OpenGL or Direct3D context. The library is internally written in C and also provides...
 
I knew there was something, just forgot how was it called
 
SFML is also a decent lib.
 
I wonder if SDL is ported decently to mobile platforms
 
> many operating systems such as Android, iOS, Linux, Mac OS X, Windows and other platforms
 
@mrpyo it has android and ios support but the documentation in general isnt very good
@mrpyo qt is easier to use, has better documentation, supports more platforms, etc
Unless you have a reason not to, use Qt with QPainter. Other than that there are tons of C++ libraries for drawing; skia, cairo, SDL, SFML
 
10:19 PM
@Pris but not free, I guess?
I mean qt
 
its LGPL, whether or not you think thats okay for mobile shoudl be up to you and your lawyer
 
I would personally not recommend Cairo.
 
commercial version without any *GPL restrictions is free
**is not free
 
ok thx and bye
 
kthxby is shorter
Be efficient FFS!
Internet bandwidth is not free.
 
10:27 PM
@Jefffrey Riiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii‌​iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiight!
 
user1804599
lol
 
@рытфолд Did we watch this already?
 
@Jefffrey It is most definitely free.
 
@JerryCoffin fold them "i"s
 
user1804599
@FredOverflow No.
 
10:30 PM
What does Wearing the hair shirt mean?
 
@Jefffrey Rougly 3 cents per GB, IIRC.
 
Wow, Haskell is becoming 25 years old this April!
 
Any news on VS2015?
 
well, youc an DL the preview vOv
 
yeah but official release
 
user1804599
10:34 PM
Nice.
 
user1804599
BEGIN { die if rand() < 0.5; } randomly compiles.
 
@Jefffrey They don't fold well. If they did, they wouldn't be so...straight.
@JohanLarsson Up to CTP 5, but that didn't add much (if anything) new for C++.
 
I want it for C#, sick of writing nullchecks
 
@JohanLarsson That's cool!
 
user1804599
10:45 PM
@JohanLarsson Use F#, problem solved.
 
@рытфолд s/solved/exchanged for different ones/
 
@рытфолд Three problems: 1) I don't speak it 2) My colleges will never speak it. 3) Codebase in C#
 
user1804599
Abandon company.
 
Would be nice if they could introduce a non-nullable class in C#
 
user1804599
Spec# has that.
 
user1804599
10:48 PM
But Spec# has been abandoned.
 
@рытфолд Maybe.
 
oh snap asio has io_service::poll()
that works. now my unholy event loop will have SDL and asio in it
 
@Pris Begone thou unholy agent of evil!
 
Sorry about the IIS default page that some were seeing - a new web server snuck into the load balancer early. Should be fixed.
 
lol
 
11:04 PM
@Feeds SE has too many failures lately. At least they fix them quite quickly.
 
user1804599
> OVERALL: 10 Masterpiece (out of 10, not an average)
 
user1804599
Funny how it's still equal to the average of the subratings.
 
@milleniumbug You're being narrow-minded again. They're not failures, they're just exposing you to the diversity of error messages available in a modern server stack!
 
@JerryCoffin Oh no, they're being educational. I don't like it.
 
11:13 PM
@milleniumbug Learning is awesome and fun. "Education" rarely seems to involve fun or learning.
9
 
user1804599
Bye.
 
@JerryCoffin nice
& nite
 
@JohanLarsson Later.
 
11:29 PM
I had a semester on structured programming.
 
@StackedCrooked I knew I wasn't the only old fart here. Punk classes now just take "structured" for granted. Get off my lawn!
 
A full semester on if, for, while and a little bit on recursion.
@JerryCoffin Yeah.
 
@AndyProwl Where can we see whether a proposal was "voted in" by the committee?
 
@Columbo Meeting minutes.
 
@JerryCoffin Link pls Im to stupid to google
 
11:36 PM
@Columbo Here you can find the list of meetings with links to the agendas and minutes
However, it appears the link for Urbana is broken
 
@AndyProwl Just found that, cheers.
 
@Columbo Note, however, that in a lot of (most?) cases, they just vote to approve all the edits in the most recent draft, so you pretty much have to compare drafts to get anything meaningful about what was voted in when.
 
@JerryCoffin So if something is in the latest draft it is, in fact, "voted in"?
 
Yuki Kajiura is kinda good at this kind of genre that I don't know a name for. Throwing stuff together? Around 2m it's electric guitar, drum, xylophone (?) and sax.
 
@StackedCrooked Fuck me. Semesters take 40 minutes at your uni?
 
11:41 PM
@MartinJames I won't fuck you, but they take about 4-5 months.
 
@StackedCrooked lol, what did you do for the remainder of the time?
I'm gonna assume you were bored out of your fucking mind.
 
@MartinJames Making Nassi–Shneiderman diagrams, mostly.
 
...not with the food/sex.
 
@StackedCrooked w0t.
@MartinJames u w0t.
 
@StackedCrooked Wonderful. How many times did you contemplate suicide?
 
11:45 PM
Finally, an answer relating to atomics that I understand! — Chris T 4 mins ago
And another Hinnant answer
3
A: Why does libc++'s implementation of shared_ptr use full memory barriers instead of relaxed?

Howard HinnantBecause when I wrote that code, the compiler (clang) had not yet implemented C++11 atomics. And I never got back to it to clean it up. Nothing subtle here. :-)

 
@MartinJames It was this strange period in my life.
 
@sehe Who cares?
 
Nobody does. Sorry. I'll go
 
@sehe You know I'm ratted, right?
 
Finally, an answer relating to atomics that I understand! — Chris T 8 mins ago
I relate to this comment so much
 
@sehe Not to be nasty or jealous, but it must be nice to get multiple upvotes for "because the compiler didn't support it."
@MartinJames "ratted"..."a rat"...close enough.
 
bah
I hate going to work in the mornings.
 
@Puppy I'm not all that excited about work in the afternoons either...
 
heh
 
hello from the deep dark depths of town
i have so much to do tomorrow and am fucking that up right now with a late, boozy night
but...
 
11:58 PM
I'm thinking "hang out at the beach all day" sounds better than "work".
 
#YOLOOOOOOOO!!!!!
@MartinJames Nobody has ever been in any doubt about that!
 
I'd definitely be less grumpy about work if it involved more evening/afternoon work and less morning work.
 
@LightnessRacesinOrbit Must. Resist. Urge. To. Kick! Wait...maybe I don't...
 

« first day (1565 days earlier)      last day (3373 days later) »