https://www.europesays.com/2180928/ World’s Largest Sail Yacht Cruise Ship Floated Out in France #chantiers #cruise #express #float #france #orient #sail #shipbuilding #yacht
https://www.europesays.com/2180928/ World’s Largest Sail Yacht Cruise Ship Floated Out in France #chantiers #cruise #express #float #france #orient #sail #shipbuilding #yacht
World’s Largest Sail Yacht Cruise Ship Floated Out in France
What promises to be one of the unique entrants into the growing luxury segment of the cruise…
#France #FR #Europe #EU #chantiers #cruise #express #float #france #orient #sail #shipbuilding #yacht
https://www.europesays.com/2180928/
World’s Largest Sail Yacht Cruise Ship Floated Out in France https://www.byteseu.com/1124034/ #Chantiers #Cruise #express #float #France #Orient #sail #shipbuilding #yacht
https://www.europesays.com/uk/201348/ World’s Largest Sail Yacht Cruise Ship Floated Out in France #Chantiers #Cruise #EU #Europe #Express #float #France #Orient #sail #Shipbuilding #yacht
So I have both float->#minifloat and minifloat->#float conversion in my #CommonLisp 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!
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.
Find it at https://codeberg.org/aartaka/cl-minifloats
https://www.europesays.com/2122905/ Fincantieri Floats Second LNG-Fueled Cruise Ship for Germany’s TUI Cruises #cruise #Fincantieri #float #Flow #germany #Mein #relax #Schiff #shipbuilding #TUI
https://www.europesays.com/uk/145649/ Fincantieri Floats Second LNG-Fueled Cruise Ship for Germany’s TUI Cruises #Cruise #EU #Europe #fincantieri #float #flow #Germany #Mein #relax #Schiff #Shipbuilding #TUI
Hot Air Balloon, newly added to my Transportation collection. Hope you have a good one.
Available here: https://1-lisas-baker.pixels.com/featured/hot-air-balloon-lisa-s-baker.html
G.
Fly Me to the Moon, a charcoal drawing of a figure with eyes closed, hand reaching forward, flying through the night sky towards the moon.
[ Prints : https://james-mccormack.pixels.com/featured/fly-me-to-the-moon-james-mccormack.html ]
The water level in the canal dropped a bit overnight. I realised this when I noticed the boat was listing away from the bank, and only rocking along one axis instead of the usual three.
Closest to the bank, the bottom of the boat was touching ground, underwater.
My neighbour helped me refloat, pushing out the boat while I leaned and swung on the far gunnel to make the boat lift clear of the underwater ground.
The #MastoPrompt for Tuesday 30 April 2024 is:
The poem or story can include the prompt word or be about the prompt word.
@ me, if you like, or just include the #MastoPrompt 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.
If you're including an image please do include alt-text so I can boost your post.
Як же мене після C++
навіть на Python
тягне оптимізувати там де ніхто не звертає уваги. До прикладу багато хто використовує всюди списки дам де це не потрібно і можна взяти кортеж.
Обʼєкт типу object
займає 16 BYTES
. Це можна дізнатись викликавши метод __sizeof__
в обʼєкта.
o = object()
o.__sizeof__()
Від цього типу наслідуються всі інші стандартні й не тільки типи навіть якщо явно цього не вказано. Тому це найменший можливий розмір будь-якого обʼєкта. Перевірити це можна за допомоги функції issubclass
яка приймає два типи та повертає значення типу bool
.
>>> issubclass(int, object)
True
>>> issubclass(float, object)
True
>>> issubclass(bool, object)
True
>>> issubclass(str, object)
True
>>> issubclass(list, object)
True
>>> issubclass(tuple, object)
True
>>> class A:
... pass
...
>>> issubclass(A, object)
True
Саме через це всі обʼєкти мають функцію __sizeof__
і не тільки.
Якщо ми подивимось на розміри стандартних типів, то можемо трохи здивуватись.
>>> int().__sizeof__()
28
>>> float().__sizeof__()
24
>>> bool().__sizeof__()
28
>>> str().__sizeof__()
49
>>> tuple().__sizeof__()
24
>>> list().__sizeof__()
40
>>> set().__sizeof__()
200
>>> dict().__sizeof__()
48
Найбільше я здивувався розміру типу bool
. Він займає скільки ж як і int
, і є більшим за float
та tuple
. І це все розміри порожніх (нульових) обʼєктів.
Тепер порівняємо кортежі та списками з однаковим вмістом.
>>> t = (1,2,3,4,5,6)
>>> l = [1,2,3,4,5,6]
>>> t.__sizeof__()
72
>>> l.__sizeof__()
88
Різниця та ж що й при порожніх контейнерах через те що контейнер зберігає тільки посилання на обʼєкт. Можемо в цьому переконатись за id обʼєктів.
>>> id(t[0]) == id(l[0])
True
>>> t[0] is l[0]
True
Оператор is
робить те саме, він порівнює ідентифікатори.
Це добре що python
оптимізує програму не створюючи зайвих обʼєктів, але всеодно всі обʼєкти займають дуже багато місця. Саме через це я й ненавиджу такі мови як python
, js
...
#програмування #python #sizeof #розміри #типи #int #float #list #tuple #списки #кортежі #sizeof #object #оптимізація #бісить