« first day (1145 days earlier)      last day (3789 days later) » 

12:00 AM
@Jefffrey If it helps, while &x above is a constant expression, reinterpret_cast<intptr_t>(&x) is not, mostly because it would look through the abstraction that makes the "real" values of the addresses irrelevant.
 
@Ell the file's absolute path?
 
@Pawnguy7 Well, it really depends on exactly what you're testing.
 
@R.MartinhoFernandes constexpr doesn't mean "known at compile time", right?
 
> Systems can use either absolute or relative paths. A full path or absolute path is a path that points to the same location on one file system regardless of the working directory or combined paths. It is usually written in reference to a root directory.
 
@Jefffrey It means that it can appear in a constant expression. (In my examples, it's interchangeable with const)
 
12:00 AM
for the parser and lexer I don't use any command-line arguments, I just store the tests in a vector.
 
Ell
@benjamin well I was looking for a general name
 
for the analyzer and code generator, I store the test inputs in external files.
 
Ell
I used filepath as an example :)
 
user3010322
@melak47 I got rid of the RasterFontDescriptionDescription
 
@Ell Oh. For the path from the root to a node in a dag?
 
12:01 AM
@ThePhD ..what's it hiding behind now? :D
 
@Ell It's just a path.
 
user3010322
@melak47 It's RasterFontDescription
 
user3010322
And the other one is RasterFontData.
 
Ell
Oh yeah.
 
user3010322
Much more clear names, IMHO.
 
12:01 AM
@ThePhD Sounds like SingletonFactoryFactory...
 
@R.MartinhoFernandes then I guess that's my fallacy right there. I thought constexpr meant that the expression is always know at compile time and might be substituted with its value for optimization purposes.
 
Ell
Man I'm stupid - of course, because there is only one path as you and griwes pointed out
 
user3010322
@Griwes WAVE_FORMAT_EXEX
 
@DeadMG Not sure. I just see people say they are testing things, and I figure I should learn what that is.
 
> Did you mean: WAVE_FORMAT_AC3
 
12:02 AM
@Jefffrey Yeah, that's a common misconception.
 
@Pawnguy7 Well, it's basically just executing a part or all of your code with pre-defined inputs, and checking that the output matches the pre-defined intended valid output.
 
> constexpr - specifies that the value of a variable or function can be computed at compile time
 
Xeo
constexpr functions can appear in a constant expression - but don't have to.
 
I don't like that one.
Mine is less misleading.
Anything can be computed at compile-time regardless of constexpr.
If you have int f(int x) { return x * 2; } int main() { return f(10); } the compiler can replace that with int main() { return 20; }, no constexpr needed.
It's really about being allowed in constant expressions.
 
Ell
So what is the point in constexpr?
 
12:05 AM
@DeadMG Does everything have an output?
 
to allow something to be used in a constant expression
 
@Ell It allows you to use functions in constant expressions.
 
@Pawnguy7 Not all systems are really favourable to testing. For example, rendering.
 
Xeo
@Pawnguy7 If something doesn't have an observable effect, it's not very useful.
 
but most functionality should be testable.
 
12:06 AM
Some parts of the language require constant expressions, e.g., array sizes.
 
constant expressions are typically used in compile time situations
but that doesn't mean constexpr is a compile-time thing
it just says it can be
 
code generation is another example of something that's not very testing-friendly.
 
