mamot.fr is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mamot.fr est un serveur Mastodon francophone, géré par La Quadrature du Net.

Server stats:

3.1K
active users

#trait

0 posts0 participants0 posts today

Curiosity: The neglected trait that drives success via BBC [Shared]

On 7 January 1918 at New York’s Hippodrome, the incredible illusionist Harry Houdini unveiled one of his most famous tricks – the vanishing elephant – in front of thousands of spectators.

The beast in question, Jennie, reportedly weighed 10,000 pounds (4,536kg). She raised her trunk in greeting, before a stagehand led her into a huge cabinet and closed the doors behind them. After a dramatic drum roll, the doors reopened – and the cabinet was now empty. To the thousands of spectators, it seemed that she had vanished into thin air. 

How could Houdini have managed to hide such an enormous animal? No one at the time could provide a definitive explanation of what had happened, though there is one predominant theory.

welchwrite.com/blog/2025/04/11

#rustlang

A #trait defines the functionality a particular type has and can share with other types. We can use traits to define shared behavior in an abstract way. [...]

Traits are similar to a feature often called interfaces in other languages [...]

Below a Summary trait that consists of the behavior provided by a summarize method:

pub trait Summary {
fn summarize(&self) -> String;
}

More information: doc.rust-lang.org/book/ch10-02

doc.rust-lang.orgTraits: Defining Shared Behavior - The Rust Programming Language
Continued thread

something v0.1.0 never actually did was sync the clips's starting points. something that is pretty essential functionality for a launcher-based workflow. the individual sequencer tracks played in sync, but switching between phrases happened instantly

to implement proper synced launching i had to refactor time.rs in a similar way to space.rs (which is the basis of defining the ui): every aspect of timekeeping is now its separate #trait, and they are all impl'd for a state object, TransportTime