Nu-core
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners 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
    • 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 Help
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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners 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
    # Nushell core team meeting 2023-09-20 ## Attendees - JT - Stefan - Antoine - Michael - NotLebedev - Darren - FilipAnderson - Reilly - Jakub ## Agenda - [x] release issues? (lots of comments on faster startup) - [x] complex type annotations ([#10405](https://github.com/nushell/nushell/pull/10405)) - [x] Fuzzing the parser - [x] Defaulting history to sqlite with history isolation versus plaintext [10440](https://github.com/nushell/nushell/pull/10440) - Related: [request for migration script/tooling #9403](https://github.com/nushell/nushell/issues/9403) - What does history isolation mean ? - Negatives: Much more challenging to edit your history going forward - I (storm) have had cases where I "mess" up my history file by adding an entry I no longer want to appear in the history and so I have to go in and hand edit the file. - If we move in this direction we should have scripts that enable one to remove a particular history entry by running a nushell script and it should be documented ? - [x] Long/multiline strings -- do we need a nicer way to create them? - [ ] Making progress on the "hard stuff" - [ ] stdout/stderr - [ ] signals and background tasks - [ ] resize + reedline - [ ] streams as values ## Discussed Topics ### Release issues - NetBSD: Issue delegated to uutils #### Startup - Darren observed significant improvements - allocator - platform specific compilation on Mac Aarch64 - `[[[[[[[` worse case, possibly there was a problem even for sane parses - Kubouch doesn't observe bigger changes - Antoine: Major contribution of config/stdlib to startup delay - How to instrument contribution of parsing and evaluation of that - Darren: JT removed profile instrumentation, probably remove the command/collection - Kubouch on it ### Complex type annotations - currently we don't report changes to inner types in commands - escaping to `any` is still frequently needed - JT: hack `record<...>` would be allowed in a more concrete requirement - NotLebedev fixed lexing stage of the parser - do the change to the semantics in the ### we now have fuzz targets - check it out in: - https://github.com/nushell/nushell/tree/main/crates/nu-parser/fuzz - https://github.com/nushell/nushell/tree/main/crates/nu-path/fuzz - Issues and fixes already coming in ### Changes to the history - Julian Hofer improved `history_isolation`: - Sqlite only (at the moment) - parallel sessions will be isolated - but now you can still read your old history - Julian proposing to make this the default - Migration from text before landing - `history migrate`? as a command - Jakub: sync option to unify the sessions if needed - Michael: deletion of entries should be easy with the sqlite db as well -> tracking issue and wait with making it default in a release ### Long/multiline strings Currently a bit unpleasant to type Long strings examples: ```nushell let text = $"expected `$.type` to be one of [module, script," + " custom], got ($package.type)" ``` ```nushell throw-error ($"Module package '($package.name)' does not" + $" contain directory '($package.name)'") ``` Darren: the line editor will accept the example when pressing enter on the first line Multiline strings example: ```nushell throw-error ( [ $"package_file_not_found(ansi reset):" $"no 'package.nuon' found in ($dir)" ] | str join (char nl)) ``` Jakub: should we have the python like triple quote strings. not closing the quote to continue (tricky due to leading whitespace semantics) ##### Related: multiline command invocations - e.g. long (external) command - Parentheses are adding a subexpression (collecting) - `\` as a line continuation + windows path separator a problem - no easy/good continuation character - NotLebedev: `%` rarely used (missing new line indicator in some shells) - Q: is this valid syntax where it matters - used in Windows special variables - valid filename on linux - URLs - Jakub: For externals you can pass a list of arguments ### Outstanding big issues: Making progress on the hard stuff - Background tasks - reedline rough edges Scary to tackle, no progress from us at the moment - JT: Can we get folks chipping away at the big blockers - Stefan: Tracking issues collecting the research #### Reedline - NotLebedev: Testing is a big issue - Reilly: escape-artist project: https://github.com/rgwood/escape-artist I'm using Wez's `portable-pty` library: https://docs.rs/portable-pty/latest/portable_pty/ - Stefan: possibly problem with the input during testing (we don't want to lock up the event loop when not in a tty) #### Parser - few people can review PRs and hack easily - incremental vs rewrite of large blocks - are we calcified in our design? - data oriented design enticing (possible performance) ### Span separation can we move to ids, smaller than our current `Span` - would already provide a compression - no separate logic with `Spanned/UnspannedValue` - cost only at error print time Goal having those actual spans living with the AST. So no independent `Span` pairs (which would require separate GC), engine_state doesn't evict code currently anyways ## Issues > :bulb: the issues which [needs-core-team-attention](https://github.com/nushell/nushell/labels/needs-core-team-attention) > :bulb: **Note** > to list all the PRs currently [opened in `nushell/nushell`](https://github.com/nushell/nushell/pulls): > ```nu > gh pr list --json url,number,author,title > | from json > | each {|i| > $"- [($i.number)]\(($i.url)\) ($i.title) \(@($i.author.login)\)" > } > | reverse > | to text > ```

    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