Optimising Common Lisp to try and beat Java and Rust on phone encoding 2/2

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

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • prechelt-phone-number-encoding

    Comparison between Java and Common Lisp solutions to a phone-encoding problem described by Prechelt

  • > it’s using Unicode-aware string stuff

    Rust uses UTF-8 internally for Strings, so it's very efficient to parse a file into a String, then using slices to go through it... this is probably the best you can get as parsing ASCII input as UTF-8 is very efficient (the 0-bit is always zero in ASCII, the unicode decoder only needs to check that's the case for every byte, so it's not some kind of complicated computation it's doing to decode)...

    If you use bytes for everything, you will make the whole code much harder to follow and it still won't run faster.

    Check for yourself: https://github.com/renatoathaydes/prechelt-phone-number-enco...

  • > it’s using Unicode-aware string stuff

    Rust uses UTF-8 internally for Strings, so it's very efficient to parse a file into a String, then using slices to go through it... this is probably the best you can get as parsing ASCII input as UTF-8 is very efficient (the 0-bit is always zero in ASCII, the unicode decoder only needs to check that's the case for every byte, so it's not some kind of complicated computation it's doing to decode)...

    If you use bytes for everything, you will make the whole code much harder to follow and it still won't run faster.

    Check for yourself: https://github.com/renatoathaydes/prechelt-phone-number-enco...

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

  • I found one of my first programs (Java,2011) on the Wayback Machine and it runs

    5 projects | news.ycombinator.com | 26 Apr 2024
  • Navigating Technical Debt

    1 project | dev.to | 3 May 2024
  • Show HN: BandMatch – "Tinder" but for finding musicians to create bands/collab

    1 project | news.ycombinator.com | 3 May 2024
  • "Where is James?" – A reminder to choose your open-source libraries wisely

    1 project | news.ycombinator.com | 3 May 2024
  • "Where Is James?"

    1 project | news.ycombinator.com | 3 May 2024