Toots for luc@chaos.social account

Written by Luc on 2025-01-30 at 19:53

Found the documentation:

https://github.com/python/cpython/blob/8e57877e3f43e80762196f6869526d0c1585783a/Modules/_randommodule.c#L315-L316

knew I had a mug for that

=> View attached media

=> More informations about this toot | View the thread

Written by Luc on 2025-01-30 at 19:48

srand(1)

a = rand()

srand(-1)

b = rand()

a == b?

Bash: yes (RANDOM=)

C: no (stdlib.srand)

C#: yes (System.Random)

JS: error (can't seed Math.random)

Lua: no (math.randomseed)

Perl: yes (srand)

PHP: no (srand)

Python: yes (random.seed, cpython&pypy)

Ruby: yes (srand)

is throwing away the sign bit at least documented? Only in C#! Python docs even say "all of its bits are used" but it's a lie.

I didn't expect much of Bash or C, but what blows my mind? PHP acting more sane than Python 🤯

=> More informations about this toot | View the thread

Written by Luc on 2025-01-11 at 13:37

Massive kudos to everyone already doing what they can. I know many of you are

=> More informations about this toot | View the thread

Written by Luc on 2025-01-11 at 13:34

Some backgrounds

Food:

https://ourworldindata.org/grapher/ghg-per-kg-poore

Transport:

https://ourworldindata.org/grapher/carbon-footprint-travel-mode

Heating:

https://joint-research-centre.ec.europa.eu/jrc-news-and-updates/air-pollution-heating-and-cooling-stepping-clean-energy-use-urgently-needed-2025-01-07_en (note how there are more health advantages to heating cleanly)

Electricity in Germany with real impact: https://www.robinwood.de/oekostrom-report-reloaded

Buy less stuff / buy second hand advice is based on manufacturing being the 3rd highest contributor: https://ourworldindata.org/grapher/per-capita-ghg-sector

=> More informations about this toot | View the thread

Written by Luc on 2025-01-11 at 13:14

"Atmospheric [CO2] higher in 2024 than at any time in at least 2,000,000 years. [Methane] higher than at any time in at least 800,000 years."

https://climate.copernicus.eu/global-climate-highlights-2024

If you can still reasonably do something, now is the time. Top things I found:

This roughly halves(!) your emissions

=> More informations about this toot | View the thread

Written by Luc on 2024-12-08 at 03:39

Avif makes smooth gradients where jpeg degrades to blotchy pixels, but at decent quality levels, jpeg preserves the grain that makes the photo look real

Avif takes 80s to export (coudl have been worth it...if the result were better!), with webp taking a few secs and jpeg somewhere <1 second

Didn't test jpegxl, since webp and avif are supposed to supersede that

I'm sure avif and webp prove their worth on other images, but that we haven't universally improved upon 1992 compression surprises me!

=> More informations about this toot | View the thread

Written by Luc on 2024-12-08 at 03:28

Rabbit hole: with new fancy formats like jpeg xl, webp, avif... what to use for a header photo?

The format that:

...is good old jpeg from 1992 🤯

=> More informations about this toot | View the thread

Written by Luc on 2024-11-05 at 20:13

I can't explain how humanity pulls it off despite everything, but it is good to be reminded of the longer trend sometimes

=> View attached media

=> More informations about this toot | View the thread

=> This profile with reblog | Go to luc@chaos.social account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/110825589168125139
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
335.010701 milliseconds
Gemini-to-HTML Time
1.833963 milliseconds

This content has been proxied by September (3851b).