HNHacker News
TopNewBestAskShowJobs

Merad

2,798 karma · joined March 14, 2015

submissionscomments
Merad··on Matrices can be your friends (2002)
> Anyone who has taken linear algebra should know that [...]

My university level linear algebra class didn't touch practical applications at all, which was frustrating to me because I knew that it could be very useful to some background doing hobbyist game dev. I still wish I had a better understanding of the use cases for things like eigenvectors/values.

Merad··on Show HN: Recall: Give Claude memory with Redis-backed persistent context
I built a memory tool about 6 months while playing with MCP, it was based on a SQLite db. My experience then was that Claude wasn't very good at using the tools. Even with instructions to be proactive about searching memory and saving new memories it would rarely do so. Once you did press it to be sure to save memories it would go overboard, basically saving every message in the conversation as a memory. Are seeing more success in getting natural and seamless usage of the memory tools?

IIRC at the time I was testing with Sonnet 3.7, I haven't tried it on the newer models.

Repo here: https://github.com/mbcrawfo/KnowledgeBaseServer

Merad··on Windows 7 marketshare jumps to nearly 10% as Windows 10 support is about to end
You might have an option to enable it in BIOS that's turned off by default, that was the case for my desktop PC.
Merad··on What's New in C# 14: Null-Conditional Assignments
I've been using .Net for almost 20 years, professionally for half that time, and I feel like excitement and momentum in the community has only been increasing.
Merad··on Moving off of TypeScript, 2.5M lines of code
For basic CRUD like is emphasized in TFA you probably only need EF models to represent the db and DTOs to form the input/output contracts of the API. Many .Net shops (claim to) do DDD and will have an extra layer of domain models, but if you understand that your API is primarily CRUD they're just unnecessary complexity.

While you won't be able to share your back end models with the front end, OpenApi spec generation is pretty much automatic so you can generate the models or client code.

Merad··on Claude’s memory architecture is the opposite of ChatGPT’s
I made a MCP tool for fun this spring that has memory storage in a SQLite db. At the time at least, Claude basically refused to use the memory proactively, even with prompts trying hard to push it in that direction. Having to always explicitly tell it to check its memories or remember X and Y from the conversation killed the usefulness for me.

Repo: https://github.com/mbcrawfo/KnowledgeBaseServer

Merad··on Fast and observable background job processing for .NET
So what happens if the application shuts down before the file is processed? I get the appeal of a simple solution, but I don't know if I can ever recall a situation where "push work to the background and no one cares what happens to it" is ok.
Merad··on Typed languages are better suited for vibecoding
My experience with Github Copilot and Python has been that it _does_ generate better code completions for Python. It's sometimes shockingly good at predicting what you want to do in the next 30-50 lines of code based on a few well named variables. But that shockingly good code is also filled with hallucinated classes, methods, parameter ordering, etc. which completely negate its usefulness.
Merad··on Why doctors hate their computers (2018)
I doubt if they're using raw MS or Open AI models (because the whole thing would have to be HIPAA compliant) but yes, some doctors will now ask if you consent to them using AI tools to transcribe the appointment.
Merad··on .NET 10 Preview 6 brings JIT improvements, one-shot tool execution
I've upgraded apps from every version since .Net Core 2.0. The upgrades always take a few hours, maybe half a day (with the exception of 2.0 to 3.0 which took a few days - many breaking changes). It's well worth a few hours per year to get the advantages of newer languages features, enhancements in Asp.Net Core, security and performance enhancements in the .Net Runtime, etc.
Merad··on .NET 10 Preview 6 brings JIT improvements, one-shot tool execution
Csharpier is the best option available. I've been using it for 3-4 years now and had success getting it adopted at my last two companies on greenfield projects. It's not exactly an unknown tool - nearly 2k stars on Github. But a lot old school .Net companies just don't seem to have much interest in auto formatters because they've been working without them for a long time.

If you're using csharpier you don't need to use Roslynator formatters. No issue with the analyzers package. The csharpier docs have info on what StyleCop rules need to be adjusted so they can work together. Personally I don't use StyleCop anymore as it seems to be fairly dead, and I don't really feel the need for things like enforcing file layout or naming.

