devblogs.microsoft.com/dotnet/impro...
devblogs.microsoft.com/dotnet/impro...
https://startdebugging.net/2026/06/what-is-span-and-when-does-it-make-my-code-faster/?utm_source=bluesky&utm_medium=social&utm_campaign=auto
https://startdebugging.net/2026/06/what-is-span-and-when-does-it-make-my-code-faster/?utm_source=bluesky&utm_medium=social&utm_campaign=auto
I saw this awesome blog that shows how powerful C# can get almost like C/C++
It dives deep into Span
Really interesting read!
#CSharp #GameDev #DotNet
Great episode on knowing when you need the chainsaw and when you don't 🎯
🔗
Great episode on knowing when you need the chainsaw and when you don't 🎯
🔗
CVE ID : CVE-2026-44375
Published : May 14, 2026, 3:16 p.m. | 1 hour, 14 minutes ago
Description : Nerdbank.MessagePack is a Nativ...
CVE ID : CVE-2026-44375
Published : May 14, 2026, 3:16 p.m. | 1 hour, 14 minutes ago
Description : Nerdbank.MessagePack is a Nativ...
🎧 New episode of The Modern .NET Show!
Szymon Kulec joins me for a deep dive into systems programming in .NET: profiling, benchmarking, and the rare cases where unsafe code is justified.
🔗
🎧 New episode of The Modern .NET Show!
Szymon Kulec joins me for a deep dive into systems programming in .NET: profiling, benchmarking, and the rare cases where unsafe code is justified.
🔗
👉 Listen: buff.ly/FPSZdW0
👉 Listen: buff.ly/FPSZdW0
Szymon Kulec joins me for a deep dive into systems programming in .NET: profiling, benchmarking, and the rare cases where unsafe code is justified.
🔗 dotnetcore.show/season-8/measure-twice-cut-once-benchmarking-hot-paths-and-the-chainsaw-of-unsafe-code-with-szymon-kulec/
Szymon Kulec joins me for a deep dive into systems programming in .NET: profiling, benchmarking, and the rare cases where unsafe code is justified.
🔗 dotnetcore.show/season-8/measure-twice-cut-once-benchmarking-hot-paths-and-the-chainsaw-of-unsafe-code-with-szymon-kulec/
Szymon Kulec joins Jamie to explore systems programming in .NET: profiling with dotTrace, micro-benchmarking with BenchmarkDotNet, taking ownership of memory with stackalloc and refs, and k
Szymon Kulec joins Jamie to explore systems programming in .NET: profiling with dotTrace, micro-benchmarking with BenchmarkDotNet, taking ownership of memory with stackalloc and refs, and k
Read → ift.tt/2mz8B1E
Read → ift.tt/2mz8B1E
(started on punch cards in 70s on a 120 baud (no ks, or ms) acoustic coupler modem in high school.
(started on punch cards in 70s on a 120 baud (no ks, or ms) acoustic coupler modem in high school.
Sorry if this is a stupid question, but: can you alloc multiple points in a single contiguous block (ie like an array of structs in C)? This is something that's missing from Haxe and it's pretty annoying. :/
Sorry if this is a stupid question, but: can you alloc multiple points in a single contiguous block (ie like an array of structs in C)? This is something that's missing from Haxe and it's pretty annoying. :/
any time I hear someone say "the garbage collector slows things down too much" I feel like they're not aware of just how many tools you have to avoid heap allocations
it seems to me whatever work that entails, it's almost always less work than using an unmanaged language
any time I hear someone say "the garbage collector slows things down too much" I feel like they're not aware of just how many tools you have to avoid heap allocations
it seems to me whatever work that entails, it's almost always less work than using an unmanaged language
C#:バイナリ操作でよく使うAPIたち
この記事では、C#でバイナリ操作を行う際に役立つ様々なAPIを紹介しています。
メモリの確保と解放、エンディアンを指定した値の読み書き、Spanを使った効率的な操作、アラインメント対応、高速な連続領域コピーなどが解説されています。
また、System.IO.Pipelinesなどを用いた高パフォーマンスなI/O関連のAPIも紹介されており、効率的なバイナリ処理の実装に貢献する情報がまとめられています。
C#:バイナリ操作でよく使うAPIたち
この記事では、C#でバイナリ操作を行う際に役立つ様々なAPIを紹介しています。
メモリの確保と解放、エンディアンを指定した値の読み書き、Spanを使った効率的な操作、アラインメント対応、高速な連続領域コピーなどが解説されています。
また、System.IO.Pipelinesなどを用いた高パフォーマンスなI/O関連のAPIも紹介されており、効率的なバイナリ処理の実装に貢献する情報がまとめられています。
C# でバイナリ操作を行う際によく使う API をまとめています。 確保/解放 スタック領域を確保 stackalloc でスタック領域にバッファを確保します。この確保・解放コストは非常に低く抑えられます。 Span buffer = stackalloc byte; スタック領域の大きさは実行環境や実装によりますが、例えば Windows ではスレッドあたり1MBとかになります。stackalloc での確保量が大きいと、メソッド呼び出しの深さなどによってはスタックオーバーフローを起こす可能性があるので注意が必要です。…
C# でバイナリ操作を行う際によく使う API をまとめています。 確保/解放 スタック領域を確保 stackalloc でスタック領域にバッファを確保します。この確保・解放コストは非常に低く抑えられます。 Span buffer = stackalloc byte; スタック領域の大きさは実行環境や実装によりますが、例えば Windows ではスレッドあたり1MBとかになります。stackalloc での確保量が大きいと、メソッド呼び出しの深さなどによってはスタックオーバーフローを起こす可能性があるので注意が必要です。…
C# lets you do low-level operations with fields that are hard or impossible with properties: e.g., ref locals and ref returns, stackalloc scenarios, custom memory layout (StructLayout), pinning, etc
C# lets you do low-level operations with fields that are hard or impossible with properties: e.g., ref locals and ref returns, stackalloc scenarios, custom memory layout (StructLayout), pinning, etc
Mas no código do CLR, por exemplo, tá cheio. No aspnet core, também. No EF Core... E por aí vai.
Mas no código do CLR, por exemplo, tá cheio. No aspnet core, também. No EF Core... E por aí vai.