Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
estebank
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
811.
▲
by
estebank
3y ago
> Why is it better to collect data than just have the user cat some logs somewhere and post them? Those logs are collected data. I'm arguing for those logs to exist. > After the recent debacle(s) with the rust foundation This h
812.
▲
by
estebank
3y ago
I'm not against having some kind of service that users can install and enable for telemetry using these metrics, but metrics would be useful even if we never do anything like that and they only ever exist on the users' machine: &q
813.
▲
No telemetry in the Rust compiler: metrics without betraying user privacy
(estebank.github.io)
91 points
by
estebank
3y ago
|
65 comments
814.
▲
by
estebank
3y ago
> But in longer code snippets full Hindley-Milner type inference can cause hard-to-understand type errors. I would love to see examples of this. We've gotten much better on this front over the years, but I'm sure there are plen
815.
▲
by
estebank
3y ago
The GP is referencing cases where inference can't figure out what the T is in Option::<T>::None. This can happen in the body of a closure without an explicit return type, for example. To solve it you have to specify the type eith
816.
▲
by
estebank
3y ago
Without implying whether one position or the other is stronger, I want to point out that even when you're on a wide screen it's not uncommon to take advantage of that and have at least two screens side by side.
817.
▲
by
estebank
3y ago
From the linked Wikipedia entry > a similar phrase used in countries operating under the Westminster system, is "crossing the floor"
818.
▲
by
estebank
3y ago
I find it funny to use "both sides of the aisle" in the context of the French political system. > Usage of the term "aisle" comes from the United States Congress. In the Senate, desks are arranged in the chamber in a
819.
▲
by
estebank
3y ago
Bugs like that in a production compiler could be worrying. In a compiler for a language still being defined, not so much. Compare Rust 1.0 vs 1.71 to see how much of a gulf there is between "first stable release" and "compile
820.
▲
by
estebank
3y ago
If you see poor behavior in the project, call it out. I would personally be interested in being made aware of it to help eliminate it, but the moderation team[1] exists specifically to deal with this. 1: https://www.rust-lang.org
821.
▲
by
estebank
3y ago
But that is not an immutable fact of life. It's not "cultural" either. I see the main reason there aren't grocery stores on every other corner to be single family zoning. Not wanting to have "noise" around your
822.
▲
by
estebank
3y ago
How does making cities more amenable to alternative modes of transportation affect people that neither lives nor works in those cities in any way?
823.
▲
by
estebank
3y ago
For reference, my commute within SF used to take me 45 minutes due to traffic by car. On my bike it was 50. Include finding parking and it was a wash. By bus+wall it took about the same. I didn't drive. If the bus was faster (because i
824.
▲
by
estebank
3y ago
This conversation always goes: - "there should be fewer cars in cities" - "I need my car in my rural area, there's no-one close by" - 200 pages of back and forth talking over each other If you're not in a city
825.
▲
by
estebank
3y ago
In dense cities, there are multiple grocery stores withing walking distance. What people do is come back from the office (or anywhere else), get off the subway or bus, and on the 2 block walk home pop into the shop for fresh produce. Yes pe
826.
▲
by
estebank
3y ago
Does that math include repairs, gas, insurance, etc? The average monthly cost of owning a car in California is ~$500. It also sounds like you might be an outlier, the average used car cost is much higher than that[2], let alone new[3]. It&#
827.
▲
by
estebank
3y ago
What I noticed is that you have a lot of tools available to tune Java applications, but it was more necessary to rely on them to get to a good spot. In the Rust version, I got a 2x speed improvement by using a rayon thread pool instead of
828.
▲
by
estebank
3y ago
They both boiled down to a sendfile call, effectively. The differences came to runtime weight, and parallelism strategy/implementation. It turns out that not having to pay for object headers/stack allocation by default, helps a lo
829.
▲
by
estebank
3y ago
I did an excercise some time ago and managed to get two file transfer apps, one in Rust and one in Java, where the performance was effectively the same (in some cases with a slight Java edge!), but the memory consumption was orders of magni
830.
▲
by
estebank
3y ago
It would be interesting to see if that calculation was with average ferry load, and if there's is any tip over with some reasonable increase in ridership. During rush hour the ferries are packed already, but I find that people in the U
831.
▲
by
estebank
3y ago
I would assume debugger support. Rust is in a tough spot because a lot of code gets compiled away, and debuggers need to understand some Rust-isms for good experience, like enum support. I don't think this is an insurmountable situatio
832.
▲
by
estebank
3y ago
> Integer overerflow is still not caught by default even in rust for efficiency reasons Honestly, I don't think that was the right default, but it is configurable at the project level for release builds. If I were deploying tools,
833.
▲
by
estebank
3y ago
Fighting the urge to debug, and failing, are they running the same software? I could see it being a hardware issue, but highly doubt it. For me it works flawlessly with an old T460 and its dock, but maybe the USB-C codepath is less robust,
834.
▲
by
estebank
3y ago
Also from the article > After years of economic crisis, Portugal decentralized its drug oversight operation in 2012. A funding drop from 76 million euros ($82.7 million) to 16 million euros ($17.4 million) forced Portugal’s main institut
835.
▲
by
estebank
3y ago
Note that the lint for un-awaited Future doesn't mention the way to silence them by assigning to _: warning: unused implementer of `Future` that must be used --> src/main.rs:9:5 | 9 | foo(); | ^^^^^
836.
▲
by
estebank
3y ago
That hasn't been the case for any of the Nexus or Pixel devices I bought straight from Google.
837.
▲
by
estebank
3y ago
Looking at European history, I don't think that we can claim that the continent is today more authoritatian than it has been in the past.
838.
▲
by
estebank
3y ago
I am aware, my point is about how the following is dealt with: fn foo(x: i32) i32 { return x + 100; } fn bar(x: i32) i32 { @setRuntimeSafety(false); return foo(x + 100); } Particularly when you have arbitraril
839.
▲
by
estebank
3y ago
Careful, you're dangerously close to suggesting an effects system. If the function explicitly marked as doing unsafe math operations calls another that doesn't specify a preference, should its math operation be safe or unsafe? If
840.
▲
by
estebank
3y ago
Without trying to sound dismissive, Rust is production ready today, Carbon isn't. Even if Carbon was significantly better, that alone accounts for the adoption of Rust and not Carbon today.
More ›