Skip to content
  • Home Home Home, current page.
  • Moments Moments Moments, current page.

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @
  • Language: English
    • Bahasa Indonesia
    • Bahasa Melayu
    • Català
    • Čeština
    • Dansk
    • Deutsch
    • English UK
    • Español
    • Filipino
    • Français
    • Hrvatski
    • Italiano
    • Magyar
    • Nederlands
    • Norsk
    • Polski
    • Português
    • Română
    • Slovenčina
    • Suomi
    • Svenska
    • Tiếng Việt
    • Türkçe
    • Ελληνικά
    • Български език
    • Русский
    • Српски
    • Українська мова
    • עִבְרִית
    • العربية
    • فارسی
    • मराठी
    • हिन्दी
    • বাংলা
    • ગુજરાતી
    • தமிழ்
    • ಕನ್ನಡ
    • ภาษาไทย
    • 한국어
    • 日本語
    • 简体中文
    • 繁體中文
  • Have an account? Log in
    Have an account?
    · Forgot password?

    New to Twitter?
    Sign up
wcrichton's profile
Will Crichton
Will Crichton
Will Crichton
@wcrichton

Tweets

Will Crichton

@wcrichton

Articulating the ineffable. Programming language theory 🤝 cognitive psychology. PhD @Stanford

he/him
willcrichton.net
Joined September 2011

Tweets

  • © 2021 Twitter
  • About
  • Help Center
  • Terms
  • Privacy policy
  • Cookies
  • Ads info
Dismiss
Previous
Next

Go to a person's profile

Saved searches

  • Remove
  • In this conversation
    Verified accountProtected Tweets @
Suggested users
  • Verified accountProtected Tweets @
  • Verified accountProtected Tweets @

Promote this Tweet

Block

  • Tweet with a location

    You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more

    Your lists

    Create a new list


    Under 100 characters, optional

    Privacy

    Copy link to Tweet

    Embed this Tweet

    Embed this Video

    Add this Tweet to your website by copying the code below. Learn more

    Add this video to your website by copying the code below. Learn more

    Hmm, there was a problem reaching the server.

    By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.

    Preview

    Why you're seeing this ad

    Log in to Twitter

    · Forgot password?
    Don't have an account? Sign up »

    Sign up for Twitter

    Not on Twitter? Sign up, tune into the things you care about, and get updates as they happen.

    Sign up
    Have an account? Log in »

    Two-way (sending and receiving) short codes:

    Country Code For customers of
    United States 40404 (any)
    Canada 21212 (any)
    United Kingdom 86444 Vodafone, Orange, 3, O2
    Brazil 40404 Nextel, TIM
    Haiti 40404 Digicel, Voila
    Ireland 51210 Vodafone, O2
    India 53000 Bharti Airtel, Videocon, Reliance
    Indonesia 89887 AXIS, 3, Telkomsel, Indosat, XL Axiata
    Italy 4880804 Wind
    3424486444 Vodafone
    » See SMS short codes for other countries

    Confirmation

     

    Welcome home!

    This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.

    Tweets not working for you?

    Hover over the profile pic and click the Following button to unfollow any account.

    Say a lot with a little

    When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.

    Spread the word

    The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.

    Join the conversation

    Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.

    Learn the latest

    Get instant insight into what people are talking about now.

    Get more of what you love

    Follow more accounts to get instant updates about topics you care about.

    Find what's happening

    See the latest conversations about any topic instantly.

    Never miss a Moment

    Catch up instantly on the best stories happening as they unfold.

    1. Will Crichton‏ @wcrichton Nov 3

      1 year, 1 RFC, and 1k LOC later... it's finally here! Rustdoc can now automatically scrape code examples from your workspace's examples/ directory as documentation for functions. Check out a live demo: https://willcrichton.net/example-analyzer/warp/trait.Filter.html#scraped-examples-5 …pic.twitter.com/Ax1QRrwgUa

      11 replies 170 retweets 794 likes
      Show this thread
    2. Will Crichton‏ @wcrichton Nov 3

      You can enable this feature on nightly via: cargo +nightly doc -Z unstable-options -Z rustdoc-scrape-examples=examples And on http://docs.rs  via: [http://package.metadata.docs.rs ] cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]

      1 reply 3 retweets 35 likes
      Show this thread
    3. Will Crichton‏ @wcrichton Nov 3

      As -Zunstable-options implies, this feature is unstable. I am actively looking for feedback and bug reports. Any suggestions for the UI are welcome!

      2 replies 0 retweets 22 likes
      Show this thread
      Will Crichton‏ @wcrichton Nov 3

      Some interesting questions: * How should examples be ranked? (Now: by size.) * How should examples be displayed? (Now: show 1, show 5 more under a button, then link to the rest.) * How should this feature be configured? Eg should we allow items to be annotated with `no-scrape`?

      9:20 PM - 3 Nov 2021
      • 27 Likes
      • Jo Andy Jewell ozkriff🦀 Harsh Shandilya Pratyush Mishra Scott Driggers Joshua Sleeper Jakub Beránek impl std::io::Read for Consoli
      2 replies 0 retweets 27 likes
        1. New conversation
        2. Will Crichton‏ @wcrichton Nov 3

          This feature also showcases human-centered language design. This concept was based on a formative study of barriers to learning Rust APIs. It was clear that novices were struggling in part because they didn't know where to find examples, or that they existed.

          3 replies 5 retweets 55 likes
          Show this thread
        3. Will Crichton‏ @wcrichton Nov 3

          (After the PLDI deadline, I will get around to describing the design process in greater detail.)

          1 reply 0 retweets 14 likes
          Show this thread
        4. Will Crichton‏ @wcrichton Nov 3

          This feature also shows the challenges of taking an HCI concept from prototype to production. 90% of the work was the logistics of integrating with Rustdoc, Cargo and http://Docs.rs . If I had just published a user study, very unlikely the concept would have been built.

          1 reply 3 retweets 32 likes
          Show this thread
        5. Will Crichton‏ @wcrichton Nov 3

          Example: scraping examples requires analyzing code *that depends on a library* before *documenting that library*. This inversion of the usual dependency order did not play well with Cargo.

          1 reply 0 retweets 20 likes
          Show this thread
        6. Will Crichton‏ @wcrichton Nov 3

          But a key factor in getting this built was all the help and encouragement I received from the Rustdoc devs and others in the Rust community. Very grateful to them for their (unpaid) time spent discussing the RFC, answering questions, and reviewing my code!

          1 reply 0 retweets 32 likes
          Show this thread
        7. Will Crichton‏ @wcrichton Nov 3

          And most importantly of all: I finally got a code review from my brother 🥺

          3 replies 3 retweets 58 likes
          Show this thread
        8. End of conversation
        1. New conversation
        2. Andy Jewell‏ @avjewe Nov 5
          Replying to @wcrichton

          I have two crates, "one" is heavily dependent upon "two". Can you imagine a way in which the code for "one" could be mined for examples for the usage of "two"?

          1 reply 0 retweets 0 likes
        3. Will Crichton‏ @wcrichton Nov 5
          Replying to @avjewe

          Good question! The mechanism for scraping examples is actually quite general. We even have a file format for serializing example locations. Theoretically, you could have a tool that scrapes examples for *any* crate and passes those examples to rustdoc.

          1 reply 0 retweets 0 likes
        4. Show replies

      Loading seems to be taking a while.

      Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

        Promoted Tweet

        false

        • © 2021 Twitter
        • About
        • Help Center
        • Terms
        • Privacy policy
        • Cookies
        • Ads info