Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arve0
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
arve0
7y ago
I’m not known with the internal data structure of git, but couldn’t you add the new hash as a commit in a new format “on the side”, leaving the original commit as is?
32.
▲
by
arve0
7y ago
The problem is trusting the submitter. How do you make sure derivate work is not submitted?
33.
▲
by
arve0
7y ago
where 1=1 and ,first=condition
34.
▲
by
arve0
7y ago
Same experience. I use to joke about it; “The more crappy lecturer you have, the more you perform.” Understanding that you don’t understand is powerful.
35.
▲
by
arve0
7y ago
I went to lib.rs, searched for mock and found this: https://lib.rs/crates/filesystem
36.
▲
by
arve0
7y ago
> Compare the situation with Java! Isn’t that comparable to java? Oracle gives you paid security updates on version 8. You can keep using the previous version without security updates or migrate to OpenJDK 8, which have their own securit
37.
▲
by
arve0
7y ago
> dangerous behavior should be hard to reach and inconvenient to use I understand your point, but to me that is exactly the case. It requires the extra "mut" (harder to reach) and is inconvenient to use (more compiler errors).
38.
▲
by
arve0
7y ago
> but i just don't ever want to see an error like that Then, do not mark your variables as mutable. This error only happens if you use `let mut variable_name = ...` AFAIK, `let var`, e.g. immutable variables, behaves the same as in
39.
▲
by
arve0
7y ago
The borrow checker does not allow that, it will complain "error[E0502]: cannot borrow `vector` as immutable because it is also borrowed as mutable".
40.
▲
by
arve0
7y ago
If you need access to the users data on another service, without having their credentials on the other service, CORS is the correct choice. > Servers can also notify clients whether "credentials" (including Cookies and HTTP Aut
41.
▲
by
arve0
7y ago
Zoom does not need CORS-headers to fix the vulnerability, rather make the web server running on localhost drop requests with wrong origin header.
42.
▲
by
arve0
7y ago
Rich Harris addresses scale in the Changelog podcast, and claims it to scale better than regular frameworks. https://changelog.com/news/a-ui-framework-without-the-framew...
43.
▲
by
arve0
7y ago
What is the best option, in your opinion?
44.
▲
by
arve0
7y ago
I find lib.rs mentioned in the article a good tool. Here on concurrency: https://lib.rs/concurrency
45.
▲
by
arve0
7y ago
...and control over your ship motor + steering without computers. I’m not sure that is true on newer larger ships. Edit: Would of course not be a spoofing attack.
46.
▲
by
arve0
7y ago
Then I read your first comment wrong, I was referring to my quote in https://news.ycombinator.com/item?id=20236130 Regarding the comparison in source bytes, here it is: minified lit-(element + html)[1]: 21.4k I'm not s
47.
▲
by
arve0
7y ago
> Bundled, minified, and gzipped Why gzipped? Bytes of source is a fairer comparison. Parsed source code should be the comparison, not transfer time. > HelloWorld doesn't use much, so it'll be small, but most component are n
48.
▲
by
arve0
7y ago
> ... and smaller size than just about anything else out there. Compare a styled Hello World example to React or any other framework: Compared with svelte from the article: <script> export let name; </scri
49.
▲
by
arve0
7y ago
227 lines, 4.62 kB. https://github.com/zavg/linux-0.01/blob/5839d67d5825265fc665...
50.
▲
by
arve0
7y ago
Are you mixing up code you write vs the code emitted? The code you write in Svelte is reactive/declarative, emitted code is regular imperative JS.
51.
▲
by
arve0
7y ago
> so you want the error type to be !. For others having trouble to grok that sentence, ! is the never type. Should never happen. https://doc.rust-lang.org/std/primitive.never.html
52.
▲
by
arve0
8y ago
Missing .abort() on safari is one reason. https://caniuse.com/#feat=abortcontroller
53.
▲
by
arve0
8y ago
> you're talking about one thread per core, not one thread per unit of work? Yes, a thread pool, consisting of one thread per core/computing unit. The units of work are then scheduled between the threads. Units of work here bei
54.
▲
by
arve0
8y ago
...and of course you know that, being on the Rust core team, just adding the specifics (I did not know the numbers myself).
55.
▲
by
arve0
8y ago
Default stack size for new threads is 2 MB, https://doc.rust-lang.org/std/thread/#stack-size . That means total_memory_usage = 2 MB * number_of_cores, which is not so much on modern hardware.
56.
▲
by
arve0
8y ago
> are you referring to the code you read? Yes, the code the developer needs to read, write and understand. I'm not familiar of how async/await will be in Rust, but I guess some code differences/complexities can be: 1. Make
57.
▲
by
arve0
8y ago
How much performance is gained by going async instead of blocking threads on modern hardware? Skimmed through https://vorner.github.io/async-bench.html . If I understand it correctly, one get about twice the performance with
58.
▲
by
arve0
8y ago
Because of cost? 1. Cost per charge << per tank, and 2. cost credit car reader >> rfid reader.
59.
▲
by
arve0
8y ago
Not parent, but I think you are missing the point parent is making. Suppose an app which does not really needs file permission to work, like Facebook, but asks anyhow. If you opt out, you cannot access the app. That pattern does not need to
60.
▲
by
arve0
8y ago
It’s a bit hard analyzing total impact of npm install package, so I made this tool that let you view total size of a npm package. The tool resolves the complete dependency tree, deduplicates packages with same same spec (name@version) and g
More ›