gcc allows you to put constexpr on any function (I don't know why) but it doesn't mean you can use your 10 line constexpr function in a static_assert or array size.
 
Given int f(int x) { return x*2; } constexpr int g(int x) { return x*2; }, a declaration like int x[f(10)]; is not valid, but int x[g(10)]; is, even though both f(10) and g(10) can be computed at compile-time.
 
for Wide I simply wrote it so that if the test function returns "true", we assume that this is because everything was okey-dokey, as opposed to, say, because the code generator generated some hideous undefined behaviour which just happened to return true.
this assumption doesn't really sit right with me but you can't solve the Halting Problem so
 
12:09 AM
you could at least try instead of just giving up.
no motivation...
 
@Rapptz No, not any function. A program is ill-formed if it has a constexpr function that can never be present in a constant expression.
 
@R.MartinhoFernandes try it
 
Xeo
@R.MartinhoFernandes "ill-formed, no diagnostic required" IIRC?
(I kinda hate that use of "no diagnostic required", tbh)
 
anyway
time for DeadMG's awakeness hormone levels to die.
 
Xeo
12:10 AM
ow, 1am. Good point.
 
G'night.
 
@R.MartinhoFernandes You mean something like const int x = func() where func is: constexpr int func?
 
@R.MartinhoFernandes must have been fixed
 
@Jefffrey That doesn't really require a constant expression. The initialisation can be done at runtime.
@Rapptz A long time ago.
 
Ell
Right
 
12:12 AM
Aug 5 at 18:50, by Rapptz
In GCC 4.8.1 I can mark all my member functions as constexpr with no errors even though they're not.
how long ago?
 
Much longer than that.
Sure you were missing something.
 
Ell
and its down to the programmer to ensure a constexpr function can be evaluated atcompuile timel
 
Note that constexpr bool f(int x) { return x > 0? true : bool(std::cout << x); } is valid.
 
Ell
ah my tupoing
 
Xeo
-1
Q: Why "universal references" have the same syntax as rvalue references?

PiotrekI just made some research about those (quite) new features and I wonder why C++ Committee decided to introduce the same syntax for both of them? It seems that developers unnecessary have to waste some time to understand how it works, and one solution lets to think about further problems. In my ca...

poor guy
 
12:13 AM
Aug 5 at 18:51, by Rapptz
constexpr auto step(std::ptrdiff_t t) -> decltype(*this) {
        first.step = t;
        last.step = t;
        return *this;
    }
 
That's ok in C++14.
 
it was C++11 :v
GCC doesn't even have relaxed constexpr afaik
 
Xeo
constexpr is getting very weird, imho
 
constexpr doesn't guarantee that an expression can be evaluated at compile time. All it does is remove a barrier to use in a situation that requires compile-time evaluation. IOW, the fact that you (for example) assign some expression to a variable, then use the variable as a stand-in for that expression means it can no longer be used as a constant expression in C++98/03, but can be in C++11/14, if marked as constexpr.
 
@R.MartinhoFernandes Oh, ok. I think I grasped the basic idea now.
 
Xeo
12:14 AM
For no (to me) apparenty reason.
Richard just seems to keep pushing it, kinda like an obsession.
 
@Xeo Some people want it to do some weird shit.
 
I like relaxed constexpr
 
Ell
Constexpr is weird to be sure
 
What happens if it cannot be evaluated at compile time?
 
Xeo
I really don't wont to be in the shoes of an implementor dealing with relaxed constexpr
 
12:14 AM
my window's phone is totally dead
 
well you don't have to
 
My window doesn't have a phone.
 
user3010322
My phone has a window.
 
@Xeo Fortunately Clang has it already :P
 
Xeo
@Griwes Well duh.
 
12:15 AM
@Xeo Lots of people want to abuse to precompute tables and shit.
 
@Pawnguy7 If you never use it where a constant expression is required, it may still be fine. If you use it where a constant expression is required, you'll get a diagnostic.
 
I'd rather have real code generation.
 
user3010322
@R.MartinhoFernandes THANK YOU
 
user3010322
I wish one fucking language developer would realize that code gen INSIDE THE LANGUAGE would be FUCKING FANTASTIC.
 
user3010322
</rage>
 
12:16 AM
@JerryCoffin Diagnostic as in debugging utilities?
 
Xeo
@ThePhD Template Haskell
 
@R.MartinhoFernandes I'd rather have protected code generation (never want to use real mode again). :-)
 
@Pawnguy7 No, "diagnostic" is standardese for error/warning.
 
@Pawnguy7 Diagnostic as in "error message"
 
This at runtime?
 
12:17 AM
No, a regular compiler error.
 
Xeo
Also, although I never used Template Haskell directly, makeLenses is a beautiful thing.
 
Ah.
That makes more sense.
 
@ThePhD Ever since I drank the boo Kool-Aid, I've been pining for the same drink in a mainstream language.
(When the fuck is Roslyn coming out)
Also, when the fuck is the new boo release.
 
What's Roslyn
 
C# Compiler as a Service.
 
12:21 AM
C# compiler: done properly this time.
 
@ThePhD They realized it a long time ago. When compiler compilers were first invented in the '60s, quite a few people thought it was just around the corner. Then it came time to implement it--and the dream quickly turned into a nightmare. It's actually fairly easy to implement, as long as you hate your users. Making it decently usable is exceedingly difficult (at best) though.
 
@Rapptz An API that exposes all parts of the C# compiler. Parser, ASTs, semantic trees, and code generation, all at your fingertips :P
 
@ThePhD Preprocessor :v
 
@JerryCoffin You should post that definition to cplusplusreference.com.
 
Codegen is either text-based or AST-based. If your AST is a complex piece of shit (or you're MSVC and don't have one), then it's hard!
 
user3010322
12:23 AM
@CatPlusPlus The preprocessor's not fun to use and also notoriously hard to debug. :c
 
Jesus, internet connection! Can't you just stop disconnecting every 10 minutes?
 
@Jefffrey I'll give the idea some thought. Probably needs some polishing to be posted outside chat though.
 
user3010322
@JerryCoffin And thus, we ended up with pieces of it, scattered throughout languages, the most notable being preprocessor nonsense in C/C++/C# and templates in C++. <_>
 
C# has preprocessor crap? :E
 
user3010322
12:27 AM
Insofar as #ifdef #endif, but that's it.
 
That's really minimal.
No macros or anything like that.
Only conditional compilation.
Primary use case is writing code that supports multiple framework versions.
 
It's not preprocessor either
 
@CatPlusPlus Given the way you have to implement it in a parser, it more or less is.
 
Kinda funky ekisto.sq.ro
 
user3010322
@sehe you's late
 
12:31 AM
@sehe I wonder how it's grouped though.
Somehow I didn't get lumped with the C++ group.
Neither did Kerrek.
 
There are two C++ groups.
 
@ThePhD I am
 
The other one is east of the one @sehe posted and has Jerry, jalf, Tony, and others.
 
@Mysticial You're not into C++ :) Kerrek is likely ... Well I spotted him but I don't see what he's near
 
@R.MartinhoFernandes The one that Kerrek and I are in is a lot smaller?
 
12:32 AM
@R.MartinhoFernandes Yup. That's somewhat interesting. I figured it's likely the group of "just C++", and "we" are in the "C++ + C#/otherstuff" cluster
 
That's where people who don't know C++ are
 
or rather, 3 C++ groups.
I'm in the smallest one.
 
Dunno, really.
 
Or wait... unless the one I'm in is the C group...
I dunno...
 
~performance~
 
12:33 AM
I am pretty much on the opposite side of the C# crowd, and C# is my second strongest tag.
Well, actually, C++11 is the 2nd. Ok, 3rd.
 
And then there's the extremely lone wolves:
 
Still, kinda weird that I'm set farther from C# than Mystical, for example.
FUCK FUCK FUCK FUCK
I'm sleepy.
 
Hey now. That's nothing for you to say. What's the matter
 
I missed the 'i'
 
Oh good, that chutzpah con-thing has gone.
 
12:38 AM
@R.MartinhoFernandes Ow. That's bad. But no one will tell.
 
user3010322
@sehe Clever.
 
@sehe Oh look - no scales.
 
I wish I could click on a tower to see who it is.
 
@Mysticial "Q" + click. It's also called "Query mode" and there's even an icon on the left to make that feature discoverable
 
@sehe AHHHHHHHHHHHHHH
 
12:40 AM
@ScottW There isn't one, exactly. High rep in C++ is spread across (at least three) major groups.
 
I suck
 
@ScottW A section of vile mercenaries, dedicated to the elimination of all those whoe cannot debug. I offer $10.
 
Oooh, more @stdasylum material.
 
I think I ought to sleep.
 
zch
How cool one has to be to be included?
 
12:41 AM
@R.MartinhoFernandes No way. What timespan did you cover this morning?
 
Also note that based on the score it has for me (57.7K) the data is apparently pretty old (26-10-2010).
 
Nite all.
 
@sehe Three messages.
This guy is a gold mine.
 
@R.MartinhoFernandes ... that's ... like, real bad
@zch Apparently cooler than that. If it's any consolation, your userid is nearly prime (31 * 36353; beauties too)
 
user3010322
o.0
 
user3010322
12:43 AM
I think I broke MSVC again...
 
Do you think he's secretly the same guy as ThePhD?
(Nah. He seems to actually care for efficiency. That doesn't sound like a derpstorm)
 
user3010322
:c
 
user3010322
Hey...
 
zch
What is the score anyway?
 
After we add unsafe_emplace_back, many programs will use it to replace emplace_back.
This is just awesome.
 
12:46 AM
@ScottW Well, I finished Breaking Bad.
 
Wait...
@R.MartinhoFernandes Is that supposed to be a real function or just a troll?
 
iunno
 
user3010322
Whoa. James Mc Nellis follows Lounge C++ Asylum.
 
Hmmm, the fact I can only squeal in excitement at the sight of a new post by this guy instead of being totally outraged as would be normal some months back means I completely gave up on the Asylum.
 
user3010322
We haven't taken some of our better quotes and put it up there in a while...
 
12:47 AM
Nov 27 at 5:52, by Rapptz
I decided to cave and watch Breaking Bad.
 
@Mysticial There's someone "arguing" for it in the Asylum.
 
6 days ago apparently
 
@R.MartinhoFernandes Or that your neural net needs to be rebooted
 
Xeo
@R.MartinhoFernandes So much time wasted... :(
122 posts in one thread alone when I checked yesterday
 
user3010322
struct CharacterRange {
		static const std::array<CharacterRange, 1> Ascii;
		static const std::array<CharacterRange, 2> Latin1;
		codepoint First;
		codepoint Last;
};
 
user3010322
12:48 AM
^ This is enough to make MSVC freak out. o.0
 
@Mysticial Some time ago someone suggested renaming the function to buffer_overrun() instead.
 
I feel bad for Jesse, if anyone.
 
@ThePhD struct CharacterRange contains two arrays of CharacterRange?
 
Xeo
static
 
user3010322
static const
 
12:50 AM
static constexpr
 
@R.MartinhoFernandes So the point of the unsafe version is to skip the resizing check/logic for ~~performance~~ ?
 
@Mysticial Yes.
 
Xeo
Cat, I blame you for that ~~shit~~.
 
@Mysticial Like. Puhhhleaze. Can we just write our own dumbed-down glorified pool allocator instead of mutilating vector?
 
@R.MartinhoFernandes Nice.
 
12:51 AM
(Nevermind that C++ has perfectly cromulent alternatives for such silliness)
 
When that hits, expect a bunch of posts asking about undefined behaviour
 
zch
Cromulent ways to embiggen vectors?
 
Puhlacement new.
 
user3010322
Embiggen, haha.
 
@GlennTeitelbaum Or you can see it as an opportunity to repwhore. :P:P:P
 
12:52 AM
@zch NO. To keep them at the same size, explicitely (while increasing their "charted" population)
 
user3010322
<_>
 
user3010322
MSVC, I give up on you.
 
@GlennTeitelbaum No one ever asks about UB. Everyone asks about "weird error in the STL"
 
I'm a rep idiot - i tend to post too much in comments - wait for a complete answer before I post, check my code, and delete my answers that I don't think add to SO
 
user3010322
Speaking of things I need to delete...
 
12:54 AM
@Xeo This is a revival of an old one, btw.
 
@GlennTeitelbaum as do many of us
 
I also leave comments when I down vote - so I get random rage down votes
 
user3010322
WHAT
 
user3010322
I can't delete questions with answers?!
 
user3010322
NOoooooooooooooooooooooooooooooooooooooooooooooooooo
 
12:55 AM
Want me to flag it as Innappropriate?
 
user3010322
I'm not sure that'll help.
 
@GlennTeitelbaum That would be... inappropriate
 
user3010322
BA DUM TSH.
 
It would if you creatively edit it first
 
user3010322
Throw in some fucks, some cunts, and some bitches?
 
12:56 AM
It would be appropriate if you add inappropriate stuff to it.
 
You know. Just flag your own question for mod attention. Explain why you think you need to delete it
 
that would be fun
 
Then it would be the Lounge
 
So inappropriate it is appropriate.
 
Appropriately appropriated by inappropriateness
 
1:00 AM
@sehe Appropriately approximated by approbation. (aka, the SO rep system)
 
Not sure about "appropriately" then
 
@sehe "Approximately appropriately", perhaps?
 
Aborted Aboriginals
There you go. I completed the poem
And now I can go sleep :)
 
@sehe G'night.
 
> Chrome does not support Java 7 on Mac OS X. Java 7 runs only on 64-bit browsers and Chrome is a 32-bit browser.
Fuck you chrome.
 
1:21 AM
@Jefffrey There are 64bit canaries
 
The game I had to play with Java sucked anyway, so, it doesn't matter anymore.
 
> had to play
 
does c++ have a simple way to make formatted strings?
 
c++ still has printf()
 
I mean direct string literals
like java's String.format()
 
1:30 AM
Hi Coffee
Welcome to The Lounge
 
user3010322
@sehe Nighty night.
 
Have you been to the Question part of Stack Overflow?
 
@CoffeeMaker write your own
or boost.format
 
@Rapptz if you feed the pidgeons - pretty soon the whole park is covered in poop
:)
 
1:32 AM
This writer I hired is awful at writing pr for an app. I mean his writing is not bad, but he has no idea about what he's writing about.
Reminds myself: cheap implies bad quality
 
It is extremely hard to find writers that understand things the way a programmer wants them to, or they can understand and then they can't write for non-programmers
 
I'm not a pidgeon!!
 
True ... He did mention he never wrote a press release before ..
 
Then why did you come to a [no-question] chat and ask a question?
 
@GlennTeitelbaum You're new here, aren't you?
 
1:35 AM
oops
what is this chat for then
 
Generally bad puns, insults, stories and most non programming things as only programmers can see it
 
Well, I will do what I always do .. Not make a fuss & only use the part I think is good. After all 20%-30% what he wrote would be better than what I could come with.
 
I have to pick a new nick
 
@CoffeeMaker Don't listen to him, he's new here.
 
user3010322
@user7236293 Sexybuns McSweetiepants.
 
1:38 AM
@CoffeeMaker Please read this.
 
@EtiennedeMartel il ya une month comme je joiner SO, mais je ai etre dans les newsgroup techniqual pour decades and my french fades as I type
 
@CoffeeMaker This is SO's helpdesk, feel free to ask any questions :) also, bring your friends
 
@GlennTeitelbaum La merde a lieu.
 
@EtiennedeMartel You say that only because Cat isn't here
 
@GlennTeitelbaum ah oui ça pique là quand même
 
1:39 AM
pourquoi no hablamos in english?
 
user3010322
They're speaking French. <_>
 
user3010322
I mean, hablamos? >.>
 
Je parle un peut
but i can't make the squigly C or the e things
 
ÅŸquiÄ£ly ç
éèëê
 
Its not technically hard - I'm just too lazy to bother
 
1:41 AM
@CoffeeMaker I remember you!
 
I don't remember you... gomenasai
 
user3010322
He changed his avatar to be less dapper.
 
@ThePhD Why not. Any other suggestion?
 
Ohai Cicada.
Why am I still awake.
 
@R.MartinhoFernandes You tell me!
 
user3010322
1:43 AM
@R.MartinhoFernandes You want to talk to me about your amazing ideas for how a Stream API should work. :D
 
user3010322
@user7236293 No, I'll tell him. D:<
 
user3010322
@R.MartinhoFernandes s/Cicada/Rakkun
 
Eating a honey sandwich.
 
@R.MartinhoFernandes Also hi!
@R.MartinhoFernandes With butter? And baguette?
 
Just bread and honey.
 
user3010322
1:44 AM
Ohoho, une baguette~
 
Btw, did I tell you I'm going to Paris for Christmas?
 
@CoffeeMaker That's right: be sorry!
 
I haven't eaten cheese in 3 months I'm dying. I'll need someone to transfuse me cheese directly into my bloodstream
 
@R.MartinhoFernandes You and honey.
 
@R.MartinhoFernandes Now you did! That's great, when are you going? :)
 
1:45 AM
@ThePhD I'm still dapper inside.
 
user3010322
@Jefffrey That's where it matters~
 
@EtiennedeMartel We've been away for a long time Q_Q
 
@EtiennedeMartel In a sandwich ~
 
user3010322
@user7236293 I was thinking the same thing, but now I can't be blamed~
 
@user7236293 24-29.
 
1:46 AM
@R.MartinhoFernandes Visiting family? I'll be there on the 24th!
 
Yeah, visiting my grandma.
 
user3010322
Grandma Robot
 
@R.MartinhoFernandes Aw sweet :) Where does she live?
 
She'll love it.
@user7236293 In Portugal, but she's spending some time at my uncle's in Paris since last month.
 
@R.MartinhoFernandes Oh, my question was more of "where in Paris".
 
1:48 AM
Ah, dunno. They'll pick me up at the station.
Not far from it, they said.
 
There is only one station in Paris, duh.
 
@R.MartinhoFernandes Oh, the station
 
Gare de l'Est
 
@R.MartinhoFernandes Okay, I think that's a nice arrondissement to live in. But make sure to see the city center, in christmas there's many beautiful decorations :)
@ThePhD No other suggestion? ;_;
 
user3010322
@user7236293 Well, I liked Rakkun, but I know you're not going to go back to that.
 
1:53 AM
@ThePhD I guess I kkould but I'm not sure. How about ThePostDoc?
 
lol
@user7236293 I will.
 
user3010322
Uhm. There's Hornet, Animalia, Sister Takku, Cister,
 
user3010322
uhhh.
 
user3010322
@user7236293 ThePostDoc sounds nice. :D
 
user3010322
/nobiases
 
1:55 AM
@ThePhD Okay why not. I'll think about it.
 
user3010322
Haha
 
user3010322
There's Sonara, Ayngulah
 
user3010322
Uhm, there's also Syounja
 
user3010322
Uhh
 
@ThePhD Ungulate
 
user3010322
1:56 AM
Oohngulation~
 
Paris is nice - I have only been there for a day. Nothing warms my heart more than seeing a long haired dog drugged across the polished floor in a mall like a mop.
 
@Telkitty Nothing warms my hearth more than seeing a long haired mop drugged across the floor like a dog.
@ThePhD Cacadi! /sostealthy Dadaci! /extrastealthy
 
Anyway, I really should sleep. Was nice chatting with you again. Hope you find some cheese.
 
@R.MartinhoFernandes I will, in 20 days, when I come back to France! Cheese galore! Nice chatting with you too, sleep well and see you soon :)
 
user3010322
@user7236293 extra stealth so tricky much wow
 
1:59 AM
@ThePhD much hidden, very cover
 
user3010322
Crouching Dadaci Hidden Cidaca
 

« first day (1145 days earlier)      last day (3789 days later) »