I was hoping to see all of the improvements made to Julia 1.9 coming from 1.6. I ended up booting up some old code that was written in 1.6 but running the following code ended up throwing some new errors.
cd(@__DIR__)
using Pkg
Pkg.activate(".")
Pkg.instantiate()
My main question is what’s the best procedure to update older code to work with the new Project.toml updates and is it still best practice to include this tid bit of code at the beginning of a piece of code?
I know that (because of unstable/undocumented API use), and it seems often needed with Julia (because of a handful of packages (indirectly ) used, but I’m curious do people know or think same principle applies in Python? Python is regularly updated (and old versions maintained for some reason, out of need?), but e.g. distros upgrade, and it seems very bad if scripts wouldn’t just run out of the box. I think most do only rely on python3 [package] (in Ubuntu, already installed), by now, not some more specific version.
I understand for Python packages/extensions (for C API reasons) need to be compiled for each new version, but I’m not asking for that, that seems shielded from end-users.
If you don’t use any packages and undocumented internals, your code will (most likely) continue working across all 1.x Julia versions.
But packages are a different story. Almost any (I guess) non-trivial Julia environment from 1.6 times won’t work on 1.9 without updating at least some packages. I only learned that recently, was surprised at first.
Thank you everyone for the suggestions! I suspect I am running into issues with out dated packages as I was trying to avoid having to update anything. Unfortunately I think I’ll need to go through and try to update all of the necessary packages.