News for hackers. Stuff that matters.
Re:Trading halted as U.S. stocks plummet by pradn on Monday March 09, 2020 @10:57AM (#22525872)
So we can use garbage-collected languages in trading systems without turning on the garbage collector - just collect it all at the end of the trading day. I'm joking but this is a real technique.
Re:Trading halted as U.S. stocks plummet by fancyfish on Monday March 09, 2020 @12:05PM (#22526487)
Yeah this is dumb but it’s actually par for the course for firms I’ve worked at. Build up all the garbage during trading hours (and on days like this hope you don’t hit resource limits) then start collecting it and rebooting at the end of the day.

Most services are shut down after trading/brought up again before trading.

After trading you would have accounting and other processes that would take hours. These are not done in real time and rely on daily downtime.

I honestly can’t imagine these firms figuring out 24/7 trading hours.

Re:Trading halted as U.S. stocks plummet by azernik on Tuesday March 10, 2020 @05:17PM (#22539806)
If it's dumb but it works, it isn't dumb.
Re:Trading halted as U.S. stocks plummet by magicsmoke on Monday March 09, 2020 @11:24AM (#22526114)
It is, there was this HFT firm I interned at once that rebooted all their servers at the end of the trading day to make sure they would start clean and fast the next day.
Re:Trading halted as U.S. stocks plummet by aaron_m04 on Monday March 09, 2020 @04:51PM (#22529656)
Did they also warm up caches before open?
Re:Trading halted as U.S. stocks plummet by jacques_chester on Monday March 09, 2020 @04:01PM (#22529149)
It also ensures you can come back up after an unexpected shutdown.
Re:Trading halted as U.S. stocks plummet by bob1029 on Monday March 09, 2020 @05:16PM (#22529895)
This is the best reason. Knowing your business systems will simply come back with the power, and having that tested on a daily basis will quickly put everyone at ease.
Re:Trading halted as U.S. stocks plummet by gberger on Monday March 09, 2020 @10:23PM (#22532183)
Is this what is called chaos engineering?
Re:Trading halted as U.S. stocks plummet by virtue3 on Monday March 09, 2020 @03:28PM (#22528806)
That makes a lot of logical sense. Every single ms counts in those cases.
Re:Trading halted as U.S. stocks plummet by fgonzag on Monday March 09, 2020 @08:34PM (#22531516)
It reeks of code base problems or general misunderstanding of systems administration. Easier to just make sure you're not leaking memory (profilers exist) and actually monitoring the servers than having to reboot your servers just in case.
Re:Trading halted as U.S. stocks plummet by pertymcpert on Monday March 09, 2020 @09:31PM (#22531892)
Things like heap fragmentation still happen.
Re:Trading halted as U.S. stocks plummet by xvilka on Monday March 09, 2020 @09:25PM (#22531846)
Now I understand why Jane Street uses OCaml. It has less of the GC problems.
Re:Trading halted as U.S. stocks plummet by bob1029 on Monday March 09, 2020 @05:30PM (#22530038)
I've never used this before, but I suspect this is exactly what you would want to use if you were on .NET and building latency-sensitive systems that see daily reboots:

http://tooslowexception.com/zero-garbage-collector-for-net-c...

If I was building something that was on a short fuse like this, I'd also be using structs and stack allocation as much as humanly possible before leaning onto the "having tons of physical memory" crutch. I feel like virtual memory could cover your ass for a small period of time before the whole thing started to grind to a halt.