« first day (1333 days earlier)      last day (3618 days later) » 

Xeo
12:01 AM
Public Xeo Announcement: No train services until at least 3am
fun stuff
soooo not gonna work tomorrow
 
hmmm that's interesting
I've never thought of the phrase "going to work" in the way you've just revealed you do (by your abbreviation)
& just realised I could well be the only one ever
 
Xeo
lol
 
I always parse it more like "going to [the office]" as in a destination rather than an action
ok maybe not that interesting....
 
gonna work
gonna keep working
going to keep [on] working
 
going to keep on kicking your ass
 
12:05 AM
gonna keep kicking yerass
also, I don't think I live this code
 
Xeo
aaand going dark again
 
Comments in the middle of the code line, just wierd
int /*comment about this variable*/ a = blahblah;
 
@crasic terrible terrible code
 
yes
welcome to life
my life
fixing code
for scientists
 
as long as you don't live your code, you should be fine
 
12:07 AM
0
Q: Votes to Close a question should not show a counter and a duplicate message should not show below threshold

Desperate DeveloperI think votes for closing a question should not show a counter. Also the duplicate message on top should not also show until there is a threshold. The counter influences other people making the question more likely to be closed even if it does not deserve that. The duplicate paragraph also influ...

> Desperate Developer
I couldn't resist pointing that out. :)
 
seriously though
namespace::somestream_object << /*our model*/ some_object << /*explanation for action*/ another_object.member;
its like
why
 
because they don't know what self-describing code is
or why does it matter
 
Well, its not that the comments are particularly bad
I just don't get the placement
I mean, its surely legal, but man its hard to read
 
and that's ^ why comments for variables are bad
 
no it's not what are you talking about
they may well be very important & useful; they just need to be written in a more appropriate place
see yas later
 
12:25 AM
Hi, is it alright if I ask here to clear up some confusion? I think (hope) it's a trivial thing.
 
@Aberrant read this first: loungecpp.net
 
I already did :)
note the completely zero-entitled tone in my question
2
If you don't want to that's perfectly fine I just think it's too trivial to bother SO with
 
It turns out that the majority of the people here are in europe and asleep
 
I'll just mention what it is, I just hit this answer stackoverflow.com/a/22103109/982107 explaining inline and static, and I suspect I have interpreted them completely the wrong way round so far
Because I thought static meant "it's in one place and everything uses it" and inline meant "treat this as though I write these lines explicitely in stead of calling a function"
but now this post suggests it's actually static that causes extra copies of the function
I guess I'll just leave that there and try to google some more, any explanation would be greatly appreciated but I understand that this place is not a helpdesk
 
Its a statement of intent
inlines are compiled such that the compiler can chose, does not have to, but is guaranteed to have the option to, insert the code "inline" with the execution code, in order to fascilitate that, the inline function as an independent function in memory must be identical to everyone that refers to it
 
12:41 AM
I don't think I understand what you mean with "insert the code inline with the execution code"
 
I'm not as precise as others on here
meaning it behaves like you think it does
 
@Aberrant that's a perfectly valid question for Stack Overflow
 
Its already a question, he wants clarification on the answer
 
@Jefffrey I think the question from the answer I linked is already that question, I'm just not sure I understand it
 
@crasic a question asking for clarifications on an answer is still a question
 
12:43 AM
Basically, you define a static once, and every time a TU refers to it, they make a copy and have a "local" copy of it
 
shows research effort and willing to learn
also other people might have the same doubts as you do
 
You define an inline once and every time a TU refers to it, same process happens, then at the end of the day they all get combined into one address
 
and finally you'll get more attention on SO
 
And more qualified attention
Imagine you have a static function in statics.h
and you import statics.h from my_source.cpp
 
I think it would still be a duplicate of that question though :s
 
12:46 AM
the TU for my_source is my_source.cpp and my_source.h as well as a copy of statics.h
 
It feels like I would mostly annoy moderators
 
if function a is defined static
my_source.cpp when compiled into my_source.o will have an independent copy of static a with a different address from say, my_other_source.cpp
which is its own TU
however, if a is defined inline
then every TU will point to the exact same spot in memory
 
so if there's a local static variable in a static function it sounds like there will be more than one of that variable? (<-- the main reason I'm concerned with this)
 
@Aberrant You explicitly state that you didn't understand that question (by linking it) I don't see the problem.
 
The compiler, then CAN, if it determines it should, "inline" the function (in the intuitive sense) but does not have to
 
12:48 AM
@Aberrant Those stuff are often handled by non-moderators.
 
what is guaranteed is that all TU's will point to the same spot in memory
when you link all the objects together
 
yeah I guess the word moderator is a bit ambiguous to use around SO (sorry for the clumsy delayed responding I'm trying to talk to both of you at once while thinking about what you're saying)
 
@Aberrant Yes, see the second answer
to the question you linked
The main difference is what happens with any static locals in the function -- if the function is static then each compilation unit will have its own copy of the static locals distinct from any other compilation unit. If the function is inline, there will only be one (set of) static local(s) shared by all compilation units.
much more succinct than I
 
okay so am I right when I say that they are very poorly named? Since the word static does suggest it's a thing in a fixed location
 
They are not poorly named, because the name is meaningless without a definition, and the definition in cpp standards is rather precise
the only thing that is poor is some notion of intuition that you are missaplying, rather than following the definition
To me static, is in fact intuitive, because you are guaranteed that other TU's (that you may or may not be aware of) will not have initialized them differently before you
 
12:52 AM
is it a realistic plan to read the definition? It sounds like a huge document but it's starting to seem like everyone on SO read the whole thing
*everyone on SO who knows what he/she's doing
 
@Aberrant No, but when you have an question like this, reading the definition is the easiest way to get a straight answer
 
Hmmmm I think I get it now, thanks a bunch!
 
0
A: How to parse mustache with Boost.Xpressive correctly?

seheBoost Spirit is built on Proto (by the same hero, Eric Niebler!), so I hope you don't mind if I uphold a personal tradition of mine and present an implementation in Boost Spirit. I found it pretty tricky to see what you wanted to achieve, from just the code shown. Therefore I just went straight ...

 
One final question I suppose, should I post this as a question on SO anyway then?
 
I had my finger exercise again :/ Time to go to bed
@crasic cough :)
@Aberrant woot
 
12:57 AM
@sehe haha how should I interpret woot?
 
@Aberrant Up to you really, if you think the existing questions lack a clear explanation
Worst that will happen is a close vote
which isn't a personal comment against you
 
I always thought woot was just a yell of joy like "yay" or "woohoo", I'm learning so much right now :3
Yeah I don't mind close votes to me personally, I just feel like I contributed to the already big amount of duplicate junk on SO when that happens
 
@sehe :D in spirit (expression % ',') has type std::vector<decltype(expression)> right? so shouldn't it be "compatible" with struct Program { std::vector<Expression> statements; } if I used BOOST_ADAPT_STRUCT ?
 
ohey I came in worrying that I'd bother you with my question and I end up with a star
 
1:02 AM
@Borgleader erm yes. You've run into one of the few remaining warts that probably won't ever be fixed in Spirit V2... :(
 
Oh its a bug?
 
Add a qi::eps >> ... in the rule and it should compile.
Depending a bit
 
cool ill try that :)
 
@Borgleader It's a limitation. Somewhere the library has adopted one too many special cases for single-element fusion sequences...
 
Oh I see. Thanks for your wisdom :)
 
1:04 AM
http://stackoverflow.com/questions/7762731/whats-the-difference-between-static-and-static-inline-function
Oh, now I find it's actually a C thing
I might've just said something stupid since C++ has more features so will probably require a more specific definition
judging by the silence, my posts on this topic are probably overstaying their welcome :)
that, or I'm being more careful about what I'm saying here than is necessary
 
@sehe qi::eps fixed it thanks :)
 
@Aberrant It's quiet here now. Also, it's mildly uninteresting to most of us. We learned to live with "the compiler does its job"
@Borgleader cheers
 
alright, I'll keep the rest about it to myself, thanks again for clearing it up for me
 
@Borgleader I only just wrote an answer of 464 lines using Boost Spirit, so, I was happy to answer a quicky for good measure :)
 
1:13 AM
heh, i just started learning boost spirit so my questions are basic.... for now ;)
 
Any Deutschen have insight on the Mollath case?
 
Ok, The Order:1866 looks amazing. Like I can game inside of Penny Dreadful! #E32014
dat game :3
 
a generic zombie game looks amazing?
have standards dropped this low?
 
fucking amd
need to download opencl sdk
on a headless server
but have to construct a post request with wget
in order to do so
can't just have a static location
 
The Division looks so awesome but...
I just can't just believe Ubisoft will deliver the things they show
they didn't with Watch_Dogs
 
1:22 AM
Ubisoft rarely delivers.
Also LBP3
 
