Lemmy for LUS
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@merari42@lemmy.world to Programmer Humor@programming.dev • 3 months ago

This might have some impact on efficiency

lemmy.world

message-square
35
fedilink
869

This might have some impact on efficiency

lemmy.world

@merari42@lemmy.world to Programmer Humor@programming.dev • 3 months ago
message-square
35
fedilink
alert-triangle
You must log in or register to comment.
  • @cm0002@lemmy.world
    link
    fedilink
    98•3 months 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
      58•
      edit-2
      3 months ago

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

  • @enemenemu@lemm.ee
    link
    fedilink
    74•3 months 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
      31•3 months ago

      • @anton@lemmy.blahaj.zone
        link
        fedilink
        16•3 months ago

        • ℛ𝒶𝓋ℯ𝓃
          link
          fedilink
          19•3 months ago

          • @kambusha@sh.itjust.works
            link
            fedilink
            6•3 months ago

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

      • @MonkderVierte@lemmy.ml
        link
        fedilink
        5•3 months ago

    • @merari42@lemmy.worldOP
      link
      fedilink
      10•
      edit-2
      3 months 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
        13•
        edit-2
        3 months 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
        6•3 months 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
        6•3 months ago

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

    • @techt@lemmy.world
      link
      fedilink
      9•3 months ago

      Would it be for giving credit it to the Tweeter?

      • @LeninsOvaries@lemmy.cafe
        link
        fedilink
        English
        22•3 months ago

        Twitter users don’t deserve credit.

        • @ripcord@lemmy.world
          link
          fedilink
          3•3 months ago

          Lol who downvoted this

      • @enemenemu@lemm.ee
        link
        fedilink
        5•3 months ago

        The twitter guy didnt share the link to the source

  • @enemenemu@lemm.ee
    link
    fedilink
    39•3 months ago

    That’s called snap on ubuntu

  • 𞋴𝛂𝛋𝛆
    link
    fedilink
    English
    33•3 months ago

    This sure as fuck better check locale for US only!

  • @driving_crooner@lemmy.eco.br
    link
    fedilink
    27•3 months ago

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

    • Aatube
      link
      fedilink
      35•3 months ago

      extra 4% tariff on aliased packages

  • @uranibaba@lemmy.world
    link
    fedilink
    23•3 months ago

    https://github.com/hxu296/tariff

  • @helloyanis@jlai.lu
    link
    fedilink
    21•3 months ago

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

  • @zqwzzle@lemmy.ca
    link
    fedilink
    English
    18•
    edit-2
    3 months ago

    This would actually be good for npm though…

    • @mmddmm@lemm.ee
      link
      fedilink
      7•3 months ago

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

    • Aatube
      link
      fedilink
      3•3 months ago

      how so lol

  • @kibiz0r@midwest.social
    link
    fedilink
    English
    17•3 months 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.

  • unalivejoy
    link
    fedilink
    English
    17•3 months ago

    You can smuggle imports using importlib.

    • Elvith Ma'for
      link
      fedilink
      9•3 months ago

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

  • @Artyom@lemm.ee
    link
    fedilink
    16•
    edit-2
    3 months ago

    Pandas was always 200% slow, nothing lost there.

    • @merari42@lemmy.worldOP
      link
      fedilink
      7•3 months ago

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

  • @lily33@lemm.ee
    link
    fedilink
    14•3 months 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
    10•3 months ago

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

  • @seeigel@feddit.org
    link
    fedilink
    English
    6•
    edit-2
    3 months ago

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

  • @lily33@lemm.ee
    link
    fedilink
    6•3 months ago

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

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 27 users / day
  • 295 users / week
  • 1.1K users / month
  • 4.46K users / 6 months
  • 3 subscribers
  • 1.31K Posts
  • 37.8K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.18.5
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org