HNHacker News
TopNewBestAskShowJobs

nathcd

1,253 karma · joined April 15, 2013

submissionscomments
nathcd··on Stack safety for free?
I mean, if your compiler does TCO and you can make your function tail recursive, it's usable in the real world, right? That's not all recursive functions, but "useless" seems a little extreme.

I write plenty of recursive functions in my (real world) job. Sometimes they're not even tail recursive (gasp) when I'm working with small data.

nathcd··on The fastest object diff library in JavaScript
Ah that's my mistake, I read more into your comment than you wrote. Sorry!

It's a good point about edge cases in diffing. Dynamic value diffing in dynamically-typed languages is an interesting problem to think about.

nathcd··on The fastest object diff library in JavaScript
Yeah, it's just a single function that recurses. So the limit will be your VM's call stack limit.
nathcd··on The fastest object diff library in JavaScript
But vnodes have a predefined shape, whereas this library is for diffing (relatively) arbitrary objects, right? If your data isn't arbitrarily shaped, I would assume you'd get much better performance by just implementing a simple direct diff, no?
nathcd··on Which jobs most often pair together among married couples
The article touches on this:

> Some pairings are simply volume. There are a lot of nurses and teachers, so they show up on top of the list often.

nathcd··on Soupault is a tool that helps you create and manage static websites
Looks like its own website is built with Soupault: https://github.com/dmbaturin/soupault-website

The main repository also has directories called 'sample-site' and 'examples': https://github.com/dmbaturin/soupault

nathcd··on Downsides of Offline First
`navigator.storage.persist()` will prompt the user to allow persistent storage for your site, so data won't be evicted under storage pressure (for IndexedDB, service worker registrations, localStorage, sessionStorage, etc.)

https://developer.mozilla.org/en-US/docs/Web/API/StorageMana...

nathcd··on Nimforum: Lightweight alternative to Discourse written in Nim
Agreed. I was initially pretty turned off by the app-iness of Discourse, but after using it for awhile I've come around and actually enjoy it quite a bit now.
nathcd··on A woman's battle to prove she isn't dead
The story says the fines fell to her heirs - her husband and son. It says their bank accounts were frozen and the bailiffs took her husband's car to settle part of the fine.
nathcd··on Parse, Don't Validate (2019)
I think the original formulation is "make illegal states unrepresentable" from Yaron Minsky: https://blog.janestreet.com/effective-ml/ and https://blog.janestreet.com/effective-ml-revisited/ (or maybe there are older sources than 2010?)
nathcd··on Modern C and What We Can Learn from It [video]
Per the HN guidelines:

> Please don't post insinuations about astroturfing, shilling, brigading, foreign agents and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email hn@ycombinator.com and we'll look at the data.

https://news.ycombinator.com/newsguidelines.html

nathcd··on Wasm3 compiles itself (using LLVM/Clang compiled to WASM)
> I wonder if anyone has compiled QuickJS to WASM and run it in the browser.

Fabrice Bellard actually did it himself here: http://numcalc.com/

nathcd··on Dream – Tidy Web Framework for OCaml and ReasonML
> is there a set of syntax/language/compilers that will allow me to have one codebase, one syntax, and run the server as native code (possibly with nodejs as an option) - and use same language for the front-end?

You can use the normal OCaml syntax with the main OCaml compiler and the js_of_ocaml compiler. If you just want something in the ecosystem that's boring and reliable these are almost certainly the way to go.

nathcd··on uBlock Origin works best on Firefox
On the uBO popup, if you click "More" on the bottom left a few times, you eventually get a uMatrix-ish grid on the left side of the popup. (Not 100% sure if that's what you're looking for.) I agree with other commenters though that I don't really understand the uBO grid and found the uMatrix grid much more immediately accessible.
nathcd··on Links are not buttons (2013)
> The only working alternative (editing if I stand corrected!) using buttons is to make them form buttons. Now otherwise intuitive behaviors (e.g. forward/back, refresh) are laden with "you're about to resend data!" warnings that completely break the flow.

If anyone is looking for a solution to this, you can respond to a POST with a 303 (See Other) redirect. There's even a Wikipedia page for this pattern: https://en.wikipedia.org/wiki/Post/Redirect/Get

nathcd··on RethinkDB: why we failed (2017)
(2017)

There was a large discussion (948 points, 267 comments) at the time: https://news.ycombinator.com/item?id=13421608

