Readit News logoReadit News
Merad commented on I couldn't find a logging library that worked for my library, so I made one   hackers.pub/@hongminhee/2... · Posted by u/todsacerdoti
KellyCriterion · 6 days ago
industry-proven and mature libs like LOG4J or LOG4Net are not sufficient?
Merad · a day ago
In the .Net space log4net is horrifically outdated and there's zero reason to use it today. Logging for modern .Net apps and libraries should be built on the Microsoft.Extensions.Logging abstractions which provide the type of features covered in TFA. They also provide a clear separation between generating log events in code and determining where & how logs are stored. For basic needs you can use simple log writers that tie in directly with MEL, or for advanced needs link MEL with Serilog so that you can use its sinks and log processing pipeline.

Deleted Comment

Merad commented on JSDoc is TypeScript   culi.bearblog.dev/jsdoc-i... · Posted by u/culi
Merad · 3 days ago
Can you perform type checking with JSDoc? As in, run type checks in CI/CD, commit hooks, etc?
Merad commented on Ask HN: What Are You Working On? (Nov 2025)    · Posted by u/david927
Merad · a month ago
I've been exploring getting some deeper experience with Claude Code (my org only allows Copilot) and exploring vibe coding by using CC to design a functional programming language that transpiles to JS and build out a full language specification and the tooling to go along with it. I haven't pushed anything to Github yet but it's been very educational, and also a little terrifying to see how easy it is now to produce tens of thousands of lines of code that you totally don't understand.
Merad commented on End of Japanese community   support.mozilla.org/en-US... · Posted by u/phantomathkg
glimshe · a month ago
This reaction baffles me and feels like online indignation culture. All I could see, as a Latin American English speaker, is someone who's sincerely trying to help and picked their words carefully. Your proposed phrasing sounds unnatural and AI-like.
Merad · a month ago
As a native speaker (American) the phrasing is classic condescending soulless corporate customer service speak. 1) You must always apologize, 2) you must never admit fault. "I'm sorry you feel this way about what we did" comes across _to me_ as "what we did was totally fine, it's too bad that you don't understand the wisdom of our actions." That kind of phrasing is also a bit of a trigger because the majority of the time you hear it from companies that don't give a damn how you feel and will fight to avoid doing anything to actually help you.

It's of course impossible to say if this was just an unfortunate choice of phrasing or if it's a sign that Mozilla has become that soulless corporate entity (I say this as a Firefox user for more than 20 years).

Merad commented on Tiny electric motor can produce more than 1,000 horsepower   supercarblondie.com/elect... · Posted by u/chris_overseas
amluto · 2 months ago
This discussion is all about vehicles with large batteries, but how about hybrids? With light enough and efficient enough motors, all kinds of designs might become practical:

- Toyota-style hybrid drives could be a lot lighter, and they don’t need large batteries.

- e-bikes with tiny batteries?

- Hybrid aircraft? What if there was a battery large enough for takeoff and landing, a small motor (or pair for redundancy) for cruising and to recharge the battery, and motors and fans or propellers wherever is best from an aerodynamic perspective.

- Power tools.

Merad · a month ago
> Toyota-style hybrid drives could be a lot lighter

The hybrid electric motor in a Toyota is already pretty comparable in weight to the motor in TFA, but obviously much less powerful. You can see the main hybrid motor of a RAV4 at [0]. If memory serves both the Camry and RAV4 hybrid models are only 2-300 lbs heavier than their gas counterparts.

0: https://youtu.be/O61WihMRdjM?t=120

Merad commented on If a pilot ejects, what is the autopilot programmed to do? (2018)   aviation.stackexchange.co... · Posted by u/avestura
quotemstr · 2 months ago
Huh? If I'm the human pilot, I can pull the ejection lever for multiple reasons, including my just being an idiot. The plane, after I eject, should do something reasonable. Maybe it

* starts broadcasting a mayday?

* crashes into the nearest large body of water?

* attempts to fly itself back to base (we have the technology)?

I mean, it has to do something and flying straight and level until it runs out of fuel is unlikely to be the optimal value of "something"

Why would it be controversial to say "Look, guys, we should decide what the plane does after the pilot ejects. Maybe the best policy is just flying same course and speed until fuel exhaustion, but we should choose this policy, not default into it without consideration."

Merad · 2 months ago
I dunno, the current approach seems quite reasonable. In the grand scheme of things the overwhelming majority of the Earth's surface is empty space where a plane crash is unlikely to cause much damage. You also have the complication that military pilots usually try to make sure their plane will crash in a "safe" area before they eject - many have died because they waited too long to eject trying to avoid a populated area. Giving the plan a mind of its own after they pull the handle would be unlikely to go over very well. I believe the scenario of a pilot ejecting from a perfectly good plane that keeps flying for more than a few seconds has only happened perhaps a dozen times in the entire history of aviation? Not really worth worrying about.
Merad commented on Harnessing America's heat pump moment   heatpumped.org/p/harnessi... · Posted by u/ssuds
smnrchrds · 2 months ago
I have never had a heat pump, so I wasn't aware of this shortcoming. Could you please explain a bit more how different it is with heat pump compared to furnace?
Merad · 2 months ago
The heat pump will always produce air that is warmer than the temp in the house, but as the temp outside drops the temp of the air coming out of the vents also drops. So on a very cold day when the house temp is say 70F, the system might only be putting out air that's 75-80F. The air coming out of the vents doesn't really _feel_ warm and it may take an hour or two to raise the temperature in the house when you wake up or get home in the evening.

In my experience at least with relatively modern heat pumps (roughly 2000 and newer) it doesn't matter that much when outside temps are above freezing. But it quickly starts to become noticeable as temps drop into the 20s.

Merad commented on Harnessing America's heat pump moment   heatpumped.org/p/harnessi... · Posted by u/ssuds
blahedo · 2 months ago
People are reluctant to install them because they don't work as well as the good old boilers we'd be replacing. I'm not saying they can't, and I'm not saying that there are zero models out there that work. But in practice, a lot of us that have interacted with heat pumps have the specific experience that they get anemic as the temperature goes down and eventually become unable to do much of anything.

I live in the mid-Atlantic (US) climate zone, where it's certainly not as cold as the north but definitely goes well below freezing regularly for several months of the year. The place I've lived for 15 years had a heat pump and a (oil) boiler with radiators, and when it was below 40°F (~5°C) I had to switch to the radiators. It's because it's old, everybody told me, modern heat pumps are better! So last year when both systems needed repairs at the same time, I not-entirely-willingly switched to a brand-new 2024-model heat pump. It absolutely could not keep up when the temperature was freezing until they came back and installed resistive heat strips for low temperature---these seem to be a fancy version of the heating elements in a space heater or a toaster. They do not seem to be particularly efficient. And to the extent that my "heat pump system" does now more or less keep the house adequately warm, if not as comfortable as the radiators always could, it's not solely due to the heat pump, but the other stuff they had to put in because the heat pump couldn't keep up.

My experience is far from unique. Maybe it's that they only install the good ones in farther-north locations! Maybe it's that the good ones are just way more expensive! I'm perfectly prepared to believe the factual statements about the physics and the tech. But if we're talking about perception and "why aren't more people looking to install heat pumps", it's because lots of people have experiences like the above, and that is what the industry needs to work on.

Merad · 2 months ago
I have to agree. I've spent about 2/3s my life in houses with heat pumps and the last 5 years with a gas furnace (the rest being wood heat as a child). Mostly in Western NC and Eastern TN near the mountains, so chilly but not extreme cold.

Heat pumps work, but they aren't nearly as _pleasant_. You can write essays about the efficiency of heat pumps, how lukewarm air works just fine to warm the house, how heat pumps are great _most of the time_ and you can supplement with space heaters or whatever when they fall short... But as long as furnaces are accessible and affordable, an awful lot of people are going to choose to have nice warm heat that is always going to be nice and warm regardless of the outside temperature.

Merad commented on Google flags Immich sites as dangerous   immich.app/blog/google-fl... · Posted by u/janpio
MzHN · 2 months ago
> Carriage returns in bash scripts are cursed

Also the full story here seemed to be

1. Person installs git on Windows with autocrlf enabled, automatically converting all LF to CRLF (very cursed in itself in my opinion).

2. Does their thing with git on the Windows' side (clone, checkout, whatever).

3. Then runs the checked out (and now broken due to autocrlf) code on Linux instead of Windows via WSL.

The biggest footgun here is autocrlf but I don't see how this is whole situation is the problem of any Linux tooling.

Merad · 2 months ago
You will have the same problem if you build a Linux container image using scripts that were checked out on the windows host machine. What's even more devious is that some editors (at least VS Code) will automatically save .sh files with LF line endings on Windows, so the problem doesn't appear for the original author, only someone who clones the repo later. I spent probably half a day troubleshooting this a while back. IMO it's not the fault of any one tool, it's just a thing that most people will never think about until it bites them.

TL;DR - if your repo will contain bash scripts, use .gitattributes to make sure they have LF line endings.

u/Merad

KarmaCake day2653March 14, 2015View Original