Nice article reviewing hash tables and how python dictionaries are implemented with them.

  • bahmanm
    link
    fedilink
    411 months ago

    Good refresher on the topic and ineteresting gory details of CPython impl.

    On another note, is Jython still a thing?

    • @sleep_deprived@lemmy.world
      link
      fedilink
      111 months ago

      Pretty sure Jython is, though not a Python 3 version. My exposure is as the scripting language, behind Java as the primary language, for Ghidra. And I hate it and installed Eclipse rather than deal with J/Python’s shit.

    • @grue@lemmy.ml
      link
      fedilink
      111 months ago

      is Jython still a thing?

      No. (Source: I had to try to keep its zombie corpse shuffling along at my last job.)

      • bahmanm
        link
        fedilink
        English
        111 months ago

        Oh, I see. It kind of makes sense. Who’d need Jython when GraalVM’s out there nowadays!? Well, unless it’s a legacy app 😬

        • @grue@lemmy.ml
          link
          fedilink
          211 months ago

          Trust me, you don’t want to be trying to maintain legacy Jython code at this point, let alone use it for anything new. All the “normal” Python infrastructure like Pip etc. has moved on and broken compatibility, so you’d have to find and maintain locally the last working compatible version of every single package you use. I suppose you could use Java libraries, but the impedance mismatch trying to use LBYL explicitly typed stuff in EAFP python is terrible. It’s just a horrible mess.