« first day (1629 days earlier)      last day (3544 days later) » 

user3010322
22:00
@Xeo You know my pain now?! :D
@fredoverflow snake (std::cout) << 1 << "hello" << 3.14f being equivalent to std::cout << "~@--[" << 1 << "]--[" << "hello" << "]--[" << 3.14f << "]--", will I win?
@FilipRoséen-refp make a game
Xeo
Xeo
I've had my share of fun, let's leave it at that
@Pris I got real projects to work on, I just wanted something minor
@Pris kinda what you were asking for earlier
that was one ugly snake.. btw
22:02
Poor guy.
Looks like a stray.
I'm kinda curious how people would implement something like std::cout << csv << 1 << "abc" << 3.14f; to print "1,abc,3.14\n"
user1804599
@Xeo I HAVE VLA
so.. show me!
Xeo
Xeo
@райтфолд Nice
@FilipRoséen-refp sounds rather easy
user1804599
C++17 should get VLA as well.
user3010322
22:03
I thought they threw out VLAs for C++?
@Xeo of course it's easy, I know how I'd solve it, how would you?
user3010322
Or was that dynarray?
user1804599
You can enable VLA as language extension in clang and GCC, but they're shitty and POD-only.
user1804599
I suppose you can hack together something with macros and std::aligned_storage though.
@FilipRoséen-refp a proxy. sure it's not persistent but who cares
Actually no I would probably extend std::ostream, initialise the new derived class from std::cout, and overload op, for that type
22:08
@LightningRacisinObrit yeah, I'd do the same
or maybe I'm thinking of a variation of the two
I'll write it up
maybe initialising from std::cout won't work whoops
when and why was std::list added? I can't see what it offers
obvious troll is obvious
I'm not so sure to be honest
22:11
@FilipRoséen-refp do you think this is just thecashman being himself?
@LightningRacisinObrit or someone who hasn't actually understood what functionality std::list provides
@gha.st now make it print a newline at the end
@FilipRoséen-refp Whoops, didn't even the newline in your example ;)
... well then, I should learn to finish reading docs really shouldn't I :\
@LightningRacisinObrit that's cheating
Xeo
Xeo
22:13
@LightningRacisinObrit there's nothing "wtf" about that, really
@FilipRoséen-refp it's not cheating. but it is broken
@Xeo less snark more explaining
oh, right
ffs
Xeo
Xeo
operator, has the lowest precedence
@LightningRacisinObrit didn't even notice the last thing, but it's easy to fix
user1804599
operator, is the best operator ever.
user1804599
22:17
Fuck statements.
user3010322
user1804599
Sequencing should, like everything, be an expression.
user1804599
@thecoshman It can be useful in cases you have certain iterator invalidation requirements.
@gha.st I was hoping for something a little bit more creative
user1804599
@FilipRoséen-refp It works.
@Rapptz where did I say that it wasn't working?
Nowhere.
@райтфолд well played
@Rapptz lol
@FilipRoséen-refp oh u
@LightningRacisinObrit I know you love me!
22:22
I don't.
I'm straight.
user3010322
@Borgleader Quick question: when I do lua LoadGen.lua and specify spec=wgl, it... doesn't put anything inside of the wgl namespace.
@Rekktz It turns me on so much when you make two totally unrelated statements in quick succession.
user3010322
So there's no wgl::CreateContext and stuff. If I specify the command line with -stdext=wgl_common.txt, I get the wgl extension methods, but... none of the common ones. Have I dun goofed?
user1804599
@Rapptz Your dick is straight.
Is it
22:24
@райтфолд you don't know that
@райтфолд Are you a chick?
@DonLarynx no
@Dan No, he isn't. But he likes to pretend so.
who's Dan
@LightningRacisinObrit At least be a sexy chick, right?
user1804599
22:25
@Blob ( ͡° ͜ʖ ͡°)
that's Don
@Rapptz yes, that's what I said. Dan.
keep up Rekktz
22:25
My name is Danny
user1804599
Donny
pick something less ambiguous
that's not what it says here
user1804599
ambitious
22:26
Petunia.
Xeo
Xeo
Welp, since @Puppy has gone MIA, I guess I'll catch some sleep. G'night.
yeh what happened to Pippa tonight
night Zao
@DonLarynx Looks like a snake game all right
user1804599
MGS3 is the best snake game.
22:31
@DonLarynx Careful bub.
That image is illegal in Germany.
@райтфолд What's MGS3?
user3010322
@Xeo Nighty night
user1804599
Metal Gear Solid 3: Snake Eater (Japanese: メタルギアソリッド3 スネークイーター, Hepburn: Metaru Gia Soriddo Surī Sunēku Ītā, commonly abbreviated as MGS3) is an action-adventure stealth video game directed by Hideo Kojima. Snake Eater was developed by Konami Computer Entertainment Japan and published by Konami for the PlayStation 2, and was released on November 17, 2004 in North America; December 16, 2004 in Japan; March 4, 2005 in Europe; and on March 17, 2005 in Australia. The game, which serves as a prequel to the entire Metal Gear series, was followed by four direct sequels titled Metal Gear Solid: Portable...
Metal Gear Solid 3
user1804599
Best game ever.
22:33
python lists are... different.
@LightningRacisinObrit Lightly!
did anyone say superhackish? I doubt it, but heck.. /cc @LightningRacisinObrit @gha.st
user1804599
@thecoshman Python lists are std::vectors.
@райтфолд [x*stepSize]*d <-- :\
<- is feeling naughty
user1804599
22:34
Python is terrible.
@FilipRoséen-refp lol same concept
user1804599
You can add strings and multiply lists.
user1804599
Horrible.
@Rapptz that wasn't the point
user1804599
Those should be different operators, like in superior languages such as Perl.
22:35
seriously, what is that doing? is it doing *d on each element in the list? is it summing the list in some way?
user1804599
It repeats the list d times.
oh well of course, how silly of me ¬_¬
lol..
user1804599
It's like Perl x.
next time type [1] * 5 on the REPL
or any questions you have really
it's a good way to test
makes it easy to figure things out when you have a REPL
22:36
@LightningRacisinObrit do I like @Rapptz? I bet I'd enjoy a beer with him/her at a bar, but I mean.. over the interwebz
@LightningRacisinObrit and yes, I've made you my personal decision maker - no worries.
user1804599
> my @xs = (1, 2, 3) * 5;
Useless use of a constant (2) in void context at - line 3.
> my @ys = (1, 2, 3) x 5;
> print "@xs\n@ys\n";
15
1 2 3 1 2 3 1 2 3 1 2 3 1 2 3
user1804599
Sanity!
user1804599
Using a list in scalar context makes it act like the comma operator in C!
user1804599
Or rather, it looks like a list but it's actually the comma operator.
@райтфолд yeah, (1,2,3) is not a @
22:41
Python wants it innovation back
user1804599
What innovation?
I like Python more than Perl.
Never mind. I think that comma operation in scalar context is always silly
user1804599
This is what is terrible about Python:
user1804599
>>> print(
...   1, # trailing comma OK; good
... )
1
>>> print(
...   **kwargs # haha syntax error
... )
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
TypeError: print() argument after ** must be a mapping, not set
user1804599
22:44
Or this lack of an otherwise very useful feature (even Ruby has this come on):
user1804599
>>> [1, 2, *[3, 4]]
  File "<stdin>", line 1
