Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
neonsunset
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
neonsunset
1y ago
Perhaps wasn't available at the time? It has remained relatively little known to teams that lived comfortably within WPF for years, luckily it's changing. .NET's GUI situation is a mess but Avalonia and Uno make it quite sane
32.
▲
by
neonsunset
1y ago
Avalonia would have been a far, far better option.
33.
▲
by
neonsunset
1y ago
FWIW Tiered Compilation has been enabled on by default since .NET Core 3.1. If the code tries to use refection to mutate static readonly fields and fails, it's the fault of that code.
34.
▲
by
neonsunset
1y ago
No, slices in Go are more akin to ArraySegment but with resizing/copy-on-append. It does not have the same `byref` mechanism .NET supports, which can reference arbitrary memory (GC-owned or otherwise) in a unified way as a single (spec
35.
▲
by
neonsunset
1y ago
In C# nothing stops you from doing `var t = Task.Run(() => ExpensiveButSynchronous());` and then `await`ing it later. Not that uncommon for firing off known long operations to have some other threadpool thread deal with it. Unless you li
36.
▲
by
neonsunset
1y ago
Don't bother: https://news.ycombinator.com/item?id=43396171 These people could not care less about engaging with the subject, they are here because they feel obliged to engage in a moment of hatred of what they think i
37.
▲
by
neonsunset
1y ago
We've had this conversation before, it's likely a waste to reply but, well, my mistake. For those interested as to why: https://news.ycombinator.com/item?id=43396171 A few more arguments while we're at it: h
38.
▲
by
neonsunset
1y ago
using var stream = GetStream(); does not introduce new (lexical) scope, avoiding use means that the type system either has to understand move semantics (in case the stream is returned or move elsewhere, but then, what about sharing?) or hav
39.
▲
by
neonsunset
1y ago
Wait, what? The => operator is just for lambdas, short-form returns and switch expression arms, which is as common as it gets! Have you never worked with any other language which lets you do these? var say = (string s) => Consol
40.
▲
by
neonsunset
1y ago
> parts of the more modern C# is also a confusing mess Do you have any examples?
41.
▲
by
neonsunset
1y ago
Same here. And I’m not aware of quality issues with GxHash either. For large(r) inputs I’d expect it to be easily competitive. And it’s better than XXH3 on my M4.
42.
▲
by
neonsunset
1y ago
If whatever you are doing is heavy on hashmap lookups (and you are ok with not rewriting into something more bespoke+complicated) - the faster hash function and the cheaper baseline cost of calling it - the better (i.e. XXH3 can have disadv
43.
▲
by
neonsunset
1y ago
Let's revisit past conversations: - https://news.ycombinator.com/item?id=43226624 - https://news.ycombinator.com/item?id=43584056 - https://news.ycombinator.com/item?id=36736326 And mo
44.
▲
by
neonsunset
1y ago
Quite a few languages "loved" by "Linux communities" tend to have rather rudimentary integration with Linux kernel's facilities or worse packaging story. For example, Go does not understand cgroups limits and needs
45.
▲
by
neonsunset
1y ago
Most of the features that require Apache or community packages in Java ship out of box in .NET (or via extension packages). They also tend to be of higher quality and provide better performance.
46.
▲
by
neonsunset
1y ago
IIRC all previous conversations about checked exceptions here ended up with the swift conclusion that they are heavily discouraged throughout Java code.
47.
▲
by
neonsunset
1y ago
I suppose the difference of opinion comes down to whether you consider hiding side effects a good or a bad thing. And whether you want to have easy composition and cancellation (Go struggles with passing context around a lot, in .NET it
48.
▲
by
neonsunset
1y ago
Usually dual APIs are offered when they do distinctly different things. Async calls on Socket go through epoll/kqueue via SocketAsyncEngine, which has observably different behavior to regular sockets. There is no such duality in high-l
49.
▲
by
neonsunset
1y ago
In the end, .NET is going hybrid route. Circa .NET 10/11 Roslyn will stop emitting state machines and something state-machine-like will be produced by the compiler itself iff the asynchronous execution suspends, and will be otherwise p
50.
▲
by
neonsunset
1y ago
The unit of comparison with BEAM processes are .NET tasks. The results are much less favorable to Erlang or Elixir in that case https://gist.github.com/neon-sunset/8fcc31d6853ebcde3b45dc7a...
51.
▲
by
neonsunset
1y ago
To me a claim "how many things the Java ecosystem gets right that .NET gets wrong" borders on insanity if we consider having to interact with Maven or even Gradle on a daily basis after .NET's CLI and NuGet, or having to deal
52.
▲
by
neonsunset
1y ago
> Needless to say, you can also write GC-free code, if you need that. It's not really advertised, but it's feasible. It is not feasible under the JVM type system. Even once Valhalla gets released it will carry restrictions that
53.
▲
by
neonsunset
1y ago
> a close 3rd place behind C/CPP Not anymore, the competition is doing much better these days.
54.
▲
by
neonsunset
1y ago
Sighs in F# and Julia
55.
▲
by
neonsunset
1y ago
Hmm, it should not be taking this much time unless you're running into an edge case - we have a fairly complex application that needs to pre-load a lot of data from persistence (no EFC though, it's an embedded DB) and over the wir
56.
▲
by
neonsunset
1y ago
To be fair, old Entity Framework was on the heavier side. Still much faster than e.g. ActiveRecord but enough for Dapper to be made back then. The gap between them is mostly gone nowadays plus .NET itself has become massively faster and a
57.
▲
by
neonsunset
1y ago
Do you have any links that note memory usage issues with any of the semi-recent EF Core versions?
58.
▲
by
neonsunset
1y ago
> EF works great until you need different views of the model You can easily project or use views with SQL then projected onto objects. It's very convenient with `.FromSql`: https://learn.microsoft.com/en-us/ef&#
59.
▲
by
neonsunset
1y ago
You are confusing platform-specific(!) GUI frameworks with the languages themselves, which have been long "divorced" from the platform they initially targeted.
60.
▲
by
neonsunset
1y ago
.NET is an open-source product. How would you sell it?
More ›