nrw.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Wir sind eine freundliche Mastodon Instanz aus Nordrhein-Westfalen. Ob NRW'ler oder NRW-Sympathifanten, jeder ist hier willkommen.

Serverstatistik:

2,8 Tsd.
aktive Profile

#optimize

0 Beiträge0 Beteiligte0 Beiträge heute

Wow.. So I was trying to #optimize some Rust code that would take six hours to run.

My goal was to get that down to 3.5 hours (something I'd achieved previously with lost code). Some tweaking got it down to 5 hours estimated runtime.

Then I thought to do:

"cargo build --release" instead of just "cargo build" for the first time.

And we're down to 3 minutes.... not 3.5 hours... 3 minutes.

Ok.. Good to know. Debug adds just a tiny bit of overhead on some code ;-).

These guys were clever to an extent we no longer can imagine. They were constrained by resources at a point they had to dig into very clever tricks to do their thing.

I really have unlimited respect for the Unix guys, from the roots to just now, because they had to do wonders with machines that your phone or calculator would easily beat. (The same respect will apply to people sending other people to the Moon).

Current devs would just stop, cry, and extend their resources by purchasing the next tier of “subscription” for their infrastructure.

You don’t have unlimited resources. You will never. Resources you overuse comes from an artificial paradise abusing nature, energy and even abusing your fellow humans.

Just have a break and consider the word “optimization” : learn tricks from ancestors and consider using resource AFTER having put your optimization skills in practice.

Don’t use bloated frameworks
Choose the right tool for the right usage.
Do think before typing code.

Also, as a user :
- learn to enjoy simple things which does not necessarily involves cloud computing, you know the good old days of home computing with everything safe at home ? (Do backups)
- you might reconsider all the AI bullshit and buzzwords and use the brain you had since day one : such a device, when used correctly, can produce poems, do calculations, send people in space, draw, paint, write texts and even summarize them for you. It even might do it better than the LLM model next door, you know. It just takes some practice. Brain will have limited resources but you can also use clever tricks too (e.g. pencil to swap RAM to paper when needed)
- When people push over-complicated solutions, tell them and prefer others.
- Advocate the use of simple tools that does the job honestly, without bells and whistles.

We people, at either end of the spectrum may encourage people to have a fair use of computer resources.

#optimize #coding #kiss #minimalism #resource #memory

RT from @nixCraft@mastodon.social
https://mastodon.social/users/nixCraft/statuses/113852419155879682
MastodonnixCraft 🐧 (@nixCraft@mastodon.social)How do you fit a dictionary in 64kb RAM? Unix engineers solved it with clever data structures and compression tricks. Here's the fascinating story behind it. https://blog.codingconfessions.com/p/how-unix-spell-ran-in-64kb-ram
#optimize#coding#kiss

083 #ClimateSolutions #Documentary

Beware! This is a long one...
so make time, take some coffee or tea.
[There's a list of hashtags, interviewee's and chapters at the very bottom of this toot]

Star ✨ observation by:
Hege Schøyen Dillner:
"But what if we can't make it? I'm not so afraid about that; I'm afraid we don't dare to set the direction !

"Global renewables: Pioneering the energy transition | DW Documentary"
by DW Documentary 1 Dec 2023

youtube.com/watch?v=UVf2Yw7uFo

No quotes this time.
Too much topics to go in to, DIY this time 😘
Lots of hashtags though:
#Research #Pioneering #Renewable #Circular #Sustainable #ChangingTheCulture #Profitable #SolarPower #WindPower #Hydrogen #SelfSuficient #Reduce #Reuse #Recycle #Upcycle #Optimize #LocallyAvailable #Efficient #Smart #Insulation #ZeroEmission #Enterprise #SetDirection #PowerHouse #Transition #StableGrid #PowerLink #GreenHighway #NorthSeaGrid #Europe #Collaboration #EnergyIsland #Anticipation #VikingLink #NewFuel #Efuel #SyntheticFuel #CookingFuel #PhysicsAware #ReInventing #PhotoSynthesis #NatureInspiration #Breakthrough

Places 'n Countries:
Lancaster, California [US]; Wundsiedel, Bavaria [Ge]; Nordhavn Energy Lab, Copenhagen [Dn]; Oslo, Norway; Kvilldal, Norway; Blyth, UK; Hitachi Energy, Zurich; Helmholtz Centre, Berlin; Learning HubSingapore; TU, Denmark; CIT, California [US];

Interviewee's:
Marianne Borgen [Mayor Oslo]; Espen Barth Eide [Min. Clim 'n Env Norway]; Rex Parris [Mayor Lancaster]; Marco Krasser [CEO Stadtwerke Wunsiedel]; Christoffer Greisen [COO Hybrid Greentech]; Jan Eric Thorsen [Dir. Danfoss]; Mikael Lindegaard Kristiansen [MENY Nordhavn]; Hege Schøyen Dillner [Hille Melbye Arkitekter]; Sonja Horn [Power House, Entra ASA]; Michael James [Opp National Grid, London]; Martin Lawlor [Port of Blyth]; Mads Nipper [ørsted Denmark]; Claudio Facchin [CEO Hitachi Energy, Zurich]; Anne-Laure de Chammard [Siemens Energy AG]; Dr. Bernd Rech [Helmholtz, Berlin]; Dr Sonya Calman [Helmholtz, Berlin]; Dr Madhavi Srinivasan [battery recycle]; Dr Tejs Vegge [TU Denmark]; Dr Harry A. Atwater [Photo Synthesis]; Dr Thomas Hannappel [TU Ilmenau];

Chapters:
0:00 Intro
1:21 Lancaster California
8:07 Copenhagen Denmark
10:47 Oslo Norway
16:06 Powerhouse
19:37 Power Link
22:42 Energy Islands
25:19 Hydrogen
28:22 Research
31:47 Recycling Batteries
34:59 Global Research

Vulkan | 1000% / 4000% performance increase? What is this? :vulcan_hmn_r1:

Vulkan: a modern cross-platform API - great in Linux gaming too - seems there are many unnoticed crucial optimizations to be found.

Submitting 50 cmdbufs 1 time is more effective than sending 1 cmdbuf 50 times, right?

A tool for Vulkan operations (and benchmarking) is VKoverhead github.com/zmike/vkoverhead

Mike Blumenkrantz => supergoodcode.com/tis-the-seas

GitHubGitHub - zmike/vkoverhead: evaluating cpu overhead of vulkan driversevaluating cpu overhead of vulkan drivers. Contribute to zmike/vkoverhead development by creating an account on GitHub.
#Vulkan#Linux#optimize