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

00:38
roughly running a day, server memory usage hits 786.88MB
01:03
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.
01:54
@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…
04:14
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
05:07
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?
05:22
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.
06:09
@StackedCrooked what is a Rx path
I meant the code that receives and processes packets from the network card.
 
2 hours later…
08:15
@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.
08:56
GCC 7.2's strict-aliasing warnings look to be fucked up.
 
1 hour later…
10:17
@LucDanton Is this a GCC bug? Or an actual strict-aliasing violation?
Seems more like a bug to me.
10:41
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
@CaptainGiraffe done
@StackedCrooked just mould
12:19
@sehe random question: how much cheese do you eat?
cause you're dutch, and I assume you eat Edam.
13:06
@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
14:07
@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…
16:48
@rightfold Today I finished migrating karel from Scala to Kotlin @thecoshman
17:26
> Fold the bandana in half.
lol
17:43
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
18:02
hello guys
18:34
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
18:52
@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.
19:49
@StackedCrooked the fact that the bandana disappears makes the act
20:02
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
20:41
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."
21:51
@tomdissonance Ah man. I you're going to have a typo, make the most of it! "titbid"
Quite Night
s/te/et/
22:20
@fredoverflow ok... let's have a watch
23:16
@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 ¬_¬
23:48
Worse, I got that after creating a BMP :)

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