Better HN
topnewbestaskshowjobs
Log inSign up

yawaramin

4,220 karma · joined Nov 3, 2012 (14y ago) · 2,424 submissions

Submissions

comment 3d ago · link · parent

Confusing Google’s account recovery implementation with some inherent flaw of passkeys. Some people may find this a convincing argument (not sure who) but anyone who thinks about it for 2 seconds won’t.

comment 3d ago · link · parent

The argument is that you can recover an account when you actually use it. No one is forcing you to sit through an hourlong account recovery session on a new device. And many accounts force you to go through an email verification step anyway when they detect a new device. But when you have to do it because of a lost passkey suddenly it becomes a huge problem. This is making a mountain out of a molehill.

comment 4d ago · link · parent

No, it's quite unclear. What do they mean by 'passkey provider'? Do they mean my hardware on which my passkey is stored? So they mean if I lose my device or if it gets bricked? Then why not just say that?

And even then it's FUD; if I lose my current device I just login on a new one with an account recovery flow (email magic link) and then set up a new passkey there.

comment 4d ago · link · parent

None of this is inherent to using passkeys, Google just has extra-strict account recovery controls because they're often the bootstrap for the user's entire online security posture. Your wife would be even more pissed off of Google made it easy for someone to hack into her account by lifting a password and a security answer from somewhere.

comment 4d ago · link · parent

'Rapey' is a bit much :-D

The account provider is within their rights to choose how they provide the account. And they can't explain where a passkey will be saved because they can't know; that's specific to the user's device and software.

comment 4d ago · link · parent

Well, no. Pretty much every website has an account recovery flow. So you trigger that and you're back in. And then you set up a new passkey to boot. So at most you're inconvenienced by a couple of minutes.

comment 4d ago · link · parent

The thing is in the real world no account works like this, least of all a bank account. Lost your device and need to sign in? Go to your local branch and ask them to give you online access, they take care of it. Most other accounts? Go to the login page, login with email, and set up a new passkey.

You are overthinking what users will need, passkeys with account recovery flows will work fine in the vast majority of cases.

comment 1w ago · link · parent

The version of 1Password that's not a SaaS?

comment 1w ago · link · parent

How does a human developer sign off without reviewing the PR properly?

comment 2w ago · link · parent

Unikernels may be the answer here. The Mirage project has been around for a long time–its downside being that the app has to be written in OCaml: https://uniker.nl/

But with LLMs that may not be as big a blocker as before...

comment 1mo ago · link · parent

Actually, the real legal insider trading is the trades that you _don’t_ place based on insider knowledge. Eg, if you know that the iPhone is years ahead of everything else and you happen to be holding Apple stock, then you won’t let whoever is managing your portfolio sell any of it when otherwise you may not have cared. There’s no way to prove illegality for _not_ placing a trade.

comment 1mo ago · link · parent

Probably more like 'Here's a quantitative finance book, port over all the code to OCaml'

comment 2mo ago · link · parent

Sounds like OCaml has the answer then. It has the equivalent of all the great things you described in Rust, plus compile speeds similar to or better than Go. Agents should be able to blaze through changes with it.

comment 2mo ago · link · parent

You’re not wrong. I’ve used tig, a git TUI that renders very nice views of the diffs, for many years: https://jonas.github.io/tig/

Fun fact: Jonas, the creator of tig, is an ex-colleague of mine. It’s cool working with people while using dev tools they wrote!

comment 2mo ago · link · parent

What language and framework do you use for GUI programming?

comment 2mo ago · link · parent

Posting 'why should we learn' a programming language on Hacker News is top-quality ragebait :-D

comment 2mo ago · link · parent

1. Compile times. OCaml compiles very quickly (think Go) and this gives you a fast feedback loop. It lets the LLM rip through the implementation.

2. OCaml has an idiomatic approach of using interface files for all modules that can be accessed outside their libraries, and interface files give LLMs a great précis of exactly what is wanted. They then just have to follow the types and fill in the blanks to get the implementation. It's nearly the perfect use case.

comment 2mo ago · link · parent

I'd be very interested to read this paper when it comes out.

comment 3mo ago · link · parent

Haha, good one. You said ‘the creator is stuck in 2012 as I said’. Except that was said by a different user account ;-)

comment 3mo ago · link · parent

It’s not really decentralized in that way. If you’re loading a bunch of pages in your mobile browser, your device is paying the power consumption cost of deserializing, parsing, and running all that JS. It doesn’t save on that because some other user also did it.

comment 3mo ago · link · parent

Oh ok, in that case see here https://developer.mozilla.org/en-US/docs/Learn_web_developme...

comment 3mo ago · link · parent

Are you sock-puppeting two different user accounts in this discussion? https://news.ycombinator.com/user?id=asdfsa32

I didn’t realize that was allowed.

What do HN mods think of that, dang?

comment 3mo ago · link · parent

Parsing and processing several megabytes of JS for each page you visit can get expensive quickly. https://tonsky.me/blog/js-bloat/

comment 3mo ago · link · parent

The client pays it.

- If the server is responding with JSON, the client has to parse, decode, and validate the JSON. Then it has to transform it into HTML DOM nodes. Finally, it can inject them into the DOM.

- If the server is responding with a bespoke non-JSON data structure, it's the same situation as above except even more work because a third-party, non-standard library has to decode this structure into something (most likely JSON) and then transform the JSON into HTML nodes, etc. etc.

- If the server is responding with straight-up HTML, the client uses the browser's HTML parser to directly transform it into HTML nodes and inject it into the page. And by the way, the browser engine is essentially a function that is highly optimized for exactly this use case–parsing bytes into DOM nodes.

'We' might use the same API but it's widely accepted that generally the same API doesn't work for all contexts. See https://samnewman.io/patterns/architectural/bff/#general which details the many well-known problems with having a single API for different contexts.

comment 3mo ago · link · parent

That's super simple, it's your favourite backend web framework. Rails, Spring Boot, Laravel, Django, Flask, FastAPI...really whatever you like.

comment 3mo ago · link · parent

Yeah but when you're reading the actual source code you're not thinking in terms of bytes, you're looking and files and line counts. Htmx is deliberately maintained as a single, no-dependency file of about 5000loc. The maintainers are of the opinion that it reduces complexity, and I tend to agree.

comment 3mo ago · link · parent

The htmx creator has made similar things for a long time, if anything htmx has diverged from those ideas by taking Intercooler.js and stripping out the bundled jQuery to simplify it and create htmx. See https://news.ycombinator.com/item?id=49496634

comment 3mo ago · link · parent

I’m talking about auth, like a session cookie. What do you use for auth?

comment 3mo ago · link · parent

Htmx is a direct descendant of Intercooler.js, which has been around since circa 2013, more than a decade. Intercooler still exists and is used in production, and you can clearly see that it works almost exactly the same way as htmx does today, it just bundles jQuery together.

The creator has been working on these ideas for a long time, but the core idea–swapping HTML from the server into the DOM–has been constant throughout.

It's exactly because he followed the past two decades of web dev that htmx avoids almost everything about it. Fixi and htmx extensions follow the 80/20 principle and can work by just being dropped in with a script tag. You don't need an elaborate npm setup, same as everything else in the htmx ecosystem.

comment 3mo ago · link · parent

What part of the Fixi project is building something like React?
12345
81