Hiroshi Miura
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: Koedolug 20210508 tags: report, Talk description: View the slide with "Slide Mode". --- # Pythonの進化 ## こえどLUG 報告 Hiroshi Miura 8, May, 2021 slide https://hackmd.io/@miurahr/B1_KeiQOO --- ## 近況(1/2) - 昇降式の机と、バランス式スタンディングチェアを導入 - Pythonプロジェクトのベンチマーク、性能向上 - 2021.4末で、Java系の配布サイト JCenter/BinTrayが終了するのにあわせて, OSSRH Maven Centralに、いろんなプロジェクトを移行する --- ## 近況(2/2) - Conoha 昔バージョンのサービス終了 →移行 - マイクラフトのサーバをConohaにたちあげ - OSSなゲームをためす - OpenTTD 鉄道をひく都市Simulatorゲーム - SuperTuxKart マリオカート的な独自進化中 - Ryzen 7 を採用したThinkPadの動作不良への対応 --- # メインPC - ThnkPad T14s(AMD) Gen1 - Ryzen 7 PRO 16 core - 32GB MEM - 暗号化対応SSD - Mint Linux 20.1で利用中 - Kernel 5.11.16 - Firmwareも最新化 - TLP というバッテリツールの活用 --- ## TLP ![](https://i.imgur.com/90kxQjF.png) --- ## --- # PyKAKASIプロジェクト --- ## PyKAKASIとは - KAKASI: 日本語の漢字仮名交じり文を平仮名やローマ字綴りの文に変換するプログラム - 1994年ころに発表され、2000年以降は開発停止している - Pythonで実装したものが、PyKAKASIで 2010年から開発、公開している - 最近、ガイジンさんからの貢献がおおくて、開発が活発に継続中 --- ## 最近の話題 - 性能向上(v2.1.0, 2021.5.3リリース) - 辞書アクセスの変更と、内部のcache化 --- ## Before ![](https://i.imgur.com/NugYsi7.png) --- ## After ![](https://i.imgur.com/HyEcnc3.png) --- ## 成果 # 30-40倍速に --- # その他の話題 - 「オレンジ色」 が 「おれんじ」 と 「しょく」 になる - 有名な Mecabでも、だめ らしい - うまく変換できるようにする方法を開発中 - とりあえず「オレンジ色」「レモン色」に対応してみた(昨日) - 辞書before - いろ 色 - 辞書after - いろ 色 オレンジ レモン --- # その他の話題 - UniDicの利用化(本日着手) - UniDic: https://unidic.ninjal.ac.jp/ - 国立国語研究所が公開する辞書やデータベース - 形態素解析器MeCab用の解析用辞書など - KAKASI辞書 **3MB**に対し、**200MB** をこえる辞書サイズ --- # PyPPMdプロジェクトの紹介 --- ## PPM - Prediction by Partial Matching(PPM) - 1984年考案の圧縮アルゴリズム - PPMd は、バリエーションの一つ - RARや7zなどに採用されている - Cで実装されたアルゴリズムをPythonから高速につかえるライブラリ - テキストは原文の10%-20%程度に高圧縮可能 - 速度はLZMAよりちょっと速い --- ## 公開中(ReadTheDocs site, Github) https://pyppmd.rtd.io/ ![](https://i.imgur.com/iXgJMx3.png) --- ## 利用 - 7zip実装のPy7zrで、アルゴリズムサポートのために利用 - 一般の開発者むけに、クラスを提供 - コマンドラインは提供なし --- # py7zrプロジェクトでベンチマーク --- ## py7zr: Pure Pythonでかいた 7-zip圧縮フォーマットサポート - 7-zipの圧縮、解凍が可能 - 7-zipは複数のアルゴリズムをサポート - プロプラ以外のアルゴリズムをすべてサポート - 暗号化、復号化も可能 - 独自拡張 - Facebookが開発した ZStandardアルゴリズム - Google が開発した Brotli アルゴリズム --- ## pytest-benchmark モジュールを利用 - 自動的にベンチマーク結果をIssueコメント投稿する仕組みを作成 - Image>> ![](https://i.imgur.com/hvl4h9E.png) --- ## 性能比較 py7zrプロジェクトでの性能比較 ![](https://github.com/miurahr/py7zr/wiki/images/compression_ratio_speed_chart.png) --- # まとめ - 在宅勤務および長期休暇のため、OSSの開発がはかどっています。 - 新型コロナのため、コントリビューションもたくさんきます。 - Happy Hacking

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully