infoq, to CSharp
@infoq@techhub.social avatar

13 is here in preview!

Microsoft unveils notable updates including params parameter improvements, new extension types, and several performance and memory enhancements.

Dive into the details on 👉 https://bit.ly/4aHKuQJ

Turious, to dotnet
@Turious@mastodon.social avatar

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.

bradwilson, (edited ) to dotnet
@bradwilson@mastodon.social avatar

This is super duper extra important.

C# Nullable Reference Types are a compile-time thing, not a runtime thing. "string?" and "string" are both just "string" at runtime.

This means:

  • Always guard against your users passing null even for types that shouldn't allow it, because it's not a runtime guarantee.

  • You can't create overloads that differ only on nullability (i.e., Method(string) vs. Method(string?)) because they're the same type at runtime.

andrewlock, to dotnet
@andrewlock@hachyderm.io avatar

Blogged: Blocking primary constructor member capture using a Roslyn Analyzer

https://andrewlock.net/blocking-primary-constructor-member-capture-using-an-analyzer/

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

#dotnet #csharp

maegul, to CSharp
@maegul@hachyderm.io avatar

Iceshrimp: A #csharp fediverse platform

Was just told (by @Subversivo ) about this: https://iceshrimp.dev/iceshrimp/iceshrimp.net

#Iceshrimp are rewriting the whole thing (a JS/Node #misskey / #firefish fork) in C# with Blazor for the frontend.

Cool to see. Should handle the performance issues that have plagued the *key forks and maybe provide a new general branch of fediverse platform.

What lang/stack isn't represented on the fediverse now? C++, Kotlin?

@fediverse
@fediversenews

jupiter, to gamedev
@jupiter@mastodon.gamedev.place avatar

"Final" state of the N-Body-Problem demo of my FOSS Entity-Component System, https://fennecs.tech 🦊💫

#GameDev #3BodyProblem #ScreenshotSunday #GodotEngine #Csharp

glowy simulations of 2, 3, 4, and 5 star systems, stylized in a demo for a game Engine. The title reads "N-BODY PROBLEM", and there's a logo of a fox stylized as a lightning bolt in the center. An FPS counter reads values at around 500 fps for 100 parallel simulations. A larger block of text reads: This demo showcases the power of fennecs Entity-Entity relations in solving a common ECS challenge: managing N:N relationships efficiently. The renowned 3-Body-Problem demonstrates that even slight variations in initial conditions can lead to dramatically different and chaotic outcomes in systems with three or more interacting bodies. With fennecs, multiple Entities can interact with each other seamlessly, enabling complex behaviors such as flocking, leader-following, and grouping by spheres of influence. The framework achieves this while maintaining good cache coherence, memory locality, and optimal iteration order. Each colored cluster represents a small, self-contained clique where 2, 3, 4, or 5 stars (Entities) have relationships with all other Entities within the same group, forming a distinct Archetype. All simulations coexist harmoniously and interactions are driven by the same runner passed to a single Query, ensuring each Entity is processed exactly once for each other Entity it interacts with. The two other Queries then simply integrate the calculated forces into movement and position.

minioctt, to random Italian

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 permessa di 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/

#browser #Celeste #Celeste2018 #csharp #dotnet #EXOKGames #FNA #gaming #porting #WASM #web

xunit, to dotnet
@xunit@dotnet.social avatar

We just shipped v2 Core Framework 2.8.1, Analyzers 1.14.0, and Visual Studio adapter 2.8.1.

Release notes:

https://xunit.net/releases/v2/2.8.1
https://xunit.net/releases/analyzers/1.14.0
https://xunit.net/releases/visualstudio/2.8.1

#dotnet #csharp #fsharp #unittest #tdd

cwoodruff, to CSharp
@cwoodruff@mastodon.social avatar

Stay updated with the latest network programming knowledge in and ! 📚 Check out the new RSS feed for "Beyond Boundaries - Networking Programming with C# 12 and .NET 8" for tips, updates, and expert insights.

Follow along at https://rssviewer.app/https%3A%2F%2Frss.app%2Ffeeds%2FvKGL7EwYiW9kGoW4.xml

eldamir, to CSharp
@eldamir@hachyderm.io avatar

Today, I wasted 2 hours debugging what I thought was very odd behaviour in 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

https://stackoverflow.com/questions/12144077/async-await-when-to-return-a-task-vs-void