Edit: Also I will add that unless the landscape has changed recently, I believe csharpier is the only C# tool that has deterministic formatting good enough to enforce code formatting checks in CI.

Merad··on Air Force unit suspends use of Sig Sauer pistol after shooting death of airman
First, in most states it is not legal to point a weapon at someone unless you are in a situation where you're legally allowed to pull the trigger. That is, you are legitimately in fear for your life. In that situation you will likely have very little time to act in self defense.

Second, racking a slide is an action that requires fine motor control. Under the pressure and adrenaline dump that accompanies a life-or-death situation, fine motor control goes to crap. If you are fumbling with your pistol, it's useless.

Third, if you don't feel comfortable with your ability to safely handle a loaded gun, you probably shouldn't be carrying at all.

Merad··on Starship: A minimal, fast, and customizable prompt for any shell
I've been coding for 20 years, I very much like having git info in the prompt. Even if it doesn't tell me everything (and it often doesn't) it _is_ a reminder that I have uncommitted changes, or haven't pushed yet, or a stash that I might have forgotten about.

I played with Starship for an hour this morning - the joys of 50 person planning meetings - but ultimately uninstalled it. I did like some of its options like command timing and success/error, but all the tool versions ultimately just felt like noise. Not worth the effort to maintain a complex custom config to trim it down to what I'd want.

Merad··on What was Radiant AI, anyway?
Oblivion has multiple NPCs with complex schedules that involve travel between cities. And yes, you can run into them on the road. Best example is the countess of Leyawin, once a month she visits her mother in Chorrol (opposite side of the map) along with her personal guards and advisor.
Merad··on Musk-Trump dispute includes threats to SpaceX contracts
Are you really so sure? I think the vast majority of Americans would have expressed the same sentiment less than 10 years ago.
Merad··on Amelia Earhart's Reckless Final Flights
Generally speaking these days I think that small planes with manual controls (i.e. your private pilot's Cessna) just aren't capable of going that fast. Most of the planes that will be able to go that fast in a dive will have hydraulically boosted controls if not full fly by wire systems.

However this was a real problem during WW2, and high speed dives killed more than a few pilots. By 1942-43 most fighter planes were able to dive fast enough to get into trouble (500+ mph/800 kph) but weren't designed for it at all. The aerodynamics of supersonic flight just weren't understood at the time. In some cases the design of the plane made it essentially impossible to pull out once you went beyond a certain speed, all you could do was attempt to slow down enough to regain control. The P-38 Lightning was notorious for this. I don't have any specific sources handy but I recall reading accounts of things like pilots bracing their feet against the control panel trying to pull the control stick with all their strength, taking extreme measures like lowering the landing gear to slow down (risking it being ripped off and maybe tearing the whole plane apart), or only surviving due to sheer luck - sometimes the thicker air at lower altitudes would slow them down enough before it was too late.

Merad··on Run a C# file directly using dotnet run app.cs
> Deciding whether something is netFramework 4.8 or .NET Core 5 or NET3000 or nEt5 or NET Common 2.0 is impossible. Isn't that one of the most basic things that should be easy.

What do you think happens when you try to use Python 3.9 to run a script that depends on features added in 3.10? This is inherent to anything that requires an interpreter or runtime. Most scripting tools just default "your stuff breaks if you get it wrong" whereas .Net requires you to explicitly define the dependency.

Merad··on “ZLinq”, a Zero-Allocation LINQ Library for .NET
Basic LINQ on in-memory collections isn't really that different from what you have in other languages. Where things get special is the LINQ used by Entity Framework. It operates on expressions, which allow code to be compiled into the application and manipulated at runtime. For example, the lambda expression that you pass to Where() will be examined by an EF query provider that translates it into the where clause for a SQL query.
Merad··on How to have the browser pick a contrasting color in CSS
> Cant someone take a look at the buttons before the large project ships?

They can, of course, but this is how you end up with pre-release regression testing cycles that are weeks or even months long. A "large project" might easily have thousands of buttons (or more!), many of which are only seen when certain settings are enabled, certain options are chosen during a complex workflow, etc.

Merad··on When flat rate movers won't answer your calls
Yeah, something important to file away in your book of life lessons is that you should _never_ schedule a move on the day you have to be out. Not unless you're backed into a corner with no alternative. Sometimes life throws you curveballs - for example in 2020 I had purchased a house and was scheduled to move, but my mom passed away around 6 PM the day before the move. Thankfully it was just an across-town move, and I had about 10 days to play with before the lease on my condo ended, and the moving company was able to reschedule for a week later.
Merad··on Generative AI is not replacing jobs or hurting wages at all, say economists
Unfortunately what's likely to happen in our current society and medical system is:

1. Instead of being expected to read N x-rays per hour/day/whatever, radiologists will soon be able expected review 3N or 4N AI diagnoses in the same time.

2. With far less time to spend on each case and an AI that is right most of the time (but imperfect) humans won't be great at catching AI mistakes, even if they're trying.

3. Pay and prestige for radiologists will drop, leading to a lack of quality people entering the field, exacerbating the problems in #2.

4. Eventually administrators and/or politicians will decide that (using made up numbers) very cheap AI-only review with 90% accuracy is "good enough", even though the more expensive AI+human combo can yield 93% accuracy or very expensive human-only review can yield 97% accuracy.

Merad··on Why did Windows 7 log on slower for months if you had a solid color background?
I always have at least a web browser open, and as the other comment said MacOS reopens apps on restart.
Merad··on Why did Windows 7 log on slower for months if you had a solid color background?
You know, I bought a MBP as a personal machine 6 months ago - my first Mac - and this post made me realize that I couldn't even tell you what its desktop looks like. I'm sure I saw it a few times when I was doing initial setup, but I don't remember anything about. I used to do things like set custom wallpapers, but probably around 10 years I pretty much stopped using the desktop entirely.
Merad··on Pipelining might be my favorite programming language feature
Jetbrains Rider does this does for C# code (I think Visual Studio does as well). Its inlay hints feature will also show you hints with the result type of each line as the data is transformed. I haven't explicitly tested but I would imagine their IDEs for other languages behave the same.
Merad··on Mozilla launching “Thundermail” email service to take on Gmail, Microsoft 365
I did an internship in IT 20 years ago where we were building/maintaining desktops and other general helpdesk type stuff. I'm pretty sure I remember us having a handful of users with multi-gig pst files, running on 2005 hardware.
Merad··on Valve releases Team Fortress 2 code
Close, but it's a little different. When they were making Half-Life their code was in a 'Src' directory. Around the time HL1 released they forked the code into a `GoldSrc` directory so that they could start moving ahead with other projects in Src. Internally they used "source" and "gold source" to refer to the HL2 vs HL1 engines, and it stuck.
Merad··on You probably don't need query builders
It seems to me a big part of the problem is that the "query builder" in TFA is little more than a string builder. In the .Net world I've used SqlKata [0] and been very pleased with it. It allows you to easily dynamically build and compose queries.

0: https://sqlkata.com/

Merad··on Making Beautiful API Keys
Base 32 is just an encoding, so it doesn't modify the underlying data of the uuid, it presents the data in a different display format. It's the same as how the number 10 can be represented as decimal 10, binary 0b1010, octal 0o12, hex 0xA, etc.
Merad··on Show HN: API Parrot – Automatically Reverse Engineer HTTP APIs
I'm actually going to switch to Mac as a pilot for our team at some point this year! I don't expect any issues, I already use Rider and have done plenty of .Net stuff on my personal machine which is a M3 MBP. Really IMO the only question marks will be around using Parallels when we need to occasionally work on a legacy .Net Framework app.
Merad··on Show HN: API Parrot – Automatically Reverse Engineer HTTP APIs
Really? In the modern .Net world (originally .Net Core) it's very common for devs to use Windows machines to write code whose CI pipelines and deployed environments are all Linux. I've seen a handful of issues with things like path separators and file system case sensitivity, but we're talking about 3 or 4 minor problems in 6-7 years that I've been using it.
← PreviousPage 3 of 26Next →