« first day (1303 days earlier)      last day (3647 days later) » 

sbi
9:00 PM
@DeadMG Until you have kids, you have no idea what real sleep deprivation is.
@khajvah (I count two things you know in that statement.)
 
@JohanLarsson so useful. I'm gonna keep that on the off chance my son would ever want me to go fishing
 
@sehe to motivate him?
 
sbi
@rightfold I think you can erase "if they're from India" from that sentence and still fit his personality pretty well.
 
@JohanLarsson erm... didn't think of that
 
sbi
9:03 PM
@DeadMG You lamer, I was here wayyy before that. :)
 
yeah a whole about three weeks
 
sbi
Given that you were a puppy back then, that must have felt like a lifetime to you.
 
well
it was ~2 months before sickness
so it does feel like a lifetime to me.
I'm still not used to eating what I want to
 
pharmacology is cool
 
sbi
@DeadMG It would probably not do your stomach very good if you just ate what you want to. Given what you dropped here about your life, it seems that could be quite unhealthy. :)
 
9:07 PM
@DeadMG eating np now?
 
@sbi Yeah, I've been basically stuffing my face on chocolate continously.
put on a bunch of weight
 
but why chocolate
is that so good?
 
it's cheap, available, and makes me feel better about my life
plus, nostalgia.
 
sbi
Chocolate, huh? So the puppy is a girl, too. I had no idea.
 
what do boys eat instead?
 
sbi
9:08 PM
@DeadMG Steaks? :)
 
lol
I'm not much of a carnivore
 
sbi
Made from puppies.
 
woof woof
 
kinder surprise chocolate does trigger some childhood nostalgia
 
well
I need to get back to dieting soonish
 
9:10 PM
you won't, only women have the discipline to do that
 
but I lost so much weight (~90 pounds)
putting a bit on isn't really a killer issue on that scale.
 
Xeo
@StackedCrooked He just needs to stop taking the trippy-line.
The diet will come by itself after that.
 
fuck no
I'm never gonna stop taking that stuff
never ever ever
it's a miracle and I love it and I'm never going anywhere without it.
 
Xeo
How much are you weighing right now anyways?
 
@Yakk you know... as much as I love poly-lambdas, I really prefer the hand written functor here. This is just outlandish. Perhaps you can cut the complexity by not going meta with the configurable Comp :) Also, I'd suggest that having a predicate that moves it's arguments is very undeserirable at best, I'd keep it at template<typename F> auto less_by(F&& f_in) { return [f = std::forward<F>(f_in)](auto const& a, auto const& b) { return f(a) < f(b); };sehe 15 secs ago
 
9:12 PM
er
~90kg give or take
 
@DeadMG Cheeeeeese!
 
That's more that I expected.
 
I'll go weigh myself when I take my am-i-trippy-line tonight.
 
But you have long body length.
 
yeah, I'm 6ft high, so
 
9:13 PM
Mar 8 '12 at 12:31, by DeadMG
CHEESE MOTHERFUCKER!
 
normal weight for me starts at like 85kg or so
 
user1804599
I ate Greek today.
 
You cannibal.
 
user1804599
:D
 
sbi
This week we will boot parts of Europe's biggest battery power plant for the first time. Also, I will have to deliver a speech to the building council of Berlin's parliament. I will also need to prepare the two seminars I will have to give around Pentecost. Thus I will have to convince me landlord that I cannot move this month, because I'm too busy. (They're showing me an ersatz apartment tomorrow morning, to live in during the worst of the reconstruction work here in this house.)
That is quite a lot for a single week, me thinks.
 
9:14 PM
@rightfold You're so greeky
 
I have to answer and post off my medical questionnaire so they can schedule my surgery.
 
sbi
Sounds Greek to me. (SCNR.)
 
@StackedCrooked I'm always confused that eating Chinese leaves me feeling stuffed, when they're really statistically not very big people
 
@sbi your life seems hectic
 
Xeo
@sehe Ew, less_by. Generic compare_by please.
 
sbi
9:16 PM
@StackedCrooked Oh, but I stepped down a bit from the housing fight!
It used to be a lot worse.
 
user1804599
Cumpare.
 
also
tomorrow I visit my GP
I ask hi mfor more am-i-trippy-line
 
