Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
merari42@lemmy.world to Programmer Humor@programming.dev · 20 days ago

This might have some impact on efficiency

lemmy.world

message-square
36
link
fedilink
859

This might have some impact on efficiency

lemmy.world

merari42@lemmy.world to Programmer Humor@programming.dev · 20 days ago
message-square
36
link
fedilink
alert-triangle
You must log in or register to comment.
  • cm0002@lemmy.world
    link
    fedilink
    arrow-up
    99
    ·
    20 days ago

    Not feature complete, needs to be tied with a RNG to determine when TARIFF ON and TARIFF OFF

    • RapidCatLauncher@lemmy.ca
      link
      fedilink
      English
      arrow-up
      57
      ·
      edit-2
      20 days ago

      Hidden feature: Defines a tariff.admin.impeach function that increments a global counter and does absolutely nothing else

  • enemenemu@lemm.ee
    link
    fedilink
    arrow-up
    75
    arrow-down
    1
    ·
    20 days ago

    I don’t get why people share twitter screenshot instead of the image itself

    I can play this game as well

    • darvocet@infosec.pub
      link
      fedilink
      arrow-up
      32
      arrow-down
      1
      ·
      20 days ago

      • anton@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        17
        arrow-down
        1
        ·
        20 days ago

        • ℛ𝒶𝓋ℯ𝓃@pawb.social
          link
          fedilink
          arrow-up
          20
          arrow-down
          1
          ·
          20 days ago

          • kambusha@sh.itjust.works
            link
            fedilink
            arrow-up
            6
            ·
            20 days ago

            🎶 Non, rien de rien. Non, je ne regrette rien. 🎶

          • OctaviaMeowzly@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            4
            ·
            19 days ago

      • MonkderVierte@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        20 days ago

    • merari42@lemmy.worldOP
      link
      fedilink
      arrow-up
      10
      ·
      edit-2
      20 days ago

      This is a bluesky screenshot, not a twitter screenshot. This is to show, where I reposted this from.

      • lmmarsano@lemmynsfw.com
        link
        fedilink
        English
        arrow-up
        13
        ·
        edit-2
        19 days ago

        This is the web: we can attribute source with link, and the original source in markdown could be quoted without breaking accessibility. The web is built for it.

        👊 TARIFF 🔥

        The GREATEST, most TREMENDOUS Python package that makes importing great again!

        MIGA: make importing great again. pip.

        About

        TARIFF is a fantastic tool that lets you impose import tariffs on Python packages. We’re going to bring manufacturing BACK to your codebase by making foreign imports more EXPENSIVE!

        meme: Breaking news: 34% tariff on python imports. pypi ecosystem thrown into turmoil.

        Installation

        pip install tariff
        

        Usage

        import tariff
        
        # Set your tariff rates (package_name: percentage)
        tariff.set({
            "numpy": 50,     # 50% tariff on numpy
            "pandas": 200,   # 200% tariff on pandas
            "requests": 150  # 150% tariff on requests
        })
        
        # Now when you import these packages, they'll be TARIFFED!
        import numpy   # This will be 50% slower
        import pandas  # This will be 200% slower
        

        Text: it’s accessible!

      • enemenemu@lemm.ee
        link
        fedilink
        arrow-up
        7
        ·
        20 days ago

        That’s what I don’t understand. Usually you quote the original source. What if it was a video?

      • MonkderVierte@lemmy.ml
        link
        fedilink
        arrow-up
        6
        ·
        20 days ago

        Use the download picture there, use the upload picture here and post a link to the source?

    • techt@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      20 days ago

      Would it be for giving credit it to the Tweeter?

      • LeninsOvaries@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        23
        arrow-down
        1
        ·
        20 days ago

        Twitter users don’t deserve credit.

        • ripcord@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          20 days ago

          Lol who downvoted this

      • enemenemu@lemm.ee
        link
        fedilink
        arrow-up
        5
        ·
        20 days ago

        The twitter guy didnt share the link to the source

  • enemenemu@lemm.ee
    link
    fedilink
    arrow-up
    39
    ·
    20 days ago

    That’s called snap on ubuntu

  • 𞋴𝛂𝛋𝛆@lemmy.world
    link
    fedilink
    English
    arrow-up
    33
    ·
    20 days ago

    This sure as fuck better check locale for US only!

  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    27
    ·
    20 days ago

    Importing pandas and numpy without the pd and np aliases looks weird.

    • Aatube@kbin.melroy.org
      link
      fedilink
      arrow-up
      35
      ·
      20 days ago

      extra 4% tariff on aliased packages

  • uranibaba@lemmy.world
    link
    fedilink
    arrow-up
    23
    ·
    20 days ago

    https://github.com/hxu296/tariff

  • helloyanis@jlai.lu
    link
    fedilink
    arrow-up
    21
    ·
    20 days ago

    Set it to -1000% and enjoy your new lightning-fast imports!

  • zqwzzle@lemmy.ca
    link
    fedilink
    English
    arrow-up
    18
    ·
    edit-2
    20 days ago

    This would actually be good for npm though…

    • mmddmm@lemm.ee
      link
      fedilink
      arrow-up
      7
      ·
      20 days ago

      Are you trying to say npm doesn’t implement this yet?

    • Aatube@kbin.melroy.org
      link
      fedilink
      arrow-up
      3
      ·
      20 days ago

      how so lol

  • unalivejoy@lemm.ee
    link
    fedilink
    English
    arrow-up
    17
    ·
    20 days ago

    You can smuggle imports using importlib.

    • Elvith Ma'for@feddit.org
      link
      fedilink
      arrow-up
      9
      ·
      20 days ago

      We’re gonna build a firewall and importlib is gonna pay for it!

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    17
    ·
    20 days ago

    The extra time is spent mining $TRUMP

    Tap for spoiler

    I know it’s PoS, it’s just funnier this way, don’t come at me.

  • Artyom@lemm.ee
    link
    fedilink
    arrow-up
    16
    ·
    edit-2
    20 days ago

    Pandas was always 200% slow, nothing lost there.

    • merari42@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      ·
      20 days ago

      If you can tariff penguin island you could also tariff polars, which isn’t slow.

  • lily33@lemm.ee
    link
    fedilink
    arrow-up
    14
    ·
    20 days ago

    Having to import my tariff management solution is a critical national security risk. Needs to be built-in. PEP soon, please?

  • frezik@midwest.social
    link
    fedilink
    arrow-up
    10
    ·
    19 days ago

    Reduce them later. Tell your boss you found a 2x speedup.

  • seeigel@feddit.org
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    19 days ago

    Is there a way that I can enforce this as root to all of my users?

  • lily33@lemm.ee
    link
    fedilink
    arrow-up
    6
    ·
    20 days ago

    What a great way to reduce external dependencies and mitigate supply chain attacks!

Programmer Humor@programming.dev

programmer_humor@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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.77K users / day
  • 4.51K users / week
  • 9.23K users / month
  • 17.8K users / 6 months
  • 96 local subscribers
  • 23.1K subscribers
  • 1.38K Posts
  • 50.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org