Live data from Hacker News

Viewing profile — m-ou-se

m-ou-se

HN member
Joined
Wed, Feb 18, 2015, 8:55 PM UTC
HN karma
369
Public activity
48 items

About m-ou-se

No profile information was provided.

Recent public activity

  1. comment
    Comment #27264790

    It was stabilized in 2019 by accident: https://twitter.com/m_ou_se/status/1396827152859942921 https://github.com/rust-lang/rust/pull/79270

  2. comment
    Comment #27264140

    An important one is missing from this overview: using a const. This is sometimes useful, because it does not require the type to be Copy; only that the value is a constant: const E…

  3. comment
    Comment #25993352

    SEEKING SPONSOR: I work on the Rust standard library and compiler. As of a few months ago, I'm part of the Rust library team, which is the team that manages everything in and aroun…

  4. comment
    Comment #25612094

    `T: 'a` means that you may keep values of type T around for lifetime 'a, but not that they will . So `T: 'static` means that you may keep values of that type around forever, as the…

  5. comment
    Comment #22908076

    Good point! Updated.

  6. comment
    Comment #22906050

    Thanks! Updated.

  7. comment
    Comment #22906041

    Imports work fine. The main reason I wrote this, was to be able to use the Python matplotlib library in Rust: https://twitter.com/m_ou_se/status/1120577172438233088

  8. comment
    Comment #19736134

    It doesn't translate Python to Rust or anything like that, it uses CPython both to compile to Python bytecode and to run it. It doesn't launch a separate interpreter, the interpret…

  9. comment
    Comment #19731560

    It uses the same Python interpreter, but each macro invocation is considered its own module. A later version of the crate will have the possibility to keep the context around to be…

  10. comment
    Comment #19731041

    In Python, all data (even simple integers) are all allocated on the heap. ToPyObject makes a deep copy of everything, converting everything to `PyObject` on the heap, so all data i…

  11. comment
    Comment #19731006

    Matplotlib was one of the reasons I made this. Works just fine: https://github.com/dronesforwork/inline-python/blob/aebabc88...

  12. comment
    Comment #19729942

    At work, we make high performant drone control systems in Rust. But for testing and debugging, we simply use Matplotlib (a Python library) to make plots of simulations, etc. So we …

  13. comment
    Comment #19729915

    Author here. Let me know if you have any questions. :)

  14. story
  15. comment
    Comment #19590663

    Yes, this was our main worry as well. At first we switched to Rust only for the lower level code, the parts that interfaces with sensors and the motors, that do the data logging, o…

  16. comment
    Comment #19590576

    We do, but it's very minimal for now: https://dronesforwork.nl/ We'll be changing our company name in a few weeks, followed by the launch of a new website which should have a lot m…

  17. comment
    Comment #19589707

    Yes! I'm founder of a start-up (about 10 employees now) that makes flight controllers for Drones, and all the software that runs on them is written in Rust. We don't use STM chips …

  18. story
  19. comment
    Comment #19169094

    C does not have a modulo operator. It has a remainder operator, which works perfectly fine. Calling C's `%` a 'broken modulo operator' is like calling `+` a 'broken minus operator'…

  20. comment
    Comment #18933955

    They have duck.com and ddg.gg. Both Firefox and Chromium make wrap the url in 'www.' and '.com', so 'duck ' works.

  21. comment
    Comment #18814506

    All of the first challenge's puzzles can be solved with: .thing { background: url(data:image/png;base64,iVBO...); width: ...px; height: ...px; } Where the image data is just the ta…

  22. story
  23. story
  24. comment
    Comment #17483821

    Note: It's not a paywall. Simply click 'Eerst verder lezen' to read the full article.

  25. story