Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrsmrtss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
31.
▲
by
mrsmrtss
8mo ago
The Benchmarks Game has some highly optimized implementations and is not a good representation of typical code. Some languages allow you to go a lot lower than others if needed, which adds verbosity, that does not mean typical code must be
32.
▲
by
mrsmrtss
8mo ago
So giving a gun to someone mentally challanged is not dangerous for you too?
33.
▲
by
mrsmrtss
8mo ago
Probably not, but it’d be closer to Clojure. Depending on codebase you’ll likely have also many repeating namespace imports (can be avoided whith implicit usings in modern C#) etc.
34.
▲
by
mrsmrtss
8mo ago
C'mon, this is a bs "research". Fore example, is this Java (65.72% dryness) if (condition){ Blah(); } really more dense than this C# (58.4% dryness)? if (condition) { Blah(); } Now, d
35.
▲
by
mrsmrtss
8mo ago
What anecdotal experience? Not that I think LLMs produce good code, but for me it has produced a lot better c# than TypeScript fo example. I guess quality matters more than quantity when it comes to LLMs training data.
36.
▲
by
mrsmrtss
8mo ago
I don't know why this is downvoted, because the statement is not wrong ( https://benchmarksgame-team.pages.debian.net/benchmarksgame/... ). Times have changed, modern .NET is very fast and is getting faster still (
37.
▲
by
mrsmrtss
8mo ago
There actually is a great GUI story also for Linux today enabled by the excellent Avalonia ( https://avaloniaui.net ).
38.
▲
by
mrsmrtss
8mo ago
I have nearly a decade of experience building .NET C# solutions on Linux and lately also on Mac, with almost everything hosted on Linux via Docker. I’m not sure what’s still missing for it to be accepted into the "first class citizen&q
39.
▲
by
mrsmrtss
8mo ago
I have worked with AWS, Google and Azure. Google Cloud has the worst UI of them, it slow, broken and just horrible. UI in AWS may be faster than Azure, but overal layout and organization feels a lot better in Azure. I would strongly recomme
40.
▲
by
mrsmrtss
9mo ago
Sorry, made a typo with 'gave' -> 'have'. But the point stays , why would C# be (one of) the worst choices here (when C# has small AOT binaries, hot reload etc)?
41.
▲
by
mrsmrtss
9mo ago
Why would C# be the worst choice? Do you gave any real arguments or is it just your biased opinion.
42.
▲
by
mrsmrtss
9mo ago
>Most games today are "made" in C#, which is also a language with GC and Go beats it in every aspect in performance. That is just nonsense. Go may beat C# in memory consumption, but even that is a close call if you use AOT. C#
43.
▲
by
mrsmrtss
9mo ago
Regarding GC pauses, there is an interesting alternative GC with ultra low pauses for .NET called Satori. It's primarly discussed here https://github.com/dotnet/runtime/discussions/115627 , and the GC it
44.
▲
by
mrsmrtss
10mo ago
I’m not sure which .NET libraries you are referring to, but all the ones we use have nullable reference types enabled. If you configure warnings as errors (as you should), then it works exceptionally well. Even if you were to use a library
45.
▲
by
mrsmrtss
10mo ago
And Linux kernel is written in C etc, so by this logic you don't even need memory safety. There is no good excuse for designing a language in modern times (this century) with every object nullable by default. C# at least mostly has sol
46.
▲
by
mrsmrtss
10mo ago
Agree, mapping libraries make things only more complicated and harder to debug.
47.
▲
by
mrsmrtss
10mo ago
C# non SIMD (naive non optimized version) is in the same ballbark as other similar GC languages. Nim version is not some naive version also and seem rather specially crafted so it can be vectorized and still looses to C# SIMD.
48.
▲
by
mrsmrtss
10mo ago
When using switch expression in C#, they are a lot more similar: public int Fib(int n) => n switch { <= 1 => n, _ => Fib(n - 1) + Fib(n - 2) };
49.
▲
by
mrsmrtss
10mo ago
The 10% share for ASP.NET among the top 5,000 domains shows that .NET (and therefore also C#) is a very serious player in building web apps and APIs and for good reason. .NET is a solid, fast, secure, and mature technology, and it's on
50.
▲
by
mrsmrtss
10mo ago
Yeah, it doesn't detect C# for some reason and for some of our own sites, it even failed to detect that those were built with .NET (as we intended;)).
51.
▲
by
mrsmrtss
10mo ago
Yes, referenced libraries will throw exceptions, but since they don't return a Result type, there is no confusion either. We simply handle the exceptions where they arise. This means we don't need to handle exceptions all over the
52.
▲
by
mrsmrtss
10mo ago
Sorry, I can't seem to edit my answer anymore, but I was mistaken, C# version is using AOT. But the are other significant differences here: > var rounds = int.Parse(File.ReadAllText("rounds.txt")); > var pi = 1.0
53.
▲
by
mrsmrtss
10mo ago
Looking closer at the benchmarks, it seems that C# benchmark is not using AOT, so Go and even Java GraalVM get here an unfair advantage (when looking at the non SIMD versions). There is a non trivial startup time for JIT.
54.
▲
by
mrsmrtss
10mo ago
What are you talking about?? OpenAPI and Razor are both still present in .NET10.
55.
▲
by
mrsmrtss
10mo ago
I think you just had experienced a bad codebase. If you opt for using Result then you can not throw at the same time. If you follow this rule, then it works perfectly.
56.
▲
by
mrsmrtss
10mo ago
We have already ported many projects from .NET8 and .NET9 to .NET10 with close to zero issues.
57.
▲
by
mrsmrtss
10mo ago
Come on, those are very rare and minor things that are very easy to fix.
58.
▲
by
mrsmrtss
10mo ago
> its quality of work is extremely high ... It may seem decent until you look closer. Just like with a junior dev, you should always review the code very carefully, you can absolutely not trust it. It's not bad at trivial stuff, but
59.
▲
by
mrsmrtss
10mo ago
How do optional inheritance and namespaces (which you can ignore to use a single global namespace) make a language inflexible? If anything, these traits make your language more powerful, not less.
60.
▲
by
mrsmrtss
10mo ago
The Result pattern also works exceptionally well with C#, provided you ensure that code returning a Result object never throws an exception. Of course, there are still some exceptional things that can throw, but this is essentially the same
More ›