HNHacker News
TopNewBestAskShowJobs

mrighele

2,728 karma · joined April 2, 2013

submissionscomments
mrighele··on Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?
> Many (most?) older retail businesses still use TUIs. They're reliable, consistent, and orders of magnitude faster than GUI systems.

What is sad is that is doesn't have to be that way. But you describe is not an intrisic characteristic of a TUI, but of using keyboard instead of a mouse. You can write a webapp that performs in the same way (modulo the resources needed of course), but it takes extra time and once it works with a mouse there little reasons to put more work for keyboard user (it is not a selling point in most cases).

The main advantage of a TUI is that it forces to write the UI in a certain way, so you get the result automatically.

mrighele··on Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?
Not 100% related, but there are a few of business around that still use home computers from the 80's.

some examples:

A bakery in Indiana is still using the 40-year-old Commodore 64 as a cash register | A 1 MHz CPU and 64KB of RAM are enough [1]

A an Atari 1040ST still in use for the a campsite's operations [2]

Commodore 64 Still Powering Auto Repair Shop in Poland [3]

A Japanese kimono factory that still use a Sharp MZ-80K [4]

[1] https://www.reddit.com/r/gadgets/comments/1hhqa0h/a_bakery_i...

[2] https://www.youtube.com/watch?v=6LxPEz9x2fs

[3] https://www.popularmechanics.com/technology/gadgets/a23139/c...

[4] https://www.youtube.com/watch?v=zWJZFQHklBg

(Note: some of the above links are a few years old, it may be that it is no longer the case)

mrighele··on Facts about throwing good parties
My guess is that the pasta mentioned above is spaghetti "aglio olio e peperoncino" (garlic, olive oil, red pepper), so not just olive oil.

Could be the recipe with the highest ratio taste/effort you can find, something that even a drunk student can pull off a 4 in the morning, so they probably just continued their tradition from the university years

mrighele··on Using FreeBSD to make self-hosting fun again
> - firewall? Lots of pain and hard to find friendly, best practice starter templates. Wherever I looked, people said "it's complicated." After a lot of tinkering and learning I finally got a setup that was pretty safe. (I think.)

I don't use much FreeBSD these days, but pf (from OpenBSD, I know), is one of the best things since sliced bread.

In my first job I was working for a company selling a third-party vertical software and we were proving support for it. We were using a very expensive symantec vpn with most customers connecting with a 33.3kb phone connection, until we reached the license limits, and there was no money for new licenses. In a pinch, me and a coworker set up a new server with openvpn, freebsd, pf, and a ruby-based dns server that I don't remember anymore, and we grew an order of magnitudes more customers.

It's been more that 20 years, I still don't know how to use firewalls in linux, (there are many, I just pretend they don't exists) but I would still be able to setup a pf firewall if needed. I need to say it again, pf is a joy to use.

My gripe with FreeBSD right now is that I miss something like docker swarm. bhyve is fine but AFAIK it works only on a single host. Give me something that works on a bunch of hosts, and I will come back right away

mrighele··on Board: New game console recognizes physical pieces, with an open SDK
Reminds of Microsoft Surface, the original coffee table [1]. It was quite cool at the time, but too expensive for what could have been useful application.

Hopefully for them, this will have more luck.

On a side not, the website is completely blank on Firefox.

[1] https://www.youtube.com/watch?v=SRU3NemA95k

mrighele··on Tell HN: Azure outage
Italy has mail-in vote only for citizen residing abroad. The rest vote on the election Sunday (and Monday morning in some cases, at least in the past).
mrighele··on C64 Blood Money
Thanks a lot, I will check it out.
mrighele··on C64 Blood Money
Any good suggestions for tools for writing C64 programs in Linux and running them in Vice ? I only found a couple of guides that cover Windows, alas.
mrighele··on C64 Blood Money
A spiritual successor would be Zombie Night Terror [1].

I find it even better in some ways (atmosphere, dark humor, gameplay). Highly recommended.

Edit: it has also an editor and community made levels.

[1] https://store.steampowered.com/app/416680/Zombie_Night_Terro...

mrighele··on Build your own database
It is a single problem that contains two smaller problems, but the actual hard part (a third problem, if you wish) is putting them together. If you limit yourself to solve those two problems independently you won't have a (useful) database.
mrighele··on A 12,000-year-old obelisk with a human face was found in Karahan Tepe
"Tepe" is just a Turkish word for hill or mound.

So "Göbekli Tepe" literally is "Hill with a belly", "Taş Tepeler" is "Stone hills" etc.

mrighele··on A years-long Turkish alphabet bug in the Kotlin compiler
The issue is not the invention of the dotless I, it already exists, the issue is that the took a vowerl , i/I, and the assigned the lower case to one vowel, and the upper case to a different one, and invented what left missing.

It's like they decided that the uppercase of "a" is "E" and the uppercase of "e" is "A".

mrighele··on Beginner Guide to VPS Hetzner and Coolify
Hetzner price doesn't include VAT.

But the real issue is that the price is a bit of red herring: the CX22 plan is not available everywhere (only in the old datacenters in Europe I think) and if you need to scale up your machine you can't use the bigger Intel plans (CX32, CX42 etc) because they have been unavailable for long time, and you have either to move to Amd based plans (CPX31 etc), which cost almost double for the same amount of ram, or to Arm64 based plans.

mrighele··on Self-hosting email like it's 1984
I would love to be able to self-host like it was 2025, and with that I mean giving a piece of software the api token to my DNS api, a database, a list of domains and having it figure everything out (certificates, MX records, DKIM etc.) by itself. It should not be impossible.
mrighele··on An open letter calling for a hard fork of Rails to remove DHH's influence
A stable country is a country that is primarily a country of X. What constitutes X may change over time, but it works fine if it is slow and gradual.

> But one of the legacies of colonialism is the Middle East and Africa being carved up in lines that didn’t match the underlying cultural groups.

If it is not gradual and you have Y and Z beside X, is when trouble start. Middle East and lot of African countries is the example of this. Those people where unable to live together (too many cultural differences) in their home country, why should be different in Europe, where cultural differences will be even higher ?

mrighele··on This map is not upside down
Until just a few centuries ago most of the world population was split between Europe (West) and East Asia (East).

Plenty of people genuinely believed that if you were to navigate to the West of Europe you would fall off the border of the world (well, some still do).

mrighele··on Denmark's Justice Minister calls encrypted messaging a false civil liberty
Note that he said "everyone's civil liberty". It means that he thinks that it is not everybody's right, not that it is nobody's right. They want to keep the right for themselves.
mrighele··on I ditched Docker for Podman
> If your Docker Compose workflow is overly complex, just convert it to Kubernetes YAML. We all use Kubernetes these days, so why even bother about this?

I find that kubernetes yaml are a lot more complex than docker compose. And while I do, no, not everybody uses kubernetes.

mrighele··on Bcachefs Goes to "Externally Maintained"
Ubuntu too.
mrighele··on The Synology End Game
> I have to imagine one can find a case that allows tons of drives and is still powered by something modest.

I found it almost impossible to find a case which has a fair number of bays (at least 6), is meant for an human environment (i.e. it is not ugly or meant for a rack) and doesn't cost a lot.

So I am now working on hanging an ikea skadis on the wall and attaching everything to it. The big panel has just the right space for everything (10 disks, mobo, extra sata controller, PSU), it is ridiculously cheap, I had fun designing the parts and 3d printing them (though there are many available for free on the web) and it gives easy access to the disks and can be a topic of discussion when friends come over. Not sure it will work properly though :-) (issues may arise with vibrations, temperatures etc).

As an alternative to make it completely visible, I though about doing the opposite, hiding inside regular furniture. You can easily find metal frames meant for an "open chassis" to properly arrange motherboard, disks etc, so it is doable. The easiest would be using a regular cupboard, but I would love to use an ottoman and be able sit on top of it, a la cray-1. I "only" need to solve the issue of hiding the cable, and giving proper ventilation.

mrighele··on Is air travel getting worse?
I agree with you. My flights back home cost double now than they did 5 years ago.
mrighele··on Is air travel getting worse?
Some European companies make you pay for that too and the basic package only comes with a bag (e.g. laptop bag)
mrighele··on Dumb Pipe
I remember doing something like this with Skype many years ago (at least 15, I guess).

The old Skype, the one that was a real p2p app and before it got bought by Microsoft, was very good slicing through firewalls and NATs and it offered a plugin api, so it was easy to implement a TCP tunnel with it.

mrighele··on Stellantis declares bankruptcy in China, with $1B in debts
At least in Europe, car are more expensive to make than 20 years ago, even inflation adjusted, as the EU keeps adding new and stricter regulations.

* Lower emissions, requiring more expensive engines.

* Making cars easier to recycle (but more expensive to build)

* Adding mandatory accessories for safety reasons. Here you can find an example of what that has been recently added. [1]. Nice stuff, but it doesn't come for free.

[1] https://autovista24.autovistagroup.com/news/what-is-the-gene...

mrighele··on Swift at Apple: Migrating the Password Monitoring Service from Java
A moving garbage collector is not that rare, other languages have it. I think C# has one for example, OCaml and SBCL too.

I know about the trade-offs that a moving GC does, but the rule is about double memory usage, not ten times more like a 90% reduction would seem to imply.

mrighele··on Swift at Apple: Migrating the Password Monitoring Service from Java
The 90% reduction doesn't necessarily have to be related only to GC.

In my experience Java is a memory hog even compared to other garbage collected languages (that's my main gripe about the language).

I think a good part of the reason is that if you exclude primitive types, almost everything in Java is an heap-allocated object and Java objects are fairly "fat": every single instance has an header of between 96 and 128 bit on 64-bit architectures [1]. That's... a lot. Just by making the headers smaller (the topic of the above link) you can get 20% decrease in heap usage and improvements in cpu and GC time [2].

My hope is that once value classes arrive [3][4], and libraries start to use them, we will see a substantial decrease in heap usage in an average java app.

[1] https://openjdk.org/jeps/450

[2] https://openjdk.org/jeps/519

[3] https://openjdk.org/jeps/401

[4] https://www.youtube.com/watch?v=Dhn-JgZaBWo

mrighele··on My AI skeptic friends are all nuts
Because with the above command your assistant will delete snapshot-01.png and snapshot-02.jpeg, and avoid deleting by mistake my-kids-birthday.png
mrighele··on After months of coding with LLMs, I'm going back to using my brain
I have been trying LLMs in a couple of new small projects recently.

I got more success that I hoped for, but I had to adjust my usage to be effective.

First of all, treat the LLM as a less experienced programmer. Don't trust it blindly but always make code review of its changes. This gives several benefits.

1) It keeps you in touch with the code base, so when need arise you can delve into it without too much trouble

2) You catch errors (sometimes huge ones) right away, and you can have them fixed easily

3) You can catch errors on your specification right away. Sometimes I forget some detail and I realize it only when reviewing, or maybe the LLMs did actually handle it, and I can just tell it to update the documentation

4) You can adjust little by little the guidelines for the LLM, so that it won't repeat the same "mistakes" (wrong technical decisions) again.

In time you get a feeling of what it can and cannot do, where you need to be specific and where you know it will get it right, or where you don't need to go into detail. The time required will be higher than vibe coding, but decreases over time and still better than doing by myself.

There is another important benefit for me in using an LLM. I don't only write code, I do in fact many other things. Calls, writing documentation, discussing requirements etc. Going back to writing code requires a change of mental state and to recall into memory all the required knowledge (like how is the project structured, how to use some apis etc.). If I can do two hours of coding it is ok, but if the change is small, it becomes the part where I spend the majority of time and mental energy.

Or I can ask the LLM to make the changes and review them. Seeing the code already done requires less energy and will help me reminding stuff.

mrighele··on Traffic Fatalities Are a Choice
If you build your infrastructure in a way that people have to drive much more to do the same, should you really discount this difference ?

I rarely drive the car because I can reach by walk any place required by my daily necessities... of course I don't risk a fatal accident as much as somebody that drives daily for work and has to take the car for any kind of shopping.

Put in another way: if are considering ways to lower traffic fatalities, lowering the time that people need to spend in their car is one way to do it.

mrighele··on Show HN: Reverse Pac-Man
Me too, also because I remember playing that kind of game, on a Creativision, more than 40 years ago [1]

[1] https://archive.org/details/Crazy_Chicky_1981_VTL

← PreviousPage 4 of 28Next →