News for hackers. Stuff that matters.
Re:Garnet – A new remote cache-store from Microsoft Research by zigzag312 on Tuesday March 19, 2024 @04:08AM (#39753790)
Shows how flexible C# is.

You can trade high-level expressiveness for low-level control where needed and you don't have to deal with any FFI to do it.

Re:Garnet – A new remote cache-store from Microsoft Research by CharlieDigital on Tuesday March 19, 2024 @11:18AM (#39756640)
C# and .NET are both truly underrated in the wider community -- I think -- because of some early snafus. The late adoption of an OSS model, Windows-centric in the .NET Framework days, too dependent on Visual Studio for a very long time.

Nowadays, I think it's probably the most natural language and platform for teams that need to move on from TypeScript rather than Go or Rust given the similar constructs and idioms.

Re:Garnet – A new remote cache-store from Microsoft Research by mdaniel on Tuesday March 19, 2024 @12:36PM (#39757544)
For a while there I had high hopes that one could pull in Java libraries via their JVM interop on top of the Common Language Runtime, but it doesn't seem to have caught on and I'm not in that ecosystem enough to know why. But yes, for the many excellent reasons you cited it means the library ecosystem is nowhere near that of the JVM, and thus I haven't once considered .net for a new project regardless of how much I love C# the language. Well, that, and my experience with the observability and introspection components of the JVM are second to none
Re:Garnet – A new remote cache-store from Microsoft Research by CharlieDigital on Tuesday March 19, 2024 @01:48PM (#39758394)

    > the library ecosystem
I don't really see many gaps. There tends to be fewer libraries, but the libraries available generally feel more complete and well thought out because users tend to cluster around the known libraries.

Many of the first party libraries are really, really good. EF Core is a prime example of possibly one of the best ORMs on the market right now in terms of productivity, ergonomics, and performance.

Re:Garnet – A new remote cache-store from Microsoft Research by mdaniel on Tuesday March 19, 2024 @01:55PM (#39758478)
> I don't really see many gaps

isn't that the "works on my machine" of this discussion? What's the Apache Tika for .net then? I don't mean, pdf parsing, I don't mean .docx parsing, I mean a framework for interacting with all their supported types <https://tika.apache.org/2.9.1/formats.html> with one surface area?

Re:Garnet – A new remote cache-store from Microsoft Research by CharlieDigital on Tuesday March 19, 2024 @02:33PM (#39758840)
Re:Garnet – A new remote cache-store from Microsoft Research by mdaniel on Tuesday March 19, 2024 @02:42PM (#39758913)
> https://github.com/KevM/tikaondotnet/releases/tag/v1.17.1 - Apr 3, 2018

You're right, how silly of me, I'll install some rando's 6 year old build of it right away. But in seriousness, that readme did remind me of the thing I was thinking of: http://www.ikvm.net/userguide/ikvmc.html

Re:Garnet – A new remote cache-store from Microsoft Research by CharlieDigital on Tuesday March 19, 2024 @04:45PM (#39760024)
Maybe your question is the wrong one to ask. My inclination is that a package or library that isn't actively maintained has no utility. If that's the case, then the assumptions underlying that package are perhaps not relevant.

Personally, I'd say it is probably the case that there are better alternatives. Azure Document Intelligence being one of those. Sure, it can't handle the variety of formats, but again, we have to come back to the underlying assumptions: .docx, .pdf, and a few handful of formats probably covers 99% of business use cases. Everything else would be considered niche.

Re:Garnet – A new remote cache-store from Microsoft Research by neonsunset on Tuesday March 19, 2024 @03:15PM (#39759237)
The entirety of Apache ecosystem pretty much mandates using Java or you are being left out with no or at best second-citizen experience. It's not a fault of every other language, but of that particular ecosystem itself.

There are exceptions in the form of well-written community-maintained libraries, but these exist for minority of Apache projects and vary a lot between languages.

Luckily, there are often (but not always) plenty of alternatives to whatever it is that you seek from Apache.

Re:Garnet – A new remote cache-store from Microsoft Research by ametrau on Tuesday March 19, 2024 @01:19PM (#39758063)
It’s great but you’re locked into visual studio if you want the most out of it (they put 95% of their effort in tooling there). You want to use visual studio?
Re:Garnet – A new remote cache-store from Microsoft Research by CharlieDigital on Tuesday March 19, 2024 @01:46PM (#39758368)
I work in .NET on the daily on an M1 MBP using primarily VS Code and occasionally Rider.

There's no need for VS for most (any?) .NET workloads these days. That's why I wrote it was an early mis-step. Nowadays, it's easy to do .NET dev on any platform. In fact, we ship our production runtime to AWS t4g (Arm64) instances.

Re:Garnet – A new remote cache-store from Microsoft Research by mtmk on Tuesday March 19, 2024 @07:44PM (#39761507)
I primarily use JetBrains Rider for my daily tasks, and I agree that while you can use VS Code or even Vim with LSP support for many projects, working with substantial ones such as the runtime or ASP.NET Core development might practically necessitate using Visual Studio. By the way, the Visual Studio Community Edition is available for free for virtually all projects I can think of, mainly for personal, non-commercial, or open-source usage. The license details can be somewhat unclear, but that's my understanding of it.
Re:Garnet – A new remote cache-store from Microsoft Research by ametrau on Wednesday March 20, 2024 @03:35PM (#39771068)
The debugger is night and day vs visual studio. Not even comparable. Like 1% vs 99%. And there’s other tooling.

It can be done, but it’s so inferior to VS that you might as well use VS.