mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#Itertools

0 posts0 participants0 posts today

#ArtAdventCalendar Day 4.

I started working through the book "Indra's Pearls" by David Mumford, Caroline Series, and David Wright. And by working, I mean implementing the pseudo-code in #python. It's fun when you recognize that a messy triple-nested loop algorithm in the book can be replaced by a single `itertools.product` followed by a `filter` call - which makes one appreciate the ease of coding in Python!

This is a "Theta-Schottky group" fractal inspired by Exercise 4.2 in the book.

Ano passado eu gravei um curso em vídeo de introdução ao desenho com código, usando #Python + #Processing (#py5) para o HomeostasisLab, está disponível *totalmente de graça* em:

homeostasislab.org/cursos/info

Parece que uma centena de pessoas acessaram esse #cursoGrátis de #ProgramaçãoCriativa, mas eu não tive retorno. Estranhei que deveria ter legendas em inglês mas não as encontrei :((

Adoraria que mais gente visse e que me mandassem comentários (de preferência construtivos). Assisti ontem um trechinho em que eu tento explicar #itertools #combinations #permutations e #ItertoolsProduct e achei que estava bem razoável.

Se você gosta do meu trabalho, pode me apoiar em gumroad.com/villares, com PayPal (paypal.com/cgi-bin/webscr?cmd=) ou PIX (chave: 46c37783-5edb-4f1c-b3a8-1309db11488c)

homeostasislab.orgHomeostasis LabHomeostasis Lab funciona como um sistema aberto que conta com a colaboração de artistas, programadores, curadores e pensadores de diferentes lugares do mundo.

Today I implemented some neat optimizations for my current project at work: the problem I found was that the #rust #itertools library does not ensure minimal allocation size for the partition_result adaptor.

I made a custom implementation of this adaptor that does not allocate itself, but receives preallocated collections for the partitions.

Was a pretty nice experience.