Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
devit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
481.
▲
by
devit
5y ago
Applications should not have security issues or critical bugs to begin with.
482.
▲
by
devit
5y ago
All you need is to run the build in a VM (a container/chroot also works almost always since the Linux kernel maintainers are committed to not breaking userspace). It's not done usually because it's also very useful to take ad
483.
▲
by
devit
5y ago
"Parse don't validate is suboptimal" What you ideally want is a first step that "validates", i.e. creates a representation from text that is easy to use but also succeeds for any input, and then a further "pars
484.
▲
by
devit
5y ago
Use a crate that provides safe functions implemented with unsafe code to do that, like https://docs.rs/splitmut/0.2.1/splitmut/
485.
▲
by
devit
5y ago
It's the only language existing that is memory safe and provides zero cost abstraction to the CPU capabilities (i.e. no mandatory GC, values don't need to be boxed, ability to mutate memory). The only limitation that may not event
486.
▲
by
devit
5y ago
Because Cloudflare for no clear reason allows them to require captchas for pages that are cached anyway and thus where DoS is not a problem, and also in cases where the website is not actively being DoSed at that moment. [of course captchas
487.
▲
by
devit
5y ago
That's the number of times per second the main update code runs and it has nothing to do with the number of clock cycles or instructions per second the CPU can run (other than the fact that the chip needs to be fast enough to have the
488.
▲
by
devit
5y ago
You can run the workloads on (possibly partial) replicas of the production database running on another set of machines.
489.
▲
by
devit
5y ago
No, as in a the graph starts from nodes corresponding to sensor inputs, with edges going to nodes that represent computations based on those, to further computations, to the outputs that drive actuators. If only one sensor input changes the
490.
▲
by
devit
5y ago
You could abstractly structure the computation as a graph (there are many concrete approaches to that) and only recompute the parts that change due to changed input or changed intermediate results. If you have multiple outputs you can also
491.
▲
by
devit
5y ago
It seems interesting but rather inefficient since you can just do things faster than explaining them to someone and having them do them. It seems like it would only be good on tasks where having your partial work continuously reviewed is ve
492.
▲
by
devit
5y ago
Maybe the real lesson of the whole thread is to require customers to pay in advance with a non-reversible wire transfer, or at least via an escrow service contingent on delivering the goods. Or alternatively, somehow buy insurance against t
493.
▲
by
devit
5y ago
None of these are relevant for users.
494.
▲
by
devit
5y ago
Yeah, that only applies if the build process of the dependents does not actually use the shared library itself (other than for linking to it).
495.
▲
by
devit
5y ago
Seems like they only should depend on the parts of dependency that actually get incorporated in the dependent. For instance: - Changes to C source files of a shared library should not require a rebuild of dependents (assuming you don't
496.
▲
by
devit
5y ago
Yeah, feels like they should use the Haskell IO monad "do" notation style where the await is implicit unless you use let. This would require the scripts to no longer be vanilla JavaScript, but it seems easy to extend sucrase/
497.
▲
by
devit
5y ago
It's bad for the other photographers, but good for those looking to acquire photography services.
498.
▲
by
devit
5y ago
Seems like prions only "infect" the same kind of protein, so a misfolded spike protein that the vaccine might produce would only cause other spike proteins to misfold, and they almost surely don't occur naturally in human tis
499.
▲
by
devit
5y ago
Being written in TypeScript and not Rust seems quite a big liability that might see Rome never be popular or lose out quickly due to inferior performance. There is already RSLint and SWC as JavaScript tools written in Rust and I would expec
500.
▲
by
devit
5y ago
Because society results in companies being incentivized to babysit users rather than cutting off those who are unable to learn simple technical skills like optimally encoding a video respecting a maximum bitrate requirement.
501.
▲
by
devit
5y ago
Not sure if it applies to the US, but generally municipalities could use taxpayer money to fund it and make the service free, which beats any corporation, since it's equivalent to making it mandatory to be a customer.
502.
▲
by
devit
5y ago
That would imply that "foo(x: int)" is a string rather than a function. Haskell doesn't use that notation either, it uses -> both for the parameter list and for the return type, and separates argument names (arguably, thes
503.
▲
by
devit
5y ago
You can't do that, assuming that it was set up properly (i.e. they either set up CloudFlare immediately without disclosing the server IPs in the first place, or blocked all non-CloudFlare traffic on the firewall).
504.
▲
by
devit
5y ago
The Facebook app on my Android device doesn't do this.
505.
▲
by
devit
5y ago
It's pretty trivial to make such a CPU: just execute instructions in order and with no cache. The challenge is more how to make a fast CPU like that.
506.
▲
by
devit
5y ago
You can use a macro instead of copy and pasting. You can also do this: struct Vehicle { speed: f32, type: VehicleType } enum VehicleType { Car(...), Bicycle(...) } Or this (although this is the least common
507.
▲
by
devit
5y ago
You don't need much understanding in advance to develop a novel backend, since you are forced and guided to learn the whole language as you try to write the backend and start pattern matching on the data structures.
508.
▲
by
devit
5y ago
They should also have tested hand-coded parallel implementation. From the paper it's not clear how much of the overhead is fundamental and how much is due to the frameworks being just terrible (many of them are written in Java, so they
509.
▲
by
devit
5y ago
Don't connect anything critical to any network, directly or indirectly, except a dedicated one separate from the Internet if unavoidable. Never browse the web, read e-mail or otherwise run any Internet client from any machine with data
510.
▲
by
devit
5y ago
In PostgreSQL you can either add yourself as a replica with logical decoding (e.g. PostGraphile supports GraphQL with live queries that way) or do it manually with LISTEN/NOTIFY. On top of that you can use transaction ids or manual tra
More ›