GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    tesaguri 🦀🦝 (tesaguri@fedibird.com)'s status on Saturday, 26-Aug-2023 18:06:17 JST tesaguri 🦀🦝 tesaguri 🦀🦝

    Unixのフィルタプログラムのような用途では標準入出力を流れるバイト列のエンコーディングを気にしなくても良い場合も多いと思うけど、Rustで文字列処理をしようとするとUTF-8としてのバリデーションが必要になりがちでアレみたいなところはありそう。`bstr`クレートみたいなものもあるけど、例えば`core::fmt`周りのコンパイラマジックをの恩恵を受けるにはやはり`str`が必要だし

    In conversation Saturday, 26-Aug-2023 18:06:17 JST from fedibird.com permalink
    • らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • Embed this notice
      tesaguri 🦀🦝 (tesaguri@fedibird.com)'s status on Saturday, 26-Aug-2023 18:06:23 JST tesaguri 🦀🦝 tesaguri 🦀🦝
      in reply to

      では標準の文字列型を`BStr`相当のものにしておけば良かったのかというと、それはそれで例えばJSONの書き出しのような本当にUTF-8が必要な処理で文字列リテラルを書き込むだけでバリデーションが発生するなどのつらみがありそうなので、はい。何なら必要なバリデーションを忘れるコードが氾濫するまでありそうだし

      In conversation Saturday, 26-Aug-2023 18:06:23 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.