Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ksbrooksjr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
ksbrooksjr
4y ago
It looks like it still is supported [1]. I noticed while reading the Lima documentation that they're planning on switching from SSHFS to 9P [2]. [1] https://wiki.qemu.org/Documentation/9psetup [2] https:/&#x
62.
▲
by
ksbrooksjr
4y ago
My go-to method of inter-process communication in Node without using any third party modules is to just use process.send[1] to a send a message to the main thread, and then have it forward messages to the workers in the cluster, which you c
63.
▲
by
ksbrooksjr
4y ago
Certbot is fine, but it’s nice to have that functionality built directly into the reverse proxy as opposed to having to configure and update multiple tools. I would ideally like to see Nginx integrate a subset of Certbot’s feature set into
64.
▲
by
ksbrooksjr
4y ago
Yeah Caddy's developer experience is unrivaled when it comes to setting up SSL. You don't have to run Certbot or manage certificates manually. If you give it a hostname to proxy to, it just handles certificate management seamlessl
65.
▲
by
ksbrooksjr
4y ago
For the simplest benchmarks the performance disparity might come down to the difference between JavaScriptCore (which Bun uses) and V8 (which Node uses), but for anything non-trivial there's a significant amount of overhead introduced
66.
▲
by
ksbrooksjr
4y ago
Exactly. PHP (like every other modern programming language) has its own dependency management tools. Node is actually better than many in this respect because npm comes bundled with Node — it's not something you have to install separat
67.
▲
by
ksbrooksjr
4y ago
Well obviously you'll need npm to use a command that begins with npm. If someone gave you a terminal command to run that begins with curl, you'd be expected to have curl installed. This seems like pure pedantry. Take a look for ex
68.
▲
by
ksbrooksjr
4y ago
As long as you have npm installed it'll work. Npm create is an alias for the npm init command [1], which will look for a package with the prefix 'create-', install it, and run its bin file. It looks like this is the file that
69.
▲
by
ksbrooksjr
4y ago
Exactly. I'm usually worried about the opposite scenario (the client infecting the server). If you're copying files from a personal computer it might have all sorts of random software running on it that's accumulated over the
70.
▲
by
ksbrooksjr
4y ago
It looks like versions prior to 3.2.5 are affected [1]. If you're using the version of rsync bundled with MacOS, then it's affected. If you're not connecting to random malicious servers then this might not be a part of your t
71.
▲
by
ksbrooksjr
4y ago
The fact that googling 'node user login' returns an insecure result is more indicative of the quality of Google's search results than it is of Node. Node has had a built in password hashing function since before it even hit v
72.
▲
by
ksbrooksjr
4y ago
I don't think Swift's performance is due to start up time at all. I actually cloned the repo, and ran the benchmark and found that Swift's execution time scales drastically with the size of the input. The Swift team actually
73.
▲
by
ksbrooksjr
4y ago
Yeah TC39 has a habit of letting proposals languish at stage 2 for years. I wouldn't give up hope though. The decorators proposal finally made it to stage 3 after spending an eternity at stage 2. According to the slides from the TC39 m
74.
▲
by
ksbrooksjr
4y ago
If the Record & Tuple proposal advances to stage 3 we'll finally have native immutable data structures in JS [1]. [1] https://github.com/tc39/proposal-record-tuple
75.
▲
by
ksbrooksjr
4y ago
I definitely get where you're coming from, but I think developers tend to overestimate the complexity of managing servers, and underestimate the complexity of managing a Kubernetes cluster. The last time I looked into Kubernetes even t
76.
▲
by
ksbrooksjr
4y ago
Vagrant has a few advantages compared to Rancher (and Lima[1] which I believe Rancher uses under the hood). Because of its popularity, there are so many open source Ruby provisioning scripts you can use as a reference when provisioning your
77.
▲
by
ksbrooksjr
4y ago
The M1 and M2 macs have excellent performance and battery life, but beware of the fact that they don't work with Virtualbox. Virtualbox combined with Vagrant is great for declaratively spinning up a quick vm without using any proprieta
78.
▲
by
ksbrooksjr
4y ago
Yeah Typescript is great. It doesn't have a negation type per se, but its pretty easy to derive one using the never type [1]. The author of this essay actually explicitly calls out Typescript several times. Some quotes from the paper&#
79.
▲
by
ksbrooksjr
4y ago
I agree. Another thing to consider is that React makes it frictionless to import custom components, instead of attempting to re-write common UI patterns from scratch. If a React dev leans on an accessible UI framework like Chakra, or Headle
80.
▲
by
ksbrooksjr
4y ago
I agree that there's room for a language that runs on the BEAM and also compiles to JS. Gleam looks great, and it's one of the up and coming languages that I'm rooting for. In addition to having a Javascript compile target, i
81.
▲
by
ksbrooksjr
4y ago
The commenter I was replying to wasn't inquiring about why people choose third-party state management libraries in lieu of the standard context api. In fact, he's not even a web developer. He seemed to be wondering why you need a
82.
▲
by
ksbrooksjr
4y ago
Most state management libraries help you deal with the problem of sharing state between multiple components. In modern React, most components are just functions, so this boils down to passing state through deep call stacks. If you have a co
83.
▲
by
ksbrooksjr
4y ago
Yeah you can definitely pull in Alpine for UI updates that don't require any server side interaction, but then your app's logic is fragmented between different frameworks (Alpine and LiveView). It's definitely doable, and I k
84.
▲
by
ksbrooksjr
4y ago
The obvious downside to Liveview is that all of the UI state resides on the server. Every UI update therefore requires a full roundtrip request to the server, and so reducing latency is of paramount importance. That's why fly.io is so
85.
▲
by
ksbrooksjr
5y ago
On node 16.9 console.log doesn't produce a non-zero exit code, but process.stdout.write does, and gives me a decent error message as well: internal/fs/utils.js:332 throw err; ^ Error: ENOSPC: no space left o
86.
▲
by
ksbrooksjr
5y ago
I didn't know about the /cdn-cgi/trace Cloudflare trick. Here's a one-liner to print just the ip via curl: curl -s cloudflare.com/cdn-cgi/trace | grep ip | cut -d "=" -f 2 --
87.
▲
by
ksbrooksjr
5y ago
Unfortunately the typescript definitions for these two methods haven't been written yet [1]. [1] https://github.com/microsoft/TypeScript/issues/47171
88.
▲
by
ksbrooksjr
5y ago
This is much simpler than some of the other utilities mentioned, but I love pbcopy and pbpaste. Being able to pipe from stdout straight to the clipboard, or vice versa, is really useful.
89.
▲
by
ksbrooksjr
5y ago
There used to be a '--lite' option that produced smaller binaries, but it looks like they removed it recently [0]. There's also a CLI called pkg that lets you achieve something similar with Node. It actually compiles the sour
90.
▲
by
ksbrooksjr
5y ago
You actually can spin up a background thread in the browser now using web workers[0]. Although, like you mentioned, you don't actually need threads for concurrency. The event loop handles concurrency even in a single threaded environme
More ›