HNHacker News
TopNewBestAskShowJobs

sebws

43 karma · joined January 2, 2020

submissionscomments
sebws··on Cap'n Web: a new RPC system for browsers and web servers
There are ways if you're ok with a build step, e.g. https://typia.io/ or https://github.com/GoogleFeud/ts-runtime-checks

Although perhaps that's not what you mean.

I found these through this https://github.com/moltar/typescript-runtime-type-benchmarks

sebws··on macOS dotfiles should not go in –/Library/Application Support
from the article,

> Elsewhere, Reilly Wood rebukes a user asking if there would “be any downside to just not using Application Support ever” by saying that “[Nushell would] no longer be following the macOS Standard Directories guidelines.”

> We’ll read through those guidelines in a minute, but it’s not entirely clear to me that they’re relevant in the first place. The XDG Base Directory Specification mentions Unix a few times but lists no carveouts for macOS or any other operating system. If ~/.config is accepted as the standard location for configuration files on Unix-like operating systems, then surely it would be the standard location on macOS as well, given that macOS is a Unix by way of BSD.

> But suppose we accept that the XDG specification only applies to some Unix operating systems, despite making no mention of this. The macOS Standard Directories documentation starts by stating that “[w]hether provided by the system or created by your app, every file has its place in macOS”, and honestly we could stop reading right there, because a command-line tool is not the system or an app.

sebws··on Left to Right Programming
I don't think this is true. The example from the esbuild docs uses `import * as lib from './lib.js'` in an example for tree shaking.

https://esbuild.github.io/api/#tree-shaking

Although there are associated issues but they may be specific to esbuild.

https://github.com/evanw/esbuild/issues/1420

sebws··on Ditching Obsidian and building my own
You can fix them both in one. In your local network you host a local DNS, in my case I’m using pihole. It has records which point to the local IP of a reverse proxy. With this setup you can have SSL for your domain names on your local network.

To make it then work outside your local network, in tailscale settings you use “split dns” to set your DNS to be the IP of your pihole in the tailnet for your domain. Now when you try hit your local domains you should receive the same local IPs that you do at home. Then in the tailscale route settings of your machine hosting the reverse proxy you make it advertise the subnet of those local IPs. Now when you receive the local IPs your devices using the tailscale VPN should go to your home server with SSL and no external DNS.

Hope that’s somewhat clear enough

sebws··on DeepSeek-R1
The tailscale app on iOS can turn on a VPN on the phone to connect into your tailnet. Once this is enabled, you can then access the tailnet IPs from anything, e.g., in your browser to hit a web ui. You can then take it further with local DNS and a reverse proxy to access your home server services at a URL.
sebws··on What can TypeScript learn from Zig? What can Zig learn from TypeScript?
On the author’s point of a “debug build” with runtime type checking, there is ts-runtime-checks [0], which looks to do something similar! I don’t have any experience with it however, just seen it looking at typescript-runtime-type-benchmarks [1]. There’s a few other similar things there too

[0] https://github.com/GoogleFeud/ts-runtime-checks

[1] https://github.com/moltar/typescript-runtime-type-benchmarks

sebws··on Atomic nucleus excited with laser: A breakthrough after decades
The article mentions switching between "energy states":

> This nucleus has two very closely adjacent energy states – so closely adjacent that a laser should in principle be sufficient to change the state of the atomic nucleus.

> the correct energy of the thorium transition was hit exactly, the thorium nuclei delivered a clear signal for the first time. The laser beam had actually switched their state.

I don't know enough to explain any further.

sebws··on Europium UltraGlow Powder – Green
My understanding was that a fair bit of this story was marketing by Stuart Semple. I couldn’t find a better link easily at this time, but see this post for an alternative perspective: https://www.reddit.com/r/tumblr/comments/set5c8/kapoor_vs_se...
sebws··on Divergent Association Task: Fast creativity test
The site doesn't police the rules completely, so some self-policing is necessary to avoid things like specialised vocabulary.
sebws··on Why isn't there a replication crisis in math?
I couldn't find anything about a participant's suicide when searching, could you provide a link?
sebws··on A monk in 14th-century Italy wrote about the Americas
I think the topic was how pandemics would cause word of mouth stories to be lost, not the story of pandemics.
sebws··on What cats do when we’re not looking
Here's what the posted article had to say.

> The RSPB says there is “no clear scientific evidence” that cats are causing bird populations to decline, but there is a perception among some British bird-lovers that cats are a menace and should be kept indoors. (In countries where cats are not a native species, such as Australia and New Zealand, they can have a devastating impact on wildlife.)

> “I do feel that cats are an easy target,” says Bradshaw. “Skyscrapers kill more birds than cats do. But you don’t see people standing outside the factories where glass is made, saying: ‘You’re bird-killers.’”

sebws··on Facebook shuts down the Socialist Workers Party in Britain
That 15% of charges wouldn't have occurred if they hadn't lied to the investigation. To blame an investigation for people's crimes is bizarre.
sebws··on Amazon, Apple and Google Cut Off Parler
How about this, it's not hypocritical to think that discrimination against gay people is wrong but "discrimination" against people calling for violence is right. It's only hypocritical if you think that calling for violence and being gay are equally morally wrong. That or if you think that those who were saying you shouldn't discriminate against minorities were also including people calling for murder as a minority (they weren't).
sebws··on Uber backup driver indicted in 2018 self-driving crash that killed woman
She.
sebws··on Teach Yourself Computer Science
I'm currently studying CS at UNSW and half of these subjects I've taken relevant courses, and the other half are in my future. Where did you have your experience?
sebws··on Netflix to cut streaming quality in Europe for 30 days
it seems that popcorn time 4.0 is something to be wary of for now, at least that is the impression I got from the subreddit.
sebws··on Netflix to cut streaming quality in Europe for 30 days
seems to me like there's some concern over the latest edition of popcorntime in its subreddit, so I'd be wary of it for now.