Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
millstone
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
millstone
6y ago
Fixed URL: https://kotaku.com/stadia-developers-cant-fix-the-bugs-in-th...
62.
▲
by
millstone
6y ago
I'm not sure that answers my question; C++ also uses a state machine. Most of the post is concerned with the compiler<->library interface - where Rust uses Generator, GeneratorState, Pin, etc. Is there something fundamentally dif
63.
▲
by
millstone
6y ago
Can you say more on this? What is Rust doing differently here that simplifies things?
64.
▲
by
millstone
6y ago
This is a Go idiom, one of the "slice tricks" that you are expected to just know. In fairness every language has its non-obvious idioms. It may or may not copy.
65.
▲
by
millstone
6y ago
In Go it may or may not allocate a new array; it depends on the array's capacity. This means that the resulting slice may or may not alias the original slice. See this playground for an illustration: https://play.golang.org&
66.
▲
by
millstone
6y ago
Your code removes by index. This can be done in one line in Go: list = append(list[:i], list[i+1:]...) but to remove by value you need a loop.
67.
▲
by
millstone
6y ago
Does D have an ABI spec? I imagine the garbage collector complicates it considerably.
68.
▲
by
millstone
6y ago
Does Zig really solve this problem? For example, if I add a field to a Zig struct, can existing code still use the struct without needing to be recompiled?
69.
▲
by
millstone
6y ago
Rust is certainly made simpler by not sweating ABI stability. But the main advantage of dynamic linking is to enable yesterday's app to run on tomorrow's OS (and vice-versa). It's why your apps keep working when you update yo
70.
▲
by
millstone
6y ago
Note Gankra is “she” not “he”
71.
▲
by
millstone
6y ago
You should consider leaving Gmail instead. I have been migrated most of my stuff away from Gmail to Fastmail. What I like about Fastmail is that its custom domain and IMAP support is first-class instead of an afterthought, it doesn't m
72.
▲
by
millstone
6y ago
You're talking about how the app looks, but GP was talking about how the app feels. Slack looks nice but feels quite broken. For example, its non native context menus are beautiful, but do not dismiss properly, do not support single-cl
73.
▲
by
millstone
6y ago
I don't think Chrome does any of those things on desktop.
74.
▲
by
millstone
6y ago
Shapiro is right-wing mainstream conservative, not alt-right.
75.
▲
by
millstone
6y ago
Excess electricity can be a real problem, and is getting worse with renewables. But surplus energy would be better used to desalinate seawater, or produce hydrogen through electrolysis, or storage.
76.
▲
by
millstone
6y ago
Yeah, and eventually we reach the best-effort bedrock. Maybe the file is on a NFS mount, you call write(), it goes over the wire, who knows what happens!
77.
▲
by
millstone
6y ago
I hope to make the modest point that, if you package your data in a SQLite file or a zip file, then you have both packaging and data problems. MyCoolSQLApp may read and write a SQLite file with its own schema, but it can't handle an ar
78.
▲
by
millstone
6y ago
> Are you sure? No, and anyone who says yes is lying. (Lockless NFS exists and is no fun.) > Well, fundamentally it’s very hard to get it exactly right, and I imagine that’s why the implementation is a little involved SQLite has set i
79.
▲
by
millstone
6y ago
My understanding is that SQLite doesn't impose any format either?
80.
▲
by
millstone
6y ago
This sounds like your issue is avoiding data corruption: then atomic writes are sufficient, you don't need a SQL parser or query optimizer or etc.
81.
▲
by
millstone
6y ago
Good reply, thank you. Yes 200k SLOC is huge (modern development practices notwithstanding). SQLite creates temporary files at whim - nine different kinds! https://sqlite.org/tempfiles.html I know how to atomically write a
82.
▲
by
millstone
6y ago
ZIP files are not a database: they are more like a directory hierarchy. But maybe all I need is named blobs: no query language parser, optimizer, indexing, etc. SQLite positions itself as an improvement over ZIP for application file formats
83.
▲
by
millstone
6y ago
Good observations from a MySQL perspective. Any thoughts from the other end, where the alternatives are JSON or XML or ZIP? SQLite tries hard to convince you to use it as an application file format, but it looks like a giant black box of ov
84.
▲
by
millstone
6y ago
Not GP but since you asked, here it is: https://www.researchgate.net/publication/325462944_Planck%27... The argument is: Planck's relation says that a photon's energy is in proportion to its frequency. But a
85.
▲
by
millstone
6y ago
We should distinguish between quantization, and "discrete particles with distinct properties." For example, the photoelectric effect demonstrates that light is quantized, but individual photons have no distinct identity whatsoever
86.
▲
by
millstone
6y ago
Many functional languages do not model effects in the type system, like the ML family. Many do not have static types at all, like Clojure/LISP.
87.
▲
by
millstone
6y ago
How does this work with e.g. a text editor? It doesn't seem practical to have your UI be a pure function of an input which is 100+ MBs of text and formatting.
88.
▲
by
millstone
6y ago
It seems like the monoid-thinking just obscures. Positive integers under addition are not a monoid (no identity) but you can still map-reduce their sum of squares. All that you really need is associativity, and associative operations are as
89.
▲
by
millstone
6y ago
random() is just a function name that could do anything. We can't answer the question if we don't know what random() means.
90.
▲
by
millstone
6y ago
Is this referring to anything in particular, like POSIX random()? Or does it mean all non-CS PRNGs? If it's POSIX random() what is the proposed alternative?
More ›