From 1s to 4ms

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • zed

    Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

  • There's no great mystery here, if you look at the internal function that's being called, it contains a TODO explaining that the code is unnecessarily quadratic and needs to be fixed:

    https://github.com/zed-industries/zed/blob/12b12ba17a380e321...

    So if selecting all matches requires calling this function for each match then I guess it's accidentally cubic?

    I also spotted two linear scans before this code (min by key and max by key).

    It seems like a combination of the implementation being inefficient even for what it was for (and that this was known), then it was used for something else in a naive way, and the use of a bad abstraction in the code base came at a performance cost.

    I don't think this is a case of Rust either demonstrating or failing to demonstrate zero-cost abstractions (at a language level). A language with zero-cost abstractions doesn't promise that any abstraction you write in it is magically going to be free, it just promises that when it makes a choice and abstracts that away from you, it is free (like with dynamic dispatch, or heap allocation, or destructors, or reference counting, etc).

  • lapce

    Lightning-fast and Powerful Code Editor written in Rust

  • 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.

    InfluxDB logo
  • edgar-allan-poe_poetry

    Epub source for the Standard Ebooks edition of Poetry, by Edgar Allan Poe

  • How's it perform at the task at hand: finding all instances of `https://github.com/standardebooks/edgar-allan-poe_poetry/blo...

  • Visual Studio Code

    Visual Studio Code

  • VS Code cannot be built from sources, and that doesn't seem to have affected it's market share.

    > Building VS Code application is proprietary and hence this is not shared, but you can always build your own open source version of VS Code by cloning it.

    https://github.com/Microsoft/vscode/issues/18083

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