« first day (962 days earlier)      last day (3983 days later) » 

12:00 AM
@chris I'm pretty sure you should shove put it somewhere, but I'm still trying to decide on the best place.
 
@rightfold I wrote three different versions of cross before finally settling on that one. AFAIK, they are all equivalent. I think I like cross = (,) <$> xs <*> ys the best since it illustrates applicative style more explicitly than using liftA2.
 
@ScottW Awwww yeahhhh
 
@Code-Guru cross = (<^(,)^>)
 
I'd have to say the greatest abuse of C++ ever was 3D analog literals.
 
user1182183
12:03 AM
^^ so.. WHO is the programmer?
 
@GamErix Casey Robinson
 
user1182183
ok lol will try to find and hunt him down.
 
wat
 
@R.MartinhoFernandes can't quite parse that...
 
user1182183
ok seriously, which position is the lead programmer or something? -,-'
 
user1182183
12:07 AM
just need to ask him/her a few questions xD
 
user1182183
no killing needed lol don't worry
 
user1182183
myavatar cannot be found? wat.
 
@R.MartinhoFernandes Doh! Forgot to put the () around the <^ when hoogling for it.
That's pretty sweet
 
user1182183
user image
2
 
12:13 AM
If I have manip::zip(a)(b) equivalent to zip(a, b) what do I call manip::foo(a)(b) equivalent to zip(b, a)? (Haskell has both zip a and e.g. (`zip` a) for just that occasion.)
 
@GamErix That game has been in development for so fucking long.
@LucDanton In Haskell I would call it flip zip :/
 
user1182183
@R.MartinhoFernandes It looks nice, but meh i'm searching for contact with any (ex)programmer who worked on Red Alert 3..
 
I knew you'd say that, which is why I sprinkled an e.g. in there :v
 
user1182183
till now looking up on facebook revealed only some gays.. or at least (what I assume) "males" with.. girly photos or something..
 
user1182183
12:17 AM
 
I acknowledged in advance it's one way out of several of doing it, even though that wasn't the point :p
 
@LucDanton Somebody said you were making a new boost::range, is that correct?
 
Keeping in mind variadics, that's manip::foo(x, y, z)(a) -> zip(a, x, y, z).
 
@LucDanton Well, I don't think there's a nice name (and the cool thing about the Haskell version is that one doesn't really need one)
 
zip_front? zip_before? More complicated, e.g. zip_at_front?
Problem with those names is that it doesn't tell you which is zipped in front of or before which: the curried arguments, or the final one? :(
Okay, under the logic that manip::slice(triplet)(range) is 'slice range given triplet' I'm guess manip::zip_in_front(x, y)(a) being 'zip a in front of x and y' is consistent.
Still sucks.
 
12:28 AM
@R.MartinhoFernandes y u no blog post :(
 
What the hell is the girl on the background doing?
 
@Borgleader I got myself too much stuff to do on my free time :|
 
Oh :(
 
@Jeffrey masturbating.
MOTHER FUCKER
 
it workses
 
12:31 AM
wow
 
@R.MartinhoFernandes Still cleaning up Ogonek I see?
 
@Borgleader I just picked that back today after about a month of hiatus.
 
Yes thats what I was referring to. I happen to check your github a moment ago
 
And I've been kinda sad because one of my friends is going through a very rough patch and that kinda kills the mood to write.
 
@Jeffrey sitting
 
12:38 AM
@R.MartinhoFernandes Time to drink.
 
@EtiennedeMartel She's pregnant so that is a terrible idea.
 
@R.MartinhoFernandes Sad to hear that :(
 
I should go to sleep.
Good night.
 
'night
 
12:41 AM
night
 
Actually while drinking is discouraged while pregnant there is nothing wrong with an occasional small drink.
 
	HDESK m_desktop = CreateDesktop(L"HiddenDesktop1", NULL, NULL, 0, AccessRights, NULL);
Why the "syntax error: '='"?
 
Oh?
 
@CCInc I can't imagine what circumstances would result in that error.
unless you forgot to include windows.h?
 
12:55 AM
@Rapptz waaaaaaaaaaaaat
 
Ah, there we go
Great, now some linker errors
 
@CCInc Did you try TEXT("HiddenDesktop")?
 
on an unrelated note, I'm gonna start my own PHP lecture, free of charge. When people come in, I'm gonna lock the doors and tell them how PHP sux and teach them C++.
 
That compiles for me but L"" doesn't. At least using MinGW.
 
Well, L"" compiles for me
 
1:06 AM
Feck, can't get Iterator<some_range const> begin() const; to not trigger instantiation of the const codepath :( Previously I had simply made a change Iterator<meta::DependOn<some_range const, D>> begin() const; but this doesn't seem to work here and I have no idea why.
This even happens if begin is not called at all, i.e. during instantiation of some_range. I don't get it.
 
@LucDanton Do you have a utility for the visitor pattern among your ever-expanding library?
 
No.
 
Whoa.
Chess is cool.
 
Okay, got it. Needed a dependent type as input, but also an SFINAE-friendly metacomputation. The only range that uses a custom metacomputation for its iterator type IIRC.
@R.MartinhoFernandes ^ tricky, because I made single pass ranges const-correct (i.e. no cbegin/cend for those).
 
1:22 AM
Is there a wiki or website for this range library you guys all seem to be working on? Is it a component of a larger project?
 
Martinho has taussig, which was split off from Ogonek where he wants to e.g. expose Unicode sequences (over graphemes or what have you).
> note: template argument deduction/substitution failed:
ffffffffffffffffffffffffffffffffffffffff
@Potatoswatter As for me I forgot why I'm in it.
 
@Rapptz Lots of dupes afterwards, or the questions must become more and more elaborate to avoid duplicating existing ones.
 
I've long been frustrated with Boost.Range but it's only recently that I had an idea on where to start for a replacement. I'm still in the wake of implementing that idea.
 
… Which in turn is to allow MG to use combining diacritics properly in source code and treat visually similar characters as equal in identifiers.
 
So the two solutions have different needs (although 'Boost.Range sucks' is a commonality) and started with different conceptual approaches.
@Potatoswatter What? I am no part in this :p
 
1:27 AM
@LucDanton j/k
 
They are similar in goals: make it easy and convenient to write new ranges, and easy to consume ranges. (Or s/range/sequence/g if need be.)
 
Why do they call it information technology?
 
Heh… I'm a library minimalist. Not using Boost, and the general utilities for my project are ~200 lines. code.google.com/p/c-plus/source/browse/src/util.h Ballooning up to ~250 because I'm adding a type registry now.
 
On a scale of brain dead to don't even try it. How hard is it to implement file streaming for use in games?
 
@LucDanton And I am kind of stuck right now :S I need to take some time to think carefully about a few problems but whenever I try I always seem to need to recap what those problems are before I think about them. I haven't been in "the flow" lately and my brain feels like mush too often. Hence why I have dedicated a lot more time to other less thought-intensive hobbies.
Pretend I'm asleep.
 
1:33 AM
lol I was going to say, werent you supposed to be sleeping? :P
 
@ScottW But software is (arguably) continually evolving. Chess (it's rules, pieces, the board, etc.), AFAIK isn't, though techniques are.
 
Chess is fun. Well, at the 1400 level anyway.
 
I have half a solution for a problem I don't remember written.
 
@R.MartinhoFernandes toss it in a scrap file. It will show up in search results later.
 
Yeah I won't.
I wonder if things like replace_if are worth the trouble, or if I should delegate to concat_map.
 
2:36 AM
Hello
 
 
1 hour later…
3:49 AM
Is this chat strictly c++ or is it allowed to deviate slightly? Lounge is in the title afterall :p
lol uhoh, that's almost on the other side of the scale, where my topic is too professional lol
i'm wondering if anyones delt with the windows ribbon api
 
@ScottW Include Java and PHP.
 
Writing a resume for a possible intern at an IT customer service department, what should I highlight in the resume?
e.g. Teamwork, communication
 
soft skills
 
@Segmented, could you care to expand on that?
 
like, how good you are at dealing with people etc
also show that you are well rounded (sports, etc)
if you have any prior experience and/or education ofc highlight this first and foremost
 
4:06 AM
@Segmented thanks for the insight!
 
yw =)
 
XD
hi Scott
 
Oh wait that pretty much showcases why that's not possible to do at all.
 
yiz
4:29 AM
Why do women have peroid? God you are such a sexist!!!
3
 
perhaps for regulation of body fluids XD
 
Oh wait, replace is a map, durr.
 
4:58 AM
I somehow can't log on Stack Overflow with FF.
I even enabled scripts globally.
 
@Rapptz OpenID?
 
Yes
I actually found my problem on meta.
7
Q: Can't log in using Firefox in Stack Overflow

David CosmanHere's what is happening; everytime I go to Stack Overflow (stackoverflow.com, NOT meta) with Firefox, it gives me the "Welcome back" tab that pops up from the top. Whenever I click in the "click here to refresh the page" link, all it does is refresh the page without logging me back in. Even if ...

 
I'm able to log-in. Might be good to clear and reset some settings (cache, cookies, etc.)
Only the usual "clear your cache and cookies" advice. — Robert Harvey Jan 29 at 16:38
^ Hehe. You've already read that, I'm sure. :)
I'm able to log-in. Might be good to clear and reset some settings (cache, cookies, etc.)
 
Yeah.
Okay finally.
 
yiz
5:15 AM
I am using firefox
 
Damn, www.boost.org down.
 
yiz
never had that problem unless I recently cleared web history
 
@LucDanton They're migrating their servers.
 
Figures :(
 
@LucDanton Hmm. It's okay in mine.
 
5:17 AM
Correct me if I'm wrong, but a sort that produces sorted values one after the other is called an inline sort, isn't it? Is there another term? 'inline' brings up a lot of noise when googling.
@MarkGarcia Maybe it's up and it hasn't propagated to my end. Doesn't matter, I don't think Boost.Range has a sorted adaptor.
Still, can you spot me the IP? :)
 
@LucDanton 129.79.13.33
Flagfox. :)
 
Do you see something empty as well?
 
@LucDanton Yeah.
Firebug report: "NetworkError: 500 Internal Server Error - 129.79.13.33/doc/libs/1_53_0/libs/range/";
 
yiz
if you see page source there is actually a grey '1' at the top
nothing much, trying to fix my code but got distracted to this chat
you?
 
Works for me if I use boost.org
adjacent_filtered
copied
filtered
indexed
indirected
map_keys
map_values
replaced
replaced_if
reversed
sliced
strided
type_erased
tokenized
transformed
uniqued
These are the adaptors
 
yiz
5:25 AM
spaces not newlines
 
Wolfram Alpha sez my tentative complexity would be N log(Γ(1+N)). Not sure how to feel about that.
Oh right, N log N! probably.
 
The gamma function Γ(n) is (n-1)!
 
Oh hey, it's online sorting.
 
Does it require wifi?
Pretty shitty sort if so.
 
You're thinking of stack sort!
 
5:33 AM
Microsoft Security Essentials has been quite paranoid these days. Too much background scanning.
 
> Effects: Sorts the elements in the range [first,last)
 
@yiz hey
 
Oh right, exclusive bound.
 
6:33 AM
@ScottW when you sleep you die
 
@ScottW We'll miss you. :(
<3 Good night.
 
ergh... going to be a long day of coughing up slime for me ¬_¬
 
 
1 hour later…
7:43 AM
TIL that "penmanship" comes from the word "pen".
 
o.o
 
:)
Honestly. Not to troll or anything, but it's really only now that I've realized it.
 
is it me... but is not impossible for an application to add logging with out impacting performance, even if only slightly.
 
@thecoshman If you can put logging at compile time, then there's a good chance that it will be optimized away by the compiler. :)
 
no this is rub time logging "entered function foo at timestamp" "exiting function foo at timestamp"
writing this data to a file somewhere
 
8:03 AM
@thecoshman External logging (logging from the outside, I mean) perhaps? Well, if you don't take into account its effects on overall performance.
 
I made my firefox look like chrome.
Pretty weird.
 
@MarkGarcia oh, they are looking at having this for more or less every function more or less
so if foo calls bar and foo says it took 100ms but bar reports only taking 2ms you can say that foo itself took 98ms
 
@Rapptz So the fox is now circling in chrome's logo. :P
@thecoshman Hehe. Logging is hard. Logging accurately is harder. :(
 
@MarkGarcia log ALL the things!
 
8:11 AM
@Rapptz Soon, Firefox will have its new UI (Australis).
I think I've posted it here before.
 
Blocky tabs sure are ugly.
 
Well, my answer went well. It pays off to be fast (what's the term? fastest cowboy in the west...?)
 
Looks good actually.
Anyway I took off the Chrome look-alike :P
And now I head to bed.
 
@Rapptz Yeah. Really good. They've forked the nightly build though, and thus I don't have it in the build I'm using.
@Rapptz Good night. :)
So slow connection...
 
yiz
8:27 AM
@NipunGogia hello
 
yiz
8:40 AM
this chat is getting slow ...
needs to be rescued by random web pics
 
do you guys know if there is some sort of chart for the questions asked here. I am trying to gauge which programming languages are in.
 
when the lounge is dead, I know that I've gotten up too early ._.
 
Xeo
I know I've gotten up too late. Didn't help that the busses weren't going like they should....
 
I've been lounge-dead for a couple days. The three days of summer have arrived in the UK, and we've been tackling the overgrown garden, painting fences and attending beer-seminars down the Vernon Arms. Nobody rage-quit while I've been gone?
 
what's easier - writing an allocator for vector that uses a common pool with a runtime configurable max size, or ditching vector<T> from the tree nodes in favour of vector<T*>/list<T*> or something?
 
8:54 AM
@marabutt: There is some sort of SQL interface to the stackoverflow.com database that you might be able to use.
 
@wilx thanks that would be handy. I get the feeling js is really starting to gain traction.
 
@wilx oh, that's neat
 
But judging from the schema, it will not be easy to get the information about languages out of it.
 
user142019
@Code-Guru I think it doesn't matter which one you pick.
 
user142019
They're equivalent and IMO equally readable.
 
user142019
9:21 AM
OH NO IT'S NOT IN POINT-FREE STYLE
 
Xeo
lolwut
 
user142019
Hmm.
 
user142019
A CAPTCHA that requires you to implement an algorithm that will be verified using QuickCheck.
 
9:36 AM
@MartinJames don't think so... @Sbi was around raging over IT departments not being helpful to him
 
holy crap...the _BitScanForward64 intrinsic is so much faster than log(x)/log(2):p
 
hey, @R.MartinhoFernandes has made it into don't starve
 
@melak47 log(double)? yeah it is.
 
@Abyx nearly quadroupled my search speed :3
now the most expensive operations are float distanceX = std::abs(centerX - getXOfPos(pos)); and thisEvaluation -= (int32_t) (maxDist * maxDist * maxDist);
 
abs should be fast for floats (just clears the sign bit)
 
9:48 AM
I think those are ints
 
user142019
Haddock y u no MathJax.
 
yay
 
@melak47 Probably a one-cycle CPU instruction.
 
well, it has a lot of inclusive samples, it runs in a loop a lot :p
 
seems like there's some kind of consensus building for ditching our horrible backend server and redesigning it from scratch
possibly in node.js <3
 
9:52 AM
@rightfold because it's fish
 
should pow(maxDist, 3) take (slightly) longer than maxDist*maxDist*maxDist ? :/
 
user142019
 
@rightfold now pow(bla, 3.0), that uses powf which is much slower :(
 
@melak47 Probably (unless your compiler optimizes it out)
 
user142019
clang uses xmm for x * x * x lel.
 
10:01 AM
hmm
I can share code generation trees between more than one instance of the code generator.
 
@rightfold so does msvc it seems
 
10:24 AM
in C#, 12 mins ago, by codebrain
nigga,. thats a good place for a VS style..i ll choose it when i will have time.
dat ghetto guy
 
That's ghettist.
 
man
did I mention that it's mindbending and difficult to implement code-generated compile-time functions?
I'm looking at the spot where the code should go and there's just a comment saying "THIS SHOULD GO HERE".
I think that I need a MetaTypeType.
or maybe I should just ditch the meta parts of my existing type type.
 
Sounds like you are doing something wrong.
 
what's wrong is having two different functions for overload resolution that have subtly different behaviour but most of the code is really just a dupe
 
@DeadMG then drop one solution
 
10:34 AM
yeah, going to.
 
and also if I'm going to spin up a code generator every time I perform overload resolution to code generate some of the metafunctions involved, I should really cache the result instead of performing overload resolution every time...
 
Battle.net desktop client o.O wut
 
tpope/vim-abolish is cool
 
10:51 AM
y'know, I'm also going to need different code to handle templates.
 
@R.MartinhoFernandes Is that new?
 
@R.MartinhoFernandes Oh damn I've been mulling about that kind of functionality for a while.
 
Which one?
Coercion?
 
Yes. I'm thinking substitution can be useful, too.
Well, Subvert.
 
10:57 AM
hmm
I need to rewrite my Clang interface to support being code-generated repeatedly
 
No ,this is SO typo ... — Michael IV 24 mins ago
 
woo, some more cycles shaved off
changed uint64_t % 8 to uint64_t & 7, 30% speed increase :p
 
er
you know those don't produce the same result, right?
no, wait.
ignore me
surprised compiler does not perform this optimization
 
@DeadMG I was, too
 
@melak47 huh, which compiler?
 
11:08 AM
@jalf MSVC 11
 
interesting
 
Speaking of optimizations, I wanted to compare the generated code of some ranges vs hand-rolled iteration but I'm not sure how to go about hand generating zip a (delay a). Then again I'm kinda sick of ranges and iteration right now.
tl;dr making food instead
 
@LucDanton What's delay?
 
@DeadMG well actually I lied :S it's int8_t, but only positive input values
 
@R.MartinhoFernandes The stream version of tail I suppose. Everything is mixing and blurring in my head.
 
11:12 AM
@melak47 Are you sure? VC10 optimizes it correctly
 
@jalf I have full optimization on, prefer speed over code size
 
@melak47 Well, that probably explains why the compiler did not change the value.
 
@DeadMG right, durr
 
I don't remember what the requirement is for modulus on signed, but I doubt very much it's abs(val) % num.
 
@DeadMG yeah x % n == x & n-1 when n is a power of two doesn't work with negative values
so it would make sense that the compiler doesn't use that :p
 
11:16 AM
just goes to show that if you're in a tight loop/etc, you should only use signed if you REALLY need it
 
@DeadMG I don't even know why he used signed here ._.
just trying to optimize his stuff a little without breaking it
 
I'm confused - what happens when I compare an unsigned char and a char? do both get promoted to signed int?
 
@melak47 ask the standard
 
;_;
 
11:25 AM
> [C++11: 5.9/2]: The usual arithmetic conversions are performed on operands of arithmetic or enumeration type. [..]
> [C++11: 5.10/1]: The == (equal to) and the != (not equal to) operators have the same semantic restrictions, conversions, and result type as the relational operators except for their lower precedence and truth-value result. [..]
 
what about <= and >=
 
that's 5.9/2
 
and the usual is that stuff gets promoted to int?
 
[C++11: 5/9] defines the usual arithmetic conversions, suggesting that you'll get integral promotion ([C++11: 4.5/1]), i.e. yes, int.
 
thanks :D
 
11:28 AM
you're welcome
feel free to ask that as a question on SO so I may post an answer
 
@LucDanton drop 1?
 
Xeo
@melak47 Check STL's video about the Usual Arithmetic Conversions
 
if ((ourTurn && newscore) > score) //I don't think this is what's meant to happen here...
 
That's not optimizing, that's rescuing.
 
11:35 AM
rescuing?
 
i.e. code is broken.
 
I can see that the code is broken :D but what does rescuing mean in this context?
 
@melak47 From insanity.
 
@melak47 Fixing it.
 
oh :p
I thought you were calling what that code was doing rescuing :p
 
11:38 AM
@Luc how often do you use invoke?
 
I thought I did all the time but I caught myself using the predicates of e.g. range::filter without it :s So there's no telling.
 
well, crap. the code is running so much faster now that it runs out of memory :(
 
My is_callable tests invoke(f, a...) instead of f(a...), but I never used invoke when I used is_callable.
:S
 
Well who uses pointers to member amirite? :p
 
I'll make is_callable and is_invocable, I think.
 
11:42 AM
I have those.
 
Hmm, result_of uses invoke as well :S
 
Also apparently I don't use is_callable. I know I use it in some other stuff though. I think?
 
Xeo
You seem confused
 
I've been for a few hours. I'm not sure why; I'm also confused about that.
 
What would you call the two ResultOfs? One based off f(a...) and the other based off invoke.
Or maybe I should just go invoke all the way.
 
11:45 AM
result_of::invoke<lol(wat)>, result_of::call<me()>? I don't like lowercase aliases though, result_of or not.
 
You do the normal metafun/alias pair in your result_of namespaces, right?
Just consistency, or do you actually make use of that?
@LucDanton What about uppercase metafunctions?
 
@R.MartinhoFernandes No aliases. The assumption is that the metafunctions are only of use to further meta-computations. I compose those without aliases.
@R.MartinhoFernandes I do.
I suppose at the expression level I just late-return decltype rather than use result_of.
@R.MartinhoFernandes Stop confusing me! :p
 
@LucDanton Hmm. Most of the time I use it for return types + SFINAE.
@LucDanton I noticed you have Or and And uppercase, as metafunctions, just like I have Any and All.
 
I think at some point I actually implemented them as aliases to either std::true_type or std::false_type.
hg grep suggests there used to be some uses of or_ and and_ that may not all be from Boost.
 
I think I'll start using False = std::false_type; and similar for True.
 
Xeo
11:58 AM
lol
 

« first day (962 days earlier)      last day (3983 days later) »