Syltburk Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
duplexsystem@lemmy.blahaj.zone to Programming@programming.dev · 7 days ago

The Fastest (long) ilog10 in the West · duplexsystem

duplexsystem.org

external-link
message-square
7
link
fedilink
5
external-link

The Fastest (long) ilog10 in the West · duplexsystem

duplexsystem.org

duplexsystem@lemmy.blahaj.zone to Programming@programming.dev · 7 days ago
message-square
7
link
fedilink
A write-up of how I wrote the fastest (long) ilog10 I have been able to find.
  • adhocfungus@midwest.social
    link
    fedilink
    arrow-up
    1
    ·
    6 days ago

    Amazing. It’s so weird, I was just needing to do this same operation and was looking into some of the bithacks. Although I don’t have the ability in the language to fully utilize this, I am astounded by how lean you made it.

    • duplexsystem@lemmy.blahaj.zoneOP
      link
      fedilink
      arrow-up
      0
      ·
      6 days ago

      How interesting! What language are you using? I’ve ported a couple of these ilog10 methods to different languages so perhaps I could be of some help! Thank you though! It was a long process to get it this fast and lean!

      • adhocfungus@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        6 days ago

        Java. I could certainly use a lot of what you wrote, but I don’t know nearly enough about the JVM to take it as far as you did.

        • duplexsystem@lemmy.blahaj.zoneOP
          link
          fedilink
          arrow-up
          1
          ·
          6 days ago

          I actually have ported the pre Lemire version to Java!

          https://github.com/PolyhedralDev/Seismic/blob/master/src/main/java/com/dfsek/seismic/math/integer/IntegerFunctions.java

          This should work for you, and I can probably port my most recent version to Java as well.

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 644 users / day
  • 968 users / week
  • 992 users / month
  • 999 users / 6 months
  • 1 local subscriber
  • 29.1K subscribers
  • 99 Posts
  • 374 Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • UlrikHD@programming.dev
  • bugsmith@programming.dev
  • Spyro@programming.dev
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org