« first day (3080 days earlier)      last day (1861 days later) » 

5:43 AM
Need 2 quickly rush to a vote station and tick my name off (vote) before state revenue hands me a new fine.
 
6:01 AM
Omg, so many last minute ppl. Long queue :'(
Time 2 spam this empty chat while waiting in this queue.
 
 
6 hours later…
11:45 AM
@Mikhail Co-operative multi-tasking and pre-emption are superior attributes regardless of the number of threads
 
 
3 hours later…
2:22 PM
It just occurred to me that Venezuela is a lot closer to the US than Syria is to France.
Has it ever occurred to trump's supporter that refugee could have arrived in boats even if wall had been built??
 
assuming an accurate projection, no difficult obstacles (e.g. your line assumes all boats can fit through that water), consistent scale, etc
 
Given the example of Syria's example, there could be millions of war refugee arriving at Florida in boats.
@Puppy You can check the scale, they are on the bottom.
 
and projection?
 
Avoid any obvious obstacles.
 
 
1 hour later…
3:36 PM
and projection!
 
4:33 PM
How am I supposed to use a user defined literal (like ms from std::chrono) in a header without importing the whole namespace?
 
there's the namespace just for these literals using namespace std::literals::chrono_literals;
 
Yes I saw that but you would have to write using namespace std::literals::chrono_literals;
 
can you not import just the literal?
 
@Nils well duh
 
Therefore having the chrono literals everywhere where you use the header file (or where you included a header file that included this header file) if you use chrono literals in a header file.
 
4:39 PM
so don't use literals then
std::chrono::seconds(5) instead of 5s
 
That would be the best option I think
have to go, thx for the advice
 
 
3 hours later…
7:51 PM
hello guys
i am trying to play around with my own implementation of an event-loop and I was wondering how do non-blocking sockets work internally
do you have anything to point me to for a good read? :D
 
8:28 PM
In qt asynchronous calls are ran on the reciveing object's thread.
Blocking ones are ran immediately.
 
but event loops are single threaded
 
8:49 PM
I was curious exactly how non-blocking sockets work inside the kernel
 
 
2 hours later…
10:41 PM
I don't know how its actually implemented, but this looks like a good starting point to roll your own: linux-mag.com/id/675
Instead, kHTTPd performs non-blocking calls for each pending operation and counts the successes. If no operation performed was successful, then the daemon sleeps for at least one timer tick, giving other processes the option to run before polling its file descriptors again.
In short, the non-blocking version is probably easier to implement because you don't have to notify user space when the task is ready.
 

« first day (3080 days earlier)      last day (1861 days later) »