« first day (1802 days earlier)      last day (3146 days later) » 

12:00 PM
C++ Core Guidelines:
> It is probably a dumb idea to define a sort as a member function of a container, but it is not unheard of and it makes a good example of what not to do.
« Not unheard of » as in « we did that in the standard library ».
 
@Morwenn That's exactly it :(
 
Anything that can be implemented in terms of other existing member functions should be a free function.
 
@ʎǝɹɟɟɟǝſ I think that the reason std::list::sort exists is because it takes advantage of the fact that it is a list to sort it, and makes assumpations hat you couldn't make for general bidirectional iterators.
That said, std::sort could have been extended to work with bidirectional iterators and forward iterators. I don't know why they didn't do that at all.
 
@Morwenn but does it use internal representation of the list?
 
[sehe@uniquepc01 ~]$ killall empathy
[sehe@uniquepc01 ~]$ killall empathy
empathy: no process found
 
12:07 PM
@Abyx I don't know, but it could. You can take advantage of fact that insertion is cheap.
 
GREAT SUCCESS
 
user1804599
@Morwenn free function sort can be trivially specialised for list iterators.
 
@elyse It's true.
If I'm bored enough, I could write a proposal to extend std::sort. The hardest part would be defining the complexity guarantees.
 
user1804599
O(1) complexity guaranteed.
 
For std::set, yeah.
 
12:10 PM
of course not. What will you do? Throw an exception when the weak ordering is inconsistent with the predicate on the sort call?
 
user1804599
@sehe that's a bug, so terminate the program.
 
user1804599
through assert
 
@sehe What for, std::set?
 
of course.
 
user1804599
why sort an std::set :S
 
12:12 PM
It wouldn't compile anyway, it only has const iterators.
 
@elyse well... it's easier than changing gender
 
user1804599
meh, mkdir in Eiffel has a postcondition exists(path).
 
user1804599
that's silly since the directory may have already been deleted by the time mkdir returns
 
@elyse Eiffel is french right... you know the french live in a reality distortion bubble?
 
@elyse indeed. again: too much of anything is a bad thing
 
user1804599
12:16 PM
yes that's the definition of "too"
 
it's like TDD religion
 
user1804599
???
 
Contract-driven design has it's limits
 
user1804599
religion is also always bad
 
user1804599
Contract programming is, like everything, done wrong when done wrong.
 
user1804599
12:18 PM
If you specify contracts and don't meet them (like mkdir does), you should either fix that or remove the contract.
 
Speaking of TDD, need to write some tests.
 
user1804599
Speaking of TDD, need to write some code under test.
 
@Morwenn The story I tell myself before going to bed is that std::list and std::forward_list have been developed separately by some guy who didn't know what the rest of the library would become. This is especially true when you consider that they are the only containers that have remove instead of erase as well.
 
@ʎǝɹɟɟɟǝſ Weren't the work of Alexander Stepanov as well?
 
Also consider that std::list::sort and std::forward_list::sort are both guaranteed to be stable, but they don't have the stable_ prefix.
 
12:23 PM
Ah, I didn't know about their stable guarantee.
 
@Morwenn I don't know, but it sure doesn't look like they have been developed by the same group of people / guy / gal that developed the rest of STL.
Or maybe he/she was intoxicated.
 
the committee still voted it in
 
user1804599
the committee sucks
 
Ok, I guess that I'll think of a paper to fix sorting, genericity and consistency in the standard library then. I like consistent things.
 
@elyse isn't that what I said
 
user1804599
12:26 PM
@Morwenn Then you don't like C++.
 
@elyse I like that some parts of it can be made pretty consistent and elegant with a bit of effort.
 
@Morwenn They are probably never gonna change it due to the fact that they really really don't like breaking changes.
 
Actually, I only ever use a subset of C++.
@ʎǝɹɟɟɟǝſ I won't propose a breaking change. I will only propose to extend std::sort and maybe other related functions to sort more things.
 
user1804599
@Morwenn every C++ programmer does.
 
user1804599
Fact: I only use a subset of everything.
 
user1804599
12:29 PM
Even if you use all C++ features, you still use a subset of C++.
 
You're no fun.
 
in short, pirate likes irc because he can power abuse o.O
 
user1804599
If you meant "proper subset", then e.g. never using asm is already good enough.
 
If you use non-standard extensions then you are using a superset.
 
I never use typedef.
@StackedCrooked A supersubset.
 
user1804599
12:30 PM
A set.
 
user1804599
@StackedCrooked What if you use standard extensions?
 
then you're fine
 
user1804599
interesting
 
user1804599
Funfact: the set of girls I have fucked in my life is a subset of C++.
 
boost::none_t
 
user1804599
12:32 PM
What is with boost::none_t?
 
hi
@Morwenn you mean boost::none
 
Hi :)
@Mr.kbok Oh well, probably.
 
user1804599
What is with boost::none?
 
itching to brag?
 
Ran 15km during my lunch break :V
 
12:35 PM
@elyse The potential number of girls you've fucked :D
 
user1804599
boost::none isn't a number.
 
Some people have way too much free time on their hands.
 
@elyse *reinterpret_cast<int*>(&boost::none) then?
 
awesome
 
user1804599
@Morwenn probably UB
 
12:38 PM
@elyse Probably.
 
user1804599
ProbUBly
 
PrUBably.
 
Michael bUBlé
 
user1804599
I feel terrUBle.
 
shut UB
 
12:45 PM
bUBst
 
> I have to agree, this sounds really interesting. If this eventually materialized, I wouldn't be surprised if the API would be strongly inspired by SFML, as it is probably one of the cleanest and most modern
 
@ElimGarak what is this thing written in? flash?
 
@ʎǝɹɟɟɟǝſ Most modern? Haha.
 
If by "most modern" you mean "doesn't even acknowledge C++11" then yes, it definitely is.
 
user1804599
@ElimGarak inb4 sue
 
12:48 PM
@Mr.kbok Yeah, the project originated almost 2 decades ago in Powerpoint. But since moved to Flash.
@elyse It's freeware. CBS/Paramount have a really nice relationship with fans, allow even movies to be made as long as non-profit.
It's kinda cool, for a gimmick.
 
@Grimbode who was chasing you
 
user1804599
lol freeware
 
user1804599
 
@Morwenn I guess it's the least crappy API?
 
12:51 PM
it's nice. A word from the 80's, 90's
 
user1804599
absolute killer feature of DDG
 
Are mom jokes allowed in this chat? If not then I went running with my boss during lunch break on tuesdays :V
 
user1804599
@Grimbode No.
 
The word went extinct, but freeware reigns free
 
user1804599
@sehe Your mom is from the 80's.
 
12:51 PM
@Grimbode They're mandatory
 
@Grimbode Yes, but be careful; one guy already ragequit over a your mom joke
 
user1804599
Good.
 
user1804599
Screw people who don't like your mom jokes.
 
@Mr.kbok That's actually a good reason to crack some more
 
@Mr.kbok It is simple to use and rather clean. The documentation is ok too. But it isn't modern C++ at all.
 
user1804599
12:52 PM
Such as your mom.
 
@elyse my mom tells the best jokes
@Morwenn at least it doesn't involves newing all over the place, singletons, or init methods
 
@Mr.kbok That's true. But SFML.System is almost entirely obsoleted by C++11 features.
 
There are also dad jokes... youtube.com/watch?v=__DApLNFJlw
 
on YT?!
Your dad is on YT!
@elyse she wish
 
@sehe YT?
 
@Grimbode Your Twitter
 
> (v3,Y) *= 42; //Multiply only the Y component of v3 by 42.
 
user1804599
Absolutely retarded.
 
Overloading operator, is literally hilter
 
1:18 PM
Not a single class name from that library has a readable name.
 
How long are they (the names)?
 
rotx_m is supposed to be the name of a class that represents a matrix without an element type.
mag is used to calculare the magnitude of a vector
 
user1804599
> struct q_traits
 
Eh~, I've been contacted by like 10 companies since yesterday.
 
uzi I assume is the name of a function that uses a matrix
 
user1804599
1:20 PM
clearly mag is short for magnum and the library is about selling magnums and uzis
 
samurai_sword is the name of a function used to deallocate a matrix using the harakiri algorithm.
 
@ʎǝɹɟɟɟǝſ a.k.a. a matrix of void pointars
 
> martirx of viod pointar
 
> We noticed that you have not yet had the opportunity to share your experience about your interaction with our email customer support on September 16, 2015.
The interaction isn't over yet ffs.
 
It is for them
 
user1804599
1:28 PM
lol
 
@ElimGarak I did do a little bit of js/css stuff for an lcars like system
but it's meh without data to feed into it
 
