« first day (1485 days earlier)      last day (3687 days later) » 

user1804599
15:07
I just had diarrhoea.
user1804599
@orlp that is UB
Nope, 1 1 0
What makes you think it's UB?
Homework due day again :P ...
user1804599
You dereference uninitialised pointers.
user1804599
Oh wait, those expressions aren't evaluated.
15:10
the thing is
it should print 1 1 1
I can't figure out why it prints 1 1 0
user1804599
@orlp Why?
simple recursion?
if the type is int it prints true
user1804599
*z is of type int*. You haven't specialised Specialised<int*>.
@rightføld look at the second definition
template<class T> void f(T* t) noexcept(noexcept(f(*t)));
user1804599
15:12
Yes.
user1804599
You pass int**.
user1804599
Dereferencing gives int*.
So that becomes int*
which then becomes int
user1804599
No.
user1804599
T is int*.
user1804599
15:12
t is int**.
that goes into template<class T> void f(T* t) noexcept(noexcept(f(*t))); again
user1804599
*t is int*.
noexcept(noexcept(f(*t)))
so if it's a pointer type
it will take the noexcept specifier of the same function dereferenced
so it should go int** -> int* -> int -> true
wait coliru isback up?
user1804599
15:15
It tries to call void f(T&) [with T = int*].
I would try disabling the first overload on std::is_pointer
user1804599
This is because the second overload is not in scope until the semicolon.
and see if that helps
user1804599
So noexcept(f(*t)) only considers the first overload since that is the only one that is in scope.
hmm
user1804599
15:18
> 3.3.2/1 The point of declaration for a name is immediately after its complete declarator (Clause 8) and before its initializer (if any) …
user1804599
Exception specifications are part of the declarator.
damn you're right
then what I thought to be a compiler bug
is a fault in the standard
10
Q: Why is swapping multidimensional arrays not noexcept?

orlpI have the following snippet: #include <algorithm> #include <iostream> int main(int argc, char** argv) { int x[2][3]; int y[2][3]; using std::swap; std::cout << noexcept(swap(x, y)) << "\n"; return 0; } Using GCC 4.9.0, this prints 0. I don't understand why. According t...

template<class T, size_t N> void swap(T (&a)[N], T (&b)[N]) noexcept(noexcept(swap(*a, *b)));
that's the definition of std::swap
which is broken for multidimensional arrays
@rightføld lol repwhore :D
damn, C++ surprised me again
welp
we did it
we broke the standard boys
user1804599
fuck Java
user1804599
15:28
Cannot do IntStream.range(0, 10).map(i -> readBytes(stream, 4)) because readBytes specifies that it may throw IOException and IntUnaryOperator.applyAsInt does not.
user1804599
IOException shouldn't be a checked exception.
checked exceptions in a non-inferring system are just dumb
user1804599
How are checked exceptions useful if they are always inferred?
always inferred != can be inferred or even usually inferred.
user1804599
They should at least be parameterisable and deducable.
15:34
personally I'd learn towards "Virtually always inferred but useful on interfaces"
does anyone know how I would make my mingw compile in c++ 11 or c++ 14 mode by default instead of having to use the -std option?
no.
user1804599
I don't like exception specification for exceptions that you almost never catch except in main or some main loop.
oh wait, I remember you, you're a fucking twat.
crazy right-wing racist if I remember correctly
user1804599
Such as I/O errors.
15:36
@rightføld Consider interface violation cases- for example if you're passing a callback as a C function pointer, that callback should obviously never throw, regardless of what the exception is.
or crazier cases like what if the comparator in a std::set throws, or the hasher in std::unordered_set.
checked exceptions are just a slightly more fine-grained approach than noexcept.
yesterday, by Aaron Kyle Killeen
can anyone in the UK explain to me why immigrant Somali families on welfare get to live in $3 million dollar houses? If it were a reasonable country like Japan, they would have been kicked out for being homeless, if they even got in in the first place.
yeah...
I guess I found a new person for my plonk list
that's hardly his first offence
user1804599
I don't know the context.
I just found the first message from his profile pretty much
15:39
I think he was here a few months ago spewing bullshit about separating whites and blacks and that kind of thing.
@Puppy would you call James Watson, the guy that discovered the molecular structure of DNA a crazy right-wing racist too?
if he was one, then yes.
scientific discoveries and personal batshitcraziness are othorgonal.
@AaronKyleKilleen you are either joking or scum.
he's scum.
15:41
@Puppy so what evidence is there that the observed racial differences in IQ are not caused by genes?
firstly, correlation != causation
user1804599
I am a racist.
secondly, it's well-known that it's wealth, health and other similar socioeconomic factors that cause IQ differences
user1804599
I think white humans are better than labradors.
racial differences in IQ are easily accounted for if you don't give black people two thousand years of sitting on their arses lording over everyone in the same spot to accrue ridiculous sums of money.
15:43
thirdly, IQ is an indication of how good you are at IQ tests
pretty much that.
fourthly
@AaronKyleKilleen In case you are oblivious to the rules of science, you're supposed to provide a theory, do your best to refute it and provide proof, then present it to the world. You do not challenge the people that disagree with you to prove that what you're saying is wrong, it's your responsibility to prove that it's right.
why the fuck am I even speaking to you? I well remember from our last debate that you're batshit insane, don't care about any evidence, and are highly racially prejudiced.
I would plonk you but then you'd be inflicted on everyone else who comes in here
@Puppy that needs to be quantified, you can't just show a correlation, but as a matter of fact most of the gap remains after controlling for things like income
if only some kind room owner would ban you three thousand times.
15:45
> but as a matter of fact most of the gap remains after controlling for things like income
[citation needed]
@orlp except you're the ones bullying anyone who questions the orthodoxy, I'm just asking what evidence you have to back that up
Good morning!
user1804599
@AaronKyleKilleen wat
Hey there, Puppy! What's going on?
just in case you hadn't noticed
user1804599
15:46
I want pea soup.
AKK is a total fuckface crazy racist.
so kindly ignore him before you get infected.
user1804599
With rookworst.
public service announcement.
any fuckwit with paint can make that graph
where's the source
that's not a citation, it's just a graph.
15:47
so who fed the troll?
user1804599
user1804599
@StackedCrooked No idea, but I wanna be fed with this.
@rightføld snert!
you can find all of the sources in there
@StackedCrooked Plix wield banhammer on crazy racist.
15:47
everything is sourced
wow
@rightføld Peas?
I'm impressed
a blog?
the peer review must be absolutely brutal there
@orlp peer review doesn't really work when you only have those who share your prejudice peer review
user1804599
15:48
oh shit
AKK is at it again
damnit AKK
Who are you talking to
@thecoshman honestly, I always hear nuts use the opposite argument
TIL AKK = Member of Stormfront
@thecoshman is that some evil organization is "controlling" the peer review and keeping the "real science" out
@rightføld This, I need. It will come useful one day. Today, it gets downloaded.
user1804599
15:50
@thecoshman Lekker, een peer. Ik ga peren reviewen.
@orlp that it doesn't work when you have impartial people peer review? Of course not.
@milleniumbug AKK
user1804599
Oh I flagged that message about Somali people btw. Just an idea.
@thecoshman no, they are furthermore claiming that peer review in academia is influenced by people
> The claims of race realists are based on scientific evidence.
duh.
15:51
@rightføld which one?
> race realists
the whole point is to have other people influence the paper.
wow...
user1804599
yesterday, by Aaron Kyle Killeen
can anyone in the UK explain to me why immigrant Somali families on welfare get to live in $3 million dollar houses? If it were a reasonable country like Japan, they would have been kicked out for being homeless, if they even got in in the first place.
user1804599
I want hamburgers and pea soup.
15:52
huh... flag icon is not there o_0
I would plonk him, but this is entertaining.
oh there we go
I go play this game for 10 minutes
10 minutes
@rightføld Pea soup goes well with hamburgers?
and AKK is already fucking things up
god damnit AKK
user1804599
15:52
@Nooble Sure.
peas go well with anything?
user1804599
Nah, not with ice cream.
damnit rightfold
@rightføld I'm sure it can be made good
user1804599
I want to live a whole week on just peas and ice cream.
15:53
you are such a freak.
Or Smoothies.
peas?
blech.
Pea flavored ice cream.
user1804599
Rest in Peas
2
all that other stuff, like piercings, gender changes, etc, I can get over
but peas?
15:54
@AlexM. I had him plonked and I didn't see his messages
user1804599
I don't see what is disgusting about piercings and gender changes.
user1804599
Piercings are great.
(and I forgot about plonking)
@rightføld got any?
user1804599
No, but I know people who do.
15:55
I like how you mention piercings and gender changes in the same sentence
user1804599
I'll have piercings soon though.
@rightføld why wait?
@thecoshman Financial maybe?
user1804599
I already bought them, only have to get holes in my earlobes.
user1804599
And that's like free.
15:57
@Puppy How dare you offend rightfold's love of peas.
user1804599
user1804599
This is the most delicious food ever.
user1804599
I love peas.
Chickpeas...
user1804599
witte bonen in tomatensaus JONGE
16:00
You know what I hate? I can take a look at the references in that racist blog post, and try to critique every one of them, but there's just no time to do that. They can spew bullshit so much faster than it's possible to take time to address the faults in their ways.
user1804599
And in the end both their nonsense and your counter-nonsense are TL;DR anyway.
user1804599
No one cares. Get out.
@rightføld Frog GIF please.
gifs don't work on AKK
kickhammers do
user1804599
16:03
And whites are on average worse at running. So what?
@AaronKyleKilleen the first time, I clicked invalid.
First of all, let us assume that what you're saying is true. And that blacks are more likely (let's say 0.0002% instead of 0.0001%) to get this syndrome.
The second time, not sure
But seriously dude, you're offensive, stop.
Then first of all I'm interested in what other disorders are white-only.
user1804599
Albinism :D
16:04
Second, this is incredibly insignificant for a large population such as a race.
And third, even if there was a significant disadvantage in being black, that still should not be used as an argument to any policy ever.
There's a significant disadvantage in being retarded, so let's seperate retarded people?
Brunner's syndrome has been found in whites only I'm pretty sure but has only affected like 14 people or something but the 2 repeat allele is vastly more common in blacks and makes people more likely to be violent
There's a significant disadvantage in people with a very large big toe, let's seperate those?
but Brunners syndrome establishes that the gene affects violence
So what?
What racism advocates is pre-emptive violence against innocent people.
On a much larger scale than this violence can ever be.
who said anything about violence?
16:08
Racial seperation is violence.
user1804599
@AaronKyleKilleen The dumbness syndrome establishes that people like you invade chatrooms and brag about uninteresting crap. Unlike Brunner syndrome, dumbness syndrome is much more prominent and annoying.
@rightføld most places will only pierce you with a fresh peace that they sell you, so they know it's a clean peace.
user1804599
@thecoshman It's not a significant amount of money anyway.
user1804599
It's like twelve bucks at most.
the only violence I'm talking about is by criminals, some of whom have the 2 repeat maoa allele, which happens to be more than 20 times as common in blacks
16:09
@rightføld sure, it's cheap enough. But tattoos are better :P
user1804599
Nooo
oh joy
@AaronKyleKilleen So what are you proposing with this supposed information?
user1804599
Tattoos are bad.
I'm rebuilding the Wide AST for proper ownership semantics instead of that arena-based crap
user1804599
16:09
I only like very few of them.
So, is there a 'easy' way to work on a Rust library but also have a binary being built with it that for 'testing' it?
user1804599
> This user has been automatically suspended for posting inappropriate content and cannot chat for 29 minutes.
user1804599
Nice.
I think for now I just need to write some modules and farm them out to a library proper at a later point.
@AaronKyleKilleen lock up the blacks? disable their reproductive organs? put them in special black-only communities? all acts of physical, freedom or social violence against innocent people
16:11
@thecoshman Tests can live alongside the code that they test, there is an annotation to mark them (so they are only part of test binaries).
3
Q: What's the best way to organise unit tests in rust?

lapinrigoloI have a number of methods in a mod. These methods need to be tested but they're private. I currently have the unit tests inside the same mod but I'm not sure this is the right way to go about it as I'm mixing two different things. Should I put my unit tests in a different file? If so, how do I ...

Is that what you were asking?
@AaronKyleKilleen and by the same source of yours white people are much much much more likely to get this "warrior gene" than hispanics, so I should suggest we impose any policy against blacks against whites as well, to protect the hispanics
or let me guess, you have some bogus blog post about why hispanics are the bad guys as well?
how convenient
@LucDanton no, I mean I want to write a program that's using the code... though I guess I could do that as a 'test' program...
That’s kinda what is happening though :)
@rightføld got bumped up an hour now.
@LucDanton yeah I guess it is...
still, like I said, for now I'll just write it as a main.rs with modules.
16:15
I should've probably made a funny Boost.PP demonstration using the concatenation of a seq containing the letters
I’ve not tested Cargo yet (which is slated to be the top-level tool, sort of) because it’s too recent for me so I can’t comment on that. Everything I’ve done involved calling the compiler by-hand.
@rightføld ...and best of all, "whirled peas".
user1804599
@thecoshman nice
@LucDanton oh man, start using cargo for sure.
user1804599
Rust module system should have been filesystem-based.
user1804599
16:16
It's way too complicated as-is.
I didn’t like what I saw in the very early days (or hours) tbh.
it sort of is... it's just seem to be bad that they use two system, src/myModule.rs or src/myModule/mod.rs
user1804599
And you have to repeat the structure in some file.
IMO the latter is something you only good for doing like the 'public face' of the library.
@AaronKyleKilleen wow. fuck you, you racist cunt.
16:19
Guys.
AKK is a known conversation poison.
@R.MartinhoFernandes and gurls, nothing but a crazy bunch of guys a gurls
> $ curl https://redacted-because-lol.example.com/rustup.sh | sudo bash
^oh right, I don’t like Cargo
@LucDanton huh?
> You should run this script almost every day to get the latest updates.
@thecoshman Top of the landing page for Cargo, installation instructions.
Yeah that's horrible.
16:23
cargo cult downloader
user1804599
Piping stuff from the Internet into sudo bash is disgusting.
Well, it's still early, they really should sort out delivering Cargo and Rust via proper pkg managers.
user1804599
Yeah, should totally do wget …; bash ./rustup.sh instead.
Still, cargo itself is very nice IMO.
16:24
I'm almost home again.
Q: What did you do on sunday?
A: I went home.
@thecoshman It has external tests that go in a separate part of the package tree btw.
@LucDanton yeah I know. You do 'unit tests' in the source files, and then 'integration tests' in the <project root>/tests folder.
Other than that, write two packages.
@R.MartinhoFernandes Does that mean "almost back to Berlin", or "almost back to Portugal"?
A2: Made ambiguous statements (well, one, anyway).
Speaking of, @R.MartinhoFernandes do you go through Paris when going to and from Portugal to the more central parts of Europe? How do you deal with the public transportation there?
16:33
I've only been to Paris once, and my cousin acted as a guide..
@LucDanton I can't speak for Robot, but I've never had any problem with transportation in Paris. In fact, even though I speak/read/write English and no French, I find the Paris subways (quite a bit) easier to figure out than The Tube in London.
@Jerry I didn't leave Berlin.
I did stop by a bookstore, though.
@JerryCoffin Peripherique? Grossly unpleasant.
@R.MartinhoFernandes I see. And getting home from the bookstore took a significant part of the day? I know there are lots of cranes and construction going on there, but I had no idea Berlin had grown quite so large...
The more infamous reputation of the system there hangs around the light rail and rail systems.
16:35
16 flags? Wot?
@MartinJames About the usual for AKK.
@AaronKyleKilleen you scare me.
Oh.. it's the black/white tree again.
1 hour ago, by Puppy
oh wait, I remember you, you're a fucking twat.
@Puppy Orite. All is explained.
16:37
@LucDanton I don't recall any problems from when I used the rail system. Pretty sure I've never tried the light rail though.
@JerryCoffin Berlin construction - OK for some, but I walked round Ostkreutz stn. for an hour, looking for a train.
@MartinJames Hmmm...trains are usually pretty easy to find. They are fairly large. :-)
@MartinJames yes well, I've seen you trying to navigate places, not much better than robot
@Jerry no. I slept at a friend's place in west Berlin and left around 14. Took the wrong train, feel asleep in it, ended up in the southeast, almost outside Berlin. Then took a train back which due to I-don't-know-what ended a few stops later. I took another one from there to the Ringbahn and then the Ringbahn. I had to switch one last time then, and that's when I stopped at a bookstore.
Then I proceeded to, instead of doing the switch, getting on the line that got me there. Then I stopped when I realized the mistake and went back again.
@R.MartinhoFernandes Oh my! I think you've now cemented your reputation for managing to get lost, even in situations where most would think that was impossible.
16:52
Robot would get lost in a 0D space.
@thecoshman If it's 0D, how does it qualify as "space" at all? Besides, we all know space really has 20 dimensions (or maybe 22...or possibly 10--I can't keep up with all the notions of string theory).
@JerryCoffin Zero spatial dimensions, ie everything is in exactly one point/infinitely far apart, with zero/infinite volume/size.
user1804599
Guten Tag.
@JerryCoffin I think they decided that 11 is the fundamental number in M theory.
I find it surprisingly hard to find rankings of public transportation systems (for metropolises). I keep hitting rankings of US cities :/
17:09
@Columbo It was a typo, Thanks. And what wrong with examples? Maybe you want to say that instead of int there must be used size_t? — Vlad from Moscow 9 mins ago
@Puppy Obvious nonsense until/unless they can justify its being 42.
@LucDanton Could that be because many (most?) US cities are so rank? :-)
heh
wouldn't it be awesome if it turned out it really was 42?
why is theory of computing such a weird class you guys?
@Puppy I already know it is (the mice told me).
@corvid All remotely advanced mathematics is weird.
even basic mathematics has odd spots, like division by zero.
17:13
is theory of computing advanced? Where does "advanced" mathematics begin?
anything that isn't just addition.
where the operands are exclusively in the range of 1-10.
I always thought anything up to Calc III was supposed to be considered beginner to intermediate level :|
@corvid It follows the same pattern as everything else: everything you learn before you're 10 (or so) is simply "the natural way the world has always been". What you learn from 10 to 30 (or so) is "new and exciting and advanced". Anything that happens later than that will always be suspect, and most will (deep down) consider it "just not how the world is supposed to be."
user1804599
what is calc III not everyone lives in the USA you know
In Murickah the progression is: Basic Algebra -> Precalculus (sin/cos/tan and limits) -> Calculus -> Calc II -> Calc III -> Linear Algebra -> Number Theory
17:18
@rightføld Could it possibly be a third calculus class? Admittedly, some education systems are a bit inferior, but are you honestly saying that we can't expect people to know Roman Numerals?
@corvid In America, the progression varies (at least somewhat) between schools.
I believe most do at least attempt to touch on discrete mathematics somewhere along the line though.
yeah but that doesn't seem to be part of the progression because it has no prerequisites, it's more on the side
@corvid I guess I'm too lazy to do a survey of all colleges, but that doesn't seem to be the case at MIT.
but that's smart people school. I'm doing discrete at my school now, it seems to only require a basic knowledge of algebra
@corvid So at a "smart people school", they have to make the prerequisites explict because they can't depend on your having as much background in mathematics as at other schools?
17:33
I'm home!
yeah pretty much. Can override pretty much any class with enough convincing at any other school
17:44
oh fucknuggets.
fuck you C++.
std::unique_ptr<T> f(); totally overrides std::unique_ptr<U> f() where T : U.
> fn with(callback: &mut for<'a> FnMut(&'a Data)) { … }
moar syntax! cc @Rapptz
Ooops. Keyboard cleaning.
@R.MartinhoFernandes ooh, lol
that's what they all say
@R.MartinhoFernandes Are you actually in your apartment, or can we expect an entire saga of the journey from the outside door to your apartment via the Dürerplatz and Ringbahn?
17:49
hmmm... impl Foo{ fn new() -> Option<foo> { /* stuff */ }} is that 'sensible' in Rust if I want a 'constructor' but it's running code that might not be able to make a valid object. eg, if foo was a 'Server_Connection' that might not be able to make the connection.
fuck off.
the type is not copied.
would a book on OpenGL provide more or less enough relevant information to transfer directly to WebGL, or should I get a book on WebGL?
time for dindins.
@thecoshman I don’t see why not.
@JerryCoffin lol
I'm typing this from my room, with my keyboard.
17:54
@LucDanton it's basically like if a C++ constructor could throw. I'm saying my foo constructor might give you a foo, but equally it might not be able to. at least, is that how you'd read the code?
@R.MartinhoFernandes I'm relieved to hear it. :-)
If the constructor takes exactly one parameter it’s not unusual for it to be named from_X, e.g. from_str. (That one isn’t exactly a constructor, but then again nothing is :)
@thecoshman Sure.
right so.
@Puppy Isn't that a good thing? Covariant return types with pointers and references do this.

« first day (1485 days earlier)      last day (3687 days later) »