HNHacker News
TopNewBestAskShowJobs

johnday

1,394 karma · joined March 22, 2014

submissionscomments
johnday··on Elm Compiler Written in Elm
It would massively simplify the job of proving the upper language more correct. It may also be possible to proxy the type system in order to make use of existing tooling.
johnday··on Elm Compiler Written in Elm
I didn't say we should use Typescript, I was suggesting a FP dialect which compiles to typescript.
johnday··on France fines Google €500M over copyright row
Perhaps under this logic Google should start their own newspaper, which reports the publication of every news story on every French news website. That way they are simply reporting the facts, and are no longer liable for copyright infringement!
johnday··on Elm Compiler Written in Elm
I truly believe TypeScript is the only true way forward for frontend web programming.

Now what we really need is a functional dialect which compiles to TypeScript...

johnday··on The Web Is Eating the Desktop (2017)
A tab in vscode has a dot in it if the contents are modified since last save.

If a save is complete, that dot will go away. If there is no dot, the file is unmodified.

johnday··on Apple Maps vs. Google Maps
Cambridge is a special case - as I understand, it's the UK's hub for hobbyist mappers, ~all of which use OpenStreetMap as a base.
johnday··on The Idempotency-Key HTTP header field
I think you have misunderstood slightly.

GET, for example, is an idempotent method [1], which means "the intended effect on the server of multiple identical requests with that method is the same as the effect for a single such request."

However, it is NOT true that sending the same GET request at different points in time would have the same effect - if a resource is deleted or moved, you might get a 404, 301 or 200 where previously you got something else.

When idempotence is talked about in these RFCs there's an implied caveat that the "multiple requests" they talk about happen at the same time, under the same network conditions. I think that's what they mean by "identical".

[1] https://datatracker.ietf.org/doc/html/rfc7231#section-4.2.2

johnday··on I do not agree with Github's use of copyrighted code as training for Copilot
> But when you are done, there might be snippets from 100s of different repositories potentially.

Potentially, but not necessarily. It's possible also that if there is only one close match for the logic required, it may produce verbatim something it's already seen. GPT is known to do this for sufficiently precise inputs.

johnday··on I do not agree with Github's use of copyrighted code as training for Copilot
To me, the sentence

> I have a lot of open source code that I love to share for things like education or private stuff, but if you want to use it for something real, you need to hire me.

implies that they have code which they are sharing under that proviso. Do you read it differently?

You are right about the technical distinction of open source from source-available. I think that the GGP (and myself) were both using it colloquially as a shorthand for source-available.

johnday··on I do not agree with Github's use of copyrighted code as training for Copilot
It sounds like the person you're responding to already releases their code under a non-commercial license. The problem with Copilot is that it may allow commercial enterprises to avoid such a license by copying the code verbatim from their repositories, possibly without any party involved knowing that it's happened.
johnday··on 1970s mainframe RPGs we can no longer play
That is exactly what the parent, to whom you responded, just linked.
johnday··on Tips for Better Signup / Login UX
I think the intention is to impose the same restrictions on the "login" password field as on the "sign in" password field. This gives a hint to users as to why their entered password is incorrect, and does not slow down an attacker. This is particularly important for systems with unusually restrictive password fields.
johnday··on SimCities and SimCrises (2017)
Cities:Skylines was built from the ground up to be a platform for modding and expansion. While the base game itself is solid, there is a staggering quantity of high-quality mods which expand the functionality and control you have over your cities.

The most obvious one that springs to mind is Traffic Manager, which allows you to go in and change the direction of any individual turning lane to maximise throughput and efficient road usage.

johnday··on LDtk: A modern and open-source 2D level editor
Many Haxe game engines do indeed provide a shim layer which converts things like objects, pathing, behaviours, and triggers from the level engine's output into game logic.

For examples, see https://haxeflixel.com/documentation/loading-the-tilemap/ .

johnday··on Facebook will start putting ads in Oculus Quest apps
It's a fair point, I should have been more precise in my response. What I meant to say was, "what does regulation do, other than prevent an undesirable class of actions?"
johnday··on Facebook will start putting ads in Oculus Quest apps
> Because the purpose of regulation is not simply “stop people from doing things I don’t like.”

Of course it is. What does regulation do if not prevent an undesirable class of actions?

