« first day (1092 days earlier)      last day (3870 days later) » 

11:00 PM
@MohammadAliBaydoun I used to have a habit of leaning back in chairs that weren't intended to lean back. Ten times later, I seem to have broken it.
 
What? Your back, the chair, or the habit?
@MohammadAliBaydoun If it makes you feel any better, I've got a bad case of the butt-hurt since I fell from my bike ~11 days ago. I might be seeing a doctor if it doesn't improve
 
A bit of all of them.
 
@sehe A big strong bear like you should heal in no time!
 
@MohammadAliBaydoun Yup. Should. I agree
Oct 1 at 16:39, by sehe
It turns out that catching 73 kilograms on a tail-bone is probably not covered under the warranty regulations
 
Ell
11:02 PM
Hmm I'm not sure what to thing about that blog post
 
You weigh 15 kilograms less than I ;_;
 
Ell
Posting on the internet that someone has sexually assaulted someone can't be good for his rep
I think that is something that shouldn't necessarily be broadcast
 
@Ell Ball gag better than a gall bag, (ask the puppy if you disagree).
 
@Ell is "he" the offender?
 
Ell
Yeah
And I'm sure a ball gag is better that a gall bag :P
 
11:06 PM
I would assume so. We don't say murderers are saints either.
We say they murdered somebody.
 
Ell
But a ball gag in your gall bag is even worse
@pawnguy7 but how will someone ever be rehabilitated if they have a permanently tainted rep?
 
@Ell most of the time, they don't.
 
Ell
With murder maybe not
But sexual assault rehabilitation should be an option
 
I assume this module is intended to be humerus.
 
Ell
Rehabilitation should always be an option
 
11:09 PM
I would say yes, problem is if they are repeat offenders.
 
user1804599
Hmm.
 
Not sure how to solve that :\
 
user1804599
If we had [[pure]], would we be able to do the following in a pure function?
 
user1804599
std::vector<int> xs{1, 3, 2};
std::sort(xs.begin(), xs.end());
 
user1804599
std::sort is inherently impure.
 
11:11 PM
@TheTweetOfGod It would be funnier if you were politically correct, is what we're saying.
twitter dot txt
 
Ell
Why?
sort could return a sorted copy
 
std::sort works in-place
 
user1804599
@Ell Not really.
 
user1804599
What type would it return?
 
@Ell Me neither.
@Ell But not for that reason!
 
11:13 PM
Monads are better than pure attributes.
 
Ell
What is your reason?
 
@LucDanton Don't ask us. Use your sense of logic humor!
 
ST a and IO a model this in great way
 
Ell
@not-rightfold std::vector<int> ?
 
@sehe Wasn't a question.
 
11:13 PM
A computation that uses side effects internally, but overall is pure, and a completely impure computation
 
user1804599
@Ell What if I want to sort a linked list?
 
Ell
Then return linked list
 
user1804599
How does std::sort know that?
 
user1804599
I pass in two iterators. Could be anything.
 
@Ell I can't help but think there is something really mixed-message there. The most impressive culmination being all that rationalization about how "she had to /comply/ with that body shot". Whatever happened to Just Say No?
 
11:14 PM
It could return a generator
 
@LucDanton Ah, phew. Close call
 
Ell
@sehe I was thinking about that too
I was also thinking "Did you only post this on the internet for attention?" But I fear I will be denounced for asking that question
 
user1804599
But it doesn’t.
 
user1804599
You’d need a new function.
 
user1804599
std::pure_sort.
 
11:16 PM
@Ell Every fiber in my body responded to that the moment I read it. To me, it's just amazing.
I'd never drink anything but tea unless I were deeeeeeply in my comfort zone. I.e. never at work or a conference.
 
user1804599
Or you’d have to be able to overload based on purity.
 
Ell
Can't you Get contained type from iterator?
 
user1804599
Yes, but that’s useless.
 
user1804599
You need the container’s type.
 
Ell
*container
sorry typo
also I would say a body shot is very much a mixed message
 
11:16 PM
No, iterators don't have that information.
 
@Ell Yeah. Well, it doesn't really matter what she posted it for. It's simpler than that: I can't possibly make my mind up because there's little facts, and the things she does say are more than confusing
 
Iterators might not be from a container.
 
Ell
and why didn't she say something while he was assaulting her?
I dont know. I've never been assaulted
 
She did. She did tell him to stop
But yeah, it's amazing that people will refuse to scream if need be
 
Ell
Oh. I read the whole thing but maybe I missed that
its difficult to put myself in someone else's shoes
 
11:18 PM
It's literally one sentence well hidden in the turbulent story
I did like the top 2 comments though. Especially the retort "Delete your internets"
 
Ell
Yeah :P
I think thinking about the other side is interesting ttoo
someone who is usually a completely good, law abiding man
can change in the face of male hormones very quickly
its a very strange thing
 
Well, it's clear to me the male was way out of line. I mean. It happened in public, this is impertinent no matter what. Someone think of the children (I would be offended, as a bystander, even if it had been consensual)
 
Ell
Yeah
I wouldn't be offended I don't think
but I would certainly lose respect
 
Wokay. It's just I'd usually choose to be offended if people decided to lose my respect in this way. Unless, for some reason I expected they might act this way. In which case, I'd blame myself.
 
y.rs:5:13: 5:14 error: obsolete syntax: declaration of multiple locals at once
y.rs:5         g = 4;
                    ^
note: instead of e.g. `let a = 1, b = 2`, write `let (a, b) = (1, 2)`.
Good news, already starting to hate Rust.
6
 
11:25 PM
That's.... unexpected response
@LucDanton Oh noes, style cops!
 
> note: instead of impl A;, write impl A {}
But instead of struct empty {}, they want struct empty;.
I better jot down that stuff.
 
Ell
I might try rust
 
@LucDanton SO NEGATIVE
 
Ell
I'm gonna hit the hay anyway. Night all!
 
@CatPlusPlus lawl
@Ell sleeps
 
11:36 PM
Does a setScreen(nullptr) make sense for termination?
 
Alternatives?
 
Actually, I don't understand. Are you saying that setScreen(nullptr) should terminate the application, or that setScreen(nullptr) should be called upon termination?
 
The former.
A screen is like a state of the game.
It can clean up its own memory it allocated.
 
I'm gonna buy one of this for each and everyone of you, so that I can feel closer to you all.
 
11:39 PM
but it itself is allocated dynamically.
So I need to get the upstream to clean it up.
 
@Pawnguy7 Why is it allocated dynamically?
 
@Jefffrey pointed to via base interface.
ala currentScreen
 
What?
 
What I do is have a Context that owns a window and other stuff. The Context owns the state which is a polymorphic object. When one state wants to change the application state to something else and pass data along, I do context.set_state<app_state_whatever>(Args...)
 
@Jefffrey there is a current screen
 
11:42 PM
@Pawnguy7 That's not a reason to use dynamic allocation.
 
@Jefffrey How else do I get unique ownership?
 
I don't know what happened with my Thunderbird, but it's suddenly slow and crappy :<
 
Ah, there is an idea. I can use a unique_ptr.
 
You don't need to
 
Hm?
 
11:44 PM
@Pawnguy7 Why do you need unique ownership? Unique ownership is a solution to the freeing of the memory with the use of unique_ptr not viceversa.
If you don't want to share something with other components of your application just hide it, somehow.
 
The only reason to use pointers that I can identify is polymorphism to be honest.
 
@Pawnguy7 Call the upstream to remove it from its container/s, then delete it.
 
Unique ownership is a solution to unique ownership
 
@Jefffrey A) there is nothing anything else can do with it that doesn't mess things up, B) I cannot point to something that might go out of scope.
 
@MohammadAliBaydoun References.
 
11:46 PM
@Pawnguy7 No.
 
@Jefffrey I mean for storage (I don't think std::vector<T&> works very well :v)
 
^ awesome. I have your files, now you pay if you want to see them back "alive".
 
You haven't seen ransomware before?
 
@MohammadAliBaydoun Oh, yeah. Right. Well, whenever a field could be "empty" as well (null pointer). :)
 
@CatPlusPlus Nope.
Destructive malware "CryptoLocker" on the loose - here's what to do http://wp.me/p120rT-ZHp <--Explanation and advice
 
11:47 PM
Choose to pay 300 Lira.
 
@Pawnguy7 Dump the state that needs to be persisted, exit().
 
@sehe lucky you then.
 
@Jefffrey This is why std::optional was a good thing :(
 
Actually _exit().
Don't clean up memory.
 
@MohammadAliBaydoun Is that C++11?
 
11:48 PM
@sehe It's been around for a while now.
 
@CatPlusPlus 1989 according to the article :/
 
@Jefffrey It was supposed to be C++14, but it's been moved to some other Technical Specification recently :<
 
@Abyx How so? As if it is by sheer luck that I haven't yet had my files taken hostage
 
This one is not particularly clever, the newer ones pretend that police locked up your computer because you're a filthy criminal.
 
At least we have boost::optional <:
 
11:49 PM
@MohammadAliBaydoun :<
 
> 5:1 error: type &mut ~[<VI3>] does not implement any method in scope named next
 
@CatPlusPlus the problem here being update. Though the thing being dumped is what would exit, so I may as well do that upstream as well, as nothing is above that.
 
@sehe yep, it is luck.
 
@Pawnguy7 What?
 
@Abyx Hint: it isn't
 
11:50 PM
@CatPlusPlus I am trying to figure out the call upstream, I mean to say.
 
Upstream of what?
And what call?
 
I'll show you upstream
 
@sehe it is. you can always get a malware via a zero-day exploit in something like *.txt files
 
@Abyx Right.
> Take this story as a warning, and don't forget that there are many other ways you could lose your files forever
^ that. backups. scrupulous vigilance. non-windows OS
 
@CatPlusPlus I have some screens/states. Upstream is basically a manager. Not by such names, of course.
 
11:51 PM
But above all: safe backups
 
Or when someone gets their code signing keys compromised.
Hi, Opera.
 
:/
 
@sehe non-windows OS, no PC, yeah.
 
"no PC" - what's that supposed to mean?
 
Non-Windows OS is letting yourself into a false sense of security.
 
11:53 PM
@CatPlusPlus Not at all. There's no relation at all, except for a statistical one
 
@sehe I mean if you have no hardware you have no malware
 
I mean, use non-Windows OS if you want, but don't do it because ~~~malware impervious~~~, because that's bullshit.
And it's dangerous bullshit :/
 
@Abyx Oh yeah. That helps. Though it'd be inconvenient aaaand you'd still be vulnerable
@CatPlusPlus I know. It's just something that (used to) drastically influence the odds.
Even if that, in itself, was happenstance.
 
@Jefffrey what do you suggest?
 
Everyone believing it decreases the effect. Funny how that works, eh.
@Pawnguy7 And what do you want to figure out, exactly?
Ugh what is with Thunderbird, dammit. Do I have too many emails or what
 
11:56 PM
That's not it. In my view the differences are getting smaller (browsers are getting the focus more and more, and browsers are getting "the same"everywhere (hello Opera, again)). Moreover, linux and Mac get more mainstream and therefore are becoming more viable targets
 
Every week, I backup, (Acronis), my entire development box to a USB drive, which I then unplug until the next backup.
 
@CatPlusPlus How to free the memory the state takes up before exiting.
 
@Pawnguy7 Exiting from what?
 
@CatPlusPlus Unlikely. I have all mail from 10-15 years in there, also indexed with ThreadVis and it's never a problem
@MartinJames Way to go if you find out you've been powned after two weeks
 
@CatPlusPlus the program
 
11:57 PM
goto your_mother;
 
@Pawnguy7 Then don't free memory. Just exit.
 
@sehe Yeah - it's not foolproof, but I feel better :)
 
The only thing you need to do is save persistable state.
 
@CatPlusPlus isn't that considered bad practice?
 
Everything else is waste of time.
 
11:58 PM
@CatPlusPlus But but... who's gonna explain that to the heap checker :(
 
@Pawnguy7 By idiots, maybe.
I love software that needs to swap all of its memory in, just to release it and exit.
Makes for a great UX.
 
Also, what is this about persisting state?
 
You don't need to free memory when exiting.
There's nothing to leak, because OS can reclaim it on its own, and better than you.
 

« first day (1092 days earlier)      last day (3870 days later) »