« first day (2103 days earlier)      last day (2863 days later) » 

1:07 PM
@ChemiCalChems nah
typically we end discussions by shouting and insulting each other
at least when I'm around
 
user1804599
1:22 PM
I want a container made of a material that has a refractive index similar to that of liquid water.
 
user1804599
It would look super rad when filled with water.
 
user1804599
@orlp hah, when you paste a "javascript:"-URL into the Chrome address bar, it strips the "javascript:" part to make self-XSS more difficult.
 
1:33 PM
i'm noticing a sort of hierarchy going around here
there is no alpha male, but there are omega males, the newcomers
 
the rest are just normal it seems
 
The red line is an indicator of the mean of what is considered the "baseline" speed (plain C).
Is that a good way of showing it?
 
yes, but what do they all represent?
 
Mean execution time for 100 iterations of a certain microbenchmark.
Each of the colors is a library
 
1:35 PM
oh
so just by having the library loaded, it takes longer?
 
I should probably say "mean execution time" instead of just "Time" (seconds)
No, I do all loading and boring work outside of the microbenchmark.
We only benchmark the critical spot (calling functions, getting/setting stuff, etc.)
I should probably have a note "lower is better"
 
@ThePhD I'd do away with the legend, and put the names on the axis.
 
you should benchmark against HavokScript
 
Ven
and DogeScript
 
@ThePhD that's what i mean, having the library loaded makes the program run slower?
 
1:37 PM
It makes it both easier to read and colourblindness-proof.
 
@ChemiCalChems all of those libraries do the same, they are C++-Lua bridges
 
@BartekBanachewicz oh, that explains a lot
thanks
 
@R.MartinhoFernandes When I put names on the axis, matplotlib clipped names... and those names are long qq
 
@ThePhD Also, whatcha using?
 
nwp
@ThePhD maybe do "operations per second" and stay with "more is better". It is more intuitive.
 
1:37 PM
Oh.
 
@R.MartinhoFernandes noninus + matplotlib
 
@ThePhD Then put them on the bars, perhaps?
 
noninus is a great lib /cc @R.MartinhoFernandes
 
@R.MartinhoFernandes ... You're onto something here. :D
 
It's just weird to have to cross-reference colours to read this.
(And, again, it's an ordeal, or outright impossible, for people with visual disabilities)
 
1:39 PM
@R.MartinhoFernandes they could count, those are in order
which only makes the labels more unnecessary as a separate legend
 
@BartekBanachewicz Exactly my point.
 
hmm I think I'm gonna get pasta today
I got super stressed today :F
 
@BartekBanachewicz do you end every sentence with "today" when you're stressed :P?
 
those two were kinda unrelated
dunno I hate stress
 
... Goddamnit luacppinterface
 
1:44 PM
@Ven have a look at my lovely face
 
@Ell sobbing noises
 
nwp
@ThePhD also consider switching to nano-seconds
 
@nwp Some are best in microseconds, some are best in nanoseconds
So I'm going to try to scale everything after identifying a "best"
I really wish something like matplotlib existed in C++
All solution's I've seen are kind've really... bad.
 
Ven
@Telkitty I'll masterbait to it later!
 
lovely
 
Ven
1:49 PM
:)
 
2:04 PM
>>> sum(map(lambda p: sum(map(lambda c: c-ord('a')+1, map(ord, p[0]))) * p[1], zip(names, range(len(names))) ))
-3310575890
my buttiful solution doesn't seem to work
I blame parens
parens are the worst
also apparently python lacks builtin composition
 
Ven
lol, please
 
@ThePhD such a pretty graph and no one thought about suitable axis units?
 
Ven
@BartekBanachewicz Guido considers lambdas to be "too complex", so.
Python is a retarded language.
 
@BartekBanachewicz Just checking, do you have a job?
 
@Ven who's guido
 
2:06 PM
I admire you're ability to spend time on this
 
@sehe um, yes?
 
Ven
@BartekBanachewicz python's creator/bdfl
@sehe and you're grammar :P
 
@sehe meh i sometimes do stuff like PE to reset my brain
@Ven uh opinionated language design is the worst
@Ven it would be super readable in haskell
 
Ven
(:
 
@sehe It's on my to-do list. I can't auto-scale it.
Or at least, matplotlib won't do it for me.
nonius did, though
 
2:09 PM
uegh this file is in dumb format
that explains things
i pasted it into the interpreter lol
> Congratulations, the answer you gave to problem 22 is correct.
hyhyhy
why think when you have functional programming
 
:D
 
I remember that one problem which I solved manually
the input was like 10x10 matrix or something
 
2:30 PM
gosh people overthink PE so much
 
> Il fait tellement chaud que je m'attends à ce que ce soit revendiqué par Daech
 
"My perl code took about 5 min"
 
@Mysticial 0/10 not enough blockchain
 
@ThePhD Now that's pretty as fuck :D
 
Ven
2:38 PM
@BartekBanachewicz PE?
 
@Morwenn But muh labels q_q
 
Ven
@Mysticial need buttcoins to access!
 
@ThePhD Copy mine :p
 
@LucDanton Dude's a troll:
http://meta.stackoverflow.com/questions/328225/what-does-se-really-think-of-its-user-base
http://meta.stackoverflow.com/questions/328227/what-does-se-really-think-of-its-users-good
http://meta.stackoverflow.com/questions/328237/do-stackexchange-mods-accept-apologies
http://meta.stackoverflow.com/questions/328246/should-we-replace-stack-exchange-with-a-decentralized-db-and-consensus
 
Ven
I like it
 
2:42 PM
sheesh what does it take to be question banned
 
@Ven Project Euler
 
Ven
@BartekBanachewicz ahhh!
 
>>> 5*[0]
[0, 0, 0, 0, 0]
>>> 5*(5*[0])
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
wtf
 
Ven
@BartekBanachewicz retina.tryitonline.net/…
 
the hell is that
 
2:45 PM
@BartekBanachewicz Five lists of five lists, each containing a single 0, all concatenated together into a single list.
 
@JerryCoffin but why are they concatenated
ooooh wait
zomg
 
for some reasons, myst!c!al could smell a troll from 500 miles away & quickly rush in for some action, like a fly to a pile of excrement - that amazing ability
would endorse this ability to sniff out trolls
preview is great for editing pdf files
 
@Telkitty Most people would hesitate before comparing themselves to a pile of excrement.
 
~_~
 
@JerryCoffin but not telkitty!
 
3:12 PM
 
nwp
when does puppy usually come on? I sense a cuteness battle incoming.
 
3:32 PM
I wonder if there's a "lowerbound" algo for python
 
@ThePhD array.bisect_left
 
@JerryCoffin qq I found it only a second after that pinged me.
I was too slow. :<
 
@ThePhD Probably would have had it a few seconds sooner if you hadn't posted here.... :-)
But it would also have been less fun.
 
 
1 hour later…
4:51 PM
Official languages of New Zealand: Māori and New Zealand Sign Language.
 
is there a map for those
@R.MartinhoFernandes a not overly surprising although undeniably fun fact
 
You don't think the lack of English is surprising?
 
> Recognised to be a language by the UK Government
British Sign Language status (I think)
@R.MartinhoFernandes yeah, common law & traditions etc.
e.g. no book definition of what constitues murder either (but don’t quote me on that, common law confuses and angers me)
 
I mean, there's only like 1% of the population that speaks an official language. And only 2% with "conversational ability".
 
@R.MartinhoFernandes rephrased: I don’t find the fact that English is a de facto official language rather than de jure in many Commonwealth places surprising
 
5:00 PM
I just wonder what the point is in writing it down, then.
 
for the other ones?
 
Yes.
Clearly official status isn't needed for use in official matters, so what's it all about?
Feels like a consolation prize of sorts.
 
I have no idea of the exact particularities, but I imagine it may give legal ground for a deaf person to use NZSL/BSL in official matters (court hearings or what have you)
@R.MartinhoFernandes I disagree that it’s clearly so in a common law jurisdiction
 
And what's the legal ground for using English?
 
@R.MartinhoFernandes I leave that to the legal experts
 
5:03 PM
No one speaks Māori (not even most Māori), no one teaches Māori, and now I wonder if they even publish official documents bilingually.
 
that one certainly looks less sensible than sign language
 
Gonna ask my kiwi friend in a bit.
And interestingly, Māori is a recent addition.
29 years old.
(Deliberately ignoring NZSL here as they're not unusual in that one)
 
so it’s not exactly what I was looking for but
> The [U.S. Equal Employment Opportunity Commission] has stated that rules requiring employees to speak only English in the workplace violate the law unless they are reasonable necessary to the operation of the business.
so the de facto language with a nonetheless privileged status that nonetheless cannot be wielded as a hammer
@R.MartinhoFernandes clearly there’s nothing clear about this
 
Yeah, the US has no official federal language.
Which IMO puts them in a different position than someone with only official languages no one speaks.
It makes sense to privilege the dominant language in the US, and since it's not de jure, it doesn't make sense to force it.
 
5:19 PM
@R.MartinhoFernandes they frown down on the 'English-only workplace' nonsense because it can be used as a proxy for illegal discrimination, so presumably the argument would work as well for any 'X-only workplace' situation. source
i.e. tangential but I thought interesting
I’m getting bogged down on stuff about court interpreters :(
> Welsh may also be spoken in Welsh courts.
> Welsh is the only de jure official language in Wales.
@R.MartinhoFernandes although the latter is not a precondition for the former because it was enacted
 
Ell
Welsh is so weird
Just random syllables taken from a hat
 
I'm thinking of putting up a map of countries where unofficial languages are dominant.
Hmm
The two main languages of Wales are Welsh and English. Welsh is the only de jure official language in Wales. == Geographical distribution == English is widely used throughout the country and is the native language of most people in the South and the North East of the country; in the West and North, Welsh is the dominant native language. Nevertheless, there are a number of communities throughout the country to which these generalisations do not apply. For example, despite being located in the overwhelmingly English-speaking city of Swansea, 45% of Mawr's residents speak Welsh as their nati...
The text doesn't match the table
 
5:35 PM
@R.MartinhoFernandes I can’t find anything to support the case that official status does anything beyond symbolism. All I’ve found so far is situations where when those common law countries want something legally enforceable, they pass a specific law for just that. E.g. the Welsh thing specifically says 'the Welsh and English languages are to be treated on the basis of equality' regardless of their officialness.
I honestly thought I could easily find a situation where the de facto status of English would appear in a judicial decision, but everything I find is backed by law. I kinda suck at this though.
@R.MartinhoFernandes I sure hope they don’t say it’s de jure because of that act :/
 
@LucDanton In Switzerland, all government stuff has to be available in their official languages.
 
I might code something
what could I code
 
right
 
oh btw
I saw the most beautiful car in the world today
like, not subjectively, but it was chosen or something
 
5:51 PM
@R.MartinhoFernandes in France, too!
 
6:04 PM
I have just read the most excellent words in a BBC story ever.
> Mr Scotter made gestures to photographers as he left the court.
 
Xcode, when you select text and press tab, replaces selected text with a tab character
3
it's literally notepad.exe
 
6 messages moved to bin
 
:31791750 The errors are very descriptive; your constructors are innacessible
 
nope.
 
@Damian remember that default access level in C++ is private
 
6:07 PM
@Puppy maybe he said some words, too
 
if you want to provide your own constructors, make them public or at least protected
 
@BartekBanachewicz Yes, throw in a few public: in there and now it works,!
Thank you@
It turns out the Base constructor is called twice..
What does this virtual do?
class Sub1 : public virtual Base {};
 
@Damian what does your book tell you about it?
 
@Damian well, what part of it is unclear?
 
6:12 PM
I understand it now.. that I found it on wikipedia
Thank you!
 
I have a C++ question
what's std::pmr?
 
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3916.pdf
Polymorphic Memory Resource
 
do I really need to read 40 pages -.-
 
I just googled it so I cant tell you any more than that :P
 
I think it's waaaay too advanced to be put in an intermediate C++ course anyway
but hey C++17 gets even more complex than ever
let's add more stuff to the language
 
6:25 PM
brexit news: legal challenge mounted to prevent PM from unilaterally leaving and forcing the consent of Parliament bbc.co.uk/news/uk-politics-36834743
 
lel so maybe there's hope for your poor island after all
 
There's no hope.
 
robots are taking over
 
I sure hope they succeed
go go unelected House of Lords
 
ugh this whole PMR thing
 
6:31 PM
polyalloc's not that complicated.
 
I'm trying really hard to think about a practical usecase
 
it's just regular allocators but with inheritance instead of templates.
 
template <class T>
 using vector<T> = std::vector<T, polymorphic_allocator<T>>;
}
okay this clears it up a little
 
like I said ;p
 
so the whole pmr namespace is just a bunch of typedefs
> Opponents claimed that users were likely to run into
ambiguities if both using std; and using std::pmr; were present
lol
ok I've endured 10 of 40 pages and I'm already bored to death
 
6:36 PM
hellou
 
nwp
I need to find some entertainment besides twitch
 
you can read C++ mailing lists
if you're into dark humour that is
I have another C++ question
 
nwp
mailing lists are really not my thing
 
are wstring/wchar_t useless as of now
 
fucking hell
i've been coding a way to organize ships in a pattern dictated by priority for an hour
it works now though
 
6:43 PM
> an hour
 
nwp
@BartekBanachewicz in windows no, everywhere else yes
 
amateurs
@nwp why should they be useful in windows if we have u16string
 
@BartekBanachewicz i'd like to see you do that in less
 
@ChemiCalChems I debugged a feature for a week. Get on my level.
 
@ChemiCalChems you misunderstood. See above ^
 
6:44 PM
@BartekBanachewicz oh, i get it now
 
nwp
@BartekBanachewicz I didn't know that was a thing. Turns out just reading SO's C++17 question isn't good enough. Disappointing.
or I just missed it
 
@nwp they were introduced in C++11
which was 5 years ago
in 2011
2016-2011 = 5
also wtf lol "Structured Bindings"
are those people high
> Works with tuple/pair-likes & std::arrays and relatively flat structs
> relatively flat
god damn it people
if you can't design languages don't do it
 
wait what?
std::optional?
is this haskell now?
Maybe fuckOff
 
@ChemiCalChems that's hardly news
 
well, no, Just fuckOff
 
6:49 PM
@ChemiCalChems lol no
 
nwp
I vaguely remember there being a difference between utf16 and what windows uses, so wstring might still have some use.
why would you replace wstring with u16string though?
 
@nwp You're mixing concepts. u16string isn't "utf16 string". It's basic_string<char16_t>.
@nwp because wchar_t is implementation specified and thus you can never tell what you're actually doing
 
nwp
> char16_t - type for UTF-16 character representation, required to be large enough to represent any UTF-16 code unit (16 bits).
 
oh for fucks sake
okay I give up
 
nwp
maybe they just made that up and it's not actually in the standard, I don't know
 
6:52 PM
@nwp windows has been using UTF since forever btw
@nwp nah I'm pretty sure it is
 
nwp
I should get into the habit of reading the standard when it's past midnight and I should be sleeping
 
it's the same as int_fast16_t
 
question, who the fuck uses new stuff? i mean, i got used to using c++11 and 14, but every time a standard comes out it feels useless
guess i won't say so in some years time, just like c++11 or 14
 
@ChemiCalChems parts of it are
 
nwp
@ChemiCalChems me
 
6:54 PM
parts are not
optional should be here years ago
 
@BartekBanachewicz Just fuckOff
 
I have so many answers on SO where I tell people to use optional it's not even funny
 
whats the use?
i contains something, or not?
 
@ChemiCalChems I don't understand what you mean by that in the slightest.
 
nwp
I'm sad I still have to write std::unique_lock<std::mutex> lock(m); instead of just std::unique_lock lock(m);.
 
6:55 PM
@ChemiCalChems yes, pretty much?
 
@BartekBanachewicz well lol
 
it adds nullable semantics to a type
 
@BartekBanachewicz well, that makes sense
 
if you know Haskell you should know how useful that is
 
@BartekBanachewicz I Just useHaskellToMakeJokes
 
6:56 PM
BTW optional isn't Maybe
 
for one it's gonna lack AMF instances
 
Maybe holds something or not right?
 
yes, but maybe has additional instances for typeclasses that C++ lacks
 
oh i see
hail std::any though
 
6:57 PM
meh
variant is more useful typically
but C++ has a variant that can actually be empty so lol
I still cringe when I think about it
 
yes, definitely
variant looks awesome
 
but then again you get no pattern matching
 
nwp
also I consider `typename std::common_type<T...>::type result{}; (void)std::initializer_list<int>{(result += t, 0)...}; return result;`
->
`return (t + ...);` a big win
in a sense it kinda is like they made the language smaller by adding features
 
yeah right
 

« first day (2103 days earlier)      last day (2863 days later) »