I also appreciate EA's bravery
showing dragon age at the same place where the witcher 3 is shown requires some balls
if I worked on an epic RPG I'd just lay low until TW3 killed everyone
then announce more stuff about mine
in all seriousness though, the gameplay demo shown for TW3 was sorta mediocre
it's obviously not that representative of the game, but I was expecting a bit more
 
OMFG Witcher was fucking gorgeous
 
it looked good, that's true
but gameplay wise, it really looked like a slightly improved TW2
buuuut, a single combat isn't that much anyway
I'm sure the final result will be better
considering they still have half a year to work on it
I wasn't expecting this, but the new CoD really looked interesting
the new hi tech weapons look like they'd be fun in mp
 
the CoD trailer looked like Halo ODST
 
yeah and Crysis, somewhat
 
1:29 AM
LBP3: now I need a PS4 darn it
 
no but i mean, Halo ODST starts the same way ish, the drop goes bad
 
I thought you meant the tech stuff
 
user3010322
LBP3?
 
little big planet
 
user3010322
Ooh.
 
1:31 AM
no i meant the futuristic look + orbital drop
it felt very halo odst
 
battlefield hardline also looked somewhat good
reminds me of CS with the criminals vs cops approach
 
the insomniac game was refreshingly funny
also this Bloodborne game looks interesting
 
AC Unity seemed to be the least interesting
it's just unattractive I think
nothing new compared to the older games, save for the setting
which is not that great either
now, if they placed it in medieval Japan or something...
 
ls
2
crap wrong window
 
1:46 AM
Allowing players to join in on Far Cry 4 even if they don't own the game is a real differentiator for PS4
shots fired
 
wait what
> Far Cry 4, on PlayStation 3 and PS4, will allow you to invite friends to play multiplayer even if they don't own the game. This PlayStation exclusive feature is available when the game launches this November.
wth
 
oh cool
 
4 mins ago, by Borgleader
shots fired
 
does not make any sense to me
 
it actually does to me
 
1:52 AM
seems extremely open to abuse
 
I'm trying to remember this game for which the mp component was free or you could share it for free
oh yeah
diablo's spawned installations or something
 
If you can only invite players into games you are in?
 
like, you could install it on many other computers to play mp with your friends or sth
 
Well, its diablo
we just passed around one cd for lan parties
 
I'm talking about licensing
 
1:53 AM
@AlexM. starcraft lets you do that now, if you have the full game you can play with your friends who only have the free version as if it was the full one
or something like that anyway
 
you were free to give your copy of Diablo to your friends and have them legally install the spawned thing
which let them play mp with you
@Borgleader I remember something like that too, yeah
anyway, it's still good news for Sony
MS is sorta mediocre right now
 
Fuck yeah
working OpenCL install inside of lxc container
using amd supplied kernel and open source loader
 
actually what am I saying here
 
> Boost.Compute is a header-only C++ library for GPGPU and parallel-computing based on OpenCL.
 
1:56 AM
Microsoft didn't even create a LIVE service for Romania
the only ones with support for us are Sony
 
@Borgleader ViennaCL is also header only
you still need a vendor supplied kernel for running OCL stuff on their hardware
"kernel"
 
Microsoft also took two years after the release of WP 7 in Romania to also add store support for Romanians
basically, if you bought a WP7 then, you had to make use of the preinstalled apps only
no store for you
 
Ms has an app store?
gross
 
Microsoft has some weird ways of reaching different markets around the world
Apple supported Romania for years now
 
vendor App stores are fragmenting the app market
 
1:59 AM
we don't get movies on iTunes but we get everything else
music, books, apps
also iTunes U
 
ROFL one of AMD's opencl samples is a black-scholes implementation
 
5AM, time for me to sleep
cya
 
I WILL RULE DERIVATIVES MARKETS
with my 8 core xeon
I can't say I've ever bought anything on itunes at all
 
2:16 AM
hello beautiful people
 
Dem fatalities
 
hey crow ... is this what you are after - to get people say hey to you :p
 
2:36 AM
I THINK I'VE FINALLY UNDERSTOOD MONADS
I mean, why they matter and how cool they really are.
 
you are now unable to explain them to anyone who doesnt understand them
 
Xeo
Update: No update...
Look at me still being caught at this fucking station ¬_¬
 
I'm looking.
whatcha doing to pass the time?
 
Xeo
uuh. stuff, I guess?
 
sounds fun
 
Xeo
2:46 AM
switching between trying to catch some sleep, doing Japanese textbook work and... just idling and listening to music :/
 
what time is it there?
 
Xeo
don't have outlets anywhere close to the seats, which is why I'm in dark-mode (aka no interwebs mode) most of the time
4:50am
I started my return trip at 6pm yesterday, and I've been stuck here for about 7h
 
