If I have a simple C# 4.8 application and I wanted to add a way to feed it instructions remotely, how would I do that? This will be a program running fullscreen that needs full control of the mouse/keyboard.
All API tutorials I can find either describe .NET Core or controller options I do not have available because this is a basic project.
In this post I describe a Rosyln analyzer you can use to enforce that primary constructors are only used for initialization and never to capture as fields
C’è qualche novità per il web, nell’ambiente dei giochi C# e .NET. Già la roba fatta con quelle tecnologie poteva girare da anni sul web eh, ma… non farò finta di sapere cose che non so (non uso nessuna delle due tecnologie), ma ciò che voglio dire è che i gaymers sono passati all’attacco; ora pare esserci qualche risorsa in più, tipo FNA.WASM.Sample, che fa vedere come portare a WASM un gioco fatto con FNA-XNA. 🤔️
Quindi? Beh, un’idea venuta a caso la settimana scorsa era “cosa se portassi Celeste al browser?“, ma non ho poi fatto nulla, presa da altre cose. Volevo quasi quasi iniziare stamane, ma giusto per scrupolo cerco di nuovo sul web “celeste wasm”, sia mai che la volta scorsa mi era sfuggito qualcosa. E, nell’arco di precisamente questa settimana, non so se mi hanno letto nel pensiero o spiato spacctorium, ma hanno effettivamente iniziato e finito il fottutissimo celeste-wasm. Un po’ mi rode, ma meglio così, ho più tempo per altre imprese. 🤯️
Già a dir poco godurioso, ma qualcosa da sistemare rimane, tant’è che mi sono permessadi aprire la issue #1 per consigliare compressione e streaming degli asset. Vi invito a provare direttamente su https://celeste.r58playz.dev, ma per copyright hanno fatto che gli asset sono criptati e bisogna dare un file da un’installazione di Celeste per decifrarli… se vi serve, non lo linko, ma l’ho caricato sull’homeserver come altre volte, e se ravanate lo trovate. 👾️https://octospacc.altervista.org/2024/05/25/gayming-web/
Stay updated with the latest network programming knowledge in #CSharp and #DotNet! 📚 Check out the new RSS feed for "Beyond Boundaries - Networking Programming with C# 12 and .NET 8" for tips, updates, and expert insights.
Today, I wasted 2 hours debugging what I thought was very odd behaviour in #csharp until I learned that async Task and async void are two very different things, and now I am very angry about async void. Was about to ban its usage entirely, but this SO article was helpful in explaining how it can be useful and not just a foot-gun
I have used the vk.xml registry & parsed the man docs to generate a complete Vulkan API with intellisense! 🚀
I took also the opportunity to add overloads in/out parameters, ReadOnlySpan/Spans and make optional params with default value. Lots of codegen, but that was worth it 😎
The vulkan_core.generated.cs is over 90,000 lines of C# code 🙈
Next step: Bare metal Vulkan C# NativeAOT on top of the Linux kernel + libdrm 😱
That’s often what #rustlang feels like. I started learning C in the late 80s and BASIC before that. Since then I’ve become an expert in several languages and proficient in several others. I’m an experienced #polyglot and though the rust compiler is by far the most helpful - and pushing other compilers to improve - there’s a lot of sharp edges in the grammar itself. Some other polyglots I’m getting into the language agree.
@ekuber totally agree. But when we’re ready, I haven’t seen any good sources for guidance about perf. Flame graphs are nice, but knowing what to do first to avoid most problems - or how to fix code after finding problems - is important. #csharp, for example, has a lot of authoritative articles on performance, going into details of spans and such.
Cross-platform, cross-language development is quite tedious... 🙃
You need to wait for builds to finish, then test on three different OS with different ways to load things.
At least with a Windows machine, you get a Linux environment via WSL2 for free, although it doesn't launch via dotnet run.
And finally you also need access to macOS somehow.
This is detailed, step-by-step instructions of getting this set up, with screenshots to help with commands and outcomes. An "idiot's guide" if you like, because I was that idiot.
For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0. #csharp#dotnet
I'm working on chapters 7 and 8 of the C# Networking Book. I hope to have Chapter 7, Data Serialization Techniques, out early next week and Chapter 8, Network Performance Optimization, out the following week.
With Chapter 8 finished, I will have the basics done.