Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
syntacticbs
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
syntacticbs
7mo ago
I also worked on trading systems. Usually two methods `onMessage(long timeNow, byte[] buf)` and `onTimer(long timeNow, int timerId)`. All output sinks and a scheduler need to be passed in on construction of the application. Then you can rec
2.
▲
by
syntacticbs
7mo ago
Interesting approach. I often get to the same goal by using the replicated state machine pattern. Where all inputs to a system are recorded. Both methods seem to rely on designing your application in a very specific way to be able to replay
3.
▲
Epoll and Kqueue: How Operating Systems Learned to Wait Efficiently
(thecodinggopher.substack.com)
2 points
by
syntacticbs
7mo ago
|
1 comments
4.
▲
What size should I use for my queue
(syntacticbrownsugar.tech)
7 points
by
syntacticbs
8mo ago
|
2 comments
5.
▲
by
syntacticbs
2y ago
I run Linux on my laptop and desktop and have a MacBook. I wouldn't recommend it for your laptop unless you're an enthusiast. Suspend/sleep is still janky, power saving is poor and dock support is hit and miss depending on th
6.
▲
by
syntacticbs
2y ago
The local scope leak seems to only happen when you drop down the call stack. See below how I can call func2 from the top level and it's fine, but if I call it from within func1, it will leak. #!/bin/bash declare -A
7.
▲
by
syntacticbs
2y ago
Oh dear. I've been trying to get people to not use this feature for a while. One thing that has bitten me in the past is that, if you declare your associative arrays within a function, that associative array is ALWAYS global. Even if y
8.
▲
by
syntacticbs
3y ago
I completed both parts of this on Coursera. It can be a very challenging course at times but it's thoroughly rewarding. One of the key takeaways was a working mental model of how the hardware and low level software that underpins your
9.
▲
by
syntacticbs
3y ago
Pre-allocating up front would also have been valid way of doing things. For the specific use cases I have worked on though, I'm not sure it would have had any additional performance benefits. The specific class of systems I've wor
10.
▲
by
syntacticbs
3y ago
I've worked in applications where a lot of IO is required. If performance is something your application cares about then you'll probably end up using direct ByteBuffers which are off heap and you'll likely want to set a sensi