« first day (853 days earlier)      last day (4087 days later) » 

10:01 AM
@Telkitty even if there are some, the Earth moves and rotates.
 
user1357851
@Abyx preciously, if hits the same spot, I would be less panicky :p
 
user1357851
I don't wanna a 300000 tones stone hitting my roof
 
Xeo
@LucDanton Aren't you throwing away the first inner range in the constructor?
 
You're right, more fixes needed.
@Xeo Change to latest commit.
 
Xeo
It'd be much cleaner if you could just call increment in the ctor. :/
But I can see why that's complicated.
 
10:09 AM
@Xeo I do that sometimes.
 
Xeo
I'd prob make the find_if thing a seperate function, though.
So you won't have copy-paste problems in the future. :P
 
increment() relies on some preconditions yeah. The constructor should set everything up such that current != std::end(range) implies inner is not empty.
 
@thecoshman Meh, the guy that works in front of me often arrives half an hour late. No one cares.
 
@Xeo The rule is three strikes and then you refactor, so I'm holding up!
 
Xeo
@LucDanton lol
 
10:11 AM
 
Was this stackoverflow.com/questions/6829576/… reddited or something?
Ah, nevermind. Popular Question is just after 1000 views.
Probably just accrued over time.
 
Xeo
Yeah, that happens.
 
I didn't get any upvotes for that answer recently
 
ITT: Puppy wants upvotes.
 
not really
 
10:15 AM
ITT: Puppy wants downvotes.
 
heh
the only time I call for upvotes from friends is when the other answers are clearly wrong, but higher-upvoted.
else I don't
 
I can't assume that if I have a Range (and not a Range&) then concat_map_range should pick RemoveReference<RangeReference<Range>> as its reference type. Ranges & value category is a weird situation.
Ah well, there are so many other fronts to innovate on anyway.
 
hmm
I really need to finish up that type overriding proposal and submit it for C++14/17.
all these nested types suck a horrific amount of cock
 
Xeo
Btw, is there currently any proposal for []overloaded_func to lift it into a function object?
 
@Xeo Yes, although I don't know it's status.
 
Xeo
10:19 AM
Because that'd be fucking helpful.
 
like many proposals in the isocpp forums
it was suggested, but nobody actually turned it into a proposal, even though it would be a good idea
 
Xeo
Although you could do #define LIFT(Fun) []<class... Ts>(Ts&&--- vs){ return Fun(std::forward<Ts>(vs)); }, so it's not totally terrible ... as long as we get polymorphic lambdas.
 
std::launch::deferred was called std::launch::sync in older versions of GCC. I wonder how I can make my code compatible with both. SFINAE perhaps?
Relying on preprocessor is possible of course.
 
Xeo
@StackedCrooked MSVC has launch::sync for backwards compatability in the current version still, maybe GCC does that too?
 
wqell
 
10:22 AM
I think only MSVC strives for backward compatibility with experimental features.
It's a crazy idea, btw.
 
@Xeo if you really want that then go ahead and turn it into a proposal yourself
 
@Xeo Ah, let me check.
 
Xeo
GOD DAMMIT -Wnewline-eof, fuck you.
 
Xeo
"warning: no newline at end of file" with GCC. I always forget that before checking in, and then the build machine slaps me.
 
10:26 AM
So what kind of editor does that?
 
you actually have a compiler that has a problem with a file that doesn't have a newline at the end?
 
Xeo
Huh?
 
Why don't you just -Wno-newline-eof on the build machine.
 
Why no newline at end of file?
 