@Xeo Mmm. I always use compare_by, actually. For this answer I pondered a split second, and decided that less_by would be more... "accurate" (or conventional) seeing that's also the name that the standard comparators emply (std::less<> is the default)
 
ITT @DeadMG is a drug addict
 
sbi
@DeadMG What is it that you're smoking? Your typing skills are quickly approaching Alf's.
 
9:17 PM
I just had a brainstorm for my original problem
 
With whom?
 
Xeo
@sehe Yes, default. Which is why my compare_by uses std::less by default
@sbi *Your
 
@sbi amitriptyline.
 
sbi
@DeadMG And AD, huh? Seems you gotta watch this. :)
 
@Xeo Q.E.D. That's enough to make the call ambiguous at best. I forgot to ask, what's your reason in favour of compare_by vs. less_by?
(just, "more natural engrish"?)
 
9:19 PM
On my c++ gc problem. If a thread is going to be perusing data structures owned by other threads it basically grabs a mutex that pauses gc in other threads till its done
 
Xeo
genericity!
 
er postpones
 
sbi
@Xeo It took me a while, because the first "you're" was right.
Anyway, what's the name of that law saying that you will put a typo into any message pointing out a typo?
 
well
I'm off to drug myself tonight
and weigh myself by popular request
 
I didn't request that
 
sbi
9:20 PM
Waves hand towards @Josh This isn't the room you are looking for.
 
what drug?
 
You're not popular
 
user1804599
@JoshS Have one GC per thread, make objects immutable, problem solved.
 
I do
 
Have two GCs per thread so they don't feel lonely
 
9:22 PM
make sure that one of them is cute
give it function names that involve cute costumes
 
@sbi sbi's law
 
@Xeo ?! I don't get it. Different identifier spellings aren't more general in the context of programming.
 
@rightfold I know that you can write programs that don't use general features, but I want the features there for when I need them
 
sbi
@Rapptz Nope, definitely not. That law predates me. Probably by a decade. It was rather well known when I hit Usenet in the early/mid-90s.
 
Muphry's law is an adage that states that when a person criticises another's editing or proofreading, there will be a mistake of a similar kind in that criticism. The name is a deliberate misspelling of Murphy's law. Similar laws have also been coined, usually in the context of online communication, under names including Skitt's Law, Hartman's Law of Prescriptivist Retaliation (or The Law of Prescriptive Retaliation), and McKean's Law. Further variations state that flaws in a printed or published work will only be discovered after it is printed and not during proofreading, and flaws such...
 
sbi
9:23 PM
See. No need to dig for myself. I got minions to do that for me.
 
user1804599
You can emulate mutability by having an actor with a loop for keeping state.
 
@sehe another point is that the moment I feel like I'm smarter than other people, I lock my keys in the car
 
Thanks for sharing
 
@rightfold can you rewrite that in English that I'm capable of understanding?
 
Xeo
@sehe compare_by<std::greater<>>(proj) or comparing(f, std::greater<>{}) to allow stateful predicates
Actually, comparing would be an even better name (stolen from Haskell)
 
9:24 PM
@Xeo mmm. You're right. Changing!
Good thing I always used compare_by before this, so I don't have to go back and mend my own code (and other answers)
 
"an actor with a loop for keeping state" I have no idea what that means
 
88.5kg
 
sbi
Well, I guess I gotta go to bed now. My alarm goes off before 6am, and I will have to beat a bunch of school kids out the door. And then I'll hit that week like a brick wall...
 
Xeo
Good luck, and bring a safety helmet
 
@sbi Skitt's law.
 
9:26 PM
@Xeo Well, many algorithms outlaw stateful predicates anyways (except if they behave like stateless as far as the algorithm is concerned; anyways, you can have them stateful for non-parallel algorithms just fine, just make sure that copying isn't expensive?)
 
@DeadMG what's that in nanograms?
 
88.5 * 1000 * 1000 * 1000 * 1000
 
sbi
@JerryCoffin Oh look, another old fart who can remember that. :) I was wondering where you were, it's time for me to go to bed, after all.
 
user1804599
// run this in its own thread
void actor(int state) {
    auto message = receive_message();
    if (message.kind == set) {
        actor(message.value);
    } else if (message.kind == get) {
        send_message(message.sender, state);
        actor(state);
    }
}
 
