dotnet/runtime
View on GitHub ↗ ★ 18,406 C#
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
335 mentions on Hacker News by 195 people: 30 stories, 305 comments · first 2019-12-06 · latest 2026-09-21
20082026
-
I do love one bot asking another bot to sign a CLA! - https://github.com/dotnet/runtime/pull/115732#issuecomment-2...
comment by Crosseye_Jack · 2025-05-21 · in Watching AI drive Microsoft employees insane -
…what you're telling them, and have 0 agency to understand what they're actually doing. Another PR: https://github.com/dotnet/runtime/pull/115732/files How are people reviewing that? 90% of the page height is taken up by "Check failure",…
comment by diggan · 2025-05-21 · in Watching AI drive Microsoft employees insane -
Unfortunately, those improvements don't work for Linq. Some notes on why this is so here: https://github.com/dotnet/runtime/blob/main/docs/design/core...
comment by andyayers · 2025-05-21 · in “ZLinq”, a Zero-Allocation LINQ Library for .NET -
I don't see why not: https://github.com/dotnet/runtime/pulls There's an official process for API change requests: https://github.com/dotnet/runtime/blob/main/docs/project/api...
comment by bob1029 · 2025-05-20 · in “ZLinq”, a Zero-Allocation LINQ Library for .NET -
…algorithms.tech/a-sub-millisecond-gc-fo... Long discussion thread with many graphs with measurements: https://github.com/dotnet/runtime/discussions/115627 I don’t yet have hands-on experience with that Satori GC, though.
comment by Const-me · 2025-05-20 · in Making video games (without an engine) in 2025 -
Some example PRs if people want to look: https://github.com/dotnet/runtime/pull/115733 https://github.com/dotnet/runtime/pull/115732 https://github.com/dotnet/runtime/pull/115762
comment by bencyoung · 2025-05-20 · in GitHub Copilot Coding Agent -
…(Linux leads with 77% of all systems invoking .NET CLI commands) https://github.com/dotnet/runtime/blob/main/src/libraries/Sy... (first-class epoll/kqueue integration with async, much like the one Go has with goroutines via
comment by neonsunset · 2025-05-18 · in Java at 30: Interview with James Gosling -
…state we are in. We will keep eye on wasm GC in the future." edit: found a more concrete statement https://github.com/dotnet/runtime/issues/94420
comment by chris_pie · 2025-05-17 · in Popcorn: Run Elixir in WASM -
…over the years to reduce the impact of this problem. The latest tweak that will be in .NET 10: https://github.com/dotnet/runtime/pull/112796 I’m not sure a thread pool implementation can immune to misuse (many tasks that synchronously…
comment by MarkSweep · 2025-05-16 · in Java at 30: Interview with James Gosling -
…examples. HttpClient one prime example and you can see the back and forth here internally from MS: https://github.com/dotnet/runtime/issues/32125 This snippet of code or something like it has been used in countless libraries to try and…
comment by SigmundA · 2025-05-16 · in Show HN: Visual flow-based programming for Erlang, inspired by Node-RED -
…compiler itself iff the asynchronous execution suspends, and will be otherwise practically free. https://github.com/dotnet/runtime/blob/main/docs/design/spec... Mind you, short-lived operations are much cheaper with stackless co-routine…
comment by neonsunset · 2025-05-16 · in Show HN: Visual flow-based programming for Erlang, inspired by Node-RED -
…does not need it so you need to reach out for platform-specific intrinsics to work around it. [0]: https://github.com/dotnet/runtime/issues/108902
comment by neonsunset · 2025-05-14 · in Flattening Rust’s learning curve -
…pause time without significantly damaging throughput The new GC is introduced in this comment: https://github.com/dotnet/runtime/issues/96213#issuecomment-...
comment by algorithmsRcool · 2025-05-09 · in Pauseless Garbage Collector -
…by the org or its culture in any way, if anything, it happens despite it. [0]: For example https://github.com/dotnet/runtime/issues/114024
comment by neonsunset · 2025-04-17 · in The Atari 1200XL fiasco -
…that will wait for the GC to finish. The thread is then immediately resumed. See the details here: https://github.com/dotnet/runtime/blob/main/docs/design/core... > Now imagine multiple of those runtimes running in the same process. Can…
comment by MarkSweep · 2025-04-16 · in The case of the UI thread that hung in a kernel call -
…how far they are into the dragon's den until they need to start serializing their object graphs. https://github.com/dotnet/runtime/issues/29900
comment by bob1029 · 2025-04-09 · in The best programmers I know -
…spends a bit of overhead in order to let it use that exact same call when feasible: https://github.com/dotnet/runtime/blob/v9.0.3/src/libraries/...
comment by airybreath · 2025-04-02 · in Span<T>.SequenceEquals is faster than memcmp -
…lowest common denominator was chosen at the moment of publishing the application or library. Anyway https://github.com/dotnet/runtime/blob/main/src/libraries/Sy... https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...…
comment by neonsunset · 2025-03-31 · in Span<T>.SequenceEquals is faster than memcmp -
…factors at play. Here's the document that roughly outlines the tiered compilation and DPGO flows: https://github.com/dotnet/runtime/blob/main/docs/design/feat... note that it may be slightly dated since the exact tuning is subject to…
comment by neonsunset · 2025-03-31 · in Span<T>.SequenceEquals is faster than memcmp -
…it was an interaction between microbenchmark algorithm and tiered compilation and not a regression. https://github.com/dotnet/runtime/issues/114047#issuecomment...
comment by neonsunset · 2025-03-31 · in Span<T>.SequenceEquals is faster than memcmp -
…comparable primitive i.e. int, long, char, etc. The logic which decides which path to use is here https://github.com/dotnet/runtime/blob/main/src/libraries/Sy... and here https://github.com/dotnet/runtime/blob/main/src/coreclr/tool...…
comment by neonsunset · 2025-03-30 · in Span<T>.SequenceEquals is faster than memcmp -
I did some digging, and found that SequenceEquals is heavily optimized for when T = Byte: https://github.com/dotnet/runtime/blob/454673e1d6da406775064... Does memcmp do all of these things? Is msvcrt.dll checking at runtime which…
comment by OptionOfT · 2025-03-30 · in Span<T>.SequenceEquals is faster than memcmp -
No problem, I've raised the issue as https://github.com/dotnet/runtime/issues/114047 .
comment by xnorswap · 2025-03-30 · in Span<T>.SequenceEquals is faster than memcmp -
…here is the distinct() implementation in the most abstraction-happy language that I know - C# https://github.com/dotnet/runtime/blob/main/src%2Flibraries%... It unconditionally uses a hashset regardless of input. Edit: found an example…
comment by porridgeraisin · 2025-03-12 · in What makes code hard to read: Visual patterns of complexity (2023) -
…have RISC-V architecture support in some sense due to a pull request by a Samsung engineer. https://github.com/dotnet/runtime/pull/82382 From a technical standpoint, there's no reason Windows couldn't be brought to RISC-V in some form or…
comment by p_ing · 2025-03-04 · in Windows NT for GameCube/Wii -
…least, speculation on types seems beneficial even if we're only right maybe 30% of the time. See eg https://github.com/dotnet/runtime/blob/main/docs/design/core... (where this is presented as a puzzle)....
comment by andyayers · 2025-03-03 · in An Attempt to Catch Up with JIT Compilers -
…of the problems: https://github.com/WebAssembly/gc/issues/77 Further discussion can be found here: https://github.com/dotnet/runtime/issues/94420 Turning off destructors will not help even a little because the biggest pain points are…
comment by neonsunset · 2025-02-25 · in Ask HN: A retrofitted C dialect? -
…then apply it to subsequent compilations, and also emit a guard when doing dispatch on those. [0]: https://github.com/dotnet/runtime/blob/main/docs/design/core... (note - subject to change)
comment by neonsunset · 2025-02-03 · in Inheritance and Subtyping -
…defined at the bottom. [1]: https://blog.stephencleary.com/2022/10/modern-csharp-techniq... [2]: https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
comment by MarkSweep · 2025-01-28 · in BrainFlood: Runtime code generation via reflection in .NET -
…is source controlled side-by-side with most of the BCL, including almost all of System.**: https://github.com/dotnet/runtime/tree/main/src/libraries (There are some of Microsoft.Extensions that exist outside of dotnet/runtime in…
comment by WorldMaker · 2025-01-06 · in Show HN: LogLayer – Unified logger that routes logs to various logging libraries -
…release, it will be able to inline F# lambdas even if expansion does not happen at IL level: https://github.com/dotnet/runtime/issues/110290 NB: auto-vectorization is extremely fragile even with LLVM and kicks in only in simple scenarios,…
comment by neonsunset · 2024-12-12 · in The humble for loop in Rust -
…C# has not a complete SIMD support. See our request to support the SSE4.2 _mm_cmpistrm instruction https://github.com/dotnet/runtime/discussions/63332 , which we required for a vectorized intersection between two sorted 16-bit arrays. We…
comment by wolfgarbe · 2024-12-02 · in Show HN: SeekStorm – open-source sub-millisecond search in Rust -
….NET Framework. Modern .NET has a special case for passing a List<Task> and avoids the allocation: https://github.com/dotnet/runtime/blob/1f01bee2a41e0df97089f...
comment by MarkSweep · 2024-11-29 · in How much memory do you need in 2024 to run 1M concurrent tasks? -
…link above leads to old code from .NET Framework. The up-to-date .NET implementation lives here: https://github.com/dotnet/runtime/blob/main/src/libraries/Sy...
comment by neonsunset · 2024-11-29 · in How much memory do you need in 2024 to run 1M concurrent tasks? -
…and not require the users to write their own libraries to patch this out. For example: https://github.com/dotnet/runtime/pull/99508 (alternatively, the goroutine runtime could have been made auto-scalable which would have reduced the…
comment by neonsunset · 2024-11-26 · in Go Production Performance Gotcha – GOMAXPROCS -
If you're interested, here's the overview of planned compiler work for .NET 10: https://github.com/dotnet/runtime/issues/108988 Autovectorization is usually very fragile and in areas where you care about it hand-written implementation…
comment by neonsunset · 2024-11-25 · in The two factions of C++ -
…any performance (though sometimes you have to make different choices to make the compiler happy). https://github.com/dotnet/runtime/blob/main/docs/coding-guid...
comment by neonsunset · 2024-11-25 · in The two factions of C++ -
…could be very beneficial, including the EA which is why it is planned to work on it in .NET 10: - https://github.com/dotnet/runtime/issues/108931 IPA framework - https://github.com/dotnet/runtime/issues/104936 Stack allocation enhancements
comment by neonsunset · 2024-11-24 · in Mark–Scavenge: Waiting for Trash to Take Itself Out -
…[1] https://github.com/dotnet/aspnetcore/issues/36978#issuecomme... https://github.com/dotnet/runtime/issues/80807
comment by ethbr1 · 2024-11-16 · in Uno Platform Studio: GUI Designer for Cross-Platform .NET Applications -
…be considered somewhat significant. https://learn.microsoft.com/en-us/dotnet/csharp/language-ref... https://github.com/dotnet/runtime/issues/34800 https://github.com/dotnet/runtime/issues/34812
comment by bob1029 · 2024-11-13 · in .NET 9 Is Out -
…duration, this may be undesirable. It might be more useful to use OSU! approach as a reference: https://github.com/dotnet/runtime/issues/96213#issuecomment-... OSU! represents an extreme case where the main game loop runs at 1000hz, so for…
comment by neonsunset · 2024-10-31 · in A comparison of Rust’s borrow checker to the one in C# -
…x86, x86_64, ARMv6, ARMv7, ARMv8/ARM64, s390x, WASM Notes: Mono as referred here means https://github.com/dotnet/runtime/tree/main/src/mono which is an actively maintained runtime flavor, alongside CoreCLR. - Application development…
comment by neonsunset · 2024-10-31 · in A comparison of Rust’s borrow checker to the one in C# -
….NET differs from the publish ECMA spec. Some of these differences represent new runtime features. https://github.com/dotnet/runtime/blob/main/docs/design/spec...
comment by MarkSweep · 2024-10-31 · in A comparison of Rust’s borrow checker to the one in C# -
…https://v8.dev/blog/wasm-gc-porting But languages like C# want more features in WasmGC: https://github.com/dotnet/runtime/issues/94420 No direct DOM access yet. You still have to use JavaScript glue code to get at the DOM.
comment by peutetre · 2024-10-26 · in Should JavaScript be split into two languages? -
…I'm on the fence about whether I should learn Go or Rust while I am on a short employment break. 1. https://github.com/dotnet/runtime/issues/27761
comment by Nuzzerino · 2024-10-23 · in Show HN: Rust Web Framework -
…safety issues like it happens in C/C++. You can read more on its low-level memory model here: https://github.com/dotnet/runtime/blob/main/docs/design/spec... > The same is true for async, which in C# is also a problem. Now, this one is…
comment by neonsunset · 2024-10-14 · in Embedded Rust in Production? -
…object reference assignment having release semantics, so quite a few footguns are luckily avoided: https://github.com/dotnet/runtime/blob/main/docs/design/spec... '&' and '&mut', however, are your 'ref readonly' and 'ref' respectively.
comment by neonsunset · 2024-10-10 · in Mozilla fixes Firefox zero-day actively exploited in attacks -
> RISC-V The work is underway: https://github.com/dotnet/runtime/pulls?q=label%3Aarch-riscv > Nvidia's PTX, AMD https://ilgpu.net/ and even https://github.com/m4rs-mt/ILGPU/blob/c3af8f368445d8e6443f36... While not PTX, there's also this…
comment by neonsunset · 2024-10-10 · in My negative views on Rust (2023) -
…at ensuring that shortest way to express something is also the fastest whenever possible. [0]: https://github.com/dotnet/runtime/blob/main/src/libraries/Sy... [1]: https://godbolt.org/z/srfWE9qcE (the >100x figure is not an exaggeration)
comment by neonsunset · 2024-10-08 · in What's New in Ruby on Rails 8 -
Also supported in .NET 9 * https://devblogs.microsoft.com/dotnet/performance-improvemen... * https://github.com/dotnet/runtime/pull/91227
comment by icelusxl · 2024-10-07 · in AVX Bitwise ternary logic instruction busted