If you are prepared to make your code to not perform any heap allocations, I don't see a reason why there should be any issue. When I once worked on a very first multi-threading version of Julia I wrote exactly such functions that won't trigger gc since the later was not thread safe. This can be hard work but I would assume that its at least not more work than implementing the application in C/C++ (assuming that you have some Julia experience)
Tobi Am Montag, 30. Mai 2016 12:00:13 UTC+2 schrieb John leger: > > Hi everyone, > > I am working in astronomy and we are thinking of using Julia for a real > time, high performance adaptive optics system on a solar telescope. > > This is how the system is supposed to work: > 1) the image is read from the camera > 2) some correction are applied > 3) the atmospheric turbulence is numerically estimated in order to > calculate the command to be sent to the deformable mirror > > The overall process should be executed in less than 1ms so that it can be > integrated to the chain (closed loop). > > Do you think it is possible to do all the computation in Julia or would it > be better to code some part in C/C++. What I fear the most is the GC but in > our case we can pre-allocate everything, so once we launch the system there > will not be any memory allocated during the experiment and it will run for > days. > > So, what do you think? Considering the current state of Julia will I be > able to get the performances I need. Will the garbage collector be an > hindrance ? > > Thank you. >
