HNHacker News
TopNewBestAskShowJobs

__mp

358 karma · joined June 30, 2013

submissionscomments
__mp··on Ask HN: What Are You Working On? (July 2026)
I built my own weather prediction / visualization app: https://wx.rsp.li (on-device temperature lapsing, on device interpolation modes, user-selectable aggregations, etc…). One of these days I should do a writeup.

I also asked Claude to build a photo gallery for me https://places.pascalspoerri.ch (HDR, map support, similar images)

__mp··on Ask HN: How is AI-assisted coding going for you professionally?
I enjoy Opus on personal projects. I don’t even bother to check the code. Go/JavaScript/Typescript/CSS works very well for me. Swift not so much. I haven’t tried C/C++ yet. Scala was Ok.

Professionally I hardly use the tools for coding, since I’m in an architecture role and mostly write design docs and do reviews. And I write the occasional prototype.

I have started building tools to integrate copilot (Opus) better with $CORP. This way I can ask it questions across confluence and github.

Leveraging Claude for a project feels very addictive to me. I have to make a conscious effort to stop and I end up working on multiple projects at the same time.

__mp··on 100 hour gap between a vibecoded prototype and a working product
yes. depending on the techstack your experience might be better or worse. HTML/CSS/React/Go worked great, but it struggled with Swift (which I had no experience in).
__mp··on Ladybird adopts Rust, with help from AI
you have to ask it to profile and optimize the code for you. Then have it document the changes and run it in a loop. It’ll do wonders.

I asked a cursor agent to do the same for a geotiff to pmtiles converter. It managed to optimize the performance from tens of days to half a day for the case I wanted to solve.

__mp··on My Browser WASM't Prepared for This. Using DuckDB, Apache Arrow and Web Workers
I’ve been toying with the idea of implementing a distributed analytics engine on top of Cloudflare workers and DuckDB.

I’m not sure if this goes against the CloudFlare TOS tough (last time I checked they had some provisons against processing images).

__mp··on Ask HN: Programming Courses for Experienced Coders?
"Computer Systems: A Programmer's Perspective" is a great introductory systems textbook on everything going on in a computer.

For more advanced C/C++ developers I can recommend "The Linux Programming Interface" - (https://man7.org/tlpi/). It is a GREAT compendium for writing code against the POSIX API. I have a (legal) copy of this book on all the computers I have access to.

"The Database Redbook" - (http://www.redbook.io) is a valuable source on database implementations.

"Compilers: Principles, Techniques, and Tools" (Dragon Book) is a great starting point. The book is out of print and but I think it should still hold up for most basic use-cases.

__mp··on Ask HN: Programming Courses for Experienced Coders?
I understand. But as a long-time programmer I like to explore new programming languages or APIs by working on a small project. I start with a first prototype to get the feel of the language, before I look into extended documentation. Chat GPT helps with this use-case.

It's also more fun to have something which can be easily extended than to start from scratch.

__mp··on Ask HN: Programming Courses for Experienced Coders?
When writing a small application in Go I had great success asking Chat GPT specific questions. It helped me figure out which packages I needed to use and how to interact with them.

I understand that this might not fit your use-case, but it's worth a try. Just be aware that it tends to hallucinate APIs.

__mp··on Dark Sky iOS app will no longer work from Dec 31
I like

- https://www.meteoblue.com - check out the multi model, the multi model ensemble , the meteograms and the weather maps! Sadly the app itself is not as good as the website.

- https://yr.no - One of the few "free" providers with ECMWF model data (Norway has open data, that's why the data is free)

- https://www.windy.com/ - ECMWF, GFS and ICON. I don't like their presentation, but the available data is quite nice.

If you want a DarkSky replacement API, then checkout out https://pirateweather.net/ (GFS only, sadly :/ )

__mp··on The largest model airport and railway
They have also a great YouTube channel: https://www.youtube.com/c/MiWuLaTV
__mp··on Bear Blog – A privacy-first, fast blogging platform
It looks very nice
__mp··on Bear Blog – A privacy-first, fast blogging platform
Hugo is very fast in updating a website. Unless you have thousands of blog posts I would not bother.

You can self-host it on a "cheap" webhost and rsync the changes (that's the way I do it). Or you can integrate it with Github and host it with

- Netlify https://gohugo.io/hosting-and-deployment/hosting-on-netlify/

- AWS Amplify https://gohugo.io/hosting-and-deployment/hosting-on-aws-ampl...

- Cloudflare Pages https://developers.cloudflare.com/pages/framework-guides/dep...

to name a few. The hugo site has a couple of howtos.

Some hosting solutions require that the entire website is stored in a separate branch, others regenerate the HTML through a CI pipeline and store it in an object store.

__mp··on Bear Blog – A privacy-first, fast blogging platform
Sure, there's certainly interest in doing this. See this post for more details: https://misha.brukman.net/blog/2022/04/writing-math-with-hug... (I'm not the author of this post)

Client-side rendering works well enough for me, and has been for years (as a visitor). I don't see a benefit to integrate a custom Hugo patch to get server-side rendering for my simple personal blog.

__mp··on Bear Blog – A privacy-first, fast blogging platform
Hugo in combination with the Congo Theme (see https://github.com/jpanther/congo) has scratched this itch for me. The theme is well thought out and has all the features I need.

There's the usual youtube and vimeo integration, but also

- integration with Flowcharts through mermaid https://jpanther.github.io/congo/samples/diagrams-flowcharts...

- charts through Chart.js https://jpanther.github.io/congo/samples/charts/

- and even LaTeX support: https://jpanther.github.io/congo/samples/mathematical-notati...

__mp··on My journey for dual displays with my M1 Pro Mac (2021)
You can use better dummy to achieve a similar resolution: See here https://github.com/waydabber/BetterDummy and this MacRumors thread https://forums.macrumors.com/threads/m1-mbp-lg-34-inch-ultra...

I tried it on my M1 Mini + LG5K2K and soon disabled it again. The performance impact was noticeable in Lightroom and the display adapter config got in the way once I switched display input to my work laptop.

__mp··on macOS Setup after 15 Years of Linux
I faced similar issues with the Swiss keyboard layout. I suggest switching to the “US International“ layout and use the dead keys to obtain the umlauts. There’s also a keyboard option that enables a umlaut menu with a long press on the keyboard- if you really want to avoid the dead keys (this might help: https://apple.stackexchange.com/questions/254094/character-a...).

The Apple “English International“ keyboard has a big enter key - if you dislike the small enter key of the US keyboard layout.

__mp··on The open calendar, task and note space is a mess
Fantastical (iOS/macOS) solves this use-case for me. It supports configuring different views (personal, work, etc...). Moving an event from one calendar to another calendar is also well-supported.
__mp··on The future is in symmetrical, high-speed internet speeds
Switzerland, I’m getting 1, 10 or 25gbit (ptp) from my local isp (https://www.init7.net) for ~70 usd per month. I currently only use 1gbit because the 25/10gbit hardware is too big or too loud to fit into my electrical cabinet. There’s also cheaper 1/10 gbit options, but they suffer from massive oversubscription and gpon.
__mp··on Astronomical Algorithms (1999)
It looks like they disabled their webshop:

  We are closed for business.
  New orders are no longer accepted.
__mp··on FastAPI framework, high perf, easy to learn, fast to code, ready for production
We're using FastAPI for the backend. We then use the OpenAPI.json exposed by the documentation endpoint to generate API bindings for Typescript.
__mp··on Dissecting the Apple M1 GPU, Part II
The published code on Github looks very nice! It is easy to read and understand.

Kudos to Alyssa!

__mp··on 27-inch iMac gets a major update
There you go: https://support.apple.com/en-us/HT208544

> 1. If you have a Mac mini (2018) with FileVault turned on, make sure to connect your primary display directly to Mac mini during startup. After you log in and see the macOS Desktop, you can unplug the display from Mac mini and connect it to your eGPU.

__mp··on 27-inch iMac gets a major update
For me, the eGPU setup is not worth the benefits. I am also waiting for Apple Silicon to streamline my setup.

I have a MacMini + eGPU. Every time I (re)boot the machine I have to remember to remove the remove the eGPU: Otherwise I cannot enter the filevault password. This is super annoying since the machine seems to have crashed every time I want to use it (even without an eGPU).

Previously I used the eGPU with an 13” MPB and the experience was annoying in different ways: Simply unplugging the eGPU kills the programs using it. Every time I wanted to “undock” the MBP I had to remember to click to remove the eGPU from the MBP: otherwise half the programs running are killed/not responsive.

__mp··on Building the ultimate home office again
Re conbee2:

Checkout https://phoscon.de/en/conbee2 You can control a wide range of Zigbee devices without installing a gateway. From Philips Hue or Ikea lamps to plant sensors from Aliexpress.

List of supported devices: https://github.com/dresden-elektronik/deconz-rest-plugin/wik...

You would integrate the devices with an OpenSource HomeKit or HomeBridge implementation on a Raspberry or similar into your home.

__mp··on ClimaCell Weather API: fully customizable hyper-local API
Check out https://www.meteomatics.com

Available models can be found here: https://www.meteomatics.com/en/api/request/#model_selection

__mp··on The “mail is hard” myth
I also use Fastmail to host my calendar and contacts - next to my email. I enjoy the web interface and lI especially like that the iOS integration just works.
__mp··on Run Your Own Website
0) Get a cheap virtual/dedicated machine.

1) Install docker and docker-compose

2) Setup traefik, a reverse proxy, in docker (good starting point: https://docs.traefik.io/user-guide/docker-and-lets-encrypt/ ).

3) Run $docker container (ghost, wordpress...). I typically use one docker-compose file for each domain. "expose" is not necessary because the requests are proxied by traefik.

Here's a docker-compose sample for a website available under my-website.com:

    version: '3'
    
    services:
        web:
            container_name: my-website.com-nginx
            image: nginx
            restart: unless-stopped
            volumes:
                - ./data:/usr/share/nginx/html
            labels:
              - "traefik.docker.network=web"
              - "traefik.enable=true"
              - "traefik.basic.frontend.rule=Host:my-website.com"
              - "traefik.basic.port=80"
              - "traefik.basic.protocol=http"
    
    networks:
        default:
            external:
                name: web

There are probably more elegant ways to do this, however I found it quite effective for my setup.
__mp··on Where Glaciers Melt Away, Switzerland Sees Opportunity
A fact missing in this article is that dams in Switzerland are used for energy storage nowadays. It used to be the case that during lunchtime hydro produced most of the peak energy. Atomic power was used to pump the water into the dams during the night. Nowadays solar and wind, mostly from northern Germany, provide so much energy througout the day that it is more efficient to pump water into dams during lunchtime. It is unclear if these big dams can be run profitably.

More context: https://www.nzz.ch/schweiz/aktuelle-themen/pumpspeicherwerk-... (German)

__mp··on More than 9M broken links on Wikipedia are now rescued
How do you combat bit-rot/silent corruption?
__mp··on Host Your Blog on DigitalOcean with Docker, Nginx and Let’s Encrypt
I use it on my own server, a dedicated quad-core machine with 64 GB RAM (hetzner.de). Mainly because I host a multitude of different websites that require different technologies: PHP, Rails, Node, Go and Python. Setting everything up with Docker makes management a breeze and I can easily relocate and backup the entire setup to a different server.

I backup everything daily to my Synology at home.

Page 1 of 4Next →