News for hackers. Stuff that matters.

ferd

M PLUS Code https://mplusfonts.github.io/

The most underrated font ever.

Re:La Cueva BBS in Mexico in 1993 (session replay) on Wednesday October 07, 2026 @08:39AM (#49991934)
here... sysop of Sudaka's BBS :-)
Re:The Millennium Problems for Biology on Sunday September 20, 2026 @04:05PM (#49779522)
Is inner-ear cell regeneration included in #06?
Re:Chess Invariants on Friday May 22, 2026 @09:33AM (#48235628)
Shameless plug: a code walkthru modeling the rules of chess, ment as an exercise/teaching functional programming (in Clojure):

https://neuroning.com/boardgames-exercise/notebooks/walkthro...

The implementation makes it really easy to add new piece types or rules. For example, here's the full logic for rooks (sans castling):

  (defn expand-pmove-for-rook [pmove]
    (->> pmove
      (expand-pmove-dirs [↑ ↓ ← →])
      (pmoves-discard #(or (pmove-on-same-player-piece? %)
                           (pmove-changed-direction? %)))
      (map pmoves-finish-capturing-opponent-piece)
      (pmoves-finish-and-continue))))
Re:GitHub Monaspace Case Study on Tuesday March 31, 2026 @09:18PM (#47595617)
Thanks. Tried, but doesn't look good :-(
Re:GitHub Monaspace Case Study on Tuesday March 31, 2026 @02:03PM (#47591210)
I really like Monaspace Argon, but even the narrower option looks too wide on my terminal (kitty on macos)
Re:Ask HN: Remember Fidonet? on Tuesday March 10, 2026 @08:54AM (#47322610)
yes! don't remember my number, Zone 4 for sure (Argentina).

Exchanging messages with people on the other side of the world felt like magic at the time (even though it took many hours/days for a msg to round-trip)

I also run "Sudaka's BBS" based on Maximus/2, with many interactive "apps" I'd developed using Maximus' proprietary C-like language. Great high-school times.

I can still hear my parents complaining about my monopolizing the phone line every night :-)

Re:Ask HN: Hearing aid wearers, what's hot? on Monday November 24, 2025 @01:30PM (#46037317)
I've had tinnitus for about 12 years now. High-freqquencies hearing loss. I've been using hearing aids for about 4 years... They DO help me with both hearing (of course) and tinnitus.

For example, driving a car without the aids makes my tinnitus really bad (due to the background noise of the car/engine/wind/road). With aids it's a lot less of a problem.

One fear I have is if hearing aids cause even more hearing damage (after all, what they do it inject amplified sound into you ear... the exact same thing that most doctors tell you NOT to do to avoid hearing damage)... Experts tell me they don't, but without any reasonable explanation.

Re:When did people favor composition over inheritance? on Sunday November 16, 2025 @01:19PM (#45947167)
How so? Not sure what you mean.

If object A calls a method of object B (composition), then B cannot call back on B, and neither A nor B can override any behavior of the other (And this is the original core tenet of OO: being all about "message-passing").

Of course they can accept and pass other objects/functions are arguments, but that would be explicit and specific, without having to expose the whole state/impl to each other.

Re:When did people favor composition over inheritance? on Sunday November 16, 2025 @09:08AM (#45945259)
> I'd argue some amount of "co-recursion" is to be expected: after all the point of the child class is to reuse logic of the parent

That's the point: You can reuse code without paying that price of inheritance. You DON'T have to expect co-recursion or shared state just for "code-reuse".

And, I think, is the key point: Behavior inheritance is NOT a good technique for code-reuse... Type-inheritance, however, IS good for abstraction, for defining boundaries, to enable polymorphism.

> I'd say this is a fact of life for all pieces of code which are reused more than once

But you want to minimize that complexity. If you call a pure function, you know it only depends on its arguments... done. If you can a method on a mutable object, you have to read its implementation line-by-line, you have to navigate a web of possibly polymorphic calls which may even modify shared state.

> This is another reason why low coupling high cohesion is so important

exactly. Now, I would phrase it the other way around though: "... low coupling high cohesion is so important..." that's the reason why using inheritance of implementation for code-reuse is often a bad idea.

Re:When did people favor composition over inheritance? on Sunday November 16, 2025 @08:29AM (#45944993)
You are always dealing with state and control-flow in software design. The challenge is to minimize state at much as possible, make it immutable as much as possible and simplify you control-flow as much as possible. OO-style inheritance of implementation (with mutable state dispersed all over the place and pinball-style control-flow) goes against those goals.

Closer to the "ideal": declarative approaches, pure functions, data-oriented pipelines, logic programming.

Re:When did people favor composition over inheritance? on Sunday November 16, 2025 @08:17AM (#45944920)
I've seen it a lot on Django projects. Maybe I was just unlucky on the Python projects I've joined.
Re:When did people favor composition over inheritance? on Saturday November 15, 2025 @09:42PM (#45942321)
Good point. In Java and many other languages you can opt out instead... which might make a big difference. Is it more of a "cultural" thing?... again, many frameworks encourage it by design, and so do many courses/tutorials... so those devs would be happy to put "virtual" everywhere in C++
Re:When did people favor composition over inheritance? on Saturday November 15, 2025 @09:15PM (#45942186)
An important point not mentioned by the article is that of "co-recursion" with inheritance (of implementation).

That is: an instance of a subclass calls a method defined on a parent class, which in turn may call a method that's been overridden by the subclass (or even another sub-subclass in the hierarchy) and that one in turn may call another parent method, and so on. It can easily become a pinball of calls around the hierarchy.

Add to that the fact that "objects" have state, and each class in the hierarchy may add more state, and modify state declared on parents. Perfect combinatory explosion of state and control-flow complexity.

I've seen this scenario way too many times in projects, and worse thing is: many developers think it's fine... and are even proud of navigating such a mess. Heck, many popular "frameworks" encourage this.

Basically: every time you modify a class, you must review the inner implementation of all other classes in the hierarchy, and call paths to ensure your change is safe. That's a horrendous way to write software, against the most basic principles of modularity and low coupling.

Re:I am sorry, but everyone is getting syntax highlighting wrong on Wednesday October 15, 2025 @04:12PM (#45597808)
No... the best way is to use the same color for all occurrences of the same identifier. So, on the last example, all instances of say "audio" should be of the same color, and those of "filename" of another color.

Original idea from here: https://medium.com/@evnbr/coding-in-color-3a6db2743a1e

One impl for Emacs: https://github.com/ankurdave/color-identifiers-mode

I still admire you Niki.

Re:Ask HN: What are you working on? (September 2025) on Monday September 29, 2025 @09:46PM (#45421070)
Nice. Great work. Bookmarked
Re:Ask HN: What are you working on? (September 2025) on Monday September 29, 2025 @09:05PM (#45420825)
Obsetico App (named after a friends' comment that "it's great for Obsessed people like my wife"

A mobile app to track tasks, events and any info about anything you care about: your car, home, tools, workshop, appliances, pets, lab equipment... anything really.

Lets you organize "resources" in a hierarchy (like "folders"). You can then define tasks, add pictures, geolocation, contacts, notes, events, etc to them. Recently added the feature to "share" resources with others.

Google Play: https://play.google.com/store/apps/details?id=com.code54.qui... App Store: https://apps.apple.com/us/app/obsetico/id6749025870

It's so generic that it's hard to describe :-) I need a better elevator pitch.

Re:Bring Your Own Agent to Zed – Featuring Gemini CLI on Wednesday August 27, 2025 @08:55PM (#45047078)
similar to https://eca.dev/ ?
Re:Vagus Nerve Stimulation Erases PTSD on Wednesday May 07, 2025 @04:41PM (#43920360)
Any hope to treat tinnitus? :-\
Re:Tldraw Computer on Friday December 20, 2024 @09:38PM (#42477103)
search for XPDL and BPMN
Looks very interesting.

Somewhat related: I've recently wrote a code-walkthrough (in Clojure) of modeling chess-like games.

https://neuroning.com/boardgames-exercise/

It's very basic and intended for teaching/learning functional programming, not a real library or engine like the OP.

Re:The Liberating Experience of Common Lisp on Tuesday October 01, 2024 @01:02PM (#41711127)
Similar experience here... python/typescript during the day, Clojure at night ;-)

Shameless plug: just yesterday I published a step-by-step code walkthrough hoping to convey my "Clojure way" of modeling:

https://neuroning.com/boardgames-exercise/

I'd need to really learn Haskell to make sense of it all. Might be a good excuse :-)
cool, thanks!
In the age of AI, I went old-school inspired by Hanson & Sussman's book "Software Design for Flexibility")

Meant for beginners. I'd appreciate all feedback!

Re:Twenty Years Is Nothing on Monday March 04, 2024 @09:28AM (#39590901)
...package managers to (un)install software. RedHat Linux had RPM since 1998 at least
Re:Twenty Years Is Nothing on Monday March 04, 2024 @09:21AM (#39590822)
CVS certainly sucked by today's standards, and SVN was indeed a big improvement, and Git much more so.

All I wanted to stress is that the "lock-before-you-can-touch" approach was the norm in the enterprise world at the time. IMHO, this fact alone made SVN (even CVS) better than all the commercial products which I used at the time.

When some of the "enterprise" world started adopting SVN and commercial products started relaxing the locking mandate, the open-source world was already embarked on the decentralized model (git, darcs, arch, mercurial, etc).

Re:Twenty Years Is Nothing on Monday March 04, 2024 @08:38AM (#39590303)
Young devs won't believe it, but until the early 2000s, most companies used source control systems that forced you to LOCK any file on a centralized repo before you were allowed to modify it (MS's SourceSafe, ClearCase, Perforce)... This was often the case even if you just wanted to touch a file locally for some experimentation... insane.

So, at a customer site (while I was doing consulting for them), I couldn't stand it anymore (I had been using CVS myself since 1997). So I installed SVN to work on their project and showed it to the team. I was called an "irresponsible engineer"... "Modifying files without locking is a crazy! You don't do that on real engineering teams!"

The open-source world was at least 10 years ahead.

Older »