« first day (1655 days earlier)      last day (3286 days later) » 

5:02 PM
@R.MartinhoFernandes I think that's kind of disingenuous, to be honest. There have been so many cases recently of police specifically causing the death of (frequently innocent or guilty of no noteworthy crime) black people in the most absurd ways, and usually getting away with it. There have been so many stories. It's not like white people are underrepresented in the media. If equivalent "white" cases existed, don't you think we'd have heard about them?
 
@LightningRacisinObrit check the updated answer, it should fully work now.
 
I agree that their police has other, deeper problem as well. But there also seems to be a pretty strong race component
 
@AndyProwl awesome, this is beautiful
I'm gonna work on it, thanks a lot :D
this will be kickass when it's done, honest
 
@jalf lol "race component". as if they shoot'em because their skin is black. especially when police officer is also black
 
@jalf I don't think it's disingenuous at all to wonder about selection bias in the media.
 
5:07 PM
I'm expanding my facebook network
@AlexM. What's your fb
brah
 
@AlexM. No problem
 
@jalf Also, I see no reason to assume the police have some race bias and but the media don't.
 
@AndyProwl Is this you?
 
The media over-represent anecdotes often enough.
 
@Jefffrey lol, no. I can't see the page but andreas.prowlozki is not my username
 
5:12 PM
0
Q: "Merging two files" using operator "+"

thexzI need some help from fellow programmers. I was wondering, if it would be possible to code something like this: File1=File2+File3 Correct me if I'm wrong, but i would have to overload an operator somewhere ? I know it would probably be easier to just copy contents from both files straight int...

 
@R.MartinhoFernandes Wanna be friends on fb robor?
 
@R.MartinhoFernandes IMO, it's less often a problem with police brutality than with simply poor training. Don't get me wrong: there's no question that it really is brutality in some cases, but I think in a lot stem from under-trained officers over-reacting, believing they're in much greater danger than they really are.
@Abyx There are cases where that almost certainly has happened, and yes, some of them are black officers shooting black suspects. Some of the latter really is (in a way) racially motivated--a black officer who shoots a drug dealer (for example) because the officer thinks the dealer is giving blacks in general a bad name.
 
@rightfold It finally works after tweaking some regexes.
Yes, I use regexes to parse wikitext. I hope Cthulhu doesn't hear about this.
 
user1804599
Don't tell Bobince.
 
@JerryCoffin I also think that there's a general lack of understanding of what a firearm is and of what it can do, both from civilians and police officers. More than half the times I see police officers using firearms in the US, they are Doing It Wrong™. And that fits with poor training, indeed.
 
5:32 PM
@Columbo odd question... not often I see people asking about abuse of operator overloads
 
No training can get you ready for a situation of real action.
 
@rightfold Regexes are kinda fun. Also URLs and connections and stuff. Should I go into web programming? ;)
 
user1804599
Yes, please.
 
But what about compilers???
 
@R.MartinhoFernandes they make people listen right? (or is this not the place for jokes)
 
5:33 PM
I thought I'd become the next Martin Odersky or something ;)
 
user1804599
Martin Odorsky stinks.
 
@Jefffrey That's blatantly false.
 
user1804599
@fredoverflow Improve Nok and Mill compilers.
 
Also note that ready and perfect don't mean the same at all.
 
5:34 PM
@R.MartinhoFernandes <3
 
@rightfold What is Nok?
 
user1804599
A wonderful programming language.
 
@R.MartinhoFernandes it's hard though. It takes a lot of training to be 'prepared' for situations that you can't really train for. It's not like we can just start firing live ammo at cops in training :P
 
I think that in some cases, self defence instincts just kick in and there's little you can do about it.
 
@R.MartinhoFernandes IMO 'ready' is 'perfect' :D
@Jefffrey you can train to deal with that though.
 
5:36 PM
Some of these "omg that policemen shot that poor guy" situations are really judgments from people that don't know the context of that situation (and except where there's video proof), the context will never be known.
 
That doesn't make an interesting point.
 
user1804599
@Jefffrey Are you saying policemen shooting poor guys is like people flagging messages on Chat?
 
yes
 
Ven
@rightfold do you hate fred?!
 
user1804599
5:38 PM
No.
 
user1804599
But rather he than me.
 
@Jefffrey Stress handling is part of the training, yknow
 
Ven
LOL
 
No, actually I don't know. I would be interested in knowing how they "train" for that.
Because it doesn't look possible to me.
 
I'm such a hacker
im modifying nandroid backup scripts to hack around its inability to remount my sdcard
> Erasing /system
oh boi
splash changed
will it boot
come on come on you can do it
hahaha
I think I'm back with android 1.6
 
5:46 PM
So how much did you pay for that brick
 
good job bartek for not updating nandroid backup
 
@CatPlusPlus That's kinda awkward, though, because the stress training usually distances trainees from the community. It kinda works for soldiers, but policemen should not be trained as soldiers (other than the ability to handle firearms, I guess)
 
@CatPlusPlus it's been lying dead for last 2 or 3 years in my closet
it's my old phone
lol anyone remembers my unlock code from 2011
 
Master hacker defeated by PIN
Shoulda given it to me :v
 
@CatPlusPlus what would you do? People in the js room recommended "gravity" when I said I wanted to speed it up. ;)
hahaha, my old gmail password from 2011 worked
it unlocked
 
5:50 PM
@R.MartinhoFernandes They should keep a level head in difficult situations tho, especially when guns are involved
 
@Jefffrey like my name, Alex Marginean
 
maaan
this is really smooth
 
@BartekBanachewicz Like I need speed
 
works much faster than on this shitty 2.3.3
hahah showing SMS from 11/11/11
 
@BartekBanachewicz what did you do?
nvm I need to learn to read
 
5:51 PM
That is a useful skill to have, yes
I can't fucking finish this stupid provisioning config, so boring and time consuming
 
k in seriousness though
are there any apps still functioning on 1.6?
 
The ones you write, probably
 
@CatPlusPlus android sdk doesnt even ship that anymore
 
Then no
 
at least my backup was already rooted
 
5:54 PM
greetings
 
Run shit directly on the Linux layer :v
 
@CatPlusPlus I was kinda hoping for running some navigation software
 
You can hope all you want but at the end of the day you're using a mobile platform
 
1.6 looks much less shitty than newer androids actually though\
it's like, reasonably fast and has logical UI layout
lol, I even have widgets there
it's still smooth
google, you bunch of sad, terrible fucking bad programmers, it only took you one version to make a phone unusable
lame ass noobs
 
Xeo
damn I'm so bored
what's up with the last few days
 
6:00 PM
soo maps still seem to work
 
@Xeo I'm writing a lib. Can I ask you to check it later
 
Xeo
meh coding
 
C'mon
 
user1804599
user image
3
 
> So why was your hand around it? - Must have been unconsciously, haha
 
user1804599
6:01 PM
 
shit I'm not sure if it had the multitouch patch already
lol remember apple patents
haha, navigation still kinda works
 
Xeo
guess I'm not specifically bored, but simply... listless.
 
lol it's actually 1.5 not 1.6
 
@LightningRacisinObrit that's because this is still a WIP
 
6:08 PM
@LightningRacisinObrit take a look at github.com/orlp/libop/blob/master/tools/iwyu/iwyu.py
after I'm done making my changes I run that to make sure everything is covered :)
 
@LightningRacisinObrit go to Copacabana on your holiday grouptravel.ro/wp-content/uploads/Copacabana-Beach.jpg
it looks great
 
user1804599
Proxy is the best cat name.
 
Xeo
Proxy mah cattauri
 
hihi browsing SO on android 1.5
 
Ven
@rightfold "dog" is
 
user1804599
6:18 PM
@Ven {⎕←⍵⋄∇⌽⍵}'dog'
 
is it an upside down dog
> Eclipse shared a link.
My son has just finished up his first year of software development at college. In a demonstration of what I consider cruel and unusual punishment, his first programming language is C++ and his first development environment is Visual C++.
ah it's something to show Eclipse's refactoring stuff
I liked those too
 
Excited about operator.()
Finally we will be able to do cool stuff.
Like, stuff with dots.
 
Xeo
meh
highly meh
 
what would you do with that?
it looks like it could cause confusion to me
 
Xeo
meh things
 
6:30 PM
Same as operator->. But with dot.
Hm, not sure about how operator= should be have though.
operator->() and *t = T()' go hand-in-hand.
Ah well.
 
@StackedCrooked Is there a proposal for that?
 
It was mentioned in Bjarne's memo.
Dunno about the paper.
 
@AlexM. OMG std::list<GameObject*> and delete and unconditional C-style casts to Ball*
 
Yeah, but I don't think there's a proposal
And we're likely ~1 year away from feature freeze so I doubt operator . will make it to C++17
 
@fredoverflow I didn't even check the pic closely lol
it's probably the kid's college stuff
 
6:36 PM
@AndyProwl summary (PDF download)
 
@StackedCrooked I've seen those slides, but without proposals, they're just words
Work on modules does not seem to progress fast enough either
Hopefully we'll have ranges
 
I assume there's a paper for each of his bullets.
Otherwise it'd be silly.
 
user1804599
@AndyProwl please don't add more cruft to C++.
 
dunno, I haven't seen any paper for operator .
 
@AndyProwl Yeah.
 
user1804599
6:38 PM
Instead, deprecate shitloads of cruft, such as new, delete, member pointers and volatile.
 
@rightfold lol, I don't have any decision power
 
user1804599
Depreaction is the best thing one can do to a feature.
 
@rightfold Those are all core features.
 
I think having proxies/references is a cool thing, if that can be done without mess
 
user1804599
@StackedCrooked new and delete can perfectly function as library features.
 
6:39 PM
@rightfold The only effect of deprecating C++ features is that we can feel good about ourselves. People still use raw pointers and C-style casts and whatnot these days.
 
member pointers are the least necessary
 
user1804599
@fredoverflow deprecate C-style casts as well, as well as arrays.
 
new and delete are not really required too.
 
If C++ was mine, I'd change the declaration syntax
 
Deprecate the C core and rename to language to ++
 
6:40 PM
Placement new is though.
 
and use let
 
user1804599
Go has a great declaration syntax.
 
C++ - C = 0
 
@AndyProwl I always forget how fucking terrible the C declaration syntax is.
 
user1804599
@StackedCrooked can also be a library feature.
 
6:41 PM
Name it zero.
 
I don't know Go but I like Rust's
 
@StackedCrooked No, UB.
 
Oh, right.
 
user1804599
@fredoverflow depends on the type of C.
 
Let's rename C++ to UB, shall we? :)
 
6:41 PM
What's UB here
 
C++ without C is UB.
 
@rightfold Wow, we cannot even tell if it's UB without seeing more context. Fuck.
 
unsequenced side effects/value computations
 
UB + C = C++
 
C has UB as well.
 
6:42 PM
C++ has extra UB.
 
Uncle Bjarne
 
nice
Unclefined Bjarnhavior
7
 
user1804599
@fredoverflow and make it have only two operators, U and B, where U = \f.((fS)K), B is ( and BB is ).
 
Xeo
Uncle fined for his barn behaviour?
 
user1804599
That's Turing-complete!
 
6:43 PM
lol cplusplus
 
TIL that one can explicitly specialize std swap
why?
 
why not? It's a function template
 
Why not? Might be more efficient than the default.
 
Xeo
because reasons.
not that it's very useful
 
Function templates can be specialized. And it's something you should not do.
 
6:44 PM
@gnzlbg Save for some exceptions, you can do so for most templates of the SL.
 
@Xeo +1 best explanation
 
Xeo
since you can't do partial function specialisation
 
user1804599
why not
 
because language
 
user1804599
Is C++14 still that bad?
 
Xeo
6:44 PM
39 secs ago, by Xeo
because reasons.
 
user1804599
I hate reasons.
 
Xeo
partial function specialisations suck anyways
just overload
 
function template specializations don't participate in overloading
 
@rightfold What makes you say that?
 
user1804599
Fuck specialisations.
 
user1804599
6:45 PM
I want static if.
 
Xeo
function specialisations in general suck
 
It’s one mechanism among several for those so-called customization points.
 
But i thought ADL was the preferred way to do that
why would anybody explicitly specialize std::swap?
 
@gnzlbg It is.
'Preferred' doesn’t mean 'only'.
 
@gnzlbg The question is why would you forbid it?
 
6:46 PM
to avoid ambiguities
suppose I don't like std::swap
and write my own
 
@Xeo Can't overload std::swap, really.
 
