Skip Navigation

Posts
124
Comments
254
Joined
5 yr. ago

cultural reviewer and dabbler in stylistic premonitions

  • Does that loop infinitely

    yes and no; i've now edited the comment.

  • python -c 'import time as t; a="o"; all( (print(a), a:=a.replace(*["o","O","8","oo"][i%3:i%3+2]), t.sleep(max(.3,1-i/50))) for i in range(60))'

    someone asked in a reply:

    Does that loop infinitely

    The first version I posted would loop infinitely... if you have infinite RAM, that is 🫠 (the length of the string will reach 1KB after 30 iterations, and 1MB after 60, 2MB after 63, and so on). Also, to keep the loop in a single line I had foolishly used a list comprehension which meant each previous iteration was also being retained.

    Fortunately the rate of memory consumption is not too fast because python string replacement is very slow, but, thanks to your question making me think about it, to avoid eventually crashing someone's computer if they don't know to hit ctrl-c to kill it, i've now edited it so that it will stop after 60 iterations. I also made it use all() to consume a generator comprehension instead of a list comprehension, to avoid retaining the state of previous iterations.

    here is my very inefficient list-comprehension-using original version which will run until it runs out of memory:

    python -c 'import itertools as I,time as t;a="o";[(print(a),a:=a.replace(*["o","O","8","oo"][i%3:i%3+2]),t.sleep(max(.3,1-(i/50))))for i in I.count()]'

    if you leave this version running long enough, you will be at the mercy of your operating system's out-of-memory-killer: if it decides to kill other things before it kills this python process you might have a bad time.

    here is another version which will actually loop infinitely without consuming more RAM:

    python -c 'import itertools as I,time as T; all((any(print(["o","O","8"][i%3],end="")for _ in range(2**(i//3))),print(),T.sleep(max(.3,1-i/50)))for i in I.count())'

    this is technically not completely constant-space because i and 2**(i//3) are still growing... but it will run for a very very very long time before it needs to allocate a small amount more.

    I'm leaving the space-inefficient now-not-infinite one at the top of this comment because using replace() is easier to read than this nested loop version.

  • moderator reports still don’t federate to other instances

    you are mistaken. reports are federated from the reporter's instance to the community's instance, as well as to the instances of all moderators of the community, and to the instance of the user who posted the comment or post being reported.

  • some kind of driver problem?

  • a gif from Doctor Who series 4, iswydt

  • a gif from Star Trek IV, iswydt

  • Deleted

    Permanently Deleted

    Jump
  • "The eagles are coming!"

  • It looks like they have an AI generate all of the valid images.

    Are you suggesting that the Voight-Kampff test is being administered by robots?

  • about their MDASH copilot model

    that's satire, right?

  • Daemon

    Jump
  • Deleted

    Permanently Deleted

    Jump
  • 🤔 is this... dull? 🦋

  • < :-( >

    Jump
  • amazing! it's great to see that is still being maintained after so many years.

  • you could try renaming sideloading to “freedomloading” or maybe “freeloading”

    freeloading is already a verb in english, and not the one you're looking for

  • I was surprised to find that dbzer0 has 290 communities.

    I guess they have 290 communities which are federated to the instance where you're collecting these stats; according to dbzer0's front page they actually have 332 communities. (Also your screenshot shows 1337 communities on lemmy.ml but we actually have 4.74K, and 3919 for .world which actually has 13.1K.)

  • also it's from the spammer's "staging" instance, so the payload is a URL with a staging hostname which doesn't even resolve 🙄

  • United States | News & Politics @lemmy.ml

    US Lawmakers Want To Ban VPNs—And They Have No Idea What They’re Doing

    www.techdirt.com /2025/12/01/lawmakers-want-to-ban-vpns-and-they-have-no-idea-what-theyre-doing/
  • Technology @lemmy.world

    The Economist on using phrenology for hiring and lending decisions: "Some might argue that face-based analysis is more meritocratic" […] "For people without access to credit, that could be a blessing"

  • Late Stage Capitalism @lemmygrad.ml

    The Economist on using phrenology for hiring and lending decisions: "Some might argue that face-based analysis is more meritocratic" […] "For people without access to credit, that could be a blessing"

  • World News @lemmy.ml

    Did U.S. Cover Up Shireen Abu Akleh Killing? Whistleblower Speaks Out

    www.democracynow.org /2025/10/31/steve_gabavics_shireen_abu_akleh_coverup
  • World News @lemmy.ml

    President Maduro: U.S. wants to steal the world’s largest oil reserve

    www.telesurenglish.net /president-maduro-u-s-wants-to-steal-the-worlds-largest-oil-reserve/
  • United States | News & Politics @lemmy.ml

    ICE’s Hiring Surge Is Attracting A Bunch Of People Who Are Too Unfit (Or Too Criminal) To Work At ICE

    www.techdirt.com /2025/10/31/ices-hiring-surge-is-attracting-a-bunch-of-people-who-are-too-unfit-or-too-criminal-to-work-at-ice/
  • Fuck AI @lemmy.world

    Tim Bray on Grokipedia

    www.tbray.org /ongoing/When/202x/2025/10/28/Grokipedia
  • United States | News & Politics @lemmy.ml

    Several top US officials in the Trump administration have opted to live in military housing in the Washington area instead of private homes due to safety fears.

    www.presstv.ir /Detail/2025/10/31/757926/Top-US-officials-move-DC-military-housing-Report
  • World News @lemmy.ml

    Russia Ready to Assist Venezuela in Response to Intervention Threats

    orinocotribune.com /russia-ready-to-assist-venezuela-in-response-to-intervention-threats/
  • World News @lemmy.ml

    Caribbean Lawmakers Oppose U.S. Military Threats Against Venezuela

    www.telesurenglish.net /caribbean-lawmakers-oppose-u-s-military-threats-against-venezuela/
  • World News @lemmy.ml

    Mexico intensifies talks with U.S. over attacks in the Pacific Ocean

    www.telesurenglish.net /mexico-intensifies-talks-with-u-s-over-attacks-in-the-pacific-ocean/
  • Fuck AI @lemmy.world

    On Bullshit and Generative AI

    adamcoster.com /blog/on-bullshit-and-llms
  • Fuck AI @lemmy.world

    LLMs Will Always Hallucinate

    arxiv.org /abs/2409.05746
  • Late Stage Capitalism @lemmygrad.ml

    Nvidia Becomes the First Company to Hit $5 Trillion Market Cap (approximately the same value as the GDP of Germany, the 3rd largest economy in the world)

    gizmodo.com /nvidia-becomes-the-first-company-to-hit-5-trillion-market-cap-2000678694
  • United States | News & Politics @lemmy.ml

    Trump calls off planned federal ‘surge’ in S.F., citing requests from CEOs, but plans for Bay Area immigration crackdown unclear

    www.sfchronicle.com /us-world/article/lurie-trump-call-federal-immigreation-21116264.php
  • United States | News & Politics @lemmy.ml

    Bay Area immigration advocates launch defense plans as Trump sends federal agents to region

    www.sfchronicle.com /bayarea/article/immigration-agents-response-21114800.php
  • United States | News & Politics @lemmy.ml

    San Francisco DA Brooke Jenkins says she’ll prosecute federal immigration agents who cross the line

    www.sfchronicle.com /politics/joegarofoli/article/jenkins-federal-agents-21114802.php
  • TenForward: Where Every Vulcan Knows Your Name @lemmy.world

    Spock was originally going to use hypnosis before NBC's "precautions to avoid hypnotizing a viewer" led to the creation of the Vulcan mind meld

  • Not The Onion @lemmy.world
    Locked

    Maine Senate candidate Graham Platner says nobody ever told him the large SS-Totenkopf tattoo he's had on his chest for the last 18 years is a Nazi symbol

    www.notus.org /campaigns/graham-platner-tattoo-controversy-nazi-ss-totenkopf-maine-senate-race
  • A Boring Dystopia @lemmy.world

    Sam Altman prepares ChatGPT for its AI-rotica debut

    www.theregister.com /2025/10/14/openai_chatgpt_ai_erotica/