eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

201
active users

#float

1 post1 participant0 posts today
Bytes Europe<p>Meyer Turku in Finland Floats Third Mega Cruise Ship <a href="https://www.byteseu.com/1343445/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">byteseu.com/1343445/</span><span class="invisible"></span></a> <a href="https://pubeurope.com/tags/Cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cruise</span></a> <a href="https://pubeurope.com/tags/Finland" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Finland</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/largest" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>largest</span></a> <a href="https://pubeurope.com/tags/launch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>launch</span></a> <a href="https://pubeurope.com/tags/legend" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>legend</span></a> <a href="https://pubeurope.com/tags/Meyer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Meyer</span></a> <a href="https://pubeurope.com/tags/video" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>video</span></a></p>
Ivan Enderlin 🦀<p>Taming Floating-Point Sums, <a href="https://orlp.net/blog/taming-float-sums/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">orlp.net/blog/taming-float-sum</span><span class="invisible">s/</span></a>.</p><p>The article explores how to sum an array of floats with two goals: (i) the lowest imprecision possible, (ii) as fast as possible.</p><p>It goes from 5.5Gb/s with a high imprecision to 112Gb/s with an acceptable imprecision.</p><p>It also presents the new `std::intrinsics::fadd_algebraic` Rust function the author has written.</p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/performance" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>performance</span></a> <a href="https://floss.social/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a></p>
Europe<p>Local business offers shuttle, gear for self-guided floats along Truckee River | Local News</p><p>A local business aims to get more people out on the Truckee River with a new float experience.…<br><a href="https://flipboard.social/tags/Europe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Europe</span></a> <a href="https://flipboard.social/tags/UnitedStates" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnitedStates</span></a> <a href="https://flipboard.social/tags/america" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>america</span></a> <a href="https://flipboard.social/tags/Baseball" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Baseball</span></a> <a href="https://flipboard.social/tags/business" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>business</span></a> <a href="https://flipboard.social/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://flipboard.social/tags/floating" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>floating</span></a> <a href="https://flipboard.social/tags/river" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>river</span></a> <a href="https://flipboard.social/tags/self" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>self</span></a>-guided <a href="https://flipboard.social/tags/Service" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Service</span></a> <a href="https://flipboard.social/tags/summer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>summer</span></a> <a href="https://flipboard.social/tags/truckeeriver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>truckeeriver</span></a> <a href="https://flipboard.social/tags/unitedstatesofamerica" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unitedstatesofamerica</span></a> <a href="https://flipboard.social/tags/US" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>US</span></a> <a href="https://flipboard.social/tags/USA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>USA</span></a><br><a href="https://www.europesays.com/2259933/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2259933/</span><span class="invisible"></span></a></p>
United States<p>Local business offers shuttle, gear for self-guided floats along Truckee River | Local News</p><p>A local business aims to get more people out on the Truckee River with a new float experience.…<br><a href="https://pubeurope.com/tags/UnitedStates" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnitedStates</span></a> <a href="https://pubeurope.com/tags/US" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>US</span></a> <a href="https://pubeurope.com/tags/USA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>USA</span></a> <a href="https://pubeurope.com/tags/america" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>america</span></a> <a href="https://pubeurope.com/tags/Baseball" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Baseball</span></a> <a href="https://pubeurope.com/tags/business" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>business</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/floating" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>floating</span></a> <a href="https://pubeurope.com/tags/river" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>river</span></a> <a href="https://pubeurope.com/tags/self" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>self</span></a>-guided <a href="https://pubeurope.com/tags/Service" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Service</span></a> <a href="https://pubeurope.com/tags/summer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>summer</span></a> <a href="https://pubeurope.com/tags/truckeeriver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>truckeeriver</span></a> <a href="https://pubeurope.com/tags/unitedstatesofamerica" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unitedstatesofamerica</span></a><br><a href="https://www.europesays.com/2259933/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2259933/</span><span class="invisible"></span></a></p>
Europe Says<p><a href="https://www.europesays.com/2259933/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2259933/</span><span class="invisible"></span></a> Local business offers shuttle, gear for self-guided floats along Truckee River | Local News <a href="https://pubeurope.com/tags/america" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>america</span></a> <a href="https://pubeurope.com/tags/Baseball" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Baseball</span></a> <a href="https://pubeurope.com/tags/business" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>business</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/floating" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>floating</span></a> <a href="https://pubeurope.com/tags/river" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>river</span></a> <a href="https://pubeurope.com/tags/SelfGuided" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfGuided</span></a> <a href="https://pubeurope.com/tags/Service" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Service</span></a> <a href="https://pubeurope.com/tags/summer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>summer</span></a> <a href="https://pubeurope.com/tags/TruckeeRiver" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TruckeeRiver</span></a> <a href="https://pubeurope.com/tags/UnitedStates" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnitedStates</span></a> <a href="https://pubeurope.com/tags/UnitedStatesOfAmerica" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UnitedStatesOfAmerica</span></a> <a href="https://pubeurope.com/tags/US" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>US</span></a> <a href="https://pubeurope.com/tags/USA" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>USA</span></a></p>
DWeb<p>💌 Our latest newsletter is out!</p><p>- 🌾 Float.ag, a project born from DWeb Camp<br>- 🇮🇹 The first DWeb Italy in-person meetup, at scambi.org<br>- 🎤 Submit a session proposal at DWeb Cascadia, <span class="h-card" translate="no"><a href="https://news.cosocial.ca/c/dwebyvr" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>dwebyvr</span></a></span> <br>- ✨ Many more updates and opportunities from the community</p><p><a href="http://mailchi.mp/archive/2025-07-10" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">http://</span><span class="">mailchi.mp/archive/2025-07-10</span><span class="invisible"></span></a></p><p><a href="https://social.coop/tags/DWeb" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DWeb</span></a> <a href="https://social.coop/tags/DWebItaly" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DWebItaly</span></a> <a href="https://social.coop/tags/DWebCamp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DWebCamp</span></a> <a href="https://social.coop/tags/DWebCascadia" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DWebCascadia</span></a> <a href="https://social.coop/tags/Float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Float</span></a> <a href="https://social.coop/tags/agriculture" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>agriculture</span></a></p>
Europe Says<p><a href="https://www.europesays.com/2180928/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2180928/</span><span class="invisible"></span></a> World’s Largest Sail Yacht Cruise Ship Floated Out in France <a href="https://pubeurope.com/tags/chantiers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>chantiers</span></a> <a href="https://pubeurope.com/tags/cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cruise</span></a> <a href="https://pubeurope.com/tags/express" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>express</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/france" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>france</span></a> <a href="https://pubeurope.com/tags/orient" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>orient</span></a> <a href="https://pubeurope.com/tags/sail" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sail</span></a> <a href="https://pubeurope.com/tags/shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shipbuilding</span></a> <a href="https://pubeurope.com/tags/yacht" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yacht</span></a></p>
France<p>World’s Largest Sail Yacht Cruise Ship Floated Out in France</p><p> What promises to be one of the unique entrants into the growing luxury segment of the cruise…<br><a href="https://pubeurope.com/tags/France" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>France</span></a> <a href="https://pubeurope.com/tags/FR" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FR</span></a> <a href="https://pubeurope.com/tags/Europe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Europe</span></a> <a href="https://pubeurope.com/tags/EU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EU</span></a> <a href="https://pubeurope.com/tags/chantiers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>chantiers</span></a> <a href="https://pubeurope.com/tags/cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cruise</span></a> <a href="https://pubeurope.com/tags/express" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>express</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/france" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>france</span></a> <a href="https://pubeurope.com/tags/orient" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>orient</span></a> <a href="https://pubeurope.com/tags/sail" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sail</span></a> <a href="https://pubeurope.com/tags/shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shipbuilding</span></a> <a href="https://pubeurope.com/tags/yacht" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yacht</span></a><br><a href="https://www.europesays.com/2180928/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2180928/</span><span class="invisible"></span></a></p>
Bytes Europe<p>World’s Largest Sail Yacht Cruise Ship Floated Out in France <a href="https://www.byteseu.com/1124034/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">byteseu.com/1124034/</span><span class="invisible"></span></a> <a href="https://pubeurope.com/tags/Chantiers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Chantiers</span></a> <a href="https://pubeurope.com/tags/Cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cruise</span></a> <a href="https://pubeurope.com/tags/express" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>express</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/France" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>France</span></a> <a href="https://pubeurope.com/tags/Orient" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Orient</span></a> <a href="https://pubeurope.com/tags/sail" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sail</span></a> <a href="https://pubeurope.com/tags/shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shipbuilding</span></a> <a href="https://pubeurope.com/tags/yacht" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yacht</span></a></p>
UK<p><a href="https://www.europesays.com/uk/201348/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/uk/201348/</span><span class="invisible"></span></a> World’s Largest Sail Yacht Cruise Ship Floated Out in France <a href="https://pubeurope.com/tags/Chantiers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Chantiers</span></a> <a href="https://pubeurope.com/tags/Cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cruise</span></a> <a href="https://pubeurope.com/tags/EU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EU</span></a> <a href="https://pubeurope.com/tags/Europe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Europe</span></a> <a href="https://pubeurope.com/tags/Express" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Express</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/France" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>France</span></a> <a href="https://pubeurope.com/tags/Orient" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Orient</span></a> <a href="https://pubeurope.com/tags/sail" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sail</span></a> <a href="https://pubeurope.com/tags/Shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shipbuilding</span></a> <a href="https://pubeurope.com/tags/yacht" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>yacht</span></a></p>
Artyom Bologov<p>So I have both float-&gt;<a href="https://merveilles.town/tags/minifloat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>minifloat</span></a> and minifloat-&gt;<a href="https://merveilles.town/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> conversion in my <a href="https://merveilles.town/tags/CommonLisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CommonLisp</span></a> minifloat library now. And a lot of constants—NaNs, infinities, most and least representable floats etc. It's basically ready, though severely untested. But hey, I didn't expect I can ever make a float decoding library, let alone in under one month!</p><p>I still have to find better algorithms. Some forgotten corners of the academic Internet have pearls of wisdom and I'll eventually find them. But, for now, my algorithms are alright too, running mostly in nanoseconds.</p><p>Find it at <a href="https://codeberg.org/aartaka/cl-minifloats" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">codeberg.org/aartaka/cl-minifl</span><span class="invisible">oats</span></a></p>
Europe Says<p><a href="https://www.europesays.com/2122905/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/2122905/</span><span class="invisible"></span></a> Fincantieri Floats Second LNG-Fueled Cruise Ship for Germany’s TUI Cruises <a href="https://pubeurope.com/tags/cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cruise</span></a> <a href="https://pubeurope.com/tags/Fincantieri" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fincantieri</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/Flow" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Flow</span></a> <a href="https://pubeurope.com/tags/germany" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>germany</span></a> <a href="https://pubeurope.com/tags/Mein" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mein</span></a> <a href="https://pubeurope.com/tags/relax" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>relax</span></a> <a href="https://pubeurope.com/tags/Schiff" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Schiff</span></a> <a href="https://pubeurope.com/tags/shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>shipbuilding</span></a> <a href="https://pubeurope.com/tags/TUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TUI</span></a></p>
UK<p><a href="https://www.europesays.com/uk/145649/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">europesays.com/uk/145649/</span><span class="invisible"></span></a> Fincantieri Floats Second LNG-Fueled Cruise Ship for Germany’s TUI Cruises <a href="https://pubeurope.com/tags/Cruise" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cruise</span></a> <a href="https://pubeurope.com/tags/EU" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EU</span></a> <a href="https://pubeurope.com/tags/Europe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Europe</span></a> <a href="https://pubeurope.com/tags/fincantieri" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fincantieri</span></a> <a href="https://pubeurope.com/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://pubeurope.com/tags/flow" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>flow</span></a> <a href="https://pubeurope.com/tags/Germany" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Germany</span></a> <a href="https://pubeurope.com/tags/Mein" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Mein</span></a> <a href="https://pubeurope.com/tags/relax" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>relax</span></a> <a href="https://pubeurope.com/tags/Schiff" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Schiff</span></a> <a href="https://pubeurope.com/tags/Shipbuilding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Shipbuilding</span></a> <a href="https://pubeurope.com/tags/TUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TUI</span></a></p>
Ko Simon toku ingoa :tinoflag:<p>My wife and I are having our first <a href="https://mastodon.nz/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a> <a href="https://mastodon.nz/tags/tank" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tank</span></a> experience today.</p>
Steven Cudahy<p>The <a href="https://mastodon.scot/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> for Tuesday 30 April 2024 is:</p><p><a href="https://mastodon.scot/tags/float" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>float</span></a></p><p>The poem or story can include the prompt word or be about the prompt word.</p><p>@ me, if you like, or just include the <a href="https://mastodon.scot/tags/MastoPrompt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MastoPrompt</span></a> tag (to allow people to follow or filter their feeds), or keep your work to yourself - all the options are good as long as you're writing.</p><p>If you're including an image please do include alt-text so I can boost your post.</p><p><a href="https://mastodon.scot/tags/Writing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Writing</span></a> <a href="https://mastodon.scot/tags/SmallPoem" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallPoem</span></a> <a href="https://mastodon.scot/tags/Poetry" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Poetry</span></a> <a href="https://mastodon.scot/tags/Fiction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fiction</span></a> <a href="https://mastodon.scot/tags/MicroFiction" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MicroFiction</span></a> <a href="https://mastodon.scot/tags/SmallStories" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SmallStories</span></a></p>
Найменшенький<p>Як же мене після <code>C++</code> навіть на <code>Python</code> тягне оптимізувати там де ніхто не звертає уваги. До прикладу багато хто використовує всюди списки дам де це не потрібно і можна взяти кортеж.</p><p>Обʼєкт типу <code>object</code> займає <strong><code>16 BYTES</code></strong>. Це можна дізнатись викликавши метод <code>__sizeof__</code> в обʼєкта.</p><pre><code>o = object() o.__sizeof__() </code></pre><p>Від цього типу наслідуються всі інші стандартні й не тільки типи навіть якщо явно цього не вказано. Тому це найменший можливий розмір будь-якого обʼєкта. Перевірити це можна за допомоги функції <code>issubclass</code> яка приймає два типи та повертає значення типу <code>bool</code>.</p><pre><code>&gt;&gt;&gt; issubclass(int, object) True &gt;&gt;&gt; issubclass(float, object) True &gt;&gt;&gt; issubclass(bool, object) True &gt;&gt;&gt; issubclass(str, object) True &gt;&gt;&gt; issubclass(list, object) True &gt;&gt;&gt; issubclass(tuple, object) True &gt;&gt;&gt; class A: ... pass ... &gt;&gt;&gt; issubclass(A, object) True </code></pre><p>Саме через це всі обʼєкти мають функцію <code>__sizeof__</code> і не тільки.</p><p>Якщо ми подивимось на розміри стандартних типів, то можемо трохи здивуватись.</p><pre><code>&gt;&gt;&gt; int().__sizeof__() 28 &gt;&gt;&gt; float().__sizeof__() 24 &gt;&gt;&gt; bool().__sizeof__() 28 &gt;&gt;&gt; str().__sizeof__() 49 &gt;&gt;&gt; tuple().__sizeof__() 24 &gt;&gt;&gt; list().__sizeof__() 40 &gt;&gt;&gt; set().__sizeof__() 200 &gt;&gt;&gt; dict().__sizeof__() 48 </code></pre><p>Найбільше я здивувався розміру типу <code>bool</code>. Він займає скільки ж як і <code>int</code>, і є більшим за <code>float</code> та <code>tuple</code>. І це все розміри порожніх (нульових) обʼєктів.</p> <p>Тепер порівняємо кортежі та списками з однаковим вмістом.</p><pre><code>&gt;&gt;&gt; t = (1,2,3,4,5,6) &gt;&gt;&gt; l = [1,2,3,4,5,6] &gt;&gt;&gt; t.__sizeof__() 72 &gt;&gt;&gt; l.__sizeof__() 88 </code></pre><p>Різниця та ж що й при порожніх контейнерах через те що контейнер зберігає тільки посилання на обʼєкт. Можемо в цьому переконатись за id обʼєктів.</p><pre><code>&gt;&gt;&gt; id(t[0]) == id(l[0]) True &gt;&gt;&gt; t[0] is l[0] True </code></pre><p>Оператор <code>is</code> робить те саме, він порівнює ідентифікатори.</p> <p>Це добре що <code>python</code> оптимізує програму не створюючи зайвих обʼєктів, але всеодно всі обʼєкти займають дуже багато місця. Саме через це я й ненавиджу такі мови як <code>python</code>, <code>js</code>...</p><p><a class="hashtag" href="https://social.net.ua/tag/програмування" rel="nofollow noopener" target="_blank">#програмування</a> <a class="hashtag" href="https://social.net.ua/tag/python" rel="nofollow noopener" target="_blank">#python</a> <a class="hashtag" href="https://social.net.ua/tag/sizeof" rel="nofollow noopener" target="_blank">#sizeof</a> <a class="hashtag" href="https://social.net.ua/tag/розміри" rel="nofollow noopener" target="_blank">#розміри</a> <a class="hashtag" href="https://social.net.ua/tag/типи" rel="nofollow noopener" target="_blank">#типи</a> <a class="hashtag" href="https://social.net.ua/tag/int" rel="nofollow noopener" target="_blank">#int</a> <a class="hashtag" href="https://social.net.ua/tag/float" rel="nofollow noopener" target="_blank">#float</a> <a class="hashtag" href="https://social.net.ua/tag/list" rel="nofollow noopener" target="_blank">#list</a> <a class="hashtag" href="https://social.net.ua/tag/tuple" rel="nofollow noopener" target="_blank">#tuple</a> <a class="hashtag" href="https://social.net.ua/tag/списки" rel="nofollow noopener" target="_blank">#списки</a> <a class="hashtag" href="https://social.net.ua/tag/кортежі" rel="nofollow noopener" target="_blank">#кортежі</a> #<strong>sizeof</strong> <a class="hashtag" href="https://social.net.ua/tag/object" rel="nofollow noopener" target="_blank">#object</a> <a class="hashtag" href="https://social.net.ua/tag/оптимізація" rel="nofollow noopener" target="_blank">#оптимізація</a> <a class="hashtag" href="https://social.net.ua/tag/бісить" rel="nofollow noopener" target="_blank">#бісить</a></p>