Xeo
@Puppy ADL it, then vOv
 
@rightfold Bjarne shut down static if because of reasons.
 
I still want those candidates from others to be picked up by ADL
 
@gnzlbg But would you forbid specializing any function template, or just std::swap?
 
6:46 PM
@gnzlbg E.g. if you’re doing it for a type in namespace std, you can’t provide an ADL-enabled overload yourself.
 
@LucDanton in that case, the specialization is in the standard itself.
 
ADL is so powerful. It's amazing.
 
@gnzlbg No.
 
Xeo
@StackedCrooked it also sucks
 
@StackedCrooked ADL is hack IMO
 
6:47 PM
@LucDanton hmm in that case you are a standard library writer?
 
@StackedCrooked ADL is the King of lookups!
 
user1804599
No, its implicitness sucks.
 
user1804599
ADL is general is fine.
 
@gnzlbg What? No. Are you confused?
E.g. there is no swap for std::reference_wrapper<T> specifically.
(although of course in our case you’d have to specialize for a concrete T.)
 
user1804599
5
A: 13 million files gridfs mongo

PhilMongoDB is web scale, so it should be fine

 
6:49 PM
@LucDanton Do you happen to know why?
 
@gnzlbg Not every type needs a different behaviour for swapping. The default works in many places.
 
It would seem that for std::reference_wrapper<T> I would then always have to explicitly specialize std::swap for my own T.
 
Xeo
meh, almost 9pm already
 
ah sorry I understood you completely wrong
 
6:50 PM
you meant that the default swap is picked instead
 
Android Market still works
 
@rightfold Why is the linked video considered NSFW?
 
user1804599
Because the page is full of idiots.
 
I still don't see why anyone (except a standard library writer) would explicitly specialize std::swap over using ADL
 
@fredoverflow Because of the audio I guess
 
6:51 PM
@gnzlbg Right. And the rule on template specializations lets you hook special swaps into the system should you need it—and for std::reference_wrapper<foo> as an example it’s the only way.
 
and even a standard library writer, why wouldnt they just overload swap?
@LucDanton ! Thanks, I see your point now.
 
user1804599
> Shards are the secret ingredient in the web scale sauce. They just work.
 
user1804599
My favourite quote.
 
I can't use ADL in that case.
 
Ell
c++ is having a feature freeze?
oh wait
deadline for c++14 freeze or sommat
 
6:53 PM
@Ell We’re in 2015.
 
Ell
Ah I meant 17
thank you :P
@rightfold I'm not dead
 
user1804599
> Oh, sorry, that's right, I'm on the farm now suffocating from the stench of a thousand cow farts. But it smells like roses to be, because I am nowhere near this moronic conversation.
 
Xeo
@LucDanton you can provide it in the same namespace as foo
 
@Xeo std::reference_wrapper<std::reference_wrapper<std::string>>!
 
Xeo
hrhr
 
6:57 PM
and that’s just foo!
 
Xeo
wasn't there some restriction on "user-defined types" for std::swap specialisations? (As in, non-std types?)
 
doesn’t ring a bell, but then again I’m not a swap afficionado
 
Xeo
or maybe that was type traits
 
Are you thinking of 'you can specialize, as long as the specialization does the moral thing'? that applies to most templates
 
Climactichnites is an enigmatic, Cambrian fossil formed on or within sandy tidal flats around 510 million years ago. It has been interpreted in many different ways in the past, but is now known to be a trace fossil of a slug-like organism, thought to have moved by crawling to on-shore surfaces, or near-shore, or burrowing into the sediment. == Morphology == There are two species within this ichnogenus, C. wilsoni and C. youngi. C. wilsoni consists of paired lateral ridges between which are undulating bars and furrows oriented at an angle to the direction of travel, whereas C. youngi lacks...
 
6:59 PM
i.e. can’t break generic programming
 
I bet it's actually a set of tracks by a rover sent by an alien civilization
 
Xeo
@LucDanton nah, explicit exemption of specialising for stdlib types
 
@Xeo That sounds like the exact opposite of 'some restriction'.
 
@LucDanton just another related question: why doesn't std::reference_wrapper<T> use ADL to find a swap for T?
 

« first day (1655 days earlier)      last day (3286 days later) »