@TinaZh I wasn't talking about your English! I was talking about the terms you use. I explained exactly what I mean. For example it's not "the first project", but rather "the project that's first in the list" or "the oldest project" or "the project marked as startup-project" or "the project that is started before the other". Then second project is either "a library dependency" or "the client process" or "the unit test container" or "the child project". IOW: you have to be precise. If you /don't know/ the difference between the projects, find out. Open the workspace files in a ... — sehe 1 min ago
OP came so soooo close to saying the language-ist equiv of "that's racist"... :(
 
user784668
@CatPlusPlus So it's confirmed that managed environment are for pussies.
 
user784668
Speaking of managed environments (kinda), how can I detect at compile time if asan is turned on?
 
are you going to lower emissions if you detect asan
don’t do it
 
user784668
1:42 PM
I want to use a lower GC threshold when I detect asan, so it can catch use after free earlier.
 
user1804599
GC master race.
 
@sehe wow, linking to lrio, go have a shower man
 
lrio? Ah. His blog
I do that frequently. It's even in my notes:
 
@sehe ... I know... that's where I saw you linking to lrio
 
Ell
Hi folks
 
1:46 PM
howdy all
 
you seem to really struggle to connect the dots sometimes @sehe
@Ell ¬_¬
 
Ell
@thecoshman :D
 
I know this is the C++ room, but seeing as you are all seasoned programmers, would it be acceptable to ask a general programming question?
 
No, it's not; No, it wouldn't.
 
@JonathanMusso knock yourself out
 
1:48 PM
@thecoshman No you don't understand. It's in my notes
 
literrally
 
@sehe oooh... woah...that's dedication
 
user1804599
Questions about specific code examples suck anyway.
 
@thecoshman if laziness is dedication. I guess you're right
 
@JonathanMusso not really no. Questions belong on the main site
@sehe it took effort to set that up
 
1:50 PM
@Grimbode ok thanks. my friend recently asked me what language would be suitable to build tools for the company he works at. currently he uses AutoIT (which is a BASIC scripting language I believe). Essentially he just needs to do things like, view which systems are not patched with certain software and then patch them, etc. I suggested learning Python..would that be reasonable advice?
 
@Grimbode how come you decided this :S Do we know you
 
> >2015
> >Not using dank theme for SO
 
@JonathanMusso powershell. next
 
@sehe :P
 
@набиячлевэлиь show me how and where.
 
1:50 PM
@sehe I’ve literally never used that feature lol
 
@sehe What browser do you use?
 
dark themes are nice and all, but the more you use them, the more jarring it is when things don't
 
@LucDanton I rarely do (as you can probably tell). But some things are time consuming to google even if in bookmarks
@набиячлевэлиь Does it matter? I can be all the browsers you want
 
@набиячлевэлиь sorry, it was a limited edition browser and it’s not available to the public anymore
 
Ell
I use chromium atm but I think I might switch to FF
Not sure/
 
1:51 PM
@LucDanton accurate
 
well… yeah
 
16 hours ago, by elyse
click reply, like in this annoying gif
 
the delete this; question is really good imho
 
@sehe Install Stylish plugin -> click box with black S -> find styles for this site
 
ok.
Sounds like something I might do in the near future
 
1:53 PM
a.k.a. never :G
 
user1804599
@Ell Tor Browser
 
@sehe thanks
 
@Ell FF's debugging tools are more like FFS
chrome web tools <3
 
@набиячлевэлиь not really no
 
Ell
I don't really need debugging tools
 
user784668
1:57 PM
@BartekBanachewicz You're debugging the browser or the sites?
 
user784668
In the former case, why?
 
user784668
In the latter, my condolences.
 
@Ell if you're not doing webdev then I guess either FF or Safari are fine
 
in WPF, 25 secs ago, by Omid Nasri
i want use the best way!
 
Safari is only shitty WRT "open last closed tab"
@Fanael I'm a js developer now remember
I'm only in the C++ room for giggles
 
user784668
1:58 PM
@BartekBanachewicz You did this so I can laugh at you even more? Why thank you!
 
heh
seriously though, fuck being a "language X developer"
I know too many to choose one for my personal title
 
user784668
Nah, X is the best language.
 
I should make a language called X
 
user784668
Meanwhile, I'm writing C.
 
user784668
fml
 
1:59 PM
ahahahhahaa
1 min ago, by Fanael
@BartekBanachewicz You did this so I can laugh at you even more? Why thank you!
 
Ell
Yeah I think I might change to FF, but effort with bookmarks n all
 
@Fanael tooooopkeeeeek
 
Ell
actually maybe it will ask me to import
 
user784668
@BartekBanachewicz Not my choice.
 
@Ell yes it will
 

« first day (1802 days earlier)      last day (3146 days later) »