I was just trying to make you feel fat
 
9:27 PM
fail
 
@sbi I've been in and out for a while, but need to get some laundry done...
 
I used to weigh more like 130-140kg
 
sbi
@Xeo Thanks. I don't think an off-the-shelf helmet will be of any use for this week, though. :-/
 
I'm fatter than I was six weeks ago
 
user1804599
Now you can “mutate” the state by sending a set message to the actor. It just recurses with the new value.
 
9:28 PM
but on the scale of how fat I used to be, it's no problem at all.
 
sbi
@JerryCoffin Uh, right, that reminds me that I have a machine full of it to deal with before I go to bed... Damn.
Well, see you guys!
 
user1804599
And everything’s immutable!
 
Xeo
@sbi Better remembering now than tomorrow
 
sbi
@Xeo It's just half an hour until tomorrow, you know...
 
@rightfold is that some kind of cs functional programming joke? It even has tail recursion and a totally unnecessary thread
 
9:29 PM
@sbi Later.
 
user1804599
Erlang people have been doing this exact thing for ages and it works fine.
 
cs departments must think that recursion is sex
 
@JoshS 10100000111110110000011000100000000100000000000
 
and only in Erlang is a thread that cheap eh?
 
@JoshS why? they avoid it?
 
9:30 PM
why are you you in a c++ lounge?
 
user1804599
@JoshS No, also in Go. And in Haskell.
 
@JoshS they don't need threads. They have actors
 
user1804599
@JoshS I grew up here.
2
 
user1804599
@sehe they call them processes.
 
Tail recursion is loops
 
9:31 PM
and now you're a man
 
@rightfold sort of true. Not finished yet
 
user1804599
No, I’m a girl.
 
user1804599
Maybe. I don’t know.
 
with a beard!
 
user1804599
:{
 
9:31 PM
lol
 
user1804599
I shaved it a few weeks ago!
 
@sehe and a wurst
 
actually I have a soft spot for continuations, and those are way too expensive in c++ too
 
user1804599
Yum, Wurst.
 
user1804599
@CatPlusPlus Is non-tail recursion loops?
 
9:32 PM
@JohanLarsson ...and working on writing a wurst seller (in his wurst cellar).
 
I'd ask if any of those languages have continuations but the answer would be something like "you can do it in Haskell with monads!"
 
you can also do it in C++ with monads
2
 
@JerryCoffin that must be the wurst pun of today
 
user1804599
Green threads or gtfo.
 
I need to stuff into my brain how monads work and if they're actually efficient
 
9:33 PM
of course, the syntax will make you want to kill yourself; twice
 
user1804599
Always green threads.
 
@ScarletAmaranth FTW!
 
@sehe Thank you. I do try. :-)
 
@ScarletAmaranth One for C++ two also for C++
 
@JoshS lolwat
 
user1804599
9:34 PM
@JoshS monad is abstract concept.
 
user1804599
It’s not efficient or inefficient.
 
oops phone ringing
 
user1804599
It’s just a set of operations and their laws.
 
user1804599
I like to think of them as a generalisation of functions.
 
because that's what they are :)
I like to think of pizza as dough with stuff on it
 
9:38 PM
A slice of myself just died
 
user1804599
Monadic actions can perform limited side-effects within narrow scope. With plain functions you cannot do this.
 
is that an euphemism for wanking, @Jefffrey?
 
user1804599
He wanked his dick off.
 
@Jefffrey ‮hehe. You found out how that works. Now, for the RTLO!
2
@rightfold Sounds painful
 
user1804599
9:43 PM
@sehe watwatwat ik bos jou
 
This is so weird
 
user1804599
@sehe I think we can plan the meeting on October 11th anyway. I don’t think I’ll be that busy that day.
 
Desktop Notifications in Chrome.
 
lolwat
 
9:46 PM
It's called RTLO for a reason. And, no, it's unlikely to see SE Chat treat this corner case :)
 
rutloh
 
SE chat doesn't treat even non-corner cases : - /
 
question: when should I use lock free data structures vs lock?
 
I don't understand what you mean by "RTL0"
 
@Jefffrey right to left override
 
9:48 PM
@Dave you can edit your own messages
 
