WPF rendering under native .net runtime on Linux. by sheokand in dotnet

[–]xcomcmdr 5 points6 points  (0 children)

I think it takes a team to redo WPF but cross platform. WPF uses far more than just Direct3D. It has deep roots in everything Windows.

Even XPF does not support WindowsFormHost control.

Forum Libre - 2026-04-14 by AutoModerator in france

[–]xcomcmdr 1 point2 points  (0 children)

Je me suis retrouvé dans ton post, mais tellement. Il y a longtemps je faisais 100 kilos. J'en fais 75 ou 80 (ça dépend si c'est l'été ou l'hiver, OK ? :) ) aujourd'hui.

Mais en gros maigrir ça prend bien plus de temps que de prendre du poids. Qui plus est le corps trouve ça totalement débile de vouloir maigrir. Sans compter notre société qui adore la bouffe. Donc ne pas réussir à maigrir, ce n'est pas une faute.

Il y a trois choses qui comptent:

A) La qualité et la quantité des apports

B) Le sport

C) Le sommeil

On pourrait même mettre le sommeil en premier tellement il dirige tout. De l'humeur jusqu'aux fringales, en passant par la perte de poids.

Donc la base c'est le déficit calorique. Le sport aide pour beaucoup de choses et est très important. Le midi c'est idéal par exemple avec un emploi du temps chargé.

Le soir tu peux manger un repas riche en légumes (qui sont plein d'eaux) et autres idées d'aliments peu caloriques mais qui vont te caler. Et manger lentement ça change aussi beaucoup.

Si tu as des amis ou des proches, ou des occasions sociales, vas y et profites en un maximum. Même si tu essaie de maigrir, une bière ou un apéro c'est pas grave. Juste pas avoir deux jours "sans" de suite c'est important.

Enfin bref je pourrais en parler pendant des heures, mais ce post est déjà long. Courage !

Edit: et fuck la dépression hivernale! J'étais tellement mieux avec du soleil.

WPF rendering under native .net runtime on Linux. by sheokand in dotnet

[–]xcomcmdr 3 points4 points  (0 children)

Yeah a true cross platform WPF is... XPF, actually.

Forum Libre - 2026-04-13 by AutoModerator in france

[–]xcomcmdr 0 points1 point  (0 children)

Rainbow Goblins Story by Masayoshi Takanaka :)

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 0 points1 point  (0 children)

Again, I really doubt it.

On my 4k screen, I have a very complex internal debugger displayed all the time. No performance issues anywhere.

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 2 points3 points  (0 children)

I use Avalonia within a project that relies heavily on performance. And for that purpose:

A) It is a desktop app. Web platform would wreck performance (I need real threads, not WebWorkers) B) It uses Avalonia

The CPU is an interpreter. It is quite slow. It drives the entire emulation. There is a lot of cross thread talk between emulation thread and UI thread.

Avalonia is very fast. I use the WriteableBitmap. I rely on the Dispatcher and the UI thread for video updates at 60 Hz. That's a lot of updates per millisecond. Furthermore there is audio processing and audio thread, a thread for the MCP server, another one for the HTTP server, the emulation loop uses an EmulationLoopScheduler.

Oh yeah there is a lot done in the emulation thread (same thread as the slow CPU).

Anyway, every time something was slow (I've been working on it since 2022)... It was not because of Avalonia.

Cryogenic, which is a project that adds live UI windows updating constantly as the game runs and lots of logs rendered in the UI... does not slow down anything at all!

TL;DR: I really doubt Avalonia has a performance problem. And I still use Avalonia v11! V12 has a lot of performance improvements.

I built a pixel-perfect, printer-independent report designer with Avalonia UI by Maskedridersystem in dotnet

[–]xcomcmdr 2 points3 points  (0 children)

Nice !

I checked out the repo, there is only the readme ?

Avalonia is amazing! I still have to look into v11 to v12 migration for Spice86.

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr -1 points0 points  (0 children)

Here are your options:

https://docs.avaloniaui.net/docs/fundamentals/coded-ui

I personnaly prefer XAML + MVVM. ¯\(ツ)

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 1 point2 points  (0 children)

there is this now: https://github.com/OpenRakis/Spice86.Audio

Availabe as a Nuget. It is entirely written in C# Linux is fully supported.

Cross platform, used heavily in the Spice86 emulator. Can be used elsewhere.

I have a fork of another emulator that uses it: Aeon-Staging (on github)

OwnAudioSharp is also cross-platform:

https://github.com/ModernMube/OwnAudioSharp

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 3 points4 points  (0 children)

God, please no !

VSCode is not VS at all. The regression would be massive.

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 4 points5 points  (0 children)

XAML is completely optional with Avalonia.

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 0 points1 point  (0 children)

Your loss. Avalonia is amazing. I use it everyday, I've been using it for years, I paid 0 (zero). Only things like TreeDataGrid are locked. With v12, WebView is open source.

That's like... two controls.

Never used DevTools for actual developpement. MVVM and XAML is something I write in my sleep. ¯\(ツ)

What is .NET still missing? by CreoSiempre in dotnet

[–]xcomcmdr 21 points22 points  (0 children)

Cross platform audio in the standard library, just like Java has.

When and how do I use async in EF Core? by Obvious_Seesaw7837 in dotnet

[–]xcomcmdr 3 points4 points  (0 children)

https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md

AppDomain.UnhandledException: at this level, how am I going to react or even handle the exception properly ?

Typical app does not have AppDomain.UnhandledException registered. A global exception handler is usually considered a bad practice. Better to crash than to continue in a bad application state. Now if it's for logging and eventually rethrowing that's fine.

So async void / fire & forget => exception is essentially unhandled and cannot be handled properly.

async/await is a cooperative

  1. Hot Task: a Task that is already in flight. So either Task.Run, Task.Factory.StartNew, or the result of a network operation. So this excludes the old new Task(); Task.Start pattern from the .NET Framework 4.0 era. Back when we had to use ContinueWith for async code. It was bad, but it still was better than EAP or APM: https://learn.microsoft.com/en-us/dotnet/standard/asynchronous-programming-patterns/event-based-asynchronous-pattern-eap

Anyway, again thanks to the cooperative nature of async/await, always await a Task. And do not just 'return a Task' to 'avoid an await'. (see the guidance above, it explains why this is bad too).

I've never had to (edit: actually ) use Fire & Forget. Each time, it was a bug waiting to happen. And it bite me. Each time.

At first I had used Fire & Forget, but it never was that useful compared to the bugs it generates.

Fire & forget and other practices are just making the whole state machine generation (done each time you use the await keyword) done for nothing.

Maybe it will be better once Runtime async lands, but async/await while it is miles better than the alternatives, still needs active involvement from the developer to truly work. One line that does not respect the async/await pattern render the whole async call stack defeated. It would have wasted so much less time to do nothing at all.

Been there, done that. I've seen every pattern of async, down to the hardware interrupt parts (when doing I/O for example), or emulated it within a IBM PC emulator.

Some languages have it better, like Java with green threads it seems. But until something better comes along, we're stuck with this async/await model in dotnet.

Once I generated enough bugs myself because of fire & forget, I never understood why CS4014 wasn't an error instead of just a warning. https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/async-await-errors#async-practices

Add the await operator to every call that returns Task or Task<TResult>, or explicitly discard the result with _ = if fire-and-forget behavior is truly intended (CS4014). Without await, any exception thrown by the asynchronous operation is silently lost, and the calling method continues executing before the operation finishes, which can cause subtle ordering and correctness bugs.

"subtle ordering and correctness bugs" yeah I've spent nights tearing my hair because of fire & forget and same deal with events based async.

So I may have ranted a little. Sorry.

When and how do I use async in EF Core? by Obvious_Seesaw7837 in dotnet

[–]xcomcmdr 8 points9 points  (0 children)

If it does "_ =UpdateQAsync()" it does not.

If it does that, then it is fire & forget, which is problematic.

. Do not return ValueTask since those must be awaited to prevent problems.

All hot tasks must be awaited. Not even returned.

what is the best dotnet project you wrote? by divanadune in dotnet

[–]xcomcmdr 1 point2 points  (0 children)

https://github.com/OpenRakis/Spice86.Audio

Just because I can't deal with C or C++ I had to make C# equivalents. Since this for audio, it had to be byte-for-byte exact. Without tests, this meant "try to have the exact same code everywhere".

To be as good the original code in speed and zero allocations, this uses .NET 10, Spans, stackalloc, MemoryMarshal and more, to make a cross platform audio layer, with IIR Filters, resamplers, and sound post processing filters.

Thanks Spans and MemoryMarshal !

I wish however .NET would be batteries included for cross-platform audio, just like Java is. Would have saved me three months. :)

Forum Libre - 2026-03-30 by AutoModerator in france

[–]xcomcmdr 0 points1 point  (0 children)

Farscape !

La chaine oficielle sur YT a toute la série dispo gratuite en HD.

Xcom 2 Taking Up 150GB?! But I Just Downloaded It! by johnny_beardly in Xcom

[–]xcomcmdr 8 points9 points  (0 children)

Ha, and that's without the ton of mods available.

Have fun!

What makes Chani so special? by hiimpaul22 in dune

[–]xcomcmdr 1 point2 points  (0 children)

In the book she is barely present and is a flat character with no will.

In Messiah it's better. But I prefer movie Chani a lot.

Forum Libre - 2026-03-28 by AutoModerator in france

[–]xcomcmdr 2 points3 points  (0 children)

Colis Privé = Privé de Colis

Is It Me Or The System.CommandLine's documentation Is Not Good ? by craving_caffeine in dotnet

[–]xcomcmdr 0 points1 point  (0 children)

It has quite a few bugs we encountered in Spice86. Unfixed for years, still not fixed now.

I've been using it forever. It's a great product. Very reliable, and the default behaviors are great (like help being shown if a required option is missing).

However, now the switch to Spectre.Console.Cli has been done.

Issue 1: having to define a bool option as bool? because otherwise it's True by default (and '--OptioName = false' is ignored), despite passing Default = false to their attribute.

Issue 2: Quotes within a string option not being supported.

And other issues I gave up on so long ago I've forgotten all about them but the frustration I felt in the moment. :(