1. 9

    Please note this is from April; a lot has happened.

    This week, the networking WG is supposed to be making some posts overviewing the state of play as it is today. We have landed futures in the core library as well as the first implementation of async/await in the compiler. Still more work to do, though!

    1. 2

      Exciting! What’s the best way to stay up to date on all this?

      1. 4

        This Week in Rust collects the latest news, upcoming events and a week-by-week account of changes in the Rust language and libraries.

        The Rust Blog is where the Rust team makes announcements about major developments.

        And nearly everything happening in Rust is discussed on the unofficial subreddit, /r/rust.

        1. 2

          Probably following the network working group newsletter; one should be out this week with a summary of where we’re at with everything, and what is left to be done. I’ll make sure it gets posted to lobste.rs.

          1. 1
          2. 1

            So what’s the current state regarding implicit vs. explicit execution? Last time I checked there were both explicit executors and poll.

            1. 2

              I think you’re asking about Tokio; the standard library doesn’t provide an executor. The executor is implicit. You still call tokio::run, but that’s it. See here: https://tokio.rs/blog/2018-03-tokio-runtime/

              poll is still the core of how Futures works. https://doc.rust-lang.org/nightly/std/future/trait.Future.html

              1. 3

                So future.map(...).filter(...) won’t start executing until it is polled explicitly? I found the documentation to be somewhat silent on that.

                1. 1

                  Yep!

                  1. 1

                    Thanks, good to hear.

          1. 1

            What’s the benefit of this as opposed to a more “modern” protocol like matrix?

            1. 4

              Generally the newfangled stuff has to be justified and not the other way around.

              1. 1

                The newfangled stuff is justified by the loss of mindshare irc has experienced in favour of apps like slack or whatsapp

            1. 1

              Personally, I just Keychain for iOS and OS X. It takes very little setup, it’s definitely secure enough for my personal use case, and it Just Works. Generating and storing random passwords across all my iDevices couldn’t really be easier.

              1. 2

                What exactly is Pony, again?

                1. 2

                  From their site: “Pony is an open-source, object-oriented, actor-model, capabilities-secure, high performance programming language.”

                1. 1

                  Why don’t you filter out every tag instead of the ones you want to see, temporarily? I do not think it is often the case that people want to see a particular combination of tags… but just for that day.

                  1. 1

                    Consider the compilers and compsci example. If there’s just a few tags I want to look at, filtering out all the rest (and then unfiltering when I’m done) is rather cumbersome.

                  1. 18

                    I finished The Martian last night. It’s an amazing book. It’s sci-fi, but with enough realism in it to make is sound plausible. The stranded man is an engineer, so there are many detailed descriptions of how he fits things together to make new things he needs.

                    1. 2

                      Read this last week, only took a few hours as it pulled me right in. Fantastic book, excited for the movie; though I’m a bit weirded out that Dr. Mann is going to be stranded on Mars..

                      1. 1

                        I’m excited to start it; it’s next on my (ever-growing) list after I finish Infinite Jest.

                        How is the writing itself? I’ve heard great things about the realism in the sci-fi, but not much about the story or prose outside of the technical details.

                        1. 2

                          The writing is good. It’s compelling. The author explains things clearly and pretty much every chapter ends on a cliffhanger.

                          1. 1

                            There’s for sure sections of the book that read like a really interesting spreadsheet…but it doesn’t fall into that pit of genre fiction where they spend too much time on genre and not enough time on solid writing. It’s good.

                          2. 1

                            I’d recommend Rocket Girls for something vaguely similar. Also the nonfiction Moondust: In Search of the Men Who Fell to Earth.

                          1. 2

                            Well, today I learned that set -o vi is going into all my .bashrc’s from now on.

                            1. 3

                              One thing I’ve found useful is ctrl+x ctrl+e to edit the current command in $EDITOR. That way I can leave the emacs-style keybindings at the shell, as you’ll find that everywhere, but you can still edit unwieldy commands in real vim.

                              Best part: Bash has it by default.

                              1. 1

                                Or, in your /etc/inputrc or ~/.inputrc:

                                set editing-mode vi
                                set keymap vi-command
                                
                              1. 2

                                I am (and have been for the past few weeks) still working through Infinite Jest. I’ve been enjoying it for the most part; though there have definitely been some parts I’ve had to slog through.

                                I’ve wanted to start reading some more educational material, particularly around PL and compilers, but I’ve been a little daunted by the idea of reading it in parallel with IJ. Suggestions and what and how to read would be appreciated!

                                1. 1

                                  I’ve heard only good things about Let’s Build a Compiler. Anyone with further good things about it to share with us?

                                  1. 1

                                    Thanks for the reference, although I’m looking for something a couple steps beyond that as I’m already familiar with type theory and basic compiler implementation.

                                    And good things about IJ? It’s an unprecedented and fascinating look into addiction, depression, and American views on these topics. Those are just the central themes (I’d say, anyway), and the author has much more to say along the way.

                                  2. 1

                                    I’ve read the Dragon Book (Compilers: Principles, Techniques, and Tools, Aho et al.) at the time. It’s quite good (considered the seminal text on these matters), though if you’re already familiar with the basics, I don’t know if it’ll help you much.

                                  1. 1

                                    Is anyone out there using Atom as their primary editor? I’d love to hear something from that point of view.

                                    1. 10

                                      Interesting. I didn’t support the guy’s views on gay marriage, but I was excited to see how someone with his technical expertise could lead the company. If it were up to me, I think he should have stayed if he was truly the best person for the job as long as his views didn’t affect the way he did his job.

                                      EDIT: Especially given the statement in his personal blog post a few days ago, I think he should’ve been given a better chance.

                                      1. 15

                                        That post said he would not “ask for trust free of context” and should be allowed to “show, not tell” but then his next actions were to refuse to discuss his position except in a 1:1 setting, and to essentially double-down on his intolerance with a weird justification about Indonesia.

                                        The showing was all too telling. It was really that which disqualified him from the job.

                                        CEO, even of a technical company, is not simply a technical position, it’s a position as a leader, a figurehead, a frontman, an ambassador. Mozilla faces multiple challenges in the coming months and years that will require someone skilled at these sorts of social politics and navigating passionately held views (cf DRM, mp4 etc).

                                        That their CEO couldn’t even manage to navigate this with his own position - that he in effect put his head in the sand and refused to discuss it or even attempt to justify it - boded poorly for his ability to do it for the entire organisation.

                                        1. 1

                                          The “if you disagree with me you’re oppressing poor Indonesians who can’t speak for themselves” thing is what really pushed me over the edge. What an asshole. I can’t imagine this having played out any other way, his response was pathetic and deserving of contempt.

                                        2. 1

                                          My question: Does this new age of moral purity scale, or will we have to know all the politics of everyone we associate with?

                                          1. 9

                                            “New age of moral purity”? Give me a break.

                                            People in high profile positions are expected to avoid controversy, because nobody likes controversy. News at eleven.