@Jefffrey oh, ty
 
@Rapptz oh, ty
 
user1804599
putStrLn ""
 
@JoshS main = putStr "\n" v0v
 
9:52 PM
@Dave when you're sure the work load is going to saturate the thread(s) you're using to handle it and you cannot afford to use slow sync primitives to coordinate the work. Think high-throughput/low-latency servers
 
main = mapM_ putStr $ replicate 42 "\n" if you want to print 42 new lines.
 
Do you lose rep if you downvote a community wiki answer?
 
user1804599
@Jefffrey main = sequence_ (putStr "\n" <$ [1..42]) :3
 
Where do you even learn those stuff?
 
in your brains
 
user1804599
9:57 PM
I know too much pointless trivia about random languages.
 
@rightfold ...and (worse) random trivia about pointless languages.
 
@rightfold I know some stuff in totally obscure languages
 
user1804599
Probably because I often try out weird things for fun.
 
played with prolog and well I know it's not that obscure, scheme
 
I know programming
 
user1804599
9:59 PM
We use obscure languages at work.
 
user1804599
They’re called PHP.
 
I was so going to inb4 that
I could have won an award
 
user1804599
I avoid it by doing client-side programming as an excuse. :)
 
user1804599
LiveScript <3
 
@Jefffrey no, actually you weren't
 
10:00 PM
@rightfold Sorry, but "obscure" is not an alternative spelling for "shitty".
 
yes it is, but you learn stuff that you wish were in more complete languages
 
user1804599
APL is also great.
 
user1804599
And Oberon!
 
actually because of that my current hobby is writing a language, jit, trace compiler etc
 
@rightfold s/also great/my flavor of the month/
 
10:03 PM
@Borgleader In fairness to him, APL does have its good points. Readability certainly isn't one of them, but it does have a few anyway.
 
why was it right to left? What language did the guy speak?
 
user1804599
I sneezed earlier and Siri compiled it to valid Perl.
5
 
or do I remember wrong. Is APL right to left?
someone asked siri for a command prompt and it said it's not allowed to do that
 
@JoshS Because it was almost entirely prefix notation. He spoke (the Canadian variety of) English.
 
he asked why and siri said "I don't know"
I am cooking oatmeal an egg and bacon
 
10:08 PM
@JoshS Waffles would have been better. :-)
 
user1804599
-4
Q: Add a list element with += operator

user3351370Hello I have a List of composant and I would like to add an element to this list via the += operator. I have no ideal how to do that Thanks

 
what does composant taste like?
 
user1804599
Like OP.
 
I've just watched Erlang: The movie.
 
user1804599
Nice.
 
10:15 PM
is that a real thing?
 
user1804599
It’s the best movie I’ve ever seen.
 
@JoshS It's on youtube. Of course it's real.
 
user1804599
Gotta love the C–Erlang comparison.
 
Erlang is all about parallelism but really slow, so you can make 20 computers as slow as 1, but you have a REALLY nice language to do it with
 
user1804599
Also Armstrong has changed so much since then lol.
 
user1804599
10:18 PM
@JoshS It is mainly about concurrency, not about parallelism.
 
user1804599
Don’t use it for number-crunching operations. Use C++ or Fortran for that.
 
user1804599
But you can coordinate those operations in a distributed system using Erlang.
 
You want concurrency for speed, but if you have a slow language all you got was more expense... of course people choose the ability to scale over being cheap
what's the difference between concurrency and parallelism?
 
user1804599
Erlang programs are typically I/O-bound in terms of performance.
 
user1804599
Almost all they do is I/O. :v
 
10:23 PM
The slowest language in existence has to be Kernel
 
Languages are not slow or fast btw.
 
user1804599
Speed is a property of the implementation.
 
> If I recall correctly, C# passes objects by reference by default, equivalent to passing an object in C++ using the & operator.
 
well this one is
 
user1804599
@Rapptz s/reference/pointer/
 
user1804599
10:25 PM
By-reference would be using ref.
 
it defers deciding what symbol table to look up each symbol in, including "+" until execution
and it can change it's mind about that on every eval of the same expression
 
Hello Robert
Hello Mike
Hello Joe
 
basically you do every step, every choice that a compiler makes every single time you evaluate an expression - and you pass expressions unevaluated
 
