HNHacker News
TopNewBestAskShowJobs

mxey

429 karma · joined April 1, 2012

submissionscomments
mxey··on Show HN: Go Plan9 Memo
> After doing some preliminary research I discovered that Go uses its own internal assembly language called Plan9.

Is the language actually called that?

mxey··on Why does everyone run ancient Postgres versions?
> All failure, rebuild, and reindex cases will be reported by pg_upgrade if they affect your installation; post-upgrade scripts to rebuild tables and indexes will be generated automatically.
mxey··on Why does everyone run ancient Postgres versions?
MySQL has only logical replication, there is no equivalent to PostgreSQL‘s WAL/physical replication.
mxey··on Why does everyone run ancient Postgres versions?
I haven’t used Galera, but I am very happy with https://patroni.readthedocs.io/en/latest/ for Postgres.
mxey··on Why does everyone run ancient Postgres versions?
I don’t see how this is homebrew‘s fault? Homebrew lets you install multiple versions of PostgreSQL at once, which you need for pg_upgrade, just like you can do with APT

brew install postgresql@17

mxey··on Why does everyone run ancient Postgres versions?
\? shows the help
mxey··on Why does everyone run ancient Postgres versions?
> The replication and high availability that mariadb offers is rock solid, and much more advanced than what postgresql has to offer. It works out of the box, no plugins or third party shenanigans needed, and there is "one obvious way" to do it.

Looking at https://mariadb.com/kb/en/standard-replication/, is the one obvious way binlog replication or Galera?

mxey··on Why does everyone run ancient Postgres versions?
As someone who operates both I much prefer to run pg_upgrade every few years rather than dealing with mysqldump, replication issues and babysitting Orchestrator.
mxey··on WP Engine is not WordPress
WordPress is licensed under GPL.
mxey··on Go range iterators demystified
https://research.swtch.com/coro at the very end explains that channels are too slow.

Re mutexes: one of Rob Pike‘s Go Proverbs (https://go-proverbs.github.io/) was "channels orchestrate, mutexes serialize“. Both have their places.

mxey··on Use a work journal
I use my inbox in OmniFocus as a running log of things for later, but I like the idea of having a dedicated journal thing.
mxey··on Revolutionizing PostgreSQL Schema Changes with pg-osc
Would be good to have some examples of when you need it, given that PostgreSQL lets you do many migrations without downtime.
mxey··on Pkl, a Programming Language for Configuration
the validation you are asking for sounds like what CUE does.

If you say

a: 5

a: 3

That’s an error.

If you want the ability to "override", you have to write it like this, for example:

a: *5 | int

a: 3

This also works for struct/list members, so you can set defaults for all fields, and stuff like that.

https://cuelang.org/docs/about/

mxey··on Is htmx Just Another JavaScript Framework?
You might like https://htmx.org/extensions/path-deps/
mxey··on What FreeBSD can offer compared to other operating systems (2020)
Good point.
mxey··on What FreeBSD can offer compared to other operating systems (2020)
So the advantage of FreeBSD over Linux is that a feature that is broken can be disabled?
mxey··on What FreeBSD can offer compared to other operating systems (2020)
I feel like these articles always do a disservice by misrepresenting things about Linux. Just some parts I stumbled over:

> [about jails] They are also very easy to debug and troubleshoot comparing even to plain Docker – not to even mention Kubernetes which requires whole team of highly skilled people to maintain.

Yeah, of course, a single-node container tool is easier to run than a Kubernetes cluster.

> Can you tell my how many steps (and which ones are required) to rebuild CentOS or Ubuntu for example without Bluetooth support?

Why do I need to rebuild without Bluetooth support?

> When using systemd(1) you never know how the services gonna start because it will be different each time. Zero determinism.

systemd starts services in dependency order. The author makes it sound like systemd just randomly shuffles the services each boot for fun.

mxey··on Running Intel Binaries in Linux VMs with Rosetta
Yes, Docker on macOS can switch from qemu-user to this. It uses the same binfmt mechanism, so it should be mostly a drop-in replacement.

This is only available in combination with Virtualization.framework, but Docker is already migrating from Hypervisor.framework to Virtualization.framework.

mxey··on Running Intel Binaries in Linux VMs with Rosetta
This is probably the first time macOS includes a Linux binary, yes.

Outside of macOS, Apple has been providing Linux binaries of the Swift toolchain for years: https://www.swift.org/download/

mxey··on $ sudo rm -rf / === NPM install
It has to be on the level of the package manager, if you want to avoid package A interfering with package B
mxey··on $ sudo rm -rf / === NPM install
The cloud environment where the code runs might be ephemeral, but it would most likely have access to some not so ephemeral resources that should still be protected.

If one wants to go sandboxing, the right place for it would be in npm, where packages should not be able to modify anything but themselves.

mxey··on FreeBSD 10.0 is here
A friend of mine made this: http://mxey.net/content/images/2013/Dec/Screen_20Shot_202013...
mxey··on Perl is 26 Today
Dancer or Mojolicious are more like Sinatra or Flask, not like Rails or Django
mxey··on Perl is 26 Today
In Python I miss a switch statement, anonymous functions longer than a single line, and an object system with the power of Moose. I don't think shared-by-default threading is a good idea, and Python's GIL makes it close to pointless.

I also miss a web framework like Django or Rails in Perl. I never liked Catalyst, but have not spent much time with it.

I cannot judge if the tooling is less obvious, but think the tools are better, especially in regard to testing. There is a virtualenv equivalent called local::lib, but I recommend the bundler equivalent called carton ;-)

mxey··on Perl is 26 Today
I spend less time “working around language deficiencies, inadequate tooling and all the rest of it” in Perl than in, for example, Python.
mxey··on Perl is 26 Today
CGI is not the way to go today. If you want to build web pages with Perl, check out http://mojolicio.us
mxey··on Perl is 26 Today
max and min are part of List::Util, a library that comes with Perl
mxey··on GNU Make 4.0 Released
gmake 4.0 is GPLv3, it will never be added to OS X.
mxey··on Ubuntu 12.10 Now Available
You do not, it once read “Windows has…”
mxey··on Why is Linux more popular than BSD?
You might want to check out the new pkgng system, if you still care.
← PreviousPage 5 of 6Next →