How big is a "small" dictionary in Mojo lang?

Sdílet
Vložit
  • čas přidán 17. 04. 2024
  • When does a "small" dictionary become a "large" dictionary in Mojo lang? I use the native Dict data structure of Mojo v.24.2 to answer this question.
    Here's my Mojo script:
    github.com/ekbrown/scripting_...
    Here's the Mojo language:
    docs.modular.com/mojo/
    #mojolang #corpuslinguistics

Komentáře • 10

  • @Julian.u7
    @Julian.u7 Před měsícem +6

    Parabolic is not exponential. I would not use the exponential term so nonchalantly

    • @ekbphd3200
      @ekbphd3200  Před měsícem +1

      Yeah, that's a good point. Thanks!

  • @starshipx1282
    @starshipx1282 Před měsícem +2

    nice observation.

  • @alexeydmitrievich5970
    @alexeydmitrievich5970 Před měsícem +1

    I think that "small" waa about 10-50 keys as most objects in everyday python are actually these tiny dicts.

    • @ekbphd3200
      @ekbphd3200  Před měsícem

      Okay. Yeah, that's small. Thanks for the clarification.

  • @thecognacsipper
    @thecognacsipper Před 2 měsíci +1

    nice thanks