wait, haven't you been told that your flight would have run at 3am or something?
 
Xeo
no, it was 'nothing until at least 3am, and more infos then'
 
ow
 
Xeo
2:50 AM
also, fuck you play store, I don't want to update apps on this 32kbps line
your fucking updates already killed my whopping 20mb data volume
@Jefffrey 'cept the 'more infos' part never happened
 
where exactly are you, if I may ask?
 
Xeo
Dortmund Central, though I doubt that tells you anything
ffs, going dark again, playstore updates are annoying me
 
> Isolated T-Storms
lol
 
3:06 AM
I mean: it's sad.
I'm sorry.
 
I'll head off now. I think I like this chat but so far I'm not confident enough to join into conversations, heheh.
 
you shouldn't be
(I'm joking)
 
shouldn't be confident enough to join into conver-? ah okay
bye, thanks again for the help
 
bye
 
 
2 hours later…
4:58 AM
@DeadMG Mostly lurking, sometimes asking an insane question, yeah :P
 
7 am wtf
seriously
 
What?
 
I can't believe I'm still awake
 
I like how birds were actually chirping synchronously with the GIF reaction.
> HAHAHAHAH I STAY UP ALL NIGHT AND SLEEP DURING THE DAY SOMEONE HELP ME PLEASE GOD
 
5:42 AM
I'm wasting my time so much, it's unbelievable.
Just look at that, almost 8am.
did absolutely nothing productive in the past 4-5 hours.
> "My entire family died in a plane crash last night. I have no one." -- "want sum fuk?"
 
man I'm pretty pissed
I get WoW alpha, I find out you can't even enable/develop addons =/
 
Special Offer - Brookstone Rover 2.0 App-Controlled Wireless Spy Tank
huh? woot?
 
6:13 AM
 
Xeo
6:36 AM
HOOOOOOOOOOME
Fuck everything, I'll collapse in my bed as soon as I can reach somebody at work to take the day off.
 
6:48 AM
wow, what happened?
 
Xeo
7:10 AM
Crazy storm wreaking havoc with the trains
4 hours ago, by Xeo
I started my return trip at 6pm yesterday, and I've been stuck here for about 7h
also, FFS, I can't reach anybody at work.
I want to sleep T__T
 
'morning
 
Xeo
okay, finally caught somebody from work. day off, time for sleeeepz
 
7:25 AM
hmm... Weird, chat started giving me parsererrors
And wow, work seems so incredibly distant after the weekend. Like it's something I did in a former life
 
user1804599
All those horrible questions and answers.
 
7:41 AM
looks like school homework
 
My extreme good luck with the weather on the weekend - sunshine throughout the whole long weekend when we did the bush walks, except on yesterday afternoon on the way back to Sydney when it rained. I so thought after driving on the dirty road for so long, I really needed a car wash which I did - my 'brown' car has returned to its original black colour again, thanks to the rain!
 
user2985029
@nightcracker how did you get that?
 
8:07 AM
robot happened
This question appears to be off-topic because think about it a little yourself please. Also there is no programming language tagged, so this is clearly not about a programming language (:laffo:) — Lightness Races in Orbit 6 secs ago
 
yeeeeeeessssssss!
Today is a good day
my manager just pulled the C++11 switch
 
user3010322
QUICK
 
user3010322
BEFORE HE CHANGES HIS MIND
 
user3010322
g++ 4.9.0 ONLY with std=c++1y
 
:p
 
user3010322
Don't let him backtrack. Entrench the codebase in auto auto auto auto
 
user3010322
Use auto lambda parameter types with auto return type deduction
 
for now, we're limited to the common subset of g++-4.8 and VC2013, but I'll take it :)
 
user1804599
@LightnessRacesinOrbit dat logic
 
user3010322
... Eww.
 
user3010322
8:11 AM
That's absolutely nothing. :c
 
@ThePhD it is a lot more than C++98 :)
 
@rightfold dat AWESOME IDEA
needs more Katty Vance, mind you
 
user1804599
@BartekBanachewicz Why would he take pictures of all the people?
 
and this guy wins life
Nilay you're fired. This code is illegible. — Lightness Races in Orbit 11 secs ago
 
8:23 AM
3
Q: Different behavior between libstdc++ and libc++ when assigning lambda to std::function

T.C.This problem came from this question. The following code compiles fine using clang 3.4 with libstdc++: #include <functional> template<class T> void foobar (T&& val) { } int main() { std::function<void()> f = [i = std::move(123)]() { foobar(std::move(i)); }; } But fails miserably using cla...

@ThePhD VS2013 is quite ok though.
 
user3010322
No, it's not okay. D:<
 
Ah wait, it's the CTP that adds the goodies
and the bugs.
 
user1804599
8:49 AM
 
user1804599
dat wizard
 
9:04 AM
Morning
 
"Think Before You Twitter" - Good advice from the pages of the @BostonGlobe, circa 1943: http://t.co/NOH269Bs30
@rightfold dat old picture
 
std lib doesn't have such function, right?

template<typename T>
typename std::remove_reference<T>::type const& const_ref(T&& t) { return t; }
or rather just template<typename T> const T& const_ref(const T& t) { return t; }
- something what casts argument to const T&, like std::move casts to T&&
 
user3010322
Nope, no such function.
 
user3010322
9:19 AM
Also, did you know std::remove_reference is a VC++ specific thing?
 
user3010322
g++ doesn't have it.
 
user3010322
Yeah, I meant g++ didn't implement it, at least now in MinGW 4.9's distro.
 
clang has it, on coliru
 
why am I always so tired these days
 
user3010322
9:20 AM
I was errored and had to use std::remove_lvalue_reference
 
(but coliru doesn't have remove_reference_t)
anyways
if you write a lambda and you wanna capture a variable by const reference, you can write
auto f = [&x = const_ref(x)] { return x; };
and it would be great if std lib had such const_ref()
and it seems that it too damn late to write a proposal
 
user1804599
@LightnessRacesinOrbit why am I always so fired these days
 
@LightnessRacesinOrbit have you seen some suspicious person around you lately?
 
@chmod711telkitty other than you, y'mean?
@Abyx yeahhhhh let's make new syntax for everything
 
user3010322
Make new syntax?
 
9:30 AM
yes
why can't it look like auto const& x = x or something, so it's at least vaguely similar to existing syntax
the language is going down the shitter
 
not on the internet, in real life ... unless your online nemesis is so powerful that she can mind control people or robots around you
 
user3010322
Oh.
 
@chmod711telkitty Vlad's got everyone brainwashed yes
 
user3010322
I think people wanted to follow the C# and other language examples where lambda captures were typeless.
 
user3010322
@Abyx There's std::cref, but unfortunately that shit always returns a reference wrapper. :(
 
user3010322
9:34 AM
I wish std:: containers were specialized for reference_wrapper<T> types.
 
user3010322
Because doing decltype( *begin( blah ) ) does not help when you have to reference_wrapper your T.
 
@ThePhD Yeah, they wanted to turn C++ into not-C++. And now it's just C++--.
 
user3010322
Lmao.
 
user3010322
begin_t<TRange>
 
user3010322
Sure, why not.
 
user3010322
9:44 AM
@LightnessRacesinOrbit Isn't that strictly a good thing?
 
user3010322
@LightnessRacesinOrbit Technically, it's progress
 
@ThePhD No, it's strictly a bad thing.
 
user3010322
@LightnessRacesinOrbit Wow, that bites.
 
10:02 AM
@LightnessRacesinOrbit Relative to the needs of today, it started in the shitter, and C++11 is the language only just beginning to crawl itself out.
 
@LightnessRacesinOrbit what? it's not a new syntax, it's a function
 
user3010322
@Abyx He was referring to lambdas in general.
 
ah, ok
welp that [x=x] thing is actually good.
 
@Abyx Right, and nowhere else has it been necessary to name a function in order to accept a const ref into another function.
Well, unless you want to get me started on places where std::reference_wrapper is needed because shit
 
user3010322
Array of references plz c++
 
10:25 AM
-6
Q: What is size of a pointer in C? I am getting this 4Bytes on windows and 8 bytes on linux . Both are 64 bit OS

Narendra MathuriyaWhat is size of a pointer in C? I am getting this 4Bytes on windows and 8 bytes on linux . Both are 64 bit OS How to compile in 64-bit mode (I have 64 bit computer and I have installed 64 bit OS both Windows and linux)

> Jaipur
ahem
 
user1804599
10:37 AM
Yum.
 
user1804599
Dr. Pepper.
 
10:49 AM
Ok stupid webberface, am I logged in now?
 
0
Q: HTML Structure to Array

MADTerryi thought of parsing an html string to php array But i stuck in an issue relating indexing the array $page ='<html> <head> <title> Hello world </title> </head> <form align="center" > </form> </html>'; $tree=array(); $t_buff=array(); $in_tag=0; fo...

Not C++ but still
 

« first day (1333 days earlier)      last day (3618 days later) »