senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Notices by Masaki Hara (qnighy@qnmd.info), page 56

  1. Masaki Hara (qnighy@qnmd.info)'s status on Friday, 12-Oct-2018 20:19:09 JST Masaki Hara Masaki Hara
    in reply to

    →問題になる。気持ち的には参照カウントを減らしてからArcInnerを触ることはない。しかしLLVMの規約上、参照は関数の最後まで生き延びないとUBになってしまう。fetch_subがその内部実装を呼び終えてからのわずかな時間が事故に繋がりうるという話である。

    In conversation Friday, 12-Oct-2018 20:19:09 JST from qnmd.info permalink
  2. Masaki Hara (qnighy@qnmd.info)'s status on Friday, 12-Oct-2018 20:14:49 JST Masaki Hara Masaki Hara

    https://github.com/rust-lang/rust/issues/55005
    ArcにまたUBが発見された。これは実効的なやつではなさそう。
    あるスレッドでArcが不要になり参照カウントを減らしたとする。減らした命令のすぐ直後で割り込みが入り、次に目覚めたときには他スレッドがArcInnerを解放した後かもしれない。その「直後」のわずかな期間が問題

    In conversation Friday, 12-Oct-2018 20:14:49 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: avatars0.githubusercontent.com
      Arc::drop has a (potentially) dangling shared ref · Issue #55005 · rust-lang/rust
      from GitHub
      Discovered by @Amanieu on IRLO. Quoting their report: Arc::drop contains this code: if self.inner().strong.fetch_sub(1, Release) != 1 { return; } Once the current thread (Thread A) has decremented ...
  3. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 21:23:25 JST Masaki Hara Masaki Hara

    いろり庵きらくの蕎麦機械が故障してるらしくて、かわいそう

    In conversation Wednesday, 10-Oct-2018 21:23:25 JST from qnmd.info permalink
  4. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 21:16:01 JST Masaki Hara Masaki Hara

    そういう、意味論が見える言語は他にもあって、Haskellっていうんですけど、参照をもつ手続き型言語でも排他性をちゃんと管理してやることでそれができると実証してるのがRustなんだよな

    In conversation Wednesday, 10-Oct-2018 21:16:01 JST from qnmd.info permalink
  5. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 21:11:33 JST Masaki Hara Masaki Hara

    Rust, 事前条件や事後条件が視える超人類が設計したとしか思えない、形式手法にお誂え向きの構造なのに、「やあやあ、依存型でござい」みたいなのがないので、人類でも頑張ればちゃんと書けるようになってるのがすごいんだよな

    In conversation Wednesday, 10-Oct-2018 21:11:33 JST from qnmd.info permalink
  6. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 12:52:00 JST Masaki Hara Masaki Hara

    タイムテーブル←→スペースチェア

    In conversation Wednesday, 10-Oct-2018 12:52:00 JST from qnmd.info permalink
  7. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 12:47:00 JST Masaki Hara Masaki Hara

    家電

    In conversation Wednesday, 10-Oct-2018 12:47:00 JST from qnmd.info permalink
  8. Satoshi Kojima (skoji@sandbox.skoji.jp@sandbox.skoji.jp)'s status on Wednesday, 10-Oct-2018 12:36:31 JST Satoshi Kojima Satoshi Kojima

    家系(いえけい)と家系(かけい)に匹敵するややこしいやつ、男の娘。

    おとこのむすめ、って文は少なくともフィクションでは普通に出てくるからなー

    In conversation Wednesday, 10-Oct-2018 12:36:31 JST from sandbox.skoji.jp permalink Repeated by qnighy
  9. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 12:41:57 JST Masaki Hara Masaki Hara

    ジャバだから、とスクリプト言語界隈を追放されたGroovyは腹いせにレベルMAXドメイン固有言語に転職して伝説のIDEメーカーと最強パーティを組みました

    In conversation Wednesday, 10-Oct-2018 12:41:57 JST from qnmd.info permalink
  10. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 10:20:53 JST Masaki Hara Masaki Hara

    str::repeatの脆弱性はCVE-2018-1000810になったらしい。
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-1000810

    In conversation Wednesday, 10-Oct-2018 10:20:53 JST from qnmd.info permalink

    Attachments


  11. Masaki Hara (qnighy@qnmd.info)'s status on Wednesday, 10-Oct-2018 09:31:27 JST Masaki Hara Masaki Hara

    https://boats.gitlab.io/blog/post/pin-cell/
    RefCellのpin版であるPinCellというのが外部ライブラリとして作られたらしい。pinとはRustでムーブできない型を擬似的に実現する仕組みで、async/awaitで重要な役割を担う。

    In conversation Wednesday, 10-Oct-2018 09:31:27 JST from qnmd.info permalink

    Attachments

    1. No result found on File_thumbnail lookup.
      New crate: pin-cell
      from withoutblogs
      Today I realized a new crate called pin-cell. This crate contains a type called PinCell, which is a kind of cell that is similar to RefCell, but only can allow pinned mutable references into its interior. Right now, the crate is nightly only and no-std compatible. How is the API of PinCell different from RefCell? When you call borrow_mut on a RefCell, you get a type back that implements DerefMut, allowing you to mutate the interior value.
  12. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 23:32:52 JST Masaki Hara Masaki Hara

    Java系のOOPの枠組でよくわかってないの、具象クラスがなぜか継承可能なところとメンバ変数をもつクラスがなぜか継承可能なところ、それから「こいつを継承/オーバーライドしたらほぼ確実にis-a関係が壊れるでしょ」みたいなクラス/メソッドにも全然finalとかついてないところの3つかな

    In conversation Tuesday, 09-Oct-2018 23:32:52 JST from qnmd.info permalink
  13. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 23:28:08 JST Masaki Hara Masaki Hara

    signed mainの競プロしぐさ感は好き

    In conversation Tuesday, 09-Oct-2018 23:28:08 JST from qnmd.info permalink
  14. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 20:00:43 JST Masaki Hara Masaki Hara

    なろう小説積読が溜まっているんだけど如何ともしがたい。最近は本好きの書籍版最新まで追いついたけどもうすぐ外伝も出てしまう

    In conversation Tuesday, 09-Oct-2018 20:00:43 JST from qnmd.info permalink
  15. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 10:10:28 JST Masaki Hara Masaki Hara

    https://github.com/rust-lang/book/pull/1559#issuecomment-427940398
    Why yes it does! なんて言い回しがあるのか

    In conversation Tuesday, 09-Oct-2018 10:10:28 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: avatars0.githubusercontent.com
      An typo? by imbolc · Pull Request #1559 · rust-lang/book
      from GitHub
      What to expect when you open a pull request here 2018 Edition The 2018 is a "living" edition; it's not scheduled for in-print publication at this time, and so is able to be updated at...
  16. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 09:50:23 JST Masaki Hara Masaki Hara

    ところで、carols10centsさんの本名はGitHubを見ると二種類併記されていて、shepmaster氏の本名はInteger32, LLCに書いてあるけど、よく見ると…… (知らなかった)

    In conversation Tuesday, 09-Oct-2018 09:50:23 JST from qnmd.info permalink
  17. Masaki Hara (qnighy@qnmd.info)'s status on Tuesday, 09-Oct-2018 09:45:20 JST Masaki Hara Masaki Hara

    https://users.rust-lang.org/t/how-to-start-learning-rust/4244/8
    carols10centsさんとshepmaster氏がRustのビデオチュートリアル?を作っているらしい。
    2人はRustのメンテナでもあり、Rust専門の技術コンサルであるInteger32, LLCの共同創業者でもある。

    In conversation Tuesday, 09-Oct-2018 09:45:20 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: discourse-cdn-sjc1.com
      How to start learning rust?
      from The Rust Programming Language Forum
      I know this is an old thread, but I wanted to add a new resource. @shepmaster and I are working on a new video course for Manning called Rust in Motion. Our goal is to cover the areas in Rust that are the most different from other programming languages: the differences in basic syntax, the ownership and borrowing system, error handling, and lifetimes. By taking this course, you can get over the steep learning curve and get into building projects with Rust quickly ?
  18. Masaki Hara (qnighy@qnmd.info)'s status on Monday, 08-Oct-2018 22:50:21 JST Masaki Hara Masaki Hara

    これはRc::newには影響ないはず(Rc::newの場合はサイズとアラインメントはコンパイラ側で完全に計算されるはずなので)
    参照先がunsizedである、などの都合でポインタから直接変換するときにはライブラリ側でサイズとアラインメントを計算する必要があり、そこにバグがあったという話。

    In conversation Monday, 08-Oct-2018 22:50:21 JST from qnmd.info permalink
  19. Masaki Hara (qnighy@qnmd.info)'s status on Monday, 08-Oct-2018 22:49:44 JST Masaki Hara Masaki Hara

    これはRc::newには影響ないはず(Rc::newの場合はサイズとアラインメントはコンパイラ側で完全に計算されるはずなので)
    参照先がunsizedである、などの都合でポインタから直接変換するときにはライブラリ側でサイズとアラインメントを計算する必要があり、そこにバグがあったという話。

    In conversation Monday, 08-Oct-2018 22:49:44 JST from qnmd.info permalink
  20. Masaki Hara (qnighy@qnmd.info)'s status on Monday, 08-Oct-2018 22:45:04 JST Masaki Hara Masaki Hara

    肝心のバグは何かというとアラインメント絡み。Rc<T>は参照カウントがあるのでBox<T>などとは参照先の構造が異なる。そのためBoxをRcに変換するときはサイズとアラインメントを再計算して再アロケートが必要になるが、このアラインメントで参照カウントの分の考慮漏れがあったらしい

    In conversation Monday, 08-Oct-2018 22:45:04 JST from qnmd.info permalink
  • After
  • Before

User actions

    Masaki Hara

    Masaki Hara

    言語処理系いじりとロジックが好き 相方→@qnighy

    Tags
    • (None)
    WebSub

    Following 1

    • せのお (妹尾 賢)

    Followers 0

      Groups 0

        Statistics

        User ID
        2857
        Member since
        12 Aug 2018
        Notices
        769
        Daily average
        0

        Feeds

        • Atom
        • Help
        • About
        • FAQ
        • TOS
        • Privacy
        • Source
        • Version
        • Contact

        senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

        Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.