Paul Krill
Editor at Large

Julia language adds lower-overhead Memory type

news
Oct 8, 20243 mins
Data ScienceJuliaProgramming Languages

Dynamic language built for fast numerical computing introduces lower-level alternative to Array that delivers significant speedups and more maintainable code.

speed fast race car shutterstock 1168856884
Credit: Jamesboy Nuchaikong / Shutterstock

A new version of the dynamically typed, high-performance Julia language for numerical computing has been released. Julia 1.11 features a new Memory type, a lower-level container that provides an alternative to Array.

Downloadable from julialang.org, Julia 1.11 was released October 7 following two alphas, two betas, and four release candidates. Introduced with Julia 1.11, the Memory type has less overhead and a faster constructor than Array, making it a good choice for situations that do not need all the features of Array, according to release notes. Most of the Array type now is implemented in Julia on top of Memory as well, thus leading to significant speedups for functions such as push!, along with more maintainable code.

Also in Julia 1.11, public is a new keyword. Symbols marked with public are considered public API, while symbols marked with export also are now treated as public API. The difference between export and public is that public names do not become available when using a package module. Additionally, tab completion has become more powerful and gains inline hinting when there is a singular completion available that can be completed with tab.

Julia overall is billed as providing capabilities such as asynchronous I/O, metaprogramming, profiling, and a package manger.

Other features in Julia 1.11:

  • The entry point for Julia has been standardized to Main.main(args).
  • The @time macro now will report any lock contention within the call being timed, as a number of lock conflicts.
  • ScopedValue implements dynamic scope with inheritance across tasks.
  • Manifest.toml files can now be renamed in the formatย Manifest-v{major}.{minor}.toml to be potentially picked up by the given Julia version.
  • Code coverage and malloc tracking no longer are generated during the package pre-compilation stage. During these modes, pkgimage caches now are used for packages that are not being tracked. This means coverage testing will by default use pkimage caches for all other packages than the package being tested, likely meaning faster execution.
  • At pre-compilation, atexit hooks now run before saving the output file, thus allowing users to safely tear down background state and clean up other resources when the program wants to start exiting.
  • Specifying a path in JULIA_DEPOT_PATH now results in the expansion of empty strings to omit the default user depot.
  • Pre-compilation cache files now are relocatable and their validity is verified through a content hash in their source files instead of their mtime.
  • Unicode 15.1 is supported.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorldโ€™s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorldโ€™s audience of software developers and other information technology professionals. Paul has won a โ€œBest Technology News Coverageโ€ award from IDG.

More from this author