Indeed the best movie ever.
 
Night Robert
Night Mike
Night Joe
Night Lounge
 
10:27 PM
good night
 
lol
 
night jefffff
 
Can someone tell me the Title of the music it plays at the end?
 
obviously that would be meaningless except that you have control over those things and can do stuff that you couldn't do in a normal language - but it has to be the least efficient language possible
 
user1804599
@Jefffrey Just watched it again.
 
user1804599
10:29 PM
The syntax is really old, lol.
 
@sehe Is there ever a downside to lock free vs lock?
 
user1804599
["…"] for loading modules, run for restarting processes code and { … } for case expressions, lol.
 
user1804599
@Dave lock-free is usually more difficult to implement.
 
@Dave Locks can be faster with low contention, and lock-free is hard to implement.
 
it's very very hard to get lock free correct
even published algorithms are often wrong
it's that hard
 
user1804599
10:31 PM
That’s what she said.
 
also spinlocks are pretty lightweight, unless you lose your quantum while one is locked
 
@JoshS "lose your quantum"?
 
I mean if there's a context switch
 
@JoshS Is there something at some level that can detect if a program is spin locking and cause a context switch? or is it just as likely to happen anytime
 
I was gonna ask if there are systems where you can say "don't context switch for this SHORT routine" I bet there have been some
It's magical if you can get your problem working with slow instructions, no slow fences etc
on intel memory_order_acquire and memory_order_release are free, but not in Microsoft :/
But in boost they are
 
user1804599
10:35 PM
Goodbye friends.
 
wtf do you mean?
they have to map to the same underlying CPU instructions.
 
Microsoft mapped wrong
 
Goodnight Joe, Mike, and .... yes Robert
 
in visual studio 2012 everything you do with an atomic variable goes to an interlocked instruction
the only thing that breaks is that it makes your program orders of magnitude slower
even memory_order_relaxed goes to an interlocked instruction
 
user1804599
Beh low-level crap.
 
10:37 PM
that's why I included boost in my current program
 
@40two
dude
 
@NikosAthanasiou waz up?
 
hehe
@NikosAthanasiou well have you read her/his question?
 
@NikosAthanasiou I can't decide if I love c++11 for being powerful or hate it for being unreadable
I used scheme for a while - it's sooo much easier to mess with functions and stuff when you just let the checking be dynamic
and don't have to fill the page with eyecrossing < >
scheme's macro system is more powerful than templates but it's still way too cludgy
@NikosAthanasiou what's "mpalitsa"
quiet channel
 
10:58 PM
it's a quiet spot
this is the most active room and it's rarely quiet
the Americans haven't arrived yet because they're fat and lazy and the European master race has mostly gone to bed and such
 
I'm lazy without being fat, it's my Canadian background
 
well I'm off to bed
nighty night!
 
:/ sleep well
 
11:12 PM
@JoshS It's an expression about football we have in Greece
@DeadMG OP asked for a way of getting rid of the need of manually specifying
the type of std::function
and calling the lambda directly
 
11:35 PM
@JoshS I have seen many tall thin Canadians ...
 
I'm short, but on the positive side I'm also bald
so hot, eh?
oh baby!
 
@chmod711telkitty I see many fat ones on a regular basis =/
 
but that's like anywhere in developed countries ... & some developing countries :'(
 
@JoshS Learn mpalitsa = learn how to play ball. However, it's all Greek to me dude...
 
a few centuries ago the Japanese had it right, they forced all the young men to shave their heads, thus removing their advantage
That's what you get when a society is authoritarian, the old guys can set it up for their own benefit. Of course America has that - in terms of a tax system for the rich
If only I were rich...
 
11:40 PM
 
But this is a c++ lounge, does microsoft have a compiler message "can't compile this because you're fat, bald and smell funny?"
 
@JoshS I doubt Ballmer would have approved :P
zing
 
I guess such a compiler wouldn't had much of a success
 
Most probably wouldn't stand a chance
@Borgleader I'm burst to tears
 
11:45 PM
@Borgleader I'm scared
 
The scary thing is that the crowd is clapping their hands in approval
Sometimes I wonder to what world I'm going to raise my children?
 

« first day (1303 days earlier)      last day (3647 days later) »