taurus, to Java
@taurus@thicc.horse avatar

:boost_anim_vanilla: Hi, I'm in need of employment and perhaps you or someone you know is in need of me:

I'm a software developer w/ 7 years professional experience
Mostly
During my B.Sc. i had stellar grades.

(!) I'm only available in part time due to my health

I have experience working remote.
I'm located near Hannover, DE.
CV available upon request

xoofx, to dotnet
@xoofx@mastodon.social avatar

Just updated my Vulkan bindings https://github.com/XenoAtom/XenoAtom.Interop/tree/main/src/vulkan

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 😱

heaths, to rust
@heaths@fosstodon.org avatar

“Dev by a thousand cuts”

That’s often what 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 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.

heaths,
@heaths@fosstodon.org avatar

@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.

xoofx, to unity
@xoofx@mastodon.social avatar

Somes folks have been wondering what is happening with the .NET Modernization in Unity and the migration to .NET 8 and CoreCLR, so here is an update https://forum.unity.com/threads/unity-future-net-development-status.1092205/page-54#post-9848724 🤗

#unity #unity3d #dotnet #csharp

heaths, to CSharp
@heaths@fosstodon.org avatar
khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

Extension types for FINALLY!

I can create extension properties that feel natural in code.

maartenballiauw, to dotnet
@maartenballiauw@mastodon.online avatar

A fresh live stream is coming up! Oren Eini will be joining us:

📺 Building a Database Engine in C# and .NET
🗣 Speaker: Oren Eini

📅 Jun 18, Tue, 8pm EDT / 10am AEST / 5pm PDT
🤗 Open to all, welcome!

#dotnet #csharp #ravendb
https://blog.jetbrains.com/dotnet/2024/05/16/oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream/?utm_medium=social&utm_source=mastodon&utm_campaign=oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream

xoofx, to dotnet
@xoofx@mastodon.social avatar

Just released https://github.com/XenoAtom/XenoAtom.Interop providing a set of low-level and modern .NET P/Invoke for several C/C++ libraries (musl, libgit2, sqlite, zlib...) 🚀

After SharpDX 15 years ago, this is probably the most advanced interop codegen I have made in the past years. 😎

Early preview! Still no doc, but lots of cool stuffs there!

#dotnet #csharp

darkcisum, to cpp
@darkcisum@swiss.social avatar

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.

But it's quite satisfying seeing the library build automatically on all the different configurations: https://github.com/SFML/CSFML/pull/249

#c

anthony_steele, to CSharp
@anthony_steele@dotnet.social avatar

Automating in code on commit with format, and .NET

https://www.anthonysteele.co.uk/HuskyAutoformat

When I wrote this about a month ago, I didn't geta round to linking it from the index https://www.anthonysteele.co.uk/

So, now I have.

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.

nietras, to dotnet
@nietras@mastodon.social avatar

What options are there to improve Parallel.For runs when WorkerThreadStart is taking 70% of CPU usage?

#dotnet #csharp

jukka, to CSharp
@jukka@dotnet.social avatar

Just saw this C# rule, and I have to say I disagree: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1860

For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0.

poppastring, to CSharp
@poppastring@dotnet.social avatar

NuGet Commands in C# Dev Kit -

You can now manage your NuGet packages directly from Visual Studio Code using the new commands in the command palette.

:vscode: :csharp:

https://devblogs.microsoft.com/nuget/announcing-nuget-commands-in-c-dev-kit/

andrewlock, to CSharp
@andrewlock@hachyderm.io avatar

Blogged: An introduction to primary constructors in C#12

https://andrewlock.net/an-introduction-to-primary-constructors-in-csharp-12/

In this post I introduce C#12 primary constructors, describe the various ways to use them and how they work behind the scenes.

cwoodruff, to CSharp
@cwoodruff@mastodon.social avatar

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.

https://csharp-networking.com/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • thenastyranch
  • ngwrru68w68
  • magazineikmin
  • khanakhh
  • rosin
  • mdbf
  • Youngstown
  • slotface
  • everett
  • cisconetworking
  • kavyap
  • DreamBathrooms
  • anitta
  • InstantRegret
  • Durango
  • osvaldo12
  • ethstaker
  • modclub
  • GTA5RPClips
  • Leos
  • cubers
  • tester
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines