mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Page:
Mozlandia Rust In Gecko
Pages
Adding a new WebIDL binding
Alternative Logo Proposals and Related Swag
Asynchronous WebAssembly compilation project
Austin Oxidation
Autogeneration of style structs
Basic SVG support project
Beginner's guide to rebasing and squashing
Benchmarking
Benchmarks
Bots
Browser Engine Research
Build Errors FAQ
Buildbot administration
Building for Android
Building for Magic Leap
Building for UWP
Building on ARM desktop Linux
Building
CI Services we use
CSS parse error reporting
CSSOM student project
Canvas rendering project
Cargo upgrade service project
Code rust concurrency
Code Review
Code of Conduct
Coding standards
Compiler upgrade recipes
Compositor Layer Design
Contributing
Control Servo using WebDriver
Creating and viewing WARC web archives in Servo
Creating new OpenSSL Windows binary distributions
Cross compiling from linux to mac
Crowbot
Css selector matching meeting 2013 07 19
DOM Design
DOM documentation
DOM missing pieces
Debugging JS web compat issues
Debugging and editing tools
Debugging
Design
Developer tools student project
Devtools CSS errors
Devtools plans
Devtools
Diagnosing SpiderMonkey JIT issues
Eric Atkinson visit 2013 09 10
Events and sundry
Expand HTTP request response monitoring
Fetch improvement project
Firefox Reality release notes
FirefoxReality build
Firewall setup for servo master1
Focus student project
Form validation student project
GSoC project brainstorming
Garbage collected DOM
Getting started with layout
GitHub Labels
Github & Critic PR handling 101
Github workflow
Glossary
Governance
Graphics toolkit integration
HTML parser improvement project
HTMLElement binding conversion
HTTP archive support project
HTTP library requirements
Hawaii Rooting
High priority content for layout
Highfive
HoloLens 2 test plan
Home
How to generate GStreamer binaries for CI
Image load conformance student project
Image maps project
Implement HTML charset parsing project
Implement ImageBitmap project
Implement missing WebAudio automation student project
Implement support for missing XMLHttpRequest APIs
Implement worker modules
Implementing a web standard (RGSoC)
Improve specification conformance of unicode bidi library
Incremental flow tree construction
Infrastructure
Integrate xml5ever
Intern project brainstorming
Intern projects
JS objects, wrappers, and cross origin concerns 2013 08 07
Layout 2020
Layout Overview
Layout resources
Layout revamp ideas
Leo meyerovich visit 2013 07 22
Linux sandboxing
London Oxidation
London Security
Meeting 2014 10 27
Meeting 2014 12 08
Meeting 2012 02 08
Meeting 2012 02 16
Meeting 2012 07 20
Meeting 2013 04 01
Meeting 2013 04 15
Meeting 2013 04 22
Meeting 2013 04 29
Meeting 2013 05 06
Meeting 2013 05 13
Meeting 2013 05 20
Meeting 2013 06 03
Meeting 2013 06 10
Meeting 2013 06 14
Meeting 2013 06 17
Meeting 2013 06 24
Meeting 2013 07 01
Meeting 2013 07 15
Meeting 2013 07 22
Meeting 2013 07 29
Meeting 2013 08 05
Meeting 2013 08 12
Meeting 2013 08 19
Meeting 2013 09 09
Meeting 2013 09 16
Meeting 2013 09 23
Meeting 2013 09 30
Meeting 2013 10 14
Meeting 2013 10 21
Meeting 2013 10 28
Meeting 2013 11 04
Meeting 2013 11 18
Meeting 2013 11 25
Meeting 2013 12 02
Meeting 2013 12 09
Meeting 2013 12 16
Meeting 2014 01 06
Meeting 2014 01 13
Meeting 2014 01 21
Meeting 2014 01 27
Meeting 2014 02 03
Meeting 2014 02 10
Meeting 2014 02 24
Meeting 2014 03 10
Meeting 2014 03 17
Meeting 2014 03 24
Meeting 2014 03 31
Meeting 2014 04 07
Meeting 2014 04 14
Meeting 2014 04 21
Meeting 2014 04 28
Meeting 2014 05 05
Meeting 2014 05 13
Meeting 2014 05 19
Meeting 2014 06 09
Meeting 2014 06 17
Meeting 2014 06 23
Meeting 2014 06 30
Meeting 2014 07 07
Meeting 2014 07 14
Meeting 2014 07 21
Meeting 2014 07 29
Meeting 2014 08 04
Meeting 2014 08 11
Meeting 2014 08 12
Meeting 2014 08 18
Meeting 2014 08 25
Meeting 2014 09 08
Meeting 2014 09 15
Meeting 2014 09 22
Meeting 2014 09 29
Meeting 2014 10 06
Meeting 2014 10 13
Meeting 2014 10 20
Meeting 2014 11 10
Meeting 2014 11 17
Meeting 2014 11 24
Meeting 2014 12 15
Meeting 2015 01 05
Meeting 2015 01 12
Meeting 2015 01 26
Meeting 2015 02 09
Meeting 2015 02 23
Meeting 2015 03 02
Meeting 2015 03 16
Meeting 2015 03 30
Meeting 2015 04 06
Meeting 2015 04 13
Meeting 2015 04 27
Meeting 2015 05 04
Meeting 2015 05 11
Meeting 2015 05 18
Meeting 2015 06 01
Meeting 2015 06 08
Meeting 2015 06 15
Meeting 2015 07 06
Meeting 2015 07 13
Meeting 2015 07 27
Meeting 2015 08 10
Meeting 2015 08 17
Meeting 2015 08 24
Meeting 2015 08 31
Meeting 2015 09 14
Meeting 2015 09 21
Meeting 2015 09 28
Meeting 2015 10 05
Meeting 2015 10 12
Meeting 2015 10 19
Meeting 2015 10 26
Meeting 2015 11 02
Meeting 2015 11 09
Meeting 2015 11 16
Meeting 2015 11 30
Meeting 2016 01 04
Meeting 2016 01 11
Meeting 2016 01 25
Meeting 2016 02 01
Meeting 2016 02 08
Meeting 2016 02 22
Meeting 2016 03 07
Meeting 2016 03 21
Meeting Devtools Servo 2
Meetings
Microdata project
Minutes Hackathon 2012 03 27
Missing DOM features project
More ServiceWorker support project
More developer tools student project
Mozlandia Automation
Mozlandia B2S
Mozlandia JS
Mozlandia Rust In Gecko
Mozlandia WPT
Mozlandia gfx
Mozlando Devtools Servo
Mozlando Oxidation
Mozlando SM Servo
Mozlando Servo Bluetooth
Mozlando Servo MagicDOM
Mozlando Servo SMStrings
Mutation observer project
Mutation testing project
NCSU student projects
Network security project
Off main thread HTML parsing project
Offscreen canvas improvements project
Offscreen canvas project
Orlando Oxidation 2018
Oxidation 2015 11 05
Persistent sessions student project
Preparing ARM libraries for CI
Priority of CSS properties
Priority of DOM implementation
Priority of dom bindings
Private browsing student project
Profiling
Project proposal deadlines
Prototype JS form controls student project
Prototype ways of splitting the script crate
Publishing a new ANGLE NuGet version
Publishing a new app store release
Push vs Pull for caching
Random web content project
Refactor GLES2 student project
Refactor bluetooth support student project
Remaining work
Removing push notifications from IRC hooks
Replace C libraries student project
Report new contributors project
Representation of computed style
Research
Reviewer
Roadmap
Running Web Platform Tests on Servo
Rust HTML parser
Rust SpiderMonkey debugger API
Rust cssparser code walk 2013 08 02
SaltStack Administration
San Francisco Oxidation
Servo Benchmarking Report (December 2024)
Servo Benchmarking Report (November 2024)
Servo Benchmarking Report (October 2024)
Servo Layout Engines Report
Servo and SpiderMonkey Report
Servo for Gecko Developers
Specification Links
SpiderMonkey related tasks
SpiderMonkey infodump
SpiderMonkey upgrade details
Storage student project
Streaming webassembly student project
Strings
Student project brainstorm
Student projects
Styling overview
Stylo hacking guide
Summer of Code 2014: Implement XMLHttpRequest
Summer of Code 2016: Fetch API
Summer of Code 2016: File support
Summer of Code 2016: ServiceWorker infrastructure
Summer of Code projects
Summit meeting 2013 09 09
Support WebDriver based tests project
Syncing web platform tests (WPT)
TaskCluster
Testing
Tools
Tracking intermittent failures over time project
Transcription Notes from Servo Architecture talk in Suwon
Transcription notes from rust patterns talk in suwon
Transcription parallelism
Transcription rust concurrency
Transcription rust runtime
Transription layout and acid2
Trinity College Dublin student projects
UPenn student projects
Updating the Rust compiler used by Servo
Upgrading non taskcluster linux CI machines
Upgrading the UWP gstreamer binaries
Upgrading the windows LLVM binaries
Upgrading wptrunner
Using DOM types
Using Rust Spidermonkey Prototype
Using WebWorker Prototype
Version 0.1
Videos and presentations
WebAudio JS interfaces student project
WebAudio nodes student project
WebCompatBug
WebSocket student project
Webdriver student project
Webdriver tests student project
Webrender Overview
Whistler 2019 notes
Whistler Bugzilla
Whistler FFOS
Whistler GFX
Whistler Houdini1
Whistler Houdini2
Whistler Necko
Whistler Oxidation 2019
Work items for new contributors
Workweek COW DOM
Workweek alt js
Workweek android arm
Workweek boot 2 servo
Workweek compiler lints
Workweek displaylist
Workweek dogfooding
Workweek encoding
Workweek generated content
Workweek governance
Workweek graphics stack
Workweek graphics toolkit
Workweek incremental layout
Workweek js bindings status
Workweek layers
Workweek layers2
Workweek pixels
Workweek rasterization
Workweek reftests
Workweek roadmap
Workweek script crate
Workweek security
Workweek string interning
Workweek tables
Workweek writing modes
XML parser student project
infra triage notes
jQuery status
webxr.today support
Clone
3
Mozlandia Rust In Gecko
sawrubh edited this page 2015-01-01 05:36:52 -08:00
Table of Contents
- Meeting with build reps on getting the Rust compiler in Gecko
- Overview
- Deploying to build machines
- What version of Rust?
- Distro support
- Compiler efficiency
- Artifact caching
- Overhead of producing rust binary
- Symbol info
- PGO
- How do we ship a feature?
- Different platforms
- Getting into Gecko build
- Toolchain
- Other platforms
- Advice / next steps
- XPSP2
- OSX
- Linux Kernel
Meeting with build reps on getting the Rust compiler in Gecko
- Like to understand what the short-term vs. long-term requirements are
- e.g., is there a way to stage through "just in nightly" to "just in beta" to "OSX only release" before supporting the full matrix?
Overview
- larsberg: We'd just like to ship something in 2015. One platform is fine.
- ted: need a mozbuild file. You will probably want to expose a C API, more than likely. Likely a standalone, shared library the libxul links again? Can we compile Rust libraries into libxul and link them together?
- acrichto: Yes.
- ted: Then just need build to know how to build them?
- glandium: Yes.
- gps: Anything it pulls in? libllvm?
- brson: Self-contained.
- glandium: jemalloc?
- acrichto: When you compile rust, you can enable or disable it. I suspected you'd want to disable it.
- ted: Can you use ours?
- brson: Yes.
- gps: Anything special on windows?
- brson: We use mingw right now.
- gps: Visual Studio? Is it a goal?
- brson: Ambition...
- ted: We build with Visual Studio on Windows. Not negotiable. Does clang-cl solve this?
- ehsan: Yes.
- build: Probably may be solved for you, if you shift. Talk with ehsan. Would be OK not to support Windows in the first pass as well. Maybe debug symbols will be funny?
- gps: Either way, that's a toolchain dependency to windows that is new.
- brson: WE can provide the toolchain.
- nfroyd: Only need mingw when compiling, right?
- brson: There are components in the Rust toolchain that require mingw.
- glandium: If the rust compiler is self-contained, that's great.
Deploying to build machines
- build: Use Tooltool. It's a JSON file with SHA hashes for tool packages. You provide a tar file of that tool, it gets stuck in a approved location, and the build machines pull it down as part of the build.
- gps: tooltool is not enabled on all builders. Just Mac...
- glandium: Everything that matters. Not the Valgrind build. Not on the SM build.
- ted: Have to figure out valgrind. Valgrind doesn't use mozharness.
What version of Rust?
- ted: Provide a new tarball and update the manifest. Not a big deal. Don't want to do it constantly. Plus, your dependencies become those of build. If you have a lot of churn, you will make developers mad.
- jack: One every six weeks a lot?
- nfroyd: Yes.
- gps: Is tooltool public next year?
- ehsan: Almost.
- ted: In terms of non-releng, we have bootstrap scripts in the tree. Can apt-get, brew install makes it great. Windows is more of a hassle, so we just have a monolithic mozilla build package, but if you have to update it, that's hard.
Distro support
- gps: distro packaging.
- ted: If we can keep it optional for a while, we can handwave for a while.
- gps: Buys time, but not forever.
- jack: Once rust gets into RC phase, it will get packaged.
- ted: If you need something newer, that's OK. Have to do it for clang drops. Imposing it on other developers is harder. We don't change our toolchain that often.
- gps: If it's optional it satisifies most of our complaints. But it'd be nice replicate the release build as much as possible to avoid the try build.
Compiler efficiency
- gps: Dependencies. How efficient is the compiler about no-op'ing if it needs to. How much time does rebuilding take. WE're finally down to incremental FF builds in seconds.
- nalexander: is rustc compilation-unit c like or java-like.
- mbrubeck: One library is one compilation unit.
- nalexander; So it's java-like. So gps's question is relevant.
- nalexander: can rustc emit a .ppdeps file?
- jack: Yes, rustc can emit it.
- gps: That is what we expect it to work.
- jack: Maybe cargo?
- larsberg: Let's just have mozbuild invoke rustc, works like normal makefiles.
- ted: Yes.
- gps: Better would be if somebody can sit down with mike shaw (of tup).
- brson: Build times.
- gps: Twitter failed with Scala's inability to scale to incremental linking. A single input change would result in 30 seconds.
- jack: It's like that in Rust, but it's to the crate-level. We try to keep our crates really small. Servo itself, because it has a bunch of code, can be slow.
- brson: If your dependency graph hits one big create, we have issues.
- gps: The concern is that if we end up with a 30 second link time, we'll have a problem.
- brson: It would help us to prioritize our 2015 planning if we know what your requirements are.
- larsberg: We won't see it much now because we will replace small libraries first.
- Q: We're pushing to change the Android / Java-side build,w hich has the same problems that Rust has (your crate is our jar). We're also pushing to an external build system that looks more like cargo - move to gradle and get out of the business of building Android things. WE ahve the same concerns. We'll just invoke it instead of javac. Putting that money into Cargo long-term would be good. That's what's happened with our Android builds. I'd push strongly for that.
- nbp: I totally disagree with language package managers, especially ones that fetch packages while building.
- ted: It's different if Cargo is going online - that's a no-go.
- nalexander: Agreed; that's one of my biggest concerns about gradle.
- jack: There's no magic in Cargo; it just calls rustc under the hood anyway. Could also have cargo emit the depinfo, if we want to try that instead.
- ted: If we're not building a standalone rust thing and link it into libxul, does that work with Cargo?
- acrichto: Yes.
Artifact caching
- gps: Artifact caching. Knowing all of the inputs into what you're compiling and the outputs so you can grab it from S3 - ccache for C/C++. We use it on linux, mac, and windows. So, what do we do to cache Rust outputs? It's sped up the builds.
- brson: Hard requirement?
- gps: It will be an issue as the number of Rust components increase. Build needs to be deterministic.
- jack: I believe it's been a cargo goal from day 1.
Overhead of producing rust binary
- gps: Small component that's a few hundred lines. How big is the library?
- acrichto: Our static library is included, so there's a baseline. We should work with LTO.
- larsberg: What is the smallest, total.
- acrichto: 600kb. No debuginfo.
Symbol info
- nbp: Gdb support?
- acrichto: Well. DWARF output. All should be integrated.
- brson: We do masquerade as C, but not everything you can do in gdb works. You can evaluate C. Unfortunately, Windows is also in bad shape.
- ted: Will clang on windows do PDBs?
- jrmuziel: line number info and basic stack, but no frame pointer unwinding right now.
- eshan: Can emit dwarf and use on Windows...
- ted: Problem here is Windows Firefox is VC++, and linking in Rust will not make it possible to debug as a whole.
- gps: Ties into crash reporting, because it relies on symbol dumping.
- jrmuziel: What breakpad needs is a way to unwind the stack, emit the information that VS does on Windows, so that you can unwind.
- ted: Function symbols are a problem... does the linker take care of it?
- jrmuziel: Linker will turn it into a PDB.
- ted: I think that crash reporting will work and we'll get line info out of it. Debugging should work after a fashion. Probably see some basic source linking; just no locals.
- jrmuziel: Adding support for emitting debug information is tractible. Google is not going to do that; they're planning to use lldb when using clang-cl.
- ted: Normally it's one or the other; here we're trying to merge.
- eshan: We're interested in making this work in clang-cl.
- jack: Why are we doing clang-cl, btw?
- jrmuziel: Not supporting being built with a compiler we don't have source to.
- gps: That's a much later discussion.
PGO
- gps: PGO issues with Rust? Nah...
How do we ship a feature?
- ted: Once it's enabled in nightly as a build, just have to not be causing a regression.
- eshan: Have to get
- nalexander: Test infrastructure for rust?
- acrichto: Run the compiler with --test and you get a binary.
- gps: That's an automation issue.
- glandium: Also depends on the component. If it's something exposed to teh web, you need itool or web tests, too.
- ted: ICO, BMP decoder, etc. very easy.
- glandium: If it replaces something in Gecko that has tests, we have to pass them.
- ted: Do we have ImageLib tests? If so, we should just get them and have to pass them.
Different platforms
- larsbeg: Can we just ship on Linux or OSX first?
- ted: It's OK.
- eshan: Can't make a general statement.
- gps: Have to talk with the module owner. There should be a path to it on every platform.
- ted: Can also say one platform in nightly, but not in aurora until on all platforms.
- jack: Is windows the only long pole?
- gps: Usually.
Getting into Gecko build
- eshan: Timeframe?
- larsberg: Across 2015. By end of year, something that ships.
- gps: From a build system perspective, if it's all behind a flag, you can do that right now. It's just when you change things that ship in Firefox that you have to talk to people, outside of the build team.
Toolchain
- jrmuziel: What's the size?
- acrichto: 110MB download.
- gps: Same as GCC.
- nalexander: Source or the binary?
- ted: That's gonna suck for people in developing nations.
Other platforms
- larsberg: Solaris?
- glandium: x86 solaris.
- kmc: LLVM is dropping compiling code supporting Windows XP.
- eshan: Dropping support for building on XP, not for it.
- larsberg: rust does not support targeting XP.
- brson: No major reason.
- acrichto: if you use condvars, you can't target it.
- jrmuziel: That's an issue.
- eshan: We have our own condvar. Support Windows XPSP2.
- ted: Not Solaris.
- glandium: If you leave the Gecko code behind, it's OK to leave the tier 2 platforms.
- brson: We need to bootstrap up FreeBSD, too.
- jrmuziel: SPARC LLVM backend?
- ted: Nope.
- brson: MIPS? Is it required?
- ted: Not really.
- gps: ARMv6 and ARMv7.
- glandium: And ARMv5t.
- jack: Plan for ARM64?
- nbp: We have will have it by end of December.
- nfroyd: Geck already runs on ARM64 w/o the SM JIT.
- ted: Don't stress about tier 2. Win32. Focus on 64/32 Linux, 64/32 OSX, 64 Windows, ARM/Android. ARMv6 and ARMv7.
Advice / next steps
- gps: Send a post with the plan to dev-platform to get more feedback.
- ted: Also, open bugs.
XPSP2
- brson: How long will you support it?
- eshan: Once we stop having users. We still had millions of XPSP2 users.
- gps: Around 10%.
- glandium: There are more XPSP2 than Linux users.
OSX
- brson: How far back?
- gps: 10.6. Haven't seen numbers recently, though.
- glandium: Still there.
- frodynj: high single digit percentage.
- gps: bsmedberg said we still have to build 32-bit gecko until netflix departs silverlight and goes to EME.
Linux Kernel
- brson: Minimum kernel version.
- eshan: 2.4
- acrichto: if I said 2.6.18...
- eshan: Fine.