« first day (2562 days earlier)      last day (2372 days later) » 

12:38 AM
roughly running a day, server memory usage hits 786.88MB
 
1:03 AM
0
A: How to set error_code to asio::yield_context

seheAsio uses async_result to transparently provide use_future, yield_context or completion handlers in its API interfaces.ยน Here's how the pattern goes: template <typename Token> auto async_meaning_of_life(bool success, Token&& token) { typename asio::handler_type<Token, void(error_code, int)>...

Slowly getting the hang of that async_result dance. Asio's design is really quite brilliant in many details like this this.
 
1:54 AM
@sehe Nice answer overall, I learned something. The for (...) try caught me off guard. I might prefer the try on a new line.
 
 
2 hours later…
4:14 AM
How expensive is a context switch in fiber land? I seem recall reading it was about 200ns. But that seems expensive.
 
hiiiiiiiiiii
how is it going
 
5:07 AM
Good.
I've been exploring ways to avoid packet loss in the Rx path. Finally realized I really need to approach it as a (soft) real-time problem. Doing that drastically improved the results.
Basically I have around 30 microseconds before the network buffer becomes full and starts dropping packets. I measured the old code and found there were outliers were it sometimes ended up waiting for 30 milliseconds. (1000 times too long).
Using the SCHED_FIFO real-time policy got rid of most of the outliers. Also needed to remove an allocation in the hot code.
 
@StackedCrooked Don't you have to have a special kernel to support SCHED_FIFO?
 
5:22 AM
I don't think so.
 
If you are approaching this as a real time problem, you should probably use the special kernels, low latency one at least?
 
That's probably not needed since I'm not making system calls inside the hot code. I'm using Intel's DPDK library which has special drivers that let you access the network card directly from user space.
 
> Furthermore, SCHED_FIFO tasks have to voluntarily yield the processor back to the scheduler either through a system call or through calling sched_yield, in other words, that task cannot be interrupted by any of the normal tasks that are running in the linux environment (except, of course, by a task running with the same SCHED_FIFO policy and a higher static priority!).
> So, if your program has a bug, gets into an infinite loop and does NOT yield back to the scheduler the whole computer will freeze.
Sounds dangerous.
 
Meh. It's just a machine that can be rebooted.
Also the hardware only serves to run this program. Nothing else running on it.
 
6:09 AM
@StackedCrooked what is a Rx path
 
I meant the code that receives and processes packets from the network card.
 
 
2 hours later…
8:15 AM
@wilx I'm testing it right now. It's a trainwreck.
The ISO won't even boot up on my system. After searching around, I got it to boot by disabling ACPI. Once I got in, everything looks different. And I couldn't scale my DPI to 150% since it only has options for 100%, 200%, and 300%. IOW, it's hard to use my 4k monitor.
 
@Mysticial Isn't there a setting for exact DPI of a screen?
 
@wilx With Unity. But not this Gnome shit.
 
@Mysticial Oh. I use Xfce and LightDM. I hope that will work better.
 
I also had to do updates. Then re-enable ACPI to get HT to work again.
Teamviewer installed after a jumping through some hoops.
 
8:56 AM
GCC 7.2's strict-aliasing warnings look to be fucked up.
 
 
1 hour later…
10:17 AM
@LucDanton Is this a GCC bug? Or an actual strict-aliasing violation?
 
Seems more like a bug to me.
 
10:41 AM
there's no actual pointer in that code so it's a bug
 
Ran into a bunch of those on Ubuntu with GCC 7.2.
At least GCC 7.2 had this fix: gcc.gnu.org/bugzilla/show_bug.cgi?id=81294
For over year now, I've had some ifdefs just for that stupid bug.
 
does it have to be bearded?
 
Yes. You can't join us.
 
I have hair ...
 
I wasn't talking about that ...
 
11:47 AM
@CaptainGiraffe done
@StackedCrooked just mould
 
12:19 PM
@sehe random question: how much cheese do you eat?
cause you're dutch, and I assume you eat Edam.
 
1:06 PM
@benardier Pro tip: very few Dutch eat Edammer kaas
It is supposed to be a very special cheese, but it's not my favorite. Our "daily" cheese is "Goudse" (so, Gouda made)
And I personally like the "komijnen" (cummin cheese?)
@benardier Personally - pro capita - that could be 500g to a kilo monthly. Not overly impressive IYAM
 
2:07 PM
@Mysticial could it be that one? although that puts the regression at 7.1, not 7.2. it might instructive to put your demo code there
the OP uses a reinterpret_cast but the error points at the member access, same as your case
 
@Mysticial If you take out the template, it compiles fine even though the semantics are identical, so I'm definitely rolling with bug
 
 
3 hours later…
4:48 PM
@rightfold Today I finished migrating karel from Scala to Kotlin @thecoshman
 
5:26 PM
> Fold the bandana in half.
lol
 
5:43 PM
agree
 
hmm I wonder if I would be able to fit a software serial implementation on the ATTiny13
it has 1024 bytes of program memory
> I am not a great fan of libraries because all the code is hidden away
a person with >50k posts
I don't even
 
"all the code is hidden away" newsflash: yeah that's a feature
 
6:02 PM
hello guys
 
6:34 PM
hm
I kinda wish there was something like code review but for electronics
 
@BartekBanachewicz Pretty sure if you post to EE, people will be happy to review your design.
 
@JerryCoffin yeah I guess
OTOH it's a crap little thing, not much to review there
but hey I made it
 
6:52 PM
@BartekBanachewicz Many (most?) of the circuits people post there are puny bits of nearly nothing. Like on SO, any are homework like: "compute the current through R1" in a circuit with a battery and three resistors.
 
7:49 PM
@StackedCrooked the fact that the bandana disappears makes the act
 
8:02 PM
I found @BartekBanachewicz's new favourite club: lrb.co.uk/v32/n13/jenny-turner/who-are-they
There's much to sympathesize with but the funding and campaigning is shady as fuck twitter.com/tomdissonance/status/921457576243552256
 
8:41 PM
what's the laziest pet that wakes up after 9am :p most no-nocturnal animals wake up pretty early ...
 
Oh man. I long back to the times when YT's algorithms would simply get me lost on the wrong side of YT. Twitter sent me to this fringe
That treatise is a master-piece of strawman rhetorics under a thick layer of "come on now, don't be ridiculous".
I wonder how many people that actually works on.
So they quote a cogent argument made by someone who they claim to be "nearly-allies" because they admit that "children can enjoy sex with adults":
> 'PIE are ignoring a child's other interests apart from pleasure. Is the function of childhood to have a good time, or to learn how to form trusting relationships and acquire skills that will be useful later on? Hedonism comes pretty low on the list, I would have thought.'
And they think they can make it worthless with a whole slew of "counter-points" all resembling this:
> "The fact is that children are no less likely to be able to learn maths or geography as a result of involvement in a sexual relationship."
 
9:51 PM
@tomdissonance Ah man. I you're going to have a typo, make the most of it! "titbid"
Quite Night
s/te/et/
 
10:20 PM
@fredoverflow ok... let's have a watch
 
11:16 PM
@thecoshman Just to be clear, that's not me in the video.
 
@fredoverflow <creepy voice> I know what you sound like
 
@thecoshman So how was your Kotlin presentation?
 
@fredoverflow ok I guess... People looked to be paying attention and intersted, but not really any questions afterwards. I really doubt I'll see the language being used at work, but that's the nature of the job ¬_¬
 
11:48 PM
Worse, I got that after creating a BMP :)
 

« first day (2562 days earlier)      last day (2372 days later) »