[HN Gopher] How Julia ODE Solve Compile Time Was Reduced from 30...
___________________________________________________________________
How Julia ODE Solve Compile Time Was Reduced from 30 Seconds to 0.1
Author : ChrisRackauckas
Score : 149 points
Date : 2022-09-21 12:28 UTC (10 hours ago)
(HTM) web link (sciml.ai)
(TXT) w3m dump (sciml.ai)
| entropicgravity wrote:
| Is Julia/Rust the new Python/C?
| warinukraine wrote:
| freemint wrote:
| Really in-depth. A good read if you happen to run into exactly
| this problem as a Julia package developer.
| jakobnissen wrote:
| Super impressive work. While work such as this can show what is
| possible in terms of compilation speed, it's probably beyond the
| scope of the average dev.
|
| It'll be interesting to see, going forward, how much of these
| recent tooling improvements will trickle down to more casual
| devs, such that they too, can get significantly lower compile
| times.
|
| I'm pretty optimistic on that front. It looks like much of the
| improvements came from writing more inferrible code, removing
| code that breaks reasonable invariants in Base, using
| SnoopPrecompile, and using a sysimage.
|
| The first two things should be done anyway, and better tooling
| will help with that. Future native code caching will probably get
| results similar to current sysimages. That leaves
| SnoopPrecompile, which is a small maintenance burden, but is a
| pretty minor addition in most case.
|
| One approach is to include a block of code which exercises the
| functionality of your package. This block can then, at the same
| time be used to: 1. Check your code is inferrible 2. Run static
| analysis to catch bugs 3. Use SnoopPrecompile
| alhirzel wrote:
| Julia has been making big strides recently on (pre-)compilation.
| Nice work Chris--beyond just these recent results, you've helped
| to create a community. I wonder how long it will be until we have
| a demonstrably stable static/aot compilation capability that a
| new user can employ without friction on Linux, Mac and Windows?
| No doubt it will be just as soon as it becomes a focus area. This
| is an area I'd love to see advanced soon and potentially help
| with, because I use Julia for my work.
| actinium226 wrote:
| This was a real blocker for me when I played with Julia a bit
| ago, 30 seconds to run the ODE package was just crazy when Python
| could import it basically instantly. I'll look forward to giving
| Julia another go once I get a chance.
___________________________________________________________________
(page generated 2022-09-21 23:01 UTC)