nathcd··on From Vim to Emacs in fourteen days (2015)
Perhaps it's just my wimpy laptop, but last time I tried tridactyl it was pretty slow. Vimium (https://addons.mozilla.org/en-GB/firefox/addon/vimium-ff/) has been a bit better for me, although I think it's quite a bit less configurable than tridactyl.
nathcd··on Download the Entire Wikimedia Database
Here is a plaintext version of Nayuki's results, via the link they posted above:

https://www.nayuki.io/res/computing-wikipedias-internal-page...

Geographic coordinate system is first.

nathcd··on Apache Age: A Graph Extension for PostgreSQL
I remember wondering about exactly this a couple years ago, but I couldn't figure out the answer (I didn't look all that closely into it). Now I want to come up with an excuse to try it out on something. Thanks for mentioning this!
nathcd··on Fueling Reddit’s Future
There's also a general purpose regex based redirector if there are other sites you'd like to redirect:

https://github.com/einaregilsson/Redirector

nathcd··on CopyPasteTaxes
I certainly wish you luck - I don't think there's any shortage of people who want tax preparation to be less awful.

But am I understanding correctly that you feel you've already got the tech, the money, and the ability to put this together by April, but you'll only do so if people give you $50,000 ahead of time? Why not just build it and then show people how much better it is?

nathcd··on CopyPasteTaxes
Do you have any expertise in the tax system? If this can be made in 2 months by one person, why hasn't this already been done before? How will $50,000 help you? Your HN profile says that you're an investor - why can't you fund the project yourself?
nathcd··on Show HN: Pairagraph – our attempt to build a new high-quality discussion forum
Agreed that this is a cool idea, but I really hope they don't add voting. Leave the upvote/downvote noise on social media.
nathcd··on Dasung just released a 25 inch eInk monitor
This seems like an interesting site, but that is by far the most off-putting and manipulative text I've ever seen on a cookie notice.

> We know having to press this sucks, but unless we see a decentralized Web 3.0, some elements on our site are cookies baked by others that could track you. You have to put up with this, otherwise, might as well shut yourself out of the world.

edit: tyler109 - given that you've linked that site 11 times so far in this thread, I'm guessing you're affiliated with or run that site? If so, might I ask that you edit the cookie text to not be so... bad? Or much better, add a button to it to let readers opt out of the pointless tracking? Also, if you are affiliated with it, could you maybe disclose it in some of the comments where you link to it?

nathcd··on Improving DNS Privacy with Oblivious DoH
> client encrypts to proxy, which decrypts & removes client info

This is incorrect; the proxy doesn't decrypt. It just proxies. From https://blog.cloudflare.com/oblivious-dns/ :

> The target decrypts queries encrypted by the client, via a proxy. Similarly, the target encrypts responses and returns them to the proxy. [...] The proxy does as a proxy is supposed to do, in that it forwards messages between client and target.

nathcd··on Sourcehut's Second Year in Alpha
To add to others' comments, another nice detail is that you can simply push to a non-existing repository to create it, rather than having to first create it through the web ui.
nathcd··on Stripe migrates Stripe Subscriptions users to more expensive Stripe Billing
Is there any downside (other than a little more work for the implementer) to just using their main payment processing API, and to implement subscription billing with a cronjob? This is what sr.ht does [1], at least as of a year ago. If doing it manually now means saving a bunch of money, seems like a no-brainer.

[1] https://cmpwn.com/@sir/103074952842876982

nathcd··on FastCGI – The Forgotten Treasure (2002)
> Turns out that CGI is perfect for that : the only process always running are nginx and fcgiwrap, then all my apps are started only on demand, for the lifetime of the request.

This is a really nice idea. It almost makes me wish browsers could just make a local CGI request directly, without a webserver at all. A quick search turns up an extension for ye olde Firefox: https://github.com/RufusHamade/lcgi. I suppose with native messaging APIs it's probably possible with new extension APIs too, if a bit more convoluted.

nathcd··on Why American cities can’t keep up with infrastructure maintenance (2017)
> Except for a small handful of North American cities -- literally five or less -- Lafayette provides an insight into why your city has no money.

...

> It's a predicament that nearly every American city, with very few exceptions, finds itself in.

Does anyone know some of the American cities that don't follow this pattern?

nathcd··on Ask HN: Why do some people have a keybase info in their HN profiles?
No problem!
← PreviousPage 2 of 9Next →