Matti Picus
    • 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
    • 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 Versions and GitHub Sync Note Insights 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: PyPy --- # PyPy sprint https://piratenpad.de/p/IkjitZdh https://hackmd.io/1eT6t4_lReigSw0-4pEyQw ## People Tim Stefan Andy Ronan Manuel Alexander Julian Carl Friedrich John Maciej Armin Łukasz Matti Anto Mercurial devs (Wednesday) some external people ## Tasks - Mon - intro talk (CF, John, Julian, Andy, Stefan) ## Tasks - Tues - Start the ARM64 backend (Armin, fijal) STARTED+DISCUSSIONS - Merging regalloc branch (CF, fijal, Armin) - Set up benchmarking machine (fijal, Matti) - Triage 3.6 failures and progress on them (Łukasz, Ronan) https://bitbucket.org/pypy/pypy/wiki/Status%20of%20PyPy3%20support%20for%203.6 - re and csv failures are done - removed duplicate code - next: fspath - zlib missing methods pypy2/3 (Julian, Anto) RZLIB DONE - new failing tests: http://buildbot.pypy.org/summary?category=linux64&branch=%3Ctrunk%3E&recentrev=95849:c5c3ad13d149 - app-level test: when run on top of compiled PyPy, can't call function defined on interp-level - lib-python test: .flush() sets .stream to nullptr, .copy() calls deflateCopy() with nullptr, it segfaults in RZlibError.fromstream() - subtle difference: on CPython, z_stream is part of structure and can't become nullptr - possible fixes: either handle .stream == nullptr in pypy module, or make RZlibError.fromstream() robust agains nullptr - TESTS fixed? py3 problems - Fix RevDB (Manuel, Armin around) DONE - investigate struct.unpack weirdness (Antocuni, Julian) - Look into Windows failures on 3.5 (Manuel, Andy, Ronan around) - NANs are not consistent DONE - Windows installer (Andy, Matti) WORKS, needs adding to package.py ## Tasks - Release 7.0 (Anto) reports version 7.1 :( - utf-8 progress/merging (Matti looking, Ronan will help) NEEDS REVIEW. Benchmarks are [here](https://gist.github.com/mattip/05951f44e41224e36f00b62ebb4e2444) and [here](https://gist.github.com/mattip/d25536cd88ffe0361feca7760745a524). `logging.warn`, which is slow on py3.5 has gotten even worse SATURDAY - still one failing test in zlib branch untranslated (Ronan) - cpyext performance (Tim, Ronan around) Carl will ask Tim what is going on and file an issue - math-improvements branch (Alex to start) (REVIEW DONE, needs to be merged into default after the release, more bugs, benchmark on Py3?) (CF to merge into default/py3.5) - memoryview/ctypes bug https://bitbucket.org/pypy/pypy/issues/2930 (Matti, Armin around) - pypeg (lpeg reimplementation in RPython) (Stefan, Tim around, +?) - Tracker gardening - CFFI OS X bug (Maciej, Armin around) - finish fspath stuff (Łukasz, CF around) - look at test_compile.py (Łukasz, CF around) - asynio on Windows (Andy) - ARM32 build server (David, Matti, Maciek, Armin) - Answer Stefan Beyer email on pypy-dev ## Tasks Saturday * let's look at spectral_norm after regalloc merge * utf-8 (Armin, CF, Matti, Maciek around) * progress on ARM64 (Maciek, David, Rodolph) ## Discussions Done - Think about Windows support - conclusion is to keep muddling along: - There is money from SFC - who will do the work? - Maybe the Microsoft people?????? - Andy has a first-attempt at a MSI packager - Try to have green buildbots and not much more? - Funding - SFC - $69,000, $300 in OpenCollective - Karen (SFC) Seem to be ready for us to part ways. - We should spend the money. There are no marked funds. - PLC needs to approve expenses. - Python3.6/3.7/3.8: Ronan, Carl, Lucasz $30,000, incl. travel, salary - Next sprint: summer? - Cpyext: Antonio, Ronan $30,000, incl. travel, salary - Buildbots: machines and website update $10,000 - pypy.org $2,000 - Catching up with 3.6/3.7/3.8 - stop with py3.5 - Intro talk (DONE) - Web Assembly (DONE) - Collaboration possibilities GraalPython around numpy stack TODAY - Scientific Stack - VMProf AFTER LUNCH - Unstuck Benchmarking - do it!! (decision made) - Packaging (wheels and conda) situation ## Discussions - Infrastructure, testing: Travis, Azure Pipelines (1800 minutes per month) FRI MORNING - State and Future of PyPy - apptest-file branch merge (Ronan) - focused sprint: when, where ### Webassembly and PyPy ### pyodide Python as an ecosystem is bad suited? PyPy should wait for GC support and DOM support. ## Cython and GraalPython * Problem for GraalPython and PyPy (and numba) is that numpy is a black box * Other problem: handling expressions as a unit to not need to compute intermediate values * Numpy discussions around PyIR * Use (subset of) Cython or Cython-like to make [PyIR](https://docs.google.com/document/d/1jGksgI96LdYQODa9Fca7EttFEGQfNODphVmbCX0DD1k/edit#) real * Cython is used by numeric people already, they are used to it * as much Cython as possible * compilable to something sensible * Cython is a tiny bit messy, it's a one-pass compiler * can we make Cython better designed? * potentially ask Oracle for funding ## PyPy and the Numeric Stack * Important to support well, it's what many people use Python for * Problems: * they don't use PyPy yet! * numpy code tends to not be fast on PyPy * the big libraries are hard to install * we don't support wheels * we don't support conda * Performance problems: * cpyext speedups * long term plans around cython or similar * maybe building wheels is going to be easier with manylinux2010? * let's try to build pypy on the right manylinux2010 * conda doesn't care about us * they want us to do work? * but we would need changes in conda and deep understanding on their side * Open issue with design proposal: https://github.com/conda/conda/issues/6950 * contrete tasks: * try to build manylinux2010 pypy * talk to conda people? ## ``VMProf`` * Problems with vmprof: * frontend: graphs are hard to understand * kills buildbot host * we need to maintain it * huge RAM usage * backend: * rpython functions not profiled correctly * what's the scope of vmprof? * no "customers"/motivation * Scope: * ??? * Frontend: * Can we make our life easier by using somebody else's frontend? * Chrome devtools * PyCharm * https://github.com/KDAB/hotspot * Backend: * profiling in production * make it cheap enough * make it easy to turn on and off * make it possible to deal with data in-process * the vmprof pure python modules is badly implemented * boring parts: rpython functions * steps: * improve the vmprof module to not suck * make ``_vmprof`` should always provide reliable data * make local deployment very simple * we should be able to connect source code and traces * unique identifiers for loops from the JIT * what happens if the loop is formed before `_vmprof` is on * just have it always on ;-) * how to connect pieces of traces to source code? Offets, pieces of loops, code in memory do not always map back to source file * exposes bugs that probably already exist but we don't care * blackhole, generated code, tracing, ... * debug_merge_point is not necesssarily always correct * when you have correct input you see correct output, but when you do not have correct input do not show garbage ##### Summary * Can we make an improved JitViewer with statistical profiling info? Will it be helpful? * what about tracing? blackhole? Function repitition? Fix it in `_vmprof` ! * Possible architecture: * _vmprof feeds data to a socket * separate program reads the data and distills it into a known format * that is presented in a known frontend * Better packaging and API * callback hook function what to do with the info: socket, file, * on/off per block, * on/off generally which would not necessarily add overhead but would allow later on/off on a lower level. * allow self-reporting of global/per-thread/per-green thread state of the app ## Discussion: State and Future of PyPy * Let's try to have team-internal "office hours" Monday 10.00-13.00 to deal with the reduced availability of people * How can we constructively interact with CPython-dev? * maybe a PEP? * what are concrete things that would be good to have in there? * something about C-API? * having cpython implementation details marked as such in the regression tests * have people from other implementations be invited to lang summit * when PyPy 3.6 is out, we should get other projects to run their tests on PyPy * How do we grow the community? * Advertise sprints more widely * steal some cpython devs? * move away from bitbucket.org? * beginner mentoring program * blog posts, videos * "PyPy internals for CPython devs" * twitch streams? * docs are a mess * success stories on the web page * What can we stop doing (brainstorming) * dropping platforms? * maintain own fork of pytest * using less custom infrastructure ## disjointed benchmarking notes * ask whether we can use speed.python.org * run benchmarks weekly * ## dummy

    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