Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bilkow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
91.
▲
by
bilkow
4y ago
Rust's advantages don't stop at concurrency or type safety. In my experience, the type system is actually much more concise and the APIs are a lot more explicit than any other language I've tried. It's clear when the arg
92.
▲
by
bilkow
4y ago
It actually needs the & in both my example and your second example, because .filter receives a reference to the item being iterated. Your second example doesn't compile: https://play.rust-lang.org/?version=stable&am
93.
▲
by
bilkow
4y ago
Oh, yeah, you're right! If you want to collect into a Vec you may need to specify the type, but usually, you can just call `.collect()` and the compiler will infer the correct type (as I suppose you're collecting it to use or retu
94.
▲
by
bilkow
4y ago
I guess you're right, list/generator comprehensions are the idiomatic way to filter and map in python, with the caveat of needing to have it all in a single expression (the same goes for lambda, actually). I still feel like chaine
95.
▲
by
bilkow
4y ago
It looks like I'm on the minority here, but I generally like Rust's syntax and think it's pretty readable. Of course, when you use generics, lifetimes, closures, etc, all on the same line it can become hard to read. But on my
96.
▲
by
bilkow
4y ago
A shadowban is IMO worse than an instaban, you still aren't able to post anything, but it will look like you can. It also feels morally wrong to shadowban people and there's no process to appeal, it's not even straightforward
97.
▲
by
bilkow
4y ago
You shouldn't multiply by 12 if the 500k is yearly. Also what's the 2? 2 engineers? The correct math would be: 1M * 12 * 10% = 1.2M 500k * 2 * taxes >= 1M
98.
▲
by
bilkow
4y ago
> If I want to design my own CPU, I will have to add it to GCC. Why do you "have" to add it to GCC? You could only add it to LLVM instead.
99.
▲
by
bilkow
4y ago
I also find that searching Bing does not result in youtube-dl.org, only the repository, while DDG returns both, but Bing is not the ONLY source for DDG results, at least according to them. https://help.duckduckgo.com/duckduc
100.
▲
by
bilkow
4y ago
I find it ironic that some people are blaming the author so bad given that Github has made the same mistake in the past and had to restore it from the backup, making it clear that the UX could be better. I get it, we should all be very caut
101.
▲
by
bilkow
4y ago
> alternativeto I actually find alternativeto so useful that I usually just go directly to it instead of my search engine when looking for FOSS alternatives. Having to go to the alternative page before clicking the official site link is
102.
▲
by
bilkow
5y ago
You can decompile android apps, which will give mostly the original Java Classes / functions with anonymized names (class A, function b, etc...). Framework classes and methods usually stay pretty much the same. See for example https:&
103.
▲
by
bilkow
5y ago
> Based on data across the CloudFlare network, 94% of requests that we see across the Tor network are per se malicious. I'm skeptical about their metrics. If I try to access a cloudfare protected site and never manage to finish the
104.
▲
by
bilkow
5y ago
Meh, I think all of those points are highly exaggerated by drama, to the point of most of them not even being true. For once, I like most of their decisions (except maybe for the layoffs, but they were arguably needed). Some were unfortunat
105.
▲
by
bilkow
5y ago
Explicit variable declaration is just adding a keyword (such as var or let) when you're declaring a new variable instead of modifying one. The cognitive burden of having to memorize and look for which variables are new vs which are bei
106.
▲
by
bilkow
5y ago
No, antimof was the original repo, it has just moved. Check the first paragraph of the README (in both the original and new fork).
107.
▲
by
bilkow
5y ago
> Not supporting old hardware is something that all companies eventually must do I get it, but macOS does not need to do anything hardware-specific to fix security vulnerabilities, they'd only need to patch the old version (which al
108.
▲
by
bilkow
5y ago
I'm worried by many of the security issues fixed by the linked official apple release notes, including CVE-2021-30939, which indicates that it may be possible for a computer to be compromised by opening images or maybe even accessing i
109.
▲
by
bilkow
5y ago
Security is not support. If they distributed defective software (with security vulnerabilities), they should fix reported vulnerabilities or at least provide a clear and canonical path for the community to fix it themselves. Yes, it also ap
110.
▲
by
bilkow
5y ago
> That’s not different from the situation with Windows. Yes. And that is also part of the problem. They also don't patch reported vulnerabilities nor provide a clear path for the community to fix themselves. > What is different i
111.
▲
by
bilkow
5y ago
It actually runs pretty well for most things. The hardware is still good unless you're doing high intensity computing or trying play AAA games on it (for which it was never good anyway).
112.
▲
by
bilkow
5y ago
Apple should keep providing security updates for the latest version supported on any machine. There are lots of macs stuck at macOS High Sierra (the last one that supports GPUs without metal), and none of them are receiving any security upd
113.
▲
by
bilkow
5y ago
> Lots of criticism of the short export window, but no one knows how many customers they have. Even if they had only 1 single customer, that's not an excuse to close the service and allow exporting with just a 4 day notice. People a
114.
▲
by
bilkow
5y ago
As I understand it, clang doesn't have the tools to sanitize WASM. It just emits WASM, which, malicious or benevolent, can't access memory outside its designated memory regions. It's wasm2c job to ensure that the C generated
115.
▲
by
bilkow
5y ago
I think there is a slight mistake in the article: > So how can a reference in a child assume the same lifetime? It can't. Well actually, it can, because the owned Struct itself (Node) can outlive any borrow. You won't be able t
116.
▲
by
bilkow
5y ago
Although optional, matrix actually has identity servers, which allow people to find you via phone number / email.
117.
▲
by
bilkow
5y ago
There are actually indications that even though some plants may grow faster, their evapotranspiration is decreased[1] and the plants grow fewer valuable nutrients[2]. [1] https://www.sciencedirect.com/science/article&#x
118.
▲
by
bilkow
5y ago
Where I live, both of my banking apps work without SafetyNet and even Google Play Services. I have missed one or another app for having no Play Services, but nothing too important and it's offset by having the option to block all inter
119.
▲
by
bilkow
5y ago
According to wikipedia, the Traffickinghub campaign, created by Exodus Cry's Director of Abolition, resulted on the credit cards ban. Source: https://en.wikipedia.org/wiki/Exodus_Cry#Traffickinghub_camp...
120.
▲
by
bilkow
5y ago
Rust has "typedefs" and those are called type aliases. The intention of the newtype pattern is to specifically create a new type without the behaviour of the wrapped type, so if there's a special case just for u8, I would exp
More ›