Optimizations for CLI-built shared libraries

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/Zig

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • SaaSHub - Software Alternatives and Reviews
  • julia

    The Julia Programming Language

    Makes sense about chasing down the performance problem. I think I have figured out what the source of the discrepancy is: Julia has a very tuned and sophisticated exp function, which (on my machine) is about 10ns faster than the zig exp (compare Julia vs zig). Maybe those other 2ns are meaningful as well, but this is already above my pay grade in terms of code micro-optimization. While it would be possible for somebody who really knows LLVM to go look at the emitted LLVM from the Julia vs the zig, it doesn't seem super worthwhile at this moment considering that the exp function is the likely culprit.

  • zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    Makes sense about chasing down the performance problem. I think I have figured out what the source of the discrepancy is: Julia has a very tuned and sophisticated exp function, which (on my machine) is about 10ns faster than the zig exp (compare Julia vs zig). Maybe those other 2ns are meaningful as well, but this is already above my pay grade in terms of code micro-optimization. While it would be possible for somebody who really knows LLVM to go look at the emitted LLVM from the Julia vs the zig, it doesn't seem super worthwhile at this moment considering that the exp function is the likely culprit.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts