#Divan

ActuaLittéactualitte
2025-06-01
Frank Stohlfrankstohl
2025-03-01

Wieder spielt alles verrückt, es ist überall Chaos. Die Zeitung ist entzückt – überall Chaos. 🎶🎵 Rainer von vielen - Divan
youtu.be/2_YKNGRURUQ?si=Gt4Wqc

Mo Bitar :ferris:mo8it@fosstodon.org
2024-08-16

Wrote a small fish shell function to easily start a clean benchmarking project with divan :D

#RustLang #Divan

```fish
function divan
    cd ~/code/tmp
    rm -rf benchmark
    mkdir benchmark
    cd benchmark
    echo '[package]
name = "benchmark"
version = "0.0.0"
edition = "2021"
publish = false

[profile.release]
panic = "abort"

[dev-dependencies]
divan = "0.1"

[[bench]]
name = "divan"
harness = false' >Cargo.toml

    mkdir benches
    echo 'use divan::bench;

fn main() {
divan::main();
}

#[bench]
fn bench() {
todo!()
}' >benches/divan.rs

    hx benches/divan.rs
end
```
2024-06-26

Amazing that the #West-#Eastern #Divan #Orchestra is still functioning and coming to the #BBC #Proms. It must be very difficult to hold the #Palestinian and #Israeli #musicians together. A tribute to those who keep the dialog going.

#BBCSounds #BBCR3 #music
bbc.co.uk/sounds/play/m001znsf

Mo Bitar :ferris:mo8it@fosstodon.org
2024-03-02

#Rust performance tip 🚀

If you want to update the value of a String, it is more efficient to recycle the existing allocation with `clear` and `write*` instead of reallocating with `format!` ♻️

#Divan shows that the method with `format!` has one allocation while the other one doesn't 😃

#RustLang

```rust
#[divan::bench]
fn recycle(bencher: Bencher) {
    bencher
        .with_inputs(|| "FPS: 144".to_string())
        .bench_local_refs(|s| {
            let v = black_box(144.0);

            // 👇️ Relevant lines 👇️
            s.clear();
            s.write_fmt(format_args!("FPS: {v:.0}")).unwrap();
        });
}

#[divan::bench]
fn allocate(bencher: Bencher) {
    bencher
        .with_inputs(|| "FPS: 144".to_string())
        .bench_local_refs(|s| {
            let v = black_box(144.0);

            // 👇️ Relevant line 👇️
            *s = format!("FPS: {v:.0}");
        });
}
```Divan output:

```
Timer precision: 20 ns
bench        fastest       │ slowest       │ median        │ mean          │ samples │ iters
├─ allocate  119.7 ns      │ 18.11 µs      │ 149.7 ns      │ 152.2 ns      │ 5950945 │ 5950945
│            alloc:        │               │               │               │         │
│              1           │ 1             │ 1             │ 1             │         │
│              10 B        │ 10 B          │ 10 B          │ 10 B          │         │
│            dealloc:      │               │               │               │         │
│              1           │ 1             │ 1             │ 1             │         │
│              8 B         │ 8 B           │ 8 B           │ 8 B           │         │
╰─ recycle   108.3 ns      │ 8.839 µs      │ 120.6 ns      │ 121.5 ns      │ 689188  │ 22054016
```
2024-02-03

En 's middags lekker live muziek geluisterd in Buurse; Divan van Hermitage (uit Gent) maar dan solo. Leuke zaterdag gehad!
divan.be/post/7292704118141747
#Divan #Hermitage #Buurse
Spotify: open.spotify.com/artist/1jRfdS

Camélia StudioCamelia@shelter.moe
2023-12-20

Divan 08 – Le meurtre de la princesse explose les insomniaques heureux

Sommaire :

- Intro
- CDC/CDG
- Kimi wa Houkago Insomnia
- Pause musicale (1) ; Regression (Orchestral version) - HOYO-MIX
- Niehime to Kemono no Ou
- Kono Subarashii Sekai ni Bakuen wo
- Pause musicale (2) ; Gimme all your lovin - ZZ Top
- Undead Girl Murder Farce
- Jujutsu Kaisen S2
- Pause musicale (3) ; Anata no soba ni - Riria
- Watashi no shiawase na kekkon
- Nos attentes
- Musique de fin ; Sweater Weather – The Neighbourhood

tsubakimono.camelia-studio.org

#Divan #podcast

ClusteradoClusterado
2023-06-21

Are you curious about what people ate in the 1970s? Well, you're in luck because we're about to take a trip down memory lane to see what was on the dinner table during that groovy decade. From jiggly Jell-O salads to beefy..

clusterado.com/2023/06/19/step

2023-05-23

Der Koran im „Divan“ (2)
Der West-östliche Divan ist die umfangreichste Gedichtsammlung Goethes, die zuerst 1819 und dann erweitert 1827 erschien.

„Am liebsten aber wünschte der Verfasser vorstehender Gedichte als ein Reisender angesehen zu werden, dem es zum Lob gereicht, wenn er sich der fremden Landesart mit Neigung bequemt, deren Sprachgebrauch sich anzueignen
islamische-zeitung.de/der-kora
#Kultur #Bildung #IZPlus #divan #Goethe #Islam #koran #SerdarAslan

𝕮𝖍𝖊𝖗𝖙𝖔𝖌𝖗𝖆𝖉chertograd@masto.ai
2023-02-18

The Ottoman Empire.
Also known as the Corner Sofa Empire.
#divan #divaani #sohva #sofa #couch

Vitasta :pika:baavri
2022-11-22

A quiet place to relax and read 🛋️📚📖

A colorfully draped divan and green cushions with golden paisley pattern. In the background are drawn curtains lit with sunlight. The curtains have a thin vines and flowers pattern.

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst