Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrtngslr
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Rust in Chromium
(google.github.io)
9 points
by
mrtngslr
3y ago
|
1 comments
2.
▲
by
mrtngslr
3y ago
The family of Rust courses by Google have grown to include a course on how to use Rust in Chromium! This is targeted at Chromium engineers and others who build the browser, but everybody can play along at home and learn how to integrate Rus
3.
▲
by
mrtngslr
3y ago
Thanks! We do include speaker notes on some pages (but not yet all[1]). We would love to expand this and PRs are very welcome for this :-) I think videos will end up being made by someone other than me since I feel it takes too much effort
4.
▲
by
mrtngslr
3y ago
A bit more detail: we've been expanding our Rust training at Google over the last year. We've now had more than 500 Googlers go through Comprehensive Rust and they tell us that they really like it — also when we ask them again thr
5.
▲
Scaling Rust Adoption Through Training
(security.googleblog.com)
9 points
by
mrtngslr
3y ago
|
2 comments
6.
▲
by
mrtngslr
3y ago
I wrote a blog post about how we've been scaling Rust adaption in Google.
7.
▲
by
mrtngslr
3y ago
I've seen that too: having experience with Rust made C++ feel easy. I looked at C++ many years ago but never used it professionally. About 6-7 years ago, I learnt Rust and a few years later, I started working full time in a C++ team at
8.
▲
by
mrtngslr
3y ago
Hey there! I wrote the course and you're spot on: the course is meant for classroom training (at Google and elsewhere). If you have the time to read a book, then I highly recommend diving into one of the many great Rust books. I'v
9.
▲
by
mrtngslr
3y ago
My colleguage Andrew wrote the bare-metal part. I believe he picked the micro:bit board because it's readily available around the world. It also has a lot of fun sensors (microphone, rudimentary speaker, compass, ...). I'm sure th
10.
▲
by
mrtngslr
4y ago
Yes, it's definitely important to tailor the training to the audience! When I'm teaching the course, I start by asking people about their background — if it's primarily C/C++ people, then we can quickly page through the
11.
▲
by
mrtngslr
4y ago
The course is meant to be interactive, which means that you should try out the embedded code snippets. You can edit them and run them from your browser :) However, if you really want a PDF, then use the print page[1]. It will let you produ
12.
▲
by
mrtngslr
4y ago
Thanks for posting the link and thank you very much to everyone who have sent us PRs over the last 24 hours! Please keep submitting them. You can use the little pencil icon in the top-right of any page to quickly submit a typo fix patch. I&
13.
▲
by
mrtngslr
4y ago
Yeah, that is a fun tutorial indeed :-D I forgot to add that one to the list of https://google.github.io/comprehensive-rust/other-resources.... . Would you care to open a PR for that?
14.
▲
by
mrtngslr
4y ago
Sorry, you're right :-) I meant to comment further up where people asked if we could reference rustup.rs in the installation instructions.
15.
▲
by
mrtngslr
4y ago
I actually haven't tried this... do you know off the top of your head what it takes to make a cycle with Rc? It should not be possible with normal borrows (and safe Rust) since they're statically checked to be acyclic.
16.
▲
by
mrtngslr
4y ago
Right, this is a problem with reference counted data structures in general. You're correct that Rust doesn't try to solve this particular problem. Put differently, the borrow checker won't allow you to create a cycle of refre
17.
▲
by
mrtngslr
4y ago
Thanks for reposting :-) In general, I feel that the new course will be useful for people who want to teach Rust. If you have a group of engineers and you want to teach them Rust, then this is a ready-to-go solution. You only need to spend
18.
▲
by
mrtngslr
4y ago
Hi, I wrote the new course. We have been enabling the use of Rust in the Android Platform. Roughly speaking, the Android Platform is the Linux distribution running below the Android apps we all know. There are a number of daemons running on
19.
▲
by
mrtngslr
4y ago
Actually, there is already an issue for this: https://github.com/google/comprehensive-rust/issues/19 and I hope someone will fix it soon :-)
20.
▲
by
mrtngslr
4y ago
To be honest, the course suggests using apt since that's an easy security-approved way to install things on our computers (see https://en.wikipedia.org/wiki/GLinux ). I'll be happy to update it to suggest usin
21.
▲
by
mrtngslr
4y ago
Hi, I wrote the course :-) Yes, this is a real thing — Android has had support for Rust in the Android Platform for a few years now. Most recently, we shipped support for DNS-over-HTTP/3: https://security.googleblog.com/
22.
▲
by
mrtngslr
12y ago
From: https://plus.google.com/+MartinGeisler/posts/eR6obsGwTGw Changeset evolution has some similarities with a distributed reflog. Like Git, commits are immutable in Mercurial and we can only "change" a
23.
▲
by
mrtngslr
12y ago
Yes, they are merged. The Facebook guys have been doing a great job optimizing things all over the place (revsets in particular).
24.
▲
by
mrtngslr
12y ago
If you haven't already, then you can go vote on this issue: https://bitbucket.org/site/master/issue/6710/enable-exchange... -- and ask your collegues to do so too! :-) The Bitbucket devs are nice gu
25.
▲
by
mrtngslr
12y ago
That's a good image. The key difference to Mercurial is then that Mercurial's tree of commits don't need Post-it notes. The tree can stand on its own without extra branch labels. You can add them (see bookmarks) but they'
26.
▲
by
mrtngslr
12y ago
Largefiles are being used for production in game companies and we have not gotten reports about corruption.
27.
▲
by
mrtngslr
13y ago
> I think people hear "rewrites history" and let their imaginations run wild with sci-fi tales of wonder, only then to think of the grave horrors such power would enable... but forget to look at what actually is happening when
28.
▲
by
mrtngslr
13y ago
Revision numbers are stable within a given repository. The revision number for a commit is simply the index of the commit in the changelog — nothing more. Since a changeset must come after its parent in the changelog, the revision numbers g
29.
▲
by
mrtngslr
13y ago
I don't think this is true today. Git and Mercurial have the same basic model, which means that a commit is immutable because the identity of a commit is determined by its content. This means that you must re-create a changeset in both
30.
▲
by
mrtngslr
13y ago
Mercurial ships with 30+ standard extensions and you simply enable them as needed. More experienced users can download and then install third-party extensions as they like. This of them as major modes for Emacs, if you're familiar with
More ›