Optimizations for CLI-built shared libraries

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

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