« first day (1756 days earlier)      last day (3193 days later) » 

5:00 PM
@Feeds WTF SPAM
this is all old news too
 
@JerryCoffin Ooops.
@KalaJ Depends.
 
@Borgleader So am I, but I'm still fun! :-)
 
@wilx That's left.
@KalaJ Actually, doesn't depend on much anything, not. The result is all 1s.
 
@R.MartinhoFernandes Oh... I am retarded.
 
5:05 PM
@R.MartinhoFernandes Just making sure I understood the intent correctly...
 
user1804599
Hello.
 
@elyse Hello.
 
user1804599
> This user has been automatically suspended for posting inappropriate content and cannot chat for 1 hour 58 minutes.
 
user1804599
Nice as well. :)
 
5:19 PM
who was thta?
 
Hmm, I need to wait for a POSIX SIGHUP signal. At the same time in the same thread, I need to be able to interrupt the thread so that it can exit. Any ideas?
 
who's patriarchal here?
 
signalfd() seems to be Linux only function.
 
Yeah signals are in general *nix specific
I'm not even sure if you can send an arbitrary signal to another process in Windows
 
@unordered_meow I mean, it is Linux only and does not seem to be supported by POSIX or SUS.
 
user1804599
5:30 PM
@wilx Set up a pipe, read from it in the thread, write a byte to it from the signal handler. Signal handlers can perform the write system call. This is the standard way to do it; Go and Python do it this way, for example.
 
@elyse Oh, that sounds reasonable. Thanks!
 
user1804599
You can use select if you want to read from multiple things.
 
user1804599
Or epoll; what you like.
 
user1804599
Well epoll is Linux-specific.
 
5:33 PM
@elyse Yeah. I did not realise write() was safe. Also, I was trying to avoid having to install a signal handler and tried to find a way to do it synchronously.
 
user1804599
You can't intercept specific signals without signal handlers.
 
user1804599
You should store the pipe write end file descriptor in a sig_atomic_t volatile, I think.
 
In doubt static_assert(sizeof(sig_atomic_t) == sizeof(int), "");
 
@elyse Actually, yes, you can. You can use e.g., sigwait() to wait for a specific signal synchronously.
 
user1804599
Oh.
 
user406009
5:37 PM
@wix I recommend making a special signal handling thread.
 
user1804599
Signals are terrible.
 
user406009
Yeah. The list of allowed methods sucks. man7.org/linux/man-pages/man7/signal.7.html
 
user406009
No malloc :(
 
@Lalaland That is what I am doing/want to do. The problem is with shutdown. You then need to wait for both the signals and something else to get the shutdown non-signal "signal."
 
Signals are of very limited use, just like DllMain. The fact you're limited to specific things practically means you can't call third-party code, in case they use forbidden functions.
 
user406009
5:40 PM
@wilx What is your worker thread doing? Simply check the shutdown flag before it starts any work.
 
user406009
Or every partial amount of work.
 
user406009
Usually you have some sort of work queue that you can put a shutdown signal in.
 
user406009
All pretty standard once you have a signal handling thread that synchronously handles signals so aren't stupidly limited.
 
This is a library. There is no worker thread. I am trying to get log4cplus reopen files on SIGHUP.
 
Signals are asynchronous, you don't need a separate thread
Also careful what you're doing in a signal handler
 
5:47 PM
@CatPlusPlus Which amounts to outsourcing the heavy lifting to a thread. :)
 
Also don't register signal handlers in a library at all
 
@CatPlusPlus Ack. But this is opt-in. I have been asked to implement log file close and the re-open on SIGHUP so that users can use logrotate to rotate the files instead of log4cplus doing it.
@ScottW Signals are POSIX specific thing?
 
user1804599
What is a message?
 
user1804599
:(
 
dumbness is relative
 
6:00 PM
@ScottW Well, sort of. Initially, there was only a small set of these with specific intents, like SIGTERM (terminate process, maskable), SIGHUP (terminal hangup, maskable), SIGKILL (terminate process, non-maskable). These days on modern systems and with modern SUS/POSIX, things are more complicated, with real time signals, signal queueing (initially it was only a flag/interrupt), etc.
 
But I usually feel dumb compared to what I think I could be if I wasn't a lazy fucker in high school.
not that I am not lazy now.
why the fuck am I talking to myself.
9
bye.
 
@ScottW There is a predefined set. Recent extensions to the standard allow more than the previously available 32 (was it?) signals but you are still limited to some tens or small hundreds of these, IIRC. AFAIK, you can at best send an int or a void * as the attached data with the signal.
 
user1804599
yes XD
 
user1804599
> More efficient algorithms are also available. However, I am bad at computer science so I don't know how to implement them.
 
user1804599
lel
 
6:11 PM
@wilx Use SIGUSR1 as 0, and SIGUSR2 as 1 :P
slowest IPC ever :D
 
@unordered_meow :D
 
user1804599
omg my code is so awesome
 
@khajvah I usually try to talk to the most intelligent person I can. I talk to myself a lot.
4
 
user1804599
load console
def greet(name: string): void do
    console.log("Hello, " ~ name ~ "!")
end
do greet("world"); end
 
user1804599
this works motherfücker
 
user1804599
6:26 PM
Because D uses ~ and I like it.
 
user1804599
It also looks like two spliced ropes.
 
user1804599
Yes.
 
user1804599
@ScottW Yes.
 
user1804599
@ScottW Vlinder.
 
user1804599
xD
 
user1804599
6:34 PM
I should design a logo.
 
> The Parliament of Canada, affirming that the Canadian Nation is founded upon principles that acknowledge the supremacy of God, the dignity and worth of the human person and the position of the family in a society of free men and free institutions;
That Canadian Bill of Rights starts with that.
Separation of Church and State, pfft, who needs it.
 
user1804599
Indeed; it's not the Netherlands.
 
user1804599
@ScottW you should watch youtube.com/watch?v=kAg0MdfzqSI
 
user1804599
It's funny.
 
@elyse And who do you think saved the Netherlands' ass during World War 2?
 
6:42 PM
@wilx If your library is not log4cplus then this doesn't belong in it
 
@EtiennedeMartel 'MURICA
 
@ʞɔᴉN Mostly Canada, actually.
 
eh maybe, because America was doing all the real work #murica #freedom
 
user1804599
 
user1804599
Teeuwen is hilarious.
 
6:45 PM
lol I locked the screen, then unlocked it after a while and now this happens
 
Xeo
lol'd /cc @Mysticial @StackedCrooked
 
@ScottW yes please
 
I can move the window over there, but maximize doesn't use it
 
lol wagner?
 
And dropping desktop icons there makes them disappear
 
ohh
lol
 
> We bundle a little square of blue gel with the Pi NoIR, which you can use with the Pi NoIR to monitor the health of green plants. The Pi NoIR is very popular among wildlife hobbyists: with a few infra-red LEDs, you can monitor what nocturnal animals are doing in your garden without disturbing them.
TIL the Pi is used to grow weed
 
ushio to tora is also fun
 
@Xeo Goose bumps all over.
 
lol it's Pidgin's fault
 
6:48 PM
@elyse I'm not intelligent enough to understand the deeper meaning of this
 
user1804599
He's mocking islam.
 
user1804599
haha in his other show he jacks off God
 
3edgy4me
 
Damn it, void is so useless
A<void[]> a;
a.cpp:8:9: error: creating array of void
@unordered_meow also lol that accidental pun
 
user1804599
@unordered_meow lol C++ sucks.
 
user1804599
6:55 PM
In D you can have void[] just fine.
 
@elyse Except nobody uses D...? :)
 
@elyse Nice
 
holy fuck
straight from the youtube comments
> Most men I've known would pet a dirty stray cat who's friendly. Most women would stay away, and look at you weird if they see you petting it or know that you've petted an animal in that condition. Just an observation about the difference between men and women. Maybe that's why men make better friends. They're better people.
 
@orlp Of what video?
 
@orlp lol, OK
 
6:58 PM
@wilx some stray cat getting petted
 
user1804599
My Vim configuration automatically removes stray cats on save.
 
@elyse :(
I want a kitty
 
user1804599
Go to the kitty asylum.
 
and I wouldn't pet a stray cat; guess that means I'm a terrible person
 
@ʞɔᴉN lol, I was thinking the same but I self-censored. :)
 
7:03 PM
@Borgleader Oh god.
 
@Xeo A comment under the video: Wagner OP pls nerf
 
@EtiennedeMartel I didn't see anything about Church in that opening statement.
 
> the supremacy of God
Yeah, it's not really the Church.
 
Certainly nothing about the State trying to make laws about the Church.
 
But it's kinda weird to see such bill talk about freedom of religion later on yet assume that the monotheistic version of God is the right one.
"We shall let you guys stay wrong in peace"
I mean, you'd think that Canada, a country so obsessed with multiculturalism, would stay neutral on that, and yet, here we are, a mention of "the supremacy of God" right in the intro.
I didn't know that rightfold took control of your account.
He says irrelevant stuff.
 
7:18 PM
@EtiennedeMartel The people who wrote that bill thought it set the foundation for what they wrote. v0v
 
@caps I think it's a funny little historical artifact.
 
@EtiennedeMartel Sure.
@EtiennedeMartel Does multiculturalism somehow imply not believing your own way is right?
 
In a state of inebriation, a student dumped their homework question on a website hoping people would do their work. They were wrong. — CoryKramer 19 secs ago
@Mysticial Another homework
 
@caps I don't know, really.
 
jeezus what is going on today i think its the 6th one i close
 
user1804599
7:32 PM
Multiculturalism is broken.
 
user1804599
It doesn't work.
 
user1804599
Which is funny; multicultural societies are typically full of people who don't work either.
 
@Borgleader Damn...
 
user3047181
@elyse i know loads of black people who work really hard
 
user1804599
Ok.
 
user3047181
7:42 PM
does anyone know how to make friends?
 
@MeltyButter He didn't say anything about black people, you racist
 
user3047181
like, when you have no friends to begins with?
 
user3047181
whats the strat, whats the build order?
 
@elyse Why?
 
user1804599
@Jeremy She, you transphobic cis scum.
 
7:43 PM
I see nothing about multiculturalism that would inherently not work
 
user3047181
@elyse how'd you know im trans??
 
user1804599
Because people of different cultures tend to not like each other, which results in lots of unnecessary shitstorms.
 
@elyse ^ how to do multiculturalism wrong.
 
user1804599
@MeltyButter I didn't and I never assumed, said or implied you were.
 
7:44 PM
... that's not really true, and also completely unfounded.
 
user1804599
@Jeremy XD
 
Fuck people's cultures
 
user3047181
@Puppy well it hasn't been proven true, but obvo it makes sense that people from different cultures won't get along, right? you'll agree with that?
 
... not really.
people within the same culture don't get along too
 
@MeltyButter Nope. Not automatically always for all differing cultures.
 
7:46 PM
@MeltyButter Do the things you like to do with other people that also like to do them
Repeat as needed.
 
user3047181
not automatically, sure, but say one culture hates gayness, and one culture doesn't
 
user3047181
those cultures won't get along, obviously
 
-16
Q: Hotel trip by tom,dick and herry

Nishant KadivarTom, Dick and Harry go to a restaurant. Each of them has a certain amount of money. When their monies are pooled they discover they have S Rs. Next, they start going through the menu card to choose items they would like to order. Your task is to help them find out how many different menu item com...

 
@MeltyButter Not necessarily...
You're being too broad.
 
@MeltyButter There's nothing obvious about it.
 
user3047181
7:47 PM
??? What so muslims and atheists get along fine?
 
People fought wars over less
 
