khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I updated the Hydro sample to use for anyone interested in seeing the sample with a persistence layer implemented.

It’s pretty nice, actually, especially with 12 features.

https://github.com/hydrostack/hydro-todo/pull/2

Ciantic, (edited ) to CSharp
@Ciantic@twit.social avatar

C# 13 is adding the ability to make extensions properties, this means we can build a scientific units library or financial units library with the nice syntax:

(15.mm + 12.inch) / 12.sec

or

(15.eur + 1200.dollars) / 12.months

Will be (most likely) a valid syntax by adding extension properties mm, inch, sec, kg for integers.

https://www.youtube.com/watch?v=O3hx6oPWzX8

#csharp #dotnet

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I still don’t understand why extension method implementations are limited to static class containers.

nietras, to dotnet
@nietras@mastodon.social avatar

New blog post "Phi-3-vision in 50 lines of C# with ONNX Runtime GenAI"
👇
https://nietras.com/2024/06/05/phi-3-vision-csharp-ortgenai/

Phi-3-vision is multi-modal and supports image + text inputs.

video/mp4

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I noticed that the #dotnet #stateless library is publishing new packages again. In honor of its revival, here is a lightswitch example written in #csharp. 💡

Toggling a lightswitch workflow on and off

khalidabuhakmeh, to unity
@khalidabuhakmeh@mastodon.social avatar

This livestream will live on in the halls of Valhalla for eternity… or as long as YouTube is around.

Come join this #JetBrainsRider #Unity livestream and see how to improve your #gamedev workflows and build custom UIs for your designers with a few #csharp attributes thanks to #Odin.

🙏 Boosts appreciated #dotnet

https://www.youtube.com/watch?v=iyvs0U3jDHA

jonspark, to CSharp
@jonspark@howdee.social avatar

Is C# development still tied to Windows? It's been a very long time since I looked and I’m curious what people's preferred development environment is…?

ggmueller,
@ggmueller@mastodon.social avatar

@jonspark Been developing for 2 years exclusively on Linux (PopOS) now.

Works very good for backend development, deploying via

is my IDE of choice on Linux.

alvinashcraft, to dotnet
@alvinashcraft@hachyderm.io avatar

Building Linux Desktops apps with .NET and Uno Platform | On .NET with James Montemagno.


https://www.youtube.com/watch?v=OxyJYF2HgBM&ab_channel=dotnet

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

How to indent? (also has switched parameter orders, part of the experiment)
(Poll in next Toot)

nicola, to dotnet
@nicola@fosstodon.org avatar

Today, I learned how to handle custom claims in an Open ID Connect-authenticated ASP.NET Core app.

https://nicolaiarocci.com/how-to-handle-custom-claims-in-an-oidc-authenticated-aspnet-core-app/

arialdo, to CSharp
@arialdo@mastodon.online avatar

Apparently, the fastest way to check if an enumerable contains at least 2 elements in is:

xs.Skip(2).Any()

Unbelievably faster than:

xs.Take(2).Count() == 2

or a foreach list with a counter.

alvinashcraft, to dotnet
@alvinashcraft@hachyderm.io avatar

Building .NET apps for Linux from any operating system with @UnoPlatform.


https://platform.uno/blog/building-net-apps-for-linux-from-any-operating-system/

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

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 🦊💫

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/

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 #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

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 #Java #Kotlin #Android #Csharp
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

#fedihiring #fedijobs #forhire #getfedihired #hireme #jobs #jobsearch #jobseeker #lookingforwork #opentowork

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 😱

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