HackerTrans
TopNewTrendsCommentsPastAskShowJobs

karma_pharmer

no profile record

comments

karma_pharmer
·2 years ago·discuss
This Is The Way.

Bonus: you get a real keyboard.
karma_pharmer
·2 years ago·discuss
I interviewed with them, a long long long time ago.

They use OCaml because it is explainable. Which it is. They use it like a non-lazy version of Haskell -- side effects are used rarely if ever. So there's no nonlocal behavior in the code, which makes it easy to reason about. And that kinda matters when a lot of money is at stake.

Incidentally, Standard Chartered has their own compiler for Haskell, without the laziness. The group is led by the guy famous for Cayenne (the first dependently typed Haskell dialect).
karma_pharmer
·2 years ago·discuss
For 10gbit+: Mellanox SN2xxx. Probably the SN3xxx, SN4xxx, and SN5xxx too but I can't afford those.

For 1gbit: Ubiquiti Edgerouter ER-4 and ER-6; both have SFP cages for fiber optic transcievers https://github.com/NixOS/nixpkgs/pull/194153 https://store.ui.com/us/en/products/er-4
karma_pharmer
·2 years ago·discuss
Friends don't let friends use multi-mode fiber.

Single-mode fiber is future-proof. Utilities bury that stuff and depreciate it over a 30-year lifetime. There has been like one spec change since the 1970s.

Single-mode fiber. Always single-mode fiber. Nothing else, ever.
karma_pharmer
·2 years ago·discuss
All the switches in this series except the one in this review actually have two separate boards inside with a PCIe-over-cable connection between them. For example the SN2700 here (the sleeved cable in the third photo; you can't see the connector from the angle it's taken from):

https://ipng.ch/s/articles/2023/11/11/mellanox-sn2700.html

The cable has a SAS (SFF-8087) connector on each end. I bet you can replace it with an SFF-8087-to-Oculink cable:

https://www.amazon.com/chenyang-SFF-8611-SFF-8087-PCI-Expres...

and a PCIe-to-oculink card like one of these:

https://www.amazon.com/Ableconn-PEX-OL153-OCuLink-SFF-8612-A...

(none of the links are affiliate links)
karma_pharmer
·2 years ago·discuss
Yes. The switchdev "sw1p[0-9]+" ports are special; the any data the software kernel injects to them is discarded and they never emit packets to the kernel. They exist only to allow you to use `ip bridge` and `ip route` on them. So if you accidentally configure software switching on these ports no data will flow -- it will be totally obvious. You might get "no packets" by accident but you will never get "software switching" by accident.

If you really want software switching you have to use the management port (there's only one or two of these) whose name is "eth0" or "eth1" or something like that. So avoiding "accidental software switching" is really easy -- if you're typing "eth" you're doing it wrong. You can even explicitly delete this interface if you don't need the CPU to be able to snoop/inject traffic to/from the switch ports.
karma_pharmer
·2 years ago·discuss
I am curious though what configuration option prevents this from ending up with software switching

The answer is "switchdev":

https://www.kernel.org/doc/html/latest/networking/switchdev....

The Linux switchdev driver is the awesome magic that says "make hardware-offloaded switching ASICs look just like software switching". It's beautiful and amazing, as you'd expect from Mellanox.
karma_pharmer
·2 years ago·discuss
Having gone through this struggle myself, here's the cheat sheet. You want a device that uses the Linux switchdev driver and is supported by dentOS whether or not you actually choose to run dentOS on it (I run NixOS on my switch):

https://www.kernel.org/doc/html/latest/networking/switchdev....

https://github.com/dentproject/dentOS

Switchdev support means you don't need hardware-specific userspace tools (with their own bizarre syntax to learn) in order to configure the switch.

DentOS support means the device uses a sane bootloader (uboot or grub) and the only binary blobs on the device will be the ones built into the bootloader (IntelME, Arm Trusted Firmware) and the switch firmware which will be part of linux-firmware (and therefore very easy to manage/update).

In particular, looking for these two keywords is how you make sure that the hardware vendor is staying on "their side of the line" between hardware and software. Violations of this line are endemic to 10G+ switching.
karma_pharmer
·2 years ago·discuss
Source?

"Exempt employee" has to do with overtime, not moonlighting. It's not relevant to this discussion.
karma_pharmer
·2 years ago·discuss
There's nothing illegal about this, although Hacker News for some reason has the peculiar belief that there is.

Any contract purporting to prevent an employee from earning money elsewhere is an illegal restraint of trade. Indeed the company would be the criminal if they tried to write this into their employment agreements.
karma_pharmer
·2 years ago·discuss
Money taken like that should not be spent on necessities of life but on luxuries of life.

Sylvia Bloom, master of insider trading, disagrees.

https://en.wikipedia.org/wiki/Sylvia_Bloom

Sylvia Bloom (c. 1919 – 2016) was an American legal secretary. By copying her bosses' investment decisions she secretly accumulated a significant fortune and donated the bulk of it—US$8.2 million—for scholarships for underprivileged students upon her death. She lived modestly in a rent-controlled apartment, and even her closest friends and family did not know about her wealth.