HNHacker News
TopNewBestAskShowJobs

sigwinch28

867 karma · joined July 20, 2018

https://sigwinch.uk

Don't bother with the broken plaque-ridden keyservers. Use WKD instead:

    gpg --auto-key-locate wkd --locate-keys joe@sigwinch.uk
submissionscomments
sigwinch28··on Algebraic Effects – You Can Touch This (2019)
> Does using this construct allow me to put some things in the "that doesn't matter here" bin

I've been doing this year's Advent of Code in Unison (https://unison-lang.org/, no affiliation) and I've found the form of algebraic effects used there (Abilities in Unison parlence) great for "that doesn't matter here".

For example, the `Abort` ability allows me to stop control flow deep down inside my code at without having to "thread" a bunch of monads or Maybes or Eithers through all the intermediate layers.

In one case I also used the `Store` ability to accumulate some metadata about a simulation as it progressed without having to "pollute"[^1] all of the intermediate layers with explicit handling of the metadata.

[^1]: the abilities do appear in the type signatures, though.

https://www.unison-lang.org/learn/fundamentals/abilities/

https://share.unison-lang.org/@unison/p/code/latest/namespac...

sigwinch28··on CLI for OAuth 2.0
A good starting point is https://auth0.com/docs/get-started/authentication-and-author...

> If the Application is a native app, then use the Authorization Code Flow with Proof Key for Code Exchange (PKCE).

You could use the Authorization Code Flow with Proof Key for Code Exchange (PKCE) with a web server listening on localhost or you could use the Device Authorization Flow.

I believe GitHub use the latter for the GitHub CLI.

sigwinch28··on Lessons learned after living in an off-grid rental
Wow, this reflects on me so much especially w.r.t. things I use in the bathroom: toilet paper, toothpaste, soap, etc.
sigwinch28··on Lessons learned after living in an off-grid rental
With regards to water usage:

>But that meant a fairly severe (but simple) change in behavior, like shutting off the water while lathering up in the shower or brushing teeth.

I am legitimately surprised that people leave water running during the 2+ minutes when brushing their teeth.

sigwinch28··on How to estimate an SSD’s working life
I assume GP is referring to https://www.intel.com/content/www/us/en/products/details/mem...
sigwinch28··on Intel on Demand
> what they deserve

I hope Intel get what they deserve in a market with ARM and AMD.

sigwinch28··on Intel on Demand
Yet another way to sell people things they already own.

I’m looking forward to Intel Probabilistic Provisioning, where you can buy keys for CPU accelerator loot boxes you acquire through CPU usage.

sigwinch28··on You can fire 80% of software engineers and the company will survive
"Utterly ineffective" helped produce a 44 billion dollar valuation.
sigwinch28··on Global Encryption Day: Demand End-to-End Encryption in DMs
> and if I lost those keys I'd lose all my messages?

Only if the developers of the software insist on encryption at rest in addition to transit encryption.

For example, you don’t lose the ability to open files you have already downloaded via HTTPS just because the client or server certificate later expires.

sigwinch28··on Meta ordered to sell Giphy by UK's competition watchdog CMA
>Also, if the US has a problem with a merger between two UK companies, do we in the UK have to abide by their ruling?

If the UK business wants to do business in the US... yes.

>What about if it is France rather than the US?

Yes.

>What if it's Russia?

Yes.

Companies must comply with local laws if they wish to conduct business in those countries.

For example, countries may dictate requirements on the telecommunications products sold in their own countries. This is the one of the reasons my UK-sold iPhone has an FCC certification (and even Russian and Belarusian certifications) and iPhones in the US might have CE or UKCA certifications.

This applies to less portable products, too: my Philips Hue bulbs have CE markings even though I'm not in the EU.

sigwinch28··on Lufthansa bans AirTags in checked luggage
> Note that the reason for airport mode is a courtesy to cell-phone carriers.

This doesn’t track. What about trains?

sigwinch28··on How the Apple AirTag became a stalker’s gift
The AirTags form part of Apple's "Find My" network.

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

tl;dr Apple devices broadcast IDs and then other Apple devices phone home with those IDs and GPS locations so the owners can find their lost devices even if they don't have internet connectivity.

sigwinch28··on Add ability to choose a custom coordination server
I want to use tailscale for me and my wife. I’d like to give them my money to manage it for me because adding yet another self-managed service to my home network seems tedious.

It seems to me like I would want two “users”, but that pushes me into their pro or business billing. Which tier should I go for?

sigwinch28··on CNIL makes Google Analytics almost illegal in France
> "makes Google Analytics almost illegal" is an editorialized (biased) title and that's not what the linked article says

Yep. Also, from the HN guidelines:

Otherwise please use the original title, unless it is misleading or linkbait; don't editorialize.

sigwinch28··on A practical guide to incident management
1. Collect data. It will help your case when you talk to management. How many incidents, when, what they relate to, how much of team time is spent on firefighting, etc.

2. Read Google’s SRE book for ideas. For example, read about error budgets in this chapter: https://sre.google/sre-book/embracing-risk/

If the goal is to have a reliable system, then the ultimate creators of unreliable systems must be made to feel the pain themselves.

For example, product can be made to “feel the pain” by not being allowed to have any new features while an engineering team fixes user-facing or business-critical bugs ultimately caused by an endless plethora of new features being requested by product on short timescales.

In one word: backpressure.

Of course, this relies on product and/or management buying into the idea, which is why data can help you argue your case. The rest of your organisation might be more receptive if you can show them how much time is being spent on incidents and bug whack-a-mole.

sigwinch28··on JetBlue A320 tail strike on takeoff, B350 in opposite direction
Disclaimer: I Am Not A Pilot.

Speculation: maybe they both got TCAS advisories [0].

[0]: https://en.wikipedia.org/wiki/Traffic_collision_avoidance_sy...

sigwinch28··on Phone Companies Complain iPhone Privacy Feature Stops Them Tracking People
The full title is “Apple’s iPhone Privacy Feature Could Be Banned After Phone Companies Complain It Stops Them Tracking People”, but I couldn’t fit that within the length limit. I tried to editorialise as little as possible to retain sentiment.
sigwinch28··on Element (Matrix chat app) suspended from the Google Play Store
Use Synapse.
sigwinch28··on Stripe migrates Stripe Subscriptions users to more expensive Stripe Billing
Not anticipating this scenario is a collective failing of everyone in the business who deals with third party integrations.
sigwinch28··on Stripe migrates Stripe Subscriptions users to more expensive Stripe Billing
Why should they be grandfathered?
sigwinch28··on Stripe migrates Stripe Subscriptions users to more expensive Stripe Billing
An extra 0.5% is going to cost you "tens of thousands of dollars"?

You're literally moving millions of dollars a year through your billing platform. That's not a little bit of money. That's a lot. Own it.

You're not a hostage. You're deeply integrated through nobody's fault but your own.

sigwinch28··on Foundations of Software Engineering
I saw your comment, and it says that the course does not address team dysfunction.

It explicitly does.

Whether it conforms to what you want to consider to be team dysfunction is another point of discussion entirely.

sigwinch28··on Foundations of Software Engineering
It's literally part of the schedule: https://cmu-313.github.io/#schedule
sigwinch28··on VSCode on Google Colab
I have just started using Google Apps as an employee which uses it for everything

Me: "oooh! Google Currents! That sounds cool. Is it some workflow designer tool?"

Me: "oh, it's Google Plus."

sigwinch28··on Color blindness
Colour (vision) deficiency.
sigwinch28··on Caramel: an Erlang back end for OCaml
I don't think it's the AST: I think it's the BEAM itself.

The intermediate representations used in (and even accepted as input formats by) the compiler are relatively unstable, with the exception of the Erlang Abstract Format.

This makes it a great target for other compilers because they don't have to track breaking changes to the intermediate formats, they don't have to worry about generating BEAM bytecode, and they get to take advantage of all optimisations already implemented in erlc (the Erlang compiler).

As an example of recent amazing changes to the BEAM: JIT to x86_64 https://github.com/erlang/otp/pull/2745

sigwinch28··on How the CPython compiler works
Oh wow, my brain was cooked when I wrote that.

The BEAM loads bytecode into memory and then goes through the loaded code to directly thread it. It's not an inherent consequence of code loading in general.

https://en.wikipedia.org/wiki/Threaded_code#Direct_threading

sigwinch28··on How the CPython compiler works
I recall from my days hacking away on the BEAM (the de facto Erlang VM) that it loads code as directly threaded to improve performance.

The BEAM loads whole modules at a time, and as part of this process it means that instruction names in the bytecode are essentially replaced with the address of the code which interpret that instruction.

This means that once loading is complete there's no big switch statement to visit: the VM jumps directly to the part of its own code which interprets that instruction.

sigwinch28··on GitHub CLI 1.0
Even an automated decision is a decision, because someone decided that's how the system should operate. Perhaps it was a bug?

Furthermore, no: GitHub has a history of being bad at this kind of thing:

https://news.ycombinator.com/item?id=22593595

From the linked article: "A week after I’ve opened the support ticket, GitHub has finally replied. Suspiciously, this happened right after someone important has posted a link to this article on Hacker News"

https://news.ycombinator.com/item?id=22628961

Top comment: GitHub CEO coming in and apologising. From the linked tweet: "You sited US trade sanctions and sent me a non-descriptive email with no remediation information".

sigwinch28··on GitHub CLI 1.0
I'll admit that the only time I heard of the GitHub CLI was last week when I thought to myself "it's really annoying going to the website every time I just want to push a new repo"
← PreviousPage 4 of 8Next →