HNHacker News
TopNewBestAskShowJobs

a-priori

4,571 karma · joined November 30, 2007

https://www.michaelmelanson.net

Email: http://www.google.com/recaptcha/mailhide/d?k=01i2Z0AD83aFnz2M2_ANHJ0Q==&c=3l25AgxYX02v73tOr20rs0VdFHkj-Ckelw7_OTmPQ3c=

[ my public key: https://keybase.io/michaelmelanson; my proof: https://keybase.io/michaelmelanson/sigs/jl8BZUuAFX7MsL6Pn7Lf4oBboJ_jBJKie2nZQO5t3vA ]

submissionscomments
a-priori··on Company with a 10% lifetime employee turnover shows their real secret is trust
Just because it's 'not much time for turnover' doesn't mean there's plenty of younger companies with much higher lifetime turnover.

In the tech industry, the average annual turnover rate is 13.5%. If I'm doing my math right, that amounts to a lifetime turnover of 77% for an average 10 year tech company assuming flat employee count over the time period, or 51% for the same company with linear growth from zero over the time period. Both are well above the 10% this company is claiming.

(The 77% came from 1 - ((1-0.135)*10), and the 51% came from 1.0 - ((1-0.135)*10)0.1 - ((1-0.135)*9)0.1 - ((1-0.135)*8)*0.1 ... to sample even cohorts of 10, 9, 8, etc. years making up equal portions of the population.)

a-priori··on CatalaLang/catala: Programming language for law specification
It's hardly abandoned. The git history shows activity almost every day over the last few months. It's clearly being actively developed.
a-priori··on ISPs should not police online speech no matter how awful it is
No, you’ve got weird ideas about citizenship and civil rights if you think that’s the case.

Plenty of rights are conferred by merely being within the borders of a country, regardless of citizenship status. You can be a tourist or even an illegal immigrant in the US and have the right to habeas corpus or the right of non-self-incrimination, for example.

Talking about elevating corporations to be on par with citizens is a fascist idea, which is absolutely adjacent to corporatism.

a-priori··on ISPs should not police online speech no matter how awful it is
The idea of corporations being legal people is questionable in the first place, but now you’re going to argue that they’re not only people but citizens?!
a-priori··on Canada had poached 10k tech workers from the U.S. – in just 48 hours
You can still own many kinds of guns here in Canada, and roughly 5% of Canadians do.

There's certainly more requirements and limitations placed on you than you may be used to, put in place to ensure everyone else's right to safety isn't infringed upon. It's okay if you're not willing to abide by such restrictions, either by following them or by giving up your guns. That's totally your choice. It just means our country is not compatible with your chosen lifestyle.

a-priori··on Meta announces its Quest 3 VR headset
I assume they're trying to take the same approach most game consoles take (Nintendo is an exception here from what I understand) where they sell the hardware at a loss, and make their profit on licensing on game publishers. Here that'd be monetizing the "metaverse" to make their money. It's the razor and blades business model.

It's a whole other thing whether this will actually work out for them, because it depends on there being a captive market for the profitable half of the business model (the "metaverse" content).

a-priori··on GPT-4 recreates Flappy Bird game in one shot
I don't know about that. Check out the other GPT-related thread on the front page right now. GPT-4 fails to solve programming problems that are much simpler than writing a whole game (even a relatively simple one). https://news.ycombinator.com/item?id=35193188

It's really not impressive to me. Humans are gullible and want to anthropomorphize computers. Every time someone claims a LLM like GPT-* can do something apparently amazing, we're seeing the ELIZA effect (https://en.wikipedia.org/wiki/ELIZA_effect) in action.

a-priori··on GPT-4 recreates Flappy Bird game in one shot
Flappy Bird is a well-known game by now, and it's simple enough that lots of people have produced tutorials online about how to write it. My guess is that it's mostly regurgitating code out of its training corpus.

It'd only be impressive if you asked it to create a novel game of similar complexity and it was also able to do that successfully.

a-priori··on Last Flight Out
I think a lot of those physical things you suggested, like parkour and climbing, would be extremely risky because the last thing you'd want is to injure yourself in the middle of an Antarctic winter.
a-priori··on Weird things I learned while writing an x86 emulator
There are reference manuals with a lot of details. Specifically you'd want to read the "Intel® 64 and IA-32 Architectures Software Developer’s Manual", Volumes 2, which includes specifications of each instruction including pseudo-code of how the processor executes them. You can freely access a PDF of the entire manual here: https://www.intel.com/content/www/us/en/developer/articles/t...

But there's a lot of details there — that volume alone spans about 4000 printed pages in the manual — so you're bound to mess things up.

I've written emulators for simpler instruction sets (RISC-V and the 6502) and found that the best way to ensure they work correctly is to do instruction-by-instruction comparisons against a reference. The good news is that if you've got a PC computer, you've got easy access to a reference machine! So you can do side-by-side comparisons where you set up an initial state on both a real machine and an emulated machine, then execute some code on both, and compare the final states. By using the trap flag you could also single-step through the instructions to extract the intermediate states after each instruction and ensure they match the emulated state.

So that's my guess about how he did his too. It's painstaking work, but also kind of fun when you get into it.

a-priori··on British Gas admits agents break into struggling customers' homes
You don't understand why people should be able to cook food and heat their houses?

This is a governance failure: for letting prices get out of control, for allowing poverty so bad that _people cannot heat their homes_, and then for allowing utilities to shut off people's utilities like this.

It doesn't have to be that way: on that last point for example, in Ontario, Canada, there's a law that says that a utility cannot shut off a house's electricity or gas during the winter for non-payment. It doesn't matter how far behind you get on your bills, it's illegal to shut it off. This would, I think, make pre-payment meters illegal here, and this probably explains why I've never heard of them being a thing.

a-priori··on US Department of Energy: Fusion Ignition Achieved
It's not "creating" energy, it's releasing energy.

The original atoms (exactly which atoms depends on the reactor, but let's assume it's deuterium and tritium) have a certain starting energy. When you fuse them together the resulting atom (helium-4, if you start with deuterium and tritium) moves it into a lower energy state.

Since the fused atom has lower energy than the input atoms, the fusion reaction releases the difference in energy, which you can then capture.

a-priori··on Tailwind is a leaky abstraction
Honestly I just don't see how it's possible to 'forget CSS' with Tailwind. I mean, the classes mostly map 1:1 to CSS properties.

As someone who has been writing CSS for approximately a billion years (actual number more like 13 years) I'm a fan of Tailwind and don't see how it's a 'beginner' thing at all. It solves real-world problems building web applications, and actually many of those problems only come up when you're building large, long-lived applications with many contributing developers which is precisely the kind of thing beginners aren't in charge of.

a-priori··on Ask HN: Why aren't there DSLs for Operating Systems? (Or are there?)
What you're referring to is AML, which is part of ACPI. It defines a bytecode for short programs that are provided to the operating system in the ACPI tables for performing certain operations on devices. The operating system can then 'call' these functions by executing the bytecode.

This way different devices can use different procedures to, for example, put the device into sleep mode.

https://wiki.osdev.org/AML

a-priori··on Ask HN: What weird technical scene are you fond/part of?
My scene is hobby operating system development, where you build an operating system usually for x86 / x86-64 PCs from scratch booting either from the BIOS, or UEFI, and then going from there. Common languages to use are C, C++ or (recently and my personal favourite) Rust.

Personally I'm currently working on an AHCI storage driver (i.e, for talking to SATA drives) for my operating system.

There's a lot of information out there, especially at https://wiki.osdev.org/ about how to get code booting, and about lots of the basic hardware works. There's also places like https://www.reddit.com/r/osdev/ for asking people for help.

a-priori··on The leap second’s time is up: world votes to stop pausing clocks
Yes it varies unpredictably based on changes in the distribution of mass within the Earth from magma flows, air currents, ice pack movements, ocean currents, and so on.

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

a-priori··on Elon Musk tells Twitter staff to work long hours or leave
If I were on a work visa I would click "yes", then start looking for another job (if I weren't already looking). No need to start the clock on your visa expiring if you don't have to.

In any other situation, I'd take the 3 months pay and move on with my life.

a-priori··on Amazon walking back raises after internal bug miscalculated compensation
RSUs are always granted as a number of shares. It's kind of the point of them, so the employee benefits from stock appreciation since their hire date.

However, in offer paperwork, it will sometimes be stated as a dollar value. This is for two reasons: the first is that RSUs need to be approved by the board at a meeting, which can happen some time after the hire date, at which time the dollar value is converted into shares.

But the main reason is that it makes it easier for the candidate to understand the value of the RSUs, and lets the company then talk about the total compensation and try to treat RSUs like cash in that discussion.

a-priori··on I was proposed a remote job in the US. How to calculate the equivalent EU salary
I’m only one week of work in. It’s fine so far: I got paid on time, benefits are okay.

The biggest problem for me were in the on-boarding around ID. I provided a driver’s licence plus SIN, which is sufficient proof of identity and eligibility to work in Canada. A regular employer would only need the SIN, and I understand a company like Deel would also need to verify identity since they hadn’t actually met me.

But, no, apparently they require proof of citizenship (for citizens anyway), which no regular employer needs. For that you need to provide a “passport or national ID”… but Canada has no national ID system, only passports, and my passport is expired (because COVID). They had to make an exception for me to accept an expired passport.

It worked out okay in the end but it was frustrating and confusing for about two weeks, during which I had paused my job search and I was worried I’d have to walk away from a good offer if they couldn’t sort it out.

So in the end I think it’ll be okay, but I’d talk to your own employees, especially new ones, and make sure they don’t get caught up in some bureaucratic snag.

a-priori··on I was proposed a remote job in the US. How to calculate the equivalent EU salary
There are employers of record that will hire employees on a company’s behalf through a local entity when the company doesn’t have their own. I’m currently employed through Deel, for example.
a-priori··on Microformats Wiki
No, you should be using ARIA attributes, such as `aria-role` for this where it cannot be inferred by the element's tag name.
a-priori··on Microformats Wiki
As I said in my parent comment, there's other attributes better suited to purposes like this rather than overloading the `class` attribute.

You can, for example, use a `data-testid` attribute if the element can't be identified reliably with another attribute, such as the `id` or `role`.

a-priori··on Microformats Wiki
I'd argue that using the `class` attribute for describing the content of a field is overloading it, and that it should only be used for linking to CSS styles.

You're better off using another attribute, e.g. some data-* attribute, for semantic information.

a-priori··on UK heatwave: Temperatures still rising after record broken before noon
This isn’t some speculative thing. It literally happened in the 2003 heat wave, where crops failed due to the extreme heat. With even higher temperatures in this heat wave it will certainly happen this year too.

As these sorts of heat waves become more frequent, our food supply will become more unstable which, left unchecked, will eventually result in famine even in rich parts of the world like Europe.

a-priori··on UK heatwave: Temperatures still rising after record broken before noon
When it starts interfering with agriculture by killing crops, resulting in famine and food shortages.
a-priori··on Lexical – a web text editor framework that powers Facebook
How does this compare to Draft.js, another rich text editor created by Facebook?

https://draftjs.org/

a-priori··on Choose Boring Technology (2015)
Yes I think this is the key insight: if you have two technologies that will solve your problem, both reasonably popular and actively developed, the one that is ten years old is far more likely to still be actively developed in another ten years than one that is one year old.

You're using survivorship bias in your favour.

a-priori··on Choose Boring Technology (2015)
"Choose boring technologies" doesn't imply "... and then never change ever again even when it becomes obsolete and unsupported". That's where the first company went wrong.

It means to choose technology components that are stable and boring (but still actively developed with a healthy community around them!).

It also means to break this rule if and when that thing is important enough to your success that it makes sense to spend innovation points on it because it'll set you apart. But also recognizing that those instances are rare, and that's where good engineering judgment and leadership comes in.

a-priori··on Voting in France: Paper ballots, cast in person; no machines
Would it surprise you to hear that in Canada, we accept a very broad range of ID (a bank statement and a lease agreement for an apartment would do)? And even if you don't have any of that, you can still vote if another registered voter vouches for you?

https://www.elections.ca/content.aspx?section=vot&dir=ids&do...

You can also register on election night. I did this a couple years ago when there was a provincial election shortly after we moved.

And yet we don't have widespread electoral fraud.

a-priori··on Voting in France: Paper ballots, cast in person; no machines
Canadian elections are also done on paper, mostly in person (though mail-in voting is allowed, and has became more popular during the pandemic), counted by hand. We don't use any machines on the federal level, though at the provincial level there's sometimes tabulator machines to speed up counting and even that's not much of a benefit.

This is true at the municipal level too, which have more complicated ballots to vote for mayor, councillor and school board trustee. Still done on paper ballots, counted by hand.

Despite it being a manual process, the results are always available within a few hours of closing time. This is democracy, not rocket science. It does not and should not require technology to operate elections.

← PreviousPage 3 of 34Next →