« EST-CE QU'ON VA VRAIMENT MANQUER DE #PÉTROLE ? (la vérité) | LIMIT #documentaire » (via #Limit) https://www.youtube.com/watch?v=gszviGTU-nk
« EST-CE QU'ON VA VRAIMENT MANQUER DE #PÉTROLE ? (la vérité) | LIMIT #documentaire » (via #Limit) https://www.youtube.com/watch?v=gszviGTU-nk
Fair enough. Because recursion always has a limit, in any language, the tutorials probably assume you're aware of this already. The specific limit in Python is adjustable, but there's no way to eliminate it altogether.
Do the tutorials actually include data/examples that run into the recursion limit? Or is it only when applying code like that to other data that you run into issues?
I ask because the easiest way to smash the limit is to create a cyclic data structure, which is trivial in Python. If you naively recurse such an object, it goes on forever - until it hits the configured limit or the machine runs out of memory, anyways. i.e. this case:
>>> foo = ["bar"]
>>> foo.append(foo)
>>> foo
['bar', [...]]
If you think it's possible your recursion code might have to deal with something like this, you usually end up keeping track of the objects you've already processed, and skip them if you see the same object again (typically by the object ID).
In many cases, you can also rewrite recursive code so that it's not recursive, and cannot run into this problem. As a bonus, problems that can be refactored this way usually run faster without the recursion.
The #COALition proposal to #limit the rollout of #renewable #energy could stop at least $58bn of private investment in new developments and halt billions of dollars in flow-on spending in communities, new analysis has warned. #auspol #Spud
#limit : the bound, border, or edge
- French: limite
- German: das Limit
- Italian: limite
- Portuguese: limite
- Spanish: límite
------------
Join our new subreddit for language learners @ https://reddit.com/r/LearnANewLanguage
Hit an interesting limit in the TypeScript language server¹:
Looks like there’s a limit on the number of entries an object (constant) can have before the language server balks. Seems to hit it around 1,343.
(I’m generating an object for an icon library.)
Doesn’t appear to be related to file/memory size (breaking up the same number of entries into several objects works).
Anyone know what limitation exactly I’m hitting (if it’s documented somewhere?) Been searching but couldn’t find any reference to it.
¹ It’s definitely a language server limit as I tried in VSCode as well to rule out it being a limit in Helix Editor.
Jusqu’où ira Donald #Trump #Krasnov dans son entreprise de #soumission et d’ #humiliation de ses anciens #alliés ?
#No #limit est le motto du président #américain.
https://www.lopinion.fr/international/trump-le-chaos-comme-arme-de-pouvoir-contre-les-15-salopards
There’s a theoretical limit to how tall a tree can grow, and it’s about 426 feet (130 meters).
Why? Because trees rely on capillary action and water tension to pull water up from their roots to their leaves. At a certain height, gravity overcomes the tree’s ability to transport water effectively, causing water columns to break and leading to air bubbles (embolism) in their vascular system. The tallest known tree, Hyperion, is a redwood in California, is 379.7 feet (115.9 meters).
Sense Games parla del soulslike AI Limit, in arrivo il 27 marzo. Ispirato a Blame!, il gioco ci porta in una megalopoli cyberpunk dove si combatte il Fango. La demo mostra meccaniche uniche e level design. #giochipc #videogiochi #ai #limit #soulslike
New #DockerHub #limit for unauthenticated accounts is 10 pulls per hour, per authenticated user, 40; starting March 1st.
Docker limits unauthenticated pulls to 10/HR/IP from Docker Hub, from March 1
https://docs.docker.com/docker-hub/usage/
#ycombinator #Docker #Hub #limit #usage
#Ethereum : 52 % des #validateurs approuvent une #hausse du #gas #limit !
https://www.cointribune.com/ethereum-52-des-validateurs-approuvent-une-hausse-du-gas-limit/
Les #tactiques d' #Heilon #Musk chez #X #Twitter appliquées au #gouvernement #américain #DOGE :
May be he should apply this 4000 #character #limit to himself first ?
And of course extend this to #Trump #orange #fool
Les #tactiques d' #Heilon #Musk chez #X #Twitter appliquées au #gouvernement #américain #DOGE :
May be he should apply this 4000 #character #limit to himself first ?
And of course extend this to #Trump #orange #fool
actu.orange.fr/economie/les...
Les tactiques d'Elon Musk chez...
‘This Is #Insane Shit’: #BillGates Criticizes #ElonMusk in #Blunt #Interview
The #Microsoft cofounder didn’t hold back, slamming Musk for promoting #farright #politics #globally and urging #nations to #limit his ability to #influence their #citizens.
#Women #Transgender #LGBTQ #LGBTQIA #SocialMedia #Conservatives #Extremism #Fascism #RepublicanParty #ThePartyOfHate
https://www.huffpost.com/entry/bill-gates-elon-musk-insane_n_67972b58e4b01edab1f9209e
While the default toot limit on Mastodon is about 500 words, the alternative text for images is limited to 1500 words.
What's the post character count limit for your instance on Mastodon?
Meaning, when you make a post here on Mastodon, how many characters per post can you type?
For example, currently #AllThingsTech has the default Mastodon 500 character count limit.
If your instance has more than a 1,000 character count limit, please comment and let me know.
Please BOOST for maximum exposure to the #Fediverse
La Fin Du Monde ? Wtf! - #Jancovici, #Servigne, #Massonnet, R.#Diallo, #Meadows | #LIMIT
Die #Pixel-Geräte von #Google haben mit einem #Update eine neue Funktion erhalten, die den #Smartphone-#Akku schont. So lässt sich ab sofort ein Lade-#Limit von 80 Prozent für die #Batterie festlegen. https://winfuture.de/news,147466.html?utm_source=Mastodon&utm_medium=ManualStatus&utm_campaign=SocialMedia
#TFW you discover your instance admin has increased the post length limit from the default 500 chars.