johnday··on Most hospitals aren't complying with price transparency rule
I'm sorry to hear that, but it's not quite relevant to the point that the parent was making about Europe.

For what it's worth, I live in the UK which has similar woes to how you describe Canada's two-party system. However we do normally get seen quickly for things which are a threat to life---but elective operations can take much longer. Mental health issues are also dealt with sluggishly at best.

johnday··on Most hospitals aren't complying with price transparency rule
For a medical emergency? This is simply false.
johnday··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
What claims do you think I have made? All I have said above is that taxation (a) is complicated and (b) has hidden externalities, both of which are obviously correct and appropriate responses to the things being asked.
johnday··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
The Government is not "being paid" tax dollars[^0], it is (in principle, at least) spending and redistributing wealth in ways which benefit all citizens. UKGov releases these reports, for example https://www.gov.uk/government/collections/national-statistic... - good luck condensing these down to the point where they can fit in any taxpayer's head, and this is just the surface level outgoings.

> If you get hand wavy and tell me its too complicated [...]

Unfortunately, it really is too complicated. A doctorate in economics might get you a decent way towards understanding the good that taxation provides, but given that economists still have differences of opinion, maybe not a complete understanding.

[^0]: Well it is, but only a tiny proportion.

johnday··on Microsoft Irish subsidiary paid zero corporate tax on £220bn profit last year
> If taxation is such an inherent good then why does it need to be hidden from people?

Because the externalities are not always visible, and people do not have enough free bandwidth to spend the time understanding them.

johnday··on Offload Mental Simulation
It feels like the author is describing a healthy type system and language purity.

In most programming languages, the pain points they describe are real - how do we know that a program will give back exactly what we put in?

The answer is to provide it with an appropriately restrictive type such that any output is necessarily of the right shape. Types allow us to do this exact kind of "offloading", so that we simply trust the compiler to know when we are plumbing things together correctly.

Language purity is really helpful with trusting that a piece of code does what it says it does, and nothing else. If our language is impure then the scope of any given function is essentially unbounded. With purity, it can only perform computations based on the things that are locally available to it, and that severely bounds the amount of leeway a programmer has in its implementation - and hence the number of ways things can go wrong.

In short, an effective, ergonomic, statically-typed programming language can solve most or all of the author's woes. I hope they find one that fits their needs.

johnday··on A teenager's guide to avoiding actual work
0xe to 0xf is a single bit flip.
johnday··on ShellCheck: Finds bugs in your shell scripts
This and `pandoc` are solid proof that Haskell is a superb language for processing structured text (be it for compilation, or translation, or checking).
johnday··on 100 paying users in 100 days
Ah, right, I see. So it was just showing me the marketing ones by random chance!

It seems a bit odd to offer per-category leaderboards only, especially on the front page, especially if it's going to randomise which one to show with only minimal feedback that it's doing that.

johnday··on 100 paying users in 100 days
Currently, every single product on the leaderboard has the tag "marketing tools". [Edit - this is incorrect, see reply]

Is that the only thing anyone makes any more? Surely there have to be some actual products in the world to be marketed?

johnday··on Why we chose Elm for Humio’s web UI
Thanks for the correction! Apologies, I thought the website was the product :)
johnday··on Why we chose Elm for Humio’s web UI
With no disrespect intended to the authors, the website doesn't seem to be quite right as-is. Whenever I click any of the big buttons, I get a flash of white across the whole screen. This is off-putting, especially when navigating between pages doesn't incur this on a "normal" static HTML website.

I normally wouldn't bring this up but the article is very specifically talking about the benefits of using this web framework, so it seems apropos.

johnday··on HW accelerated Xwayland rendering for Nvidia merged
> It's true that Wayland is just a protocol but that protocol is also defined significantly by its implementations.

A protocol should never, never, ever be defined in any way by its implementations. The entire purpose of a protocol is to abstract away the common interface such that it is entirely implementation-agnostic.

Indeed, you might say that a protocol prescribes exactly the intersection of all implementations.

johnday··on An interview with the man who keeps uploading my feet to WikiFeet
> Imagine, if you will a 1950s America where people are trying to post about civil rights and being downvoted into invisibility.

Are you labouring under the misapprehension that there were no civil rights leaders before the 1950s, and this was not exactly what happened to them?

← PreviousPage 7 of 17Next →