Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
giornogiovanna
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
giornogiovanna
8y ago
Why does it have to be in the standard library when adding it as a dependency involves adding just a single line? Since (a) there's no one true way to do input parsing, and (b) most projects don't need to interactively ask for i
62.
▲
by
giornogiovanna
8y ago
The final code is longer because Rust's standard I/O is a lot more minimal than Python's, Fortran's, and even C's. If you use a library like [text_io], which provides the equivalent of scanf, then I don't think
63.
▲
by
giornogiovanna
8y ago
What would a language primitive for "dataflow" look like, and what would it offer over an implementation as a library?
64.
▲
by
giornogiovanna
8y ago
Yeah, I know. Parent was saying that the History API doesn't need any server support, because you can just serve the same file no matter what the subpath, but my point is that lots of servers don't even have support for that. That
65.
▲
by
giornogiovanna
8y ago
Something like https://news.ycombinator.com/item?id=19169582 ?
66.
▲
by
giornogiovanna
8y ago
Is a browser really a "wheel"? There are so many choices to make, so many lines drawn in the sand. And besides, you really don't want the marketing and tracking giant Google to make all the decisions regarding the software th
67.
▲
by
giornogiovanna
8y ago
Lots of (mostly free) hosting just serves the files you upload, so that wouldn't work unless you copied the files to be served at every possible route.
68.
▲
by
giornogiovanna
8y ago
No, Mozilla would've gotten plenty of hate for potentially breaking sites, and adding features without discussing things with other vendors and Internet bodies. The thing is, we all know that Mozilla can't get away with that, but
69.
▲
by
giornogiovanna
8y ago
There was a Mr. Robot easter egg that lots of people were angry about.[0] I didn't notice it either, though. [0]: https://www.cnet.com/news/mozilla-investigates-mr-robot-fire...
70.
▲
by
giornogiovanna
8y ago
Blink is a WebKit fork and is used by everyone, from Chrome to Opera, and soon, Edge. Apple and Google have gone their separate ways, and will make decisions separately, so WebKit isn't really contributing to the Blink monopoly.
71.
▲
by
giornogiovanna
8y ago
A downwards user-share trajectory, and a downwards reputation trajectory. I don't think that all the hate Mozilla's getting is deserved, but a lot of people didn't like that one easter egg, or the mess with Pocket.
72.
▲
by
giornogiovanna
8y ago
I doubt Firefox or Chrome on iOS support scroll-behavior anyway, since Apple forces them to use WebKit.
73.
▲
by
giornogiovanna
8y ago
Adding just one application (Xephyr) is a whole lot easier than replacing X, though. It's probably worse for isolation, but it's also probably good enough.
74.
▲
by
giornogiovanna
8y ago
I haven't used it at all, but doesn't Rust have experimental support for coroutines? https://github.com/rust-lang/rust/issues/43122
75.
▲
by
giornogiovanna
8y ago
> Thus, the group is able to centralize and organize their fraudulent activity around a small set of email accounts, thereby increasing productivity and making it easier to continue their fraudulent behavior. How were Gmail's dot-ad
76.
▲
by
giornogiovanna
8y ago
I always assumed that RC has much better worst-case latency than tracing. Given that Swift is a language whose primary target is user interfaces, doesn't it make sense to optimize for that?
77.
▲
by
giornogiovanna
8y ago
Well either half is utterly meaningless without the other, and could actually be arbitrary, right? So you'd have to have them both together for it to be illegal.
78.
▲
by
giornogiovanna
8y ago
Very far-off digits of π (assuming π is even a normal number) are not easily accessed or enumerated. In fact, you'd probably need more information to encode the index and length of your sequence than you would to just write the data ou
79.
▲
by
giornogiovanna
8y ago
> He said there was "ongoing research" to find ways to remove such content from block chains but these were "not yet mature". Either you have centralization, which nobody wants, or you have a bot that everyone agrees
80.
▲
by
giornogiovanna
8y ago
It can always be solved with weak references.
81.
▲
by
giornogiovanna
8y ago
This doesn't sound like a very good example. Fn inherits FnMut inherits FnOnce, so a library should just ask for the freest one it can support. Usually that just falls out of the meaning of the function. For example, a callback shoul
82.
▲
by
giornogiovanna
8y ago
Right, unless I'm mistaken, what you want is `Rc` with `Rc::make_mut`[0], not `Cow`. [0]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#metho...
83.
▲
by
giornogiovanna
8y ago
Rust doesn't just give you better guarantees. It gives you no runtime checking, and potentially even better performance than naive C, because it can automatically tell LLVM when there is no memory aliasing going on.[0] Also, it gives y
84.
▲
by
giornogiovanna
8y ago
- Doubly linked lists. - Cocoa delegates that keep references to some parent of the objects that they're delegates of. - Some event listeners (in the same way as delegates). I wouldn't say it's "rare". It popped up
85.
▲
by
giornogiovanna
8y ago
Right. This is one of the things I don't like about automatic reference counting, that it's almost a complete solution, but cycles require more thought (but less cases) to deal with than manual memory management itself.
86.
▲
by
giornogiovanna
8y ago
What extensions do you use that make your browser slower? I only use HTTPS Everywhere, which has no effect, and uBlock Origin, which makes most webpages much faster, so I don't see how this is true.
87.
▲
by
giornogiovanna
8y ago
This seems a bit exaggerated. You definitely don't need to start with certbot or even with a domain name. Why can't you just start with a regular server on localhost, which can be set up in way less than ten minutes, and publish
88.
▲
by
giornogiovanna
8y ago
I think you're overstating it. Why do people care so much about scalability issues, anyway? Given that (a) a stateless server plus an SQLite instance is much, much easier to set up than the proprietary, poorly documented mess that is L
89.
▲
by
giornogiovanna
8y ago
Damn, you're right, it's more complicated than I thought. But what else would you use? setInterval suffers from the same problem, doesn't it?
90.
▲
by
giornogiovanna
8y ago
You definitely use frame deltas when updating things (I mean, how else would you know how much time has passed), but when doing physics, that frame delta is constant for the lifetime of the simulation. Box2D User Manual > We also don
More ›