Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tedmielczarek
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
tedmielczarek
6y ago
Thank you for making that available! I understand why it's hard for upstream Rust to provide and I hope they'll find a solution eventually but until then not having to reinvent that wheel saved us a lot of time!
32.
▲
by
tedmielczarek
6y ago
The latter is very achievable using the Relooper algorithm developed by Alon Zakai and described in the Emscripten paper: https://dl.acm.org/doi/10.1145/2048147.2048224
33.
▲
by
tedmielczarek
6y ago
I don't think that's true. It was designed for its purpose by people that knew what they were doing based on experience gathered from implementing previous incremental steps including emscripten's original JavaScript output a
34.
▲
by
tedmielczarek
6y ago
gn is of course a meta-build system, the initials stand for "generate ninja". ninja does the actual build execution. The Firefox build system has a similar homegrown frontend called mozbuild, which generates Makefiles for the actu
35.
▲
by
tedmielczarek
7y ago
A friend of mine has a similar project called PyOxidizer that's intended for building standalone executables with Python+Rust: https://pyoxidizer.readthedocs.io/en/stable/ His primary use for it is building
36.
▲
by
tedmielczarek
7y ago
It's not really written down anywhere but you can see the gory history of how we got it together in bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=921040 We used the MacOSX SDK from Xcode, packaged up into our
37.
▲
by
tedmielczarek
7y ago
Hi! Post author here, happy to answer any questions. Part 2 of this blog post should be out next week, it'll get into some more specifics of how we're using Rust.
38.
▲
by
tedmielczarek
7y ago
I dunno, personally I enjoy working with Matt and like that he feels this way about us. FWIW I don't really believe it's even possible to rank people based purely on talent. I worked with some incredibly talented engineers in my
39.
▲
by
tedmielczarek
7y ago
Very cool! Tangentially related, I looked into reimplementing `codesign` in Rust while I was at Mozilla. We wanted to see if we could take Apple hardware out of the loop for our release process after we had switched Mac Firefox builds to cr
40.
▲
by
tedmielczarek
7y ago
This mostly matches what I've come to believe over the course of my career with one slight tweak: also make sure that your code can handle the immediate next thing you know needs to be done. Don't try to plan any farther ahead t
41.
▲
by
tedmielczarek
7y ago
> For the very simple case of "I want a command-line option which specifies a path as an OsString", Rust’s way of doing things makes things hard. By comparison, in C++, I am used to dealing with paths as std::string on Unix and
42.
▲
by
tedmielczarek
7y ago
We're going off into the weeds here but in C this is implementation defined. In Rust you can use `#[no_std]` and the semantics are all well-defined. There's a thriving Rust embedded ecosystem that's doing just fine. Yes, the
43.
▲
by
tedmielczarek
7y ago
Not in the language standard they don't, no. The C99 standard basically says "good luck with that": "5.1.2.1 Freestanding environment 1. In a freestanding environment (in which C program execution may take place without
44.
▲
by
tedmielczarek
7y ago
The point isn't that it should be easy to do terrible broken things like this. The point is that you will encounter these things in the real world and have to deal with them in some way. Rust's OsStr[ing] let you do that. If you r
45.
▲
by
tedmielczarek
7y ago
I'm not sure there's a meaningful distinction to be drawn there for the vast majority of usage, to be honest. A language's standard library is generally considered to be part and parcel of the language. Everyone's first
46.
▲
by
tedmielczarek
8y ago
There's an Embedded Rust working group currently, and they're doing some amazing things: https://github.com/rust-embedded/awesome-embedded-rust James Munn gave a super interesting talk at this year's Rus
47.
▲
by
tedmielczarek
8y ago
I checked and it's using Mozilla's DeepSpeech library: https://github.com/MozillaReality/FirefoxReality/blob/dee6f4... which is here: https://github.com/mozilla/DeepSpeech Deep
48.
▲
by
tedmielczarek
8y ago
Unfortunately the web platform has failed to provide a sensible way to embed HTML content, so images and videos are how people actually share things. You can take an image and save it to your device and share it to any social media service
49.
▲
by
tedmielczarek
8y ago
I've met Chris and I told him that if I didn't live so far outside of the city I would be happy to pay him for service to my home. I have decent speeds through Comcast but their customer service is atrocious. Telcos have a monopol
50.
▲
by
tedmielczarek
8y ago
The web is a complex platform, so it's definitely not hard to wind up using some feature that performs well in one browser but poorly in another. I don't know that it necessarily reflects badly on any individual browser--software
51.
▲
by
tedmielczarek
8y ago
I watched my kids figure out how to use a variety of Android and iOS devices they had never seen before when they were less than 2 years old, so I would argue that touchscreens are in fact more intuitive to use.
52.
▲
by
tedmielczarek
8y ago
This is not entirely surprising, Rust's async I/O story isn't settled yet. tokio and futures exist, but there's some churn there that means it's a bit difficult to deal with at the moment. An RFC for async/awai
53.
▲
by
tedmielczarek
9y ago
> Why? Because underneath all that rust .... is an optimizing compiler, and it happens the author has decided to stay on the happy path of that. There are two big differences here: 1) You're comparing "staying on the happy path
54.
▲
by
tedmielczarek
9y ago
Software patents are bad and should be abolished.
55.
▲
by
tedmielczarek
9y ago
We've had a blocklist in Firefox for specific DLLs that cause major issues (usually crashes) for ages: https://dxr.mozilla.org/mozilla-central/rev/574f4f58fe09dd59... I assume Chrome is just planning to make
56.
▲
by
tedmielczarek
9y ago
If you've got a specific site that this reproduces on that would be helpful. If you can also provide the model of the monitor you're using and the version of your OS that would help us track it down. Thanks!
57.
▲
by
tedmielczarek
9y ago
Keep in mind that by parallelizing work the browser can finish the work it's doing faster, which means your CPU can spend more time idle, which is better for power consumption.
58.
▲
by
tedmielczarek
9y ago
On the flip side, there's plenty of room for writing lots of shiny new stuff in Rust, which is a pretty unique Mozilla opportunity. :)
59.
▲
by
tedmielczarek
9y ago
I live in rural Pennsylvania and Mozilla pays me quite well as a staff engineer, FWIW.
60.
▲
by
tedmielczarek
9y ago
The redesigned Firefox for Android was roundly praised as the best Android browser for a while. (It's still very good!) It gained very little market share. Unfortunately it's very hard to compete with defaults these days without p
More ›