SyntaxError: can use starred expression only as assignment target
user1804599
@sehe Yeah, you can always do do { … } and semicolons instead; the last expression will be the result.
user1804599
And it's more powerful since you can use statements there.
user1804599
Ugh
user1804599
I got that Python example wrong. Here's the correct one:
user1804599
22:47
>>> print(
...   **kwargs, # haha syntax error
  File "<stdin>", line 2
    **kwargs, # haha syntax error
            ^
SyntaxError: invalid syntax
Why would you do [1, 2, *[3, 4]] instead of [1, 2, 3, 4]?
user1804599
@Rapptz You wouldn't.
then the point is..
user1804599
But consider the following damn thing: [1, 2, *(x and [3] or []), 4].
user1804599
22:48
(Fuck … if … else … too.)
Yeah, that really sucks.
indifferent towards the conditional operator
ternary ternary ternary
conditional conditional conditional
user1804599
22:50
Mill wins once again: list(1, 2, *if x { list(3) } else { list() }, 4)!
user1804599
All I need is an implementation!
@StackedCrooked that kid is going places
> PTHREAD_KEYS_MAX was not declared in this scope
good
22:53
WHERE ARE YOU KEYS_MAX? :[
KEY SMACKS FIRED
why are you using pthreads
To drown out the existential pain
because thread_local support seems spotty
> seems
Then use the non-spotty parts
22:56
works for me
I read lots of random crap saying it didn't work right on ios, osx and android
o.O
Since I don't want to deal with that I'm just using pthreads for TLS
I'd say, good luck navigating on random crap
22:57
> For immediate release
That was a bit of a let-on
random crap = stuff on SO, bug report sites. ie I came across an issue report by wilx that had issues with it on Android where he was using it in log4cplus
Nice defense.
Nah. Come up with something better than silly excuses for C API's
WOW! THANK YOU SO MUCH!!!! — DonSiege2014 9 secs ago
^_^
lol did you even try thread_local?
I believe the limitation that exists is that some compilers still require __thread or __threadlocal and it's limited to PODs on some weird systems (like MSVC?)
22:59
or is this one of those things where you're attempting to fix a problem you don't even know is there?
4
Q: What is the current state of support for 'thread_local' across platforms?

PrisI'd like a summary of what the current state of support for the 'thread_local' keyword is across different compilers and platforms. I'm specifically interested in common desktop and mobile platforms. The information I could find seems spotty at best with reports of it working on some platforms ...

@sehe At work we use GCC 4.7 which only has __thread.
I don't think that's on-topic for SO.
Also, the question phrasing invites flames
We're probably gonna switch to GCC 4.8 soon.
23:01
@Rapptz It works on my machine with 4.8.2
right now look
how come someone can be "C++ developer in Barclays" but then write shit like this
It is for Numbers2 to declare Numbers as friend. Not the other way. — Jagannath 10 mins ago
which is 100% wrong
he probably earns a fucking fortune the twat
@sehe Fortunately the flaming will be local to that thread.
nice try. Half points awarded
@sehe Why does it invite flames?
That's off topic. [Psychology.SE]
user1804599
23:02
Alright, so my documentation tool will generate something similar to this, except with hyperlinks: gist.github.com/rightfold/ae6d2c9ef93b61fda940
user1804599
And fewer items.
"does std::regex work well"? "when will we have a UI framework in C++"? "why is there no process control in Boost"?
@sehe boost::process must have been in the incubator for over 5 years now
user1804599
"<regex-related thing here> works well" implies "it supports Perl or PCRE regexes"
23:04
I guess it must be a really hard library to write /s
@StackedCrooked longer I think
@StackedCrooked I think more.
9 years
user1804599
@StackedCrooked libuv is cross-platform and works well.
user1804599
Though I doubt it can be used nicely with Boost.Asio.
Copyright © 2006, 2007 Julio M. Merino Vidal
Copyright © 2008 Boris Schaeling
23:06
At least we have boost phoenix.
@райтфолд don't the two do pretty much the same thing
user1804599
brb sleep
@StackedCrooked See here:
@sehe, No, in Boost.Process 0.3 the code is completely different (no boost.iostream, sinks, etc) and something with this goal was easy to achieve. BTW, an unrelated thing, we determined time ago that that the sink has to go out of scope right after execute to behave well stackoverflow.com/questions/12329065/…alfC 13 hours ago
Apparently things break really randomly
I wanted to write a process control thing but too annoying
No need. All the existing efforts are already too annoying :)
23:10
Belgian ex-minister accused of rape this morning. His dead body found in the canal by noon.
sp00ky
Wakely can be such a twat on GCC Bugzilla sometimes
he gets really defensive
he's especially fond of jumping to blaming 3rd party ports for confirmed stdlib bugs
example?
in concert with a number of comments on SO over the years that I don't have links to
I mean, that one bug thread alone isn't enough for my observation :)
also let's just ignore the fact that that bug is not the same as the ones I linked to
now that I've read the macports issue
shush
just shush
23:17
I was pretty confused
their reasoning seemed pretty sound lol
user3010322
@Rapptz My faith in humanity decreases greatly.
user3010322
I'm helping people right now in my lab session.
user3010322
It's a goddamn trainwreck. :/
user3010322
I never want to teach an introductory course to CS.
user3010322
Like, you'd expect them to have the tender logistics of "how to do I use notepad" and stuff like that... but they don't even have that.
user3010322
23:21
You're starting from an absolute ground zero, and the lack of self-motivation is.... soul-crushing.
lol ... OP wants to print the contents of an unordered_set in a particular order
user3010322
I really hope they change as programmers by the time they reach graduation and get to the industry level...
I'm strongly agree with Wakely's dislike for uppercase names for constants.
Name collision between uppercase enumerators and macros happen.
strongly disagree
Recently we had to modify a boost header because it collided with C99 macro name.
23:23
@StackedCrooked I think most people here do.
though the collision thing is an issue, granted, it's also an issue with lower-case cruft. in fact, generally more so, because where someone has made a shit macro name, chances are they didn't bother uppercasing it either
Except maybe LRiO.
#undef LRIO
and I like my constants to stand apart
@StackedCrooked :(
enum { lrio = 1 };
23:24
however, I see value in those arguments and I don't necessarily disagree with them. I just don't really care enough about them to drop my visual preference
if that makes sense
I feel like I could probably be persuaded in this, though, over sufficient time
like I can imagine just arbitrarily changing my mind in approx 2 years
Recently a tbb failed to compile because enumerator named VERSION collided with a macro of the same name injected by automake.
I use K_CONSTANT_NAME
so inb4 no need to get all warring with me over it
Maybe I should switch to k_constant_name
23:25
well the stdlib doesn't use uppercase for constants
e.g. std::fstream::binary
@StackedCrooked Not to mention the use of upper-case for constants came from a misunderstanding in the first place. All-uppercase was originally intended as a warning about (function-like) macros that might evaluate their arguments more than once. People who missed the point started to use them for all macros, including those guaranteed to evaluate arguments only once, and even those with no arguments at all.
I thought Google Code was going to close down fairly soon... its still going to be up till january
@Pris That is fairly soon.
@JerryCoffin Interesting.
Asio has a header that define macros named yield and fork (and also a header that undefs them).
I guess that's ok because the names will only exist in the scope of one function.
Mar 16 at 16:10, by Lightness Races in Orbit
// net-snmp-5.7.3/include/net-snmp/library/snmp_impl.h:60
#define READ 1
@StackedCrooked have to admit this fucked us briefly the other day
cos enum defining script action types
you might say the enumerator is bad but, well, it's in a namespace so not really
23:35
@StackedCrooked As long as the headers are appropriately "hidden" (e.g., a "detail" directory) so somebody else doesn't get the bright idea of using them in other contexts....
I think all-upper-camel-case is good for include guards, but not really for macros that behave like functions. Poco uses lower case for it's logging macros, e.g: poco_warning(...). I think this is perfectly acceptable since the the poco_ prefix sufficiently prevents collisions.
@JerryCoffin The headers are public :D
Actually I don't feel comfortable using those macros.
@StackedCrooked I'd rather it was poco::warning(...), but I guess macros that follow scope rules and live in namespaces would be too much to even hope for.
@StackedCrooked I don't blame you.
Asio also provides the conservative naming style. Which I prefer. The coroutine concept itself is novel enough already.
@StackedCrooked Coroutines have been around for quite a while (just haven't become all that popular). If memory serves, both BCPL and Simula 67 directly supported them though.
23:49
I meant novel for me. The idea of switching stacks within the same thread is kinda foreign.
@StackedCrooked Ah, fair enough. Yeah, it is a bit odd unless you've used a language that has call with continuation, of which coroutines are pretty much just one special case (though a common one).
Sometimes I seriously question what the heck I'm doing.. I just turned on the stove to cook some sausage, and now I realized that I ate them all - without cooking a single one. The pasta will be ready in 2 minutes.
hah?!
ITT rafp eats raw sausage in his sleep
@FilipRoséen-refp You're devoting your attention to more pressing problems than mere food.
@JerryCoffin that's a positive way to look at it, thanks!
23:53
@FilipRoséen-refp Preoccupation.
or subconscious signal...
@FilipRoséen-refp you are going senile
@StackedCrooked nhaa, then I would assume that I never bought any sausage - and be confused about what it was that I was going to cook
I once accompanied my uncle in his job of visiting the elderly. One of them had decided to heat some soup and forgot about it. When my uncle entered the house all the soup had evaporated and there was a thick "damp" in the air.
That's kinda hardcore.

« first day (1629 days earlier)      last day (3544 days later) »