Xeo
@R.MartinhoFernandes I'd like to, but they don't let me. :(
@LucDanton Because I forget typing it?
 
10:27 AM
'no newline at end of file' doesn't mean 'no empty line at end of file'.
 
Xeo
@DeadMG No, but in C++03 the newline was required, so GCC warns about it.
@LucDanton Uh. What?
 
"this is one line and a valid file with a newline at the end\n"
 
@Xeo :set eol?
 
It's terminator vs separator. Do you separate lines, or do you terminate them?
 
(I had to google for that option, since it's really archaic and I never used it; defaults work just fine)
 
Xeo
10:30 AM
@LucDanton Yeah, now imagine I didn't have that \n at the end because I didn't type it.
 
where's herb's talk on C++11 concurrency?
 
@DeadMG Starboard. Pinned.
 
oh
 
@Xeo :|
 
10:30 AM
@Xeo That's what 'eol' is for. vim types it.
 
Xeo
Or did you mean the atomic talk?
 
I meant the other one where he talks about Concurrent<T> and Monitor<T> :P
 
ah, wait, that is it.
 
Xeo
I think that's what I linked.
 
10:31 AM
wp Xeo for getting it
 
Xeo
(I still have to watch that one.)
 
it is, I didn't even bother to check :P
I realized when the robot replied that you would probably assume I meant the atomics one
 
Xeo
@R.MartinhoFernandes I'm editing with VS on Windows. :3
 
checks if VsVim supports that
 
Xeo
I don't have VsVim. :3
 
10:32 AM
Your fault :P
> Unknown option: eol
:(
 
Anyway, check my sources. No empty lines at the end.
 
Xeo
C++11 allows no-newline, IIRC.
 
Seems VS does not have such an option natively.
 
I doubt they ever cared about the newline rule
 
Xeo
Yeah
 
10:35 AM
@Xeo What's a newline to you?
 
Xeo
I mean, it's a stupid rule anyways.
@LucDanton \n at the end.
 
wat
At the end of what?
 
Xeo
Or just \n.
 
I'm not asking trick questions here.
$ hexdump -C include/annex/val.hpp | tail -n 2
00000640  48 50 50 5f 49 4e 43 4c  55 44 45 44 20 2a 2f 0a  |HPP_INCLUDED */.|
00000650
Guess what 0a is.
 
it's a dumb rule either way
as the compiler could trivially add a newline if it needs one
 
10:39 AM
@DeadMG That's exactly what the standard says now (i.e. it still requires the newline there, but requires the translator to put one if it's missing...)
 
@Xeo Hello? Are you now busy trimming down all those empty lines out of your sources?
 
Xeo
We don't have empty lines, it just shows them as empty in VS I guess, because of the newline.
 
@LucDanton s/adl_detail/wtf/ ?
 
@sehe lol
 
Xeo
$ hexdump -C something.cpp | tail -n 2
00003e00  3b 0a 7d 0a 0a 7d 0a                              |;.}..}.|
00003e07
 
10:41 AM
@LucDanton darn. I get it now. The declaration order is the key. That is ... evil
 
@Xeo Okay. Excuse my tone but I'm always incredulous when not automating a dull task (hitting a key every time you have a non-empty file?) on a computer.
 
@Xeo What a waste of empty lines?
 
Xeo
@LucDanton Yeah.. still, if I don't hit that Enter at the last line, GCC will complain and they won't let me put -Wno-newline-eof in... I mean, I could possibly sneak it in in a commit, but they still review my commits. :/
 
3 hours ago, by R. Martinho Fernandes
If you're doing it like a machine would, why isn't a machine doing it for you?
Relevant.
 
Why spend 10 minutes doing something manually when you could spend 10 hours automating it?!
 
user142019
10:49 AM
I’m burning Windows! Unfortunately it’s the DVD kind of burning. :(
2
 
@Pubby Because (a) boring (b) 10 minutes everyday hurt
 
Hmm, future.then() is >>=.
 
user142019
I’ve always wondered how these drives work that suck up your CD or DVD or BD.
 
@Zoidberg pick one apart!
 
user142019
How do they make the disk spin? Suckers?
 
10:51 AM
@Zoidberg Suction cups, but no, just a grab
 
@Pubby cost vs reward
 
@Pubby Why spend 10 hours doing something manually when you could spend 10 minutes automating it?!
 
Xeo
@R.MartinhoFernandes Eh, not quite. The function isn't required to return a future<T>.
 
@Xeo Whaat?
Then what does it return?
 
Xeo
Just a normal value, and .then wraps that in a future?
 
10:53 AM
i.e. fmap.
 
Xeo
I mean, it's like std::async.
You give it a normal function and it wraps the return in a std::future.
 
@Xeo Oh. I thought you meant "then" by "the function". Nevermind.
 
Xeo
@R.MartinhoFernandes Ah, no.
But the functor .then accepts would need to return a future to be the same as >>=.
 
Well, it's enough for >>=.
The point is: no do-notation => ugly as fuck code. Fuck C++.
 
gooood moooornniiiiing vieeetnam
 
user142019
10:55 AM
<$> ownz.
 
user142019
<$> > >>= return :P
 
I'd suggest you could Boost.Proto your way out of that...
 
@LucDanton :)
 
