Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tedmielczarek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
tedmielczarek
9y ago
Note that Mozilla is working more closely with the Tor project with an eye towards making it easier for more people to get the privacy enhancing benefits of browsing over the Tor network.
62.
▲
by
tedmielczarek
9y ago
That would require the US to have a functioning justice department.
63.
▲
by
tedmielczarek
9y ago
Or using Google web properties: https://www.ghacks.net/2017/04/18/google-makes-the-new-googl... https://support.google.com/hangouts/answer/7334146?hl=en https://www.theve
64.
▲
by
tedmielczarek
10y ago
The comments on the bug are exemplary of the kind of crap we deal with when supporting Linux users, and really go a long way towards making people not want to spend any time on these issues. If you actually read the details you'd note
65.
▲
by
tedmielczarek
10y ago
While I would agree that we are vastly understaffed, we just don't have the resources to pay people to fix everything. We hire lots of extremely talented developers, but like all software projects everything is a tradeoff. We could pay
66.
▲
by
tedmielczarek
10y ago
I very rarely write macros despite having written thousands of lines of Rust, but they are super useful on occasion. Often in Rust something that you might have used preprocessor macro tricks to do in C can be done without macros at all. At
67.
▲
by
tedmielczarek
10y ago
> I am not sure if this directly applies to your post, but it came to mind when I read the section about `extern crate`. It seems like the Cargo system is relied upon by almost all Rust users, and I am not sure if this is an ergonomics
68.
▲
by
tedmielczarek
10y ago
I have found using conditionals as expressions super useful, like: ``` fn foo(number: u32) -> bool { if number > 2 { true } else { false } } ``` I mean obviously in this situation you could just have the body of the function be `num
69.
▲
by
tedmielczarek
10y ago
const M_PI: f64 = 3.14159265358979323846264338327950288; You wouldn't use a macro for something like that in Rust.
70.
▲
by
tedmielczarek
10y ago
The Rust compiler is written in Rust, so rest assured the Rust core developers spend a lot of time dealing with the language itself. Additionally Mozilla is spending quite a bit of developer time on Servo, so we have quite a few people acti
71.
▲
by
tedmielczarek
10y ago
The blog post was pretty clear that the text is actually "mozilla", it's just that the Zilla font has a ligature for "ill" that will display it as "://".
72.
▲
by
tedmielczarek
10y ago
> My only request would be for them to throw more weight behind Rust. The community and tech is amazing. But getting buy-in from clients to use Rust might benefit from knowing there's a "company" behind it. Maybe. I'd
73.
▲
by
tedmielczarek
10y ago
Interesting, I hadn't seen that post! I wonder if there are any posts that elaborate on the internal Google bits more. I'd love to know what "they found other ways to solve their performance problems" wound up meaning in
74.
▲
by
tedmielczarek
10y ago
They tried that with CPython, it didn't work: https://www.python.org/dev/peps/pep-3146/
75.
▲
by
tedmielczarek
10y ago
Go and D both made the design choice to have garbage collection heavily intertwined with the language (or at least the standard library), which makes them not really suitable for replacing C++ in most applications. Rust doesn't have a
76.
▲
by
tedmielczarek
10y ago
Google has pretty specific needs, so this project may be very successful internally even if it gets zero traction externally. A lot of big software companies do this nowadays. Google and Facebook both have a lot of purpose-built software, s
77.
▲
by
tedmielczarek
10y ago
Given the failure of their unladen-swallow work to make it into CPython, I think Google is probably tired of trying to make Python faster. Some of their stated goals with Go were to be a faster, compiled Python, so this makes a lot of sense
78.
▲
by
tedmielczarek
10y ago
There's still a bit of an ideological divide between the Bazel "all your build dependencies are checked-in" and the autotools "you must provide these build dependencies" model. I'm not sure we'd ever drop
79.
▲
by
tedmielczarek
10y ago
Note that for the Firefox build we're using cargo-vendor to store all of our crates.io dependencies in the Firefox tree: https://github.com/alexcrichton/cargo-vendor/ https://dxr.mozilla.org/m
80.
▲
by
tedmielczarek
10y ago
Just as a neat data point, we hadn't been using sccache for Firefox builds in our new CI infrastructure (Taskcluster) for various reasons. After rolling out the sccache rewrite I fixed that, and build times in that environment dropped
81.
▲
by
tedmielczarek
10y ago
This is not what happened in this case (although I have seen this pattern in other situations in the past). The Rust version is a faithful port of the feature set of the Python version. (It had to be, we were using essentially the entire fe
82.
▲
by
tedmielczarek
10y ago
If you're shipping binaries to end users Microsoft's optimizer is pretty fantastic, especially if you build with PGO. Plus MinGW sometimes lags behind with things added in newer Microsoft SDKs, so there can be some friction there.
83.
▲
by
tedmielczarek
10y ago
I'd take a patch to allow overriding the URL! I actually could use that for testing the S3 storage. The S3 code went through a few revisions. I was originally using Rusoto ( https://github.com/rusoto/rusoto ), which
84.
▲
by
tedmielczarek
10y ago
I think other commenters have explained it pretty well, but suffice to say that if you get comfortable writing Rust you grow to really like using match, and most languages don't have an equivalent. :)
85.
▲
by
tedmielczarek
10y ago
Supporting Windows is often a pain (although in this case Rust hides a lot of that pain, honestly), but the main driver of the original sccache implementation was not Windows support, but the ability to share the compilation cache across
86.
▲
by
tedmielczarek
10y ago
For the record, I wasn't actually looking for any speedups with this rewrite. Most of it is a straight port of the Python code. The build time speedups were just a nice bonus. (I was measuring just to make sure I didn't regress bu
87.
▲
by
tedmielczarek
10y ago
distcc is great, and as I mentioned in that Reddit comment some of my colleagues are using icecream to great success. I won't repeat my entire comment from Reddit, but one other notable point is that tools like ccache/distcc don&#
88.
▲
by
tedmielczarek
10y ago
It does have a bunch of tests, although probably not enough. I've been meaning to add code coverage stats to its CI, although I've only used kcov for Rust code coverage so far, and that only works on Linux it wouldn't reflect
89.
▲
by
tedmielczarek
10y ago
Sorry, I don't remember if I've ever actually configured the Wordpress settings on that blog.
90.
▲
by
tedmielczarek
10y ago
Silicon Valley is littered with the corpses of overvalued cautionary tales.
More ›