they certainly can do.
 
user3047181
what do you mean they can do?
 
@MeltyButter Some Muslims and some atheists, yeah.
 
there's no more inherent likelihood of them not getting along than two muslims.
 
user3047181
7:48 PM
you mean if they drop all the aspects of their culture they'll get along?
 
@MeltyButter No.
 
in fact you could argue that being the wrong brand of Muslim is even more likely to be a problem in the current climate.
there's plenty of examples of opposite cultures co-operating effectively
 
user3047181
a mental person could argue that black is white
 
user3047181
don't be mental
 
user1804599
> When their monies are pooled they discover they have S Rs
 
user1804599
7:49 PM
Sex Reassignment surgery
 
@MeltyButter I do in fact have mental processes as do all human beings and animals that are not dead.
 
user3047181
so lets get back to the point: Culture A believes gays are sick and should be executed, Culture B believes gays are fine. Will A and B get along?
 
@elyse Hm, the sex reassignment surgery menu items weren't included with the question. Shame.
 
user1804599
I hope to move to Murrica before Eurabia becomes a fact.
 
@MeltyButter Sure, they can do.
 
7:51 PM
@elyse We're pretty multicultural, too, and quite a bit less scared of it than Europe is.
 
user3047181
@Puppy so when A proposes the death penalty for gays, what happens?
 
nothing.
B goes on with their lives
and complains a bit
 
user3047181
so B have a majority over A?
 
user3047181
always?
 
nope
 
user3047181
7:52 PM
so how come the law doesn't pass?
 
there's certainly cases where A has a majority and institutes the death penalty.
 
user3047181
is it not a democratic society?
 
doesn't have to be.
 
user3047181
oh, okay, so death for gays is fine?
 
I don't see how you would infer that
it's simply clearly true that in a democratic society, the majority get what they want.
that's a fact of life in a democratic society.
 
user3047181
7:53 PM
you say A and B will create a perfectly find society
 
user1804599
No.
 
user3047181
*fine
 
user3047181
I argue they won't because gays might die
 
no, I simply said that they don't have to start a war over the matter.
 
user1804599
In a democratic society, the majority vote for what they want, then get what they did not want, since they were lied to.
 
7:53 PM
I never said that it would be "fine" by my standards.
 
user3047181
yes, they CAN, if they both drop their cultural laws
 
user3047181
okay okay okay lets get serious
 
cultural laws are for the moronic
it's a simple fact of evolution that people who can't tolerate other cultures start wars and get killed, and people who can don't get killed and survive.
 
user3047181
so the only solution is tolerate everythng?
 
7:55 PM
nope
 
user3047181
whats the solution. I want to know
 
but you have to accept some losses, that's inherent in the matter at hand.
 
user3047181
@ScottW how do people who have different opinions get along
 
@MeltyButter They are okay with other people having different opinions.
It's not that hard.
 
by not trying to enforce their opinions on the other people.
 
user3047181
7:56 PM
it's the only problem
 
here's the thing
if you're A and you think gay people should be executed
that's a non-tolerable belief because you are trying to force your culture on the other guys by making them a certain way
 
user3047181
exactly?
 
if you happen to believe in an invisible being in the sky, that's your loss that doesn't affect me.
so
 
user3047181
so how do we protect those gays?
 
well, you're making an assumption.
you're making an assumption that A believes that gays should be executed and they wish to make their culture the law.
that is by definition not multicultural.
that's A trying to turn a multicultural society into a unicultural society and force their culture on everybody.
 
user3047181
7:58 PM
? Muslims think gays should be executed. Thats fact.
3
 
if A thinks that gays should be executed and then does nothing about it, then there's no problem.
the gay people can just go on living their lives
 
user3047181
They're trying to do something about it
 
then that's not multicultural, is it?
trying to destroy the other culture is not having a multicultural society.
 
user3047181
whats multicultural, in your opinion?
 

« first day (1756 days earlier)      last day (3193 days later) »