0
Q: Non-printable (0xFF) byte in C source file

infactThis particular C code project has 0xFF byte markers that prefix function definitions. What is the purpose of this? Is it to aid some simple source file parser?

 
@R.MartinhoFernandes Yay. MOAR STARS (we need to make up for those fallen ones ... )
 
user142019
10:56 AM
@sehe Does it grab the outside of the disk or the inner hole? The latter seems more logical to me. :P
 
@Zoidberg The latter of course
 
user142019
@LightnessRacesinOrbit yo momma.
 
user142019
@sehe coolthx
 
user142019
 
user142019
10:59 AM
Dat tooltip is genius.
 
Meh, getting nowhere. Back to playing with concepts to wind down.
 
suckage
freaking RDP loses it's connection all the damn time
 
@cstross TIL: GNU tar still uses ^L characters (Page Feed) to delimit blocks of C code in source files. <gasp/>
 
user142019
Yay it’s afternoon now I can say "good afternoon".
 
Xeo
11:04 AM
Ooh, it seems Boost.Wave supports C++11 actually.
 
user142019
What is Boost.Wave?
 
Xeo
Standard conformant C/C++ Preprocessor with an iterator interface.
 
user142019
Oh CPP.
 
Xeo
Maybe I'll do the dependency listing in C++ after all instead of Haskell.
 
user142019
IMO every general-purpose language should include an implementation in library form of it in its standard library.
 
11:07 AM
@Zoidberg mind = blown
 
> Your implementation has the following flaws: you require the compiler to be present at runtime
 
lol
 
@Zoidberg You mean this item of the programming language checklist?
 
user142019
lol
 
user142019
@R.MartinhoFernandes no.
 
user142019
11:08 AM
As if I still remember any item of the checklist.
 
user142019
Also, that question is about the flaws in your implementation.
 
@R.MartinhoFernandes lowut - was that in response to 'non-printable' question ? See stackoverflow.com/a/14893184/85371
 
3 mins ago, by Zoidberg
IMO every general-purpose language should include an implementation in library form of it in its standard library.
@Zoidberg Because that work is not here.
 
user142019
FUCK CABAL WHAT A FUCKING PIECE OF JUNK
 
Dammit. No lunchtime hacks today. Anyways, my proper hack of yesterday still sits there at 0 rep:
23 hours ago, by sehe
You've given me my lunchtime hack. And a good reason to finally bother with qi::symbols some more. Spirit's ternary Trie implementation looks pretty useful! — sehe 6 secs ago
^ IMPOSSIBRU
 
user142019
11:14 AM
Also. Haskell Platform is a nightmare.
 
user142019
I want just GHC and base.
 
Then you don't need cabal. Why are you even complaining.
 
user142019
I need cabal-dev.
 
Zoidberg on a rant again.
 
Zoidberg on a rant (FTFY)
Zoidberg (FTEMFY)
 
11:17 AM
:)
 
@TonyTheLion s/again/still/
 
24 hours ago, by Luc Danton
Hey, that last paragraph looks familiar. Or even related. Also this is why I obsess over names, now I feel bad that is_related 'got out' -- it could be better.
> ^ "There are only two hard things in Computer Science: cache invalidation and naming things." Phil Karlton
 
:) ?
 
is_related is such an unhelpful name.
 
11:20 AM
"What kind of C++ is this?"
I love this question
 
Where is that?
 
You sure you want to look at it?
0
Q: Windows phone 8 : Native c++ application development, what kind of c++ is this?

saeedI was trying to learn how to develop c++ applications for Windows phone 8, but I encountered some kind of strange c++ syntax. For example defining a class was like this : partial ref class MainPage : public Windows::UI::Xaml::Controls::Page… {…} Or I think ^ is used instead of *. I haven't see...

ugh. I've started installing ICC updates and now I can't update tortoise git which is crashing
 
:D
 
well, too bad
i'll DL my quadtree in the meantime
 
what are you gonna do with that?
 
11:27 AM
hm, finish it?
 
@melak47 Quadtrees gonna quadtree.
 
more or less.
i want to refactor it a bit. I think converting it to 3D will be pretty easy
Also I still have to code raycasts, but after some reading I think I have pretty good understanding of how it should be done.
 
@BartekBanachewicz 3D quadtree, or an octree? :p
 
@melak47 octree.
 
So, quadtrees gonna octree, then.
 
11:28 AM
Anyone here know/used VRML?
@PeteUK Yes: the alternative approach assumes dynamic instantiation (think smart pointers). Regarding the 'poor design' I'd say that if you designed the grammar yourself. In this case, you just have to deal with it, I guess :) I have no idea what VRML looks like, but that grammar seems to be an unbalanced mix of extreme genericity and high specificity. If you get what I mean. — sehe 26 secs ago
you code racists?
Oh, aha, raycasts
 
Dyxlesya much.
3
 
No. Witzelsucht again
 
@sehe I've heard mostly bad opinions about it
@R.MartinhoFernandes now it can be starred
 
@BartekBanachewicz Yeah. Perhaps if someone knows how to make that grammar less overly generic, it could serve as a hint to simplify this guy's grammar, so he can keep using static polymorphism
@R.MartinhoFernandes It's when your... diction has a lesion ?
 
11:31 AM
I have to take a look at spirit someday
UGH laptop Y U so slow
After I had to fix something on my gf's laptop i started noticing how slow all PCs surrounding me actually are compared to my workstation
 
Don't be a diction.
 
A male diction :)
 
TIL Studio XE has static analysis
 
You don't love her enough :)
Give her a better laptop, retroactively for V-day
 
@sehe I am buying her a new violin soon, that's ruining my budget enough, thank you.
She's going to work on summer holidays and buy herself a Yoga (or some other ultrabook)
 
11:36 AM
@BartekBanachewicz Buy her a smart violin.
 
@R.MartinhoFernandes what's that?
 
Like smart phone or smart pointer? (because honestly i thought about the latter)
 
Concepts are hard. const long unsigned is not a model of Integer.
template<typename T>
struct IntegralConstant: Value<T>, Type<T>, Integer<Unqualified<decltype(Invoke<Unqualified<T>>::value)>> {};
It used to look concise and nice and then there was that runaway base.
 
@BartekBanachewicz You can buy her this laptop:
 
11:39 AM
I think (we|C++) is going in a strange direction with metaprogramming
 
 
user142019
Nice laptop.
 
@sehe am I supposed to drum or that on my lap?
 
Xeo
DELL sucks.
 
user1357851
@sehe smart solution for whom? For Dell?
 
11:39 AM
@Xeo prebuilt PCs suck.
 
@BartekBanachewicz Seriously, that's nice. I'm actually having a violin on sight now, evaluating before buying it :)
It turned out someone I know builds violins out of hobby and he had some to spare
 
@sehe wow. Some? ;>
 
@BartekBanachewicz Well, you know, he's retired and built 5 violins, a viola and currently making a cello
 
Prebuilt PCs work.
 
@sehe that's nice. Can I ask how much are you going to spend?
 
11:41 AM
"Gooey thread"
 
I must say, it's not immediate love with this instrument, but it certainly beats the crap out the chinese factory stop-gap violin I had for some years now.
Jun 13 '12 at 8:00, by sehe
@DomagojPandža I played it for 20 years. Then our house got burgled and I'm now stuck with a crappy chinese factory violin. Takes the fun out of playing
 
@R.MartinhoFernandes I think I got TupleLike<T> to work.
 
user1357851
a thief stole a 20 yo violin? Impressive
 
Look, it's make_shared<promise<T>> again. Herb sucks.
 
Xeo
Where?
 
11:45 AM
In instantiation of 'struct annex::concepts::TupleLike<{anonymous}::foo&>':
[... template instantiation stack vomit ...]
error: 'value' is not a member of 'annex::tuple_size<{anonymous}::foo&, void>'
 
@Xeo The talk you linked to earlier per request by the puppy.
 
@BartekBanachewicz I'm willing to spend 3-6k for a good instrument. But I'd want to take up ensemble playing then (else it's a bit... overkill since at times I hardly find the time to even play the piano/sing at home)
 
@sehe oh, and for additional news, my best friend's and roommate sister suddenly had a change of mind and wants to switch to electric. And that's an opportunity for an upgrade for me too, because she'll probably want my current guitar.
 
Xeo
Ah
As I said, I still need to watch that.
 
@sehe do you mean 3-6K... euro? o.O
 
11:45 AM
make_shared<promise<T>>? Forget it. packaged_task<T>.
Basically, Herb is reinventing packaged_task. All the way to specializations for void!
 
@Telkitty TBH I meant I played 'the violin' for 20y, not 'that violin'. I think I had that particular instrument about 10 years
@BartekBanachewicz Yes. I think even if I have this 'home-made' violin appraised, it will do about 2k at least
 
Hi ppl,
 
@sehe oh well.
 
How do you add a char to a string.
 
@Dreamer78692 string_v += char_v;
 
11:47 AM
"Hello world" + str.at(i ) does not work
 
@BartekBanachewicz Nice!
 
That one ^ is what I want for myself, but it's only about 1.2k
@MartinJames There are people who hate its looks, but I love it.
 
user1357851
@BartekBanachewicz I guess a good measure is how often you will use the instrument. The more often, the more $ you should fork out on it
 
It gives me a bunch of nonsense
 
@Dreamer78692 What you have on the left of the plus sign is not a string.
 
11:48 AM
@Telkitty compared to sehe's prices, certainly
 
How could he reinvent: 1) shared state; 2) capturing exceptions into the promise; and 3) specializations for void and not notice that is packaged_task.
 
@Dreamer78692 "hello" is a literal, not a string. Try string("hello world") + ...
 
@BartekBanachewicz Violins aren't cheap. However, you can strike a good deal if you buy second hand from ... oblivious sellers. The problem with that is, you need to know the hell what you're doing (it's easy to buy unplayable wood for 1k) and it'll be harder to get support with your instrument. Professional lutiers will make you pay the full prize when you bring them your 'so so' or really out-of-shape instrument to be fixed.
 
Oh, is it regarded as a char[]
 
@Dreamer78692 Try std::string("Hello world") in its stead.
 
11:49 AM
@BartekBanachewicz Hey. It's not my price :( It just reflects the number of violins sold, vs. the number of guitars solid, I presume
 
THANKS :D, works like a charm.
 
@Dreamer78692 char const(&)[], actually
 
@sehe The one she was playing right now was about 20 years old, borrowed from a friend. Unfortunately said friend didn't want to sell it, so now I have to buy have something. We are looking for luthier-made ones too, but they aren't easy to find. Anyway, don't laugh, but I'll probably make it under 500 euro.
brb, lunchtime.
 
Help me out here … is this answer actually correct or is it bogus?
1
A: array of pointer-to-member (offsets) as a template parameter in C++

ecatmurYou've forgotten to ensure const-correctness. Change to: template<const ptr a[]> ~~~~~

 
Xeo
@sehe char const[N], actually.
 
11:51 AM
it may be because I’m hung over or tired, but the answer looks like nonsense to me
 
@Xeo Yeah, you know, I wanted to reflect lvalue ness. You're right of course
@BartekBanachewicz Good luck. It is possible. But I could never before find the time to invest in the search. And you need some luck too
 
@KonradRudolph You know template<int I> void foo();?
 
@LucDanton yes, of course
 
template<int* I> void foo();?
 
again, of course
 
11:52 AM
template<int I[]> void foo();?
 
but const?
 
using cint = const int; template<cint I[]> void foo();
 
somehow that’s not actually helping
 
Uh, well, const int is a type. So we can construct a pointer type out of it.
 
but a template argument is a constexpr anyway, isn’t const always redundant here?
 
11:54 AM
No.
 
hmm ok
 
Xeo
Only the pointer is unchangeable.
 
thanks
anyway, lunch
 
template<cint* const I> would be the redundant thing.
 
Xeo
Yeah, top-level const gets discarded
 
11:57 AM
Aw, my tuple_element implementation requires that the tuple size doesn't 'lie', so the concepts can't catch violations.
 
@LucDanton I wouldn't care.
 
I can't even write overload sets with those concepts, why did I bother? Probably a good sign I need a break.
 
Soddin' phones. Took some pics and I can view them in phone camera view app but, with the phone USB'd to my PC, I can't find them in the filesystem :(
 

« first day (853 days earlier)      last day (4087 days later) »