[-] PlexSheep@infosec.pub 5 points 2 months ago

*Dunkelmuster Scheiße

[-] PlexSheep@infosec.pub 5 points 4 months ago

Framework laptop has a nice concept and good Linux support in theory.

Sadly, I keep having heating problems with mine, currently in contact with their support again.

[-] PlexSheep@infosec.pub 5 points 4 months ago

No I disagree, I just want it just works

[-] PlexSheep@infosec.pub 5 points 5 months ago

Good comment. Thanks.

[-] PlexSheep@infosec.pub 5 points 5 months ago

Everything becomes either a train or a commie block if you iterate enough on the idea.

[-] PlexSheep@infosec.pub 5 points 6 months ago

No it's not. I use plasma and it's amazing but the panels are not the same, each panel is different and can't be synced.

[-] PlexSheep@infosec.pub 5 points 6 months ago

Aber es macht schon irgendwie Sinn dass systemd diesen Job übernimmt oder? Ist es nicht deutlich eleganter wenn wir im Nutzerraum bleiben und das quasi init system einen wurzel pty gabelt?

[-] PlexSheep@infosec.pub 5 points 6 months ago

It's not in xfce yet, so no. Also I have some weird bugs with the UI of plasma glitching out on LMDE/Debian.

We've come a long way but we're not yet at stability.

[-] PlexSheep@infosec.pub 5 points 7 months ago

The whole code is here

(It does not compile right now)

I understand why it does not work, but I don't know how to achieve what I'm looking for.

This is the code snippet from the binary:

    let wl = BuiltinWList::default();
    let builder: GameBuilder<'_, BuiltinWList> = game::Game::builder(&wl)
        .length(cli.length)
        .max_steps(cli.max_steps)
        .precompute(cli.precompute);
    let solver: AnyBuiltinSolver<'_, BuiltinWList> = cli.solver.to_solver(&wl);
    let bench = BuiltinBenchmark::build(&wl, solver, builder, cli.threads)?;
    trace!("{bench:#?}");

    bench.start()?;

    loop {
        sleep_ms(1000);
        println!("{}", bench.report());
        if bench.is_finished() {
            break;
        }
    }

    Ok(())
}

From the CI

error[E0521]: borrowed data escapes outside of method
  --> src/bench/builtin.rs:79:18
   |
23 |   impl<'wl, WL, SL> Benchmark<'wl, WL, SL> for BuiltinBenchmark<'wl, WL, SL>
   |       
***
lifetime `'wl` defined here
...
75 |       fn start(&'wl self, n: usize) -> WResult<()> {
   |                --------- `self` is a reference that is only valid in the method body
...
79 |           let th = std::thread::spawn(move||{
   |  __________________^
80 | |             Self::bench(n, report, solver, builder)
81 | |         });
   | |          ^
   | |          |
   | |__________`self` escapes the method body here
   |            argument requires that `'wl` must outlive `'static`
error[E0597]: `builder` does not live long enough
  --> src/bench/mod.rs:54:32
   |
21 | pub trait Benchmark<'wl, WL, SL>: Sized + Debug + Sync
   |                    
***
lifetime `'wl` defined here
...
51 |             .for_each_with(report.clone(), |outside_data, _i| {
   |                                            ------------------ value captured here
...
54 |                     .play(&mut builder.build().expect("could not create game"))
   |                                ^^^^^^^----------------------------------------
   |                                |
   |                                borrowed value does not live long enough
   |                                argument requires that `builder` is borrowed for `'wl`
...
62 |     }
   |      - `builder` dropped here while still borrowed
[-] PlexSheep@infosec.pub 5 points 7 months ago

I'm still working on a benchmark for my wordle solver. The thing itself works, but I want it to print statuses while benching.

I cannot do it. I've spent hours on this, even tried to make the bench async and run it in a separate Tokio task. I cannot share my bench strict over a thread, and cloning is impossible too, because of something.

Sometimes, the lifetime and ownership stuff of rust really gets annoying. C would've just done the stuff and be done with it. (Maybe)

[-] PlexSheep@infosec.pub 5 points 7 months ago

By any chance, does that dell run windows?

[-] PlexSheep@infosec.pub 5 points 7 months ago

Thank you for this short novel.

view more: ‹ prev next ›

PlexSheep

joined 7 months ago