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 New
    • 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 Note Insights Versions and GitHub Sync 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Nushell core team meeting 2023-03-15 ## Attendees - Darren - Michael - JT - Jakub - Reilly - Stefan - Andres ## Agenda - stdlib - distribution - cratification update: - [nu-cmd-lang](https://github.com/stormasm/nu_cmd_lang77) is working great as a standalone crate both with and without the table viewer and NOTHING else - nu-cmd-lang only pulls in 255 crates and nushell builds super fast - the binary starts up fast especially without config info - I believe I have a nice working version of the nu! macro that does not pull in config files - next step is to see how it works with nu-cmd-lang tests and best location for the tests... - tests of http commands? - We have ~900+ lines of untested code in http commands - parsing changes - Impact - package manager exploration demo https://github.com/kubouch/nuun - suggested standard package layout - related to stdlib distribution # Discussed Topics ## Standard library Amtoine has started a PR wave with the stdlib effort - 19 PRs already A lot of commands can easily be implemented in nu JT spun up `help` in half an hour Amtoine wrote the banner in a more readable form Increases the contribution accessibility Amtoine is shepherding the effort Goals: - both encourage new contributors - establish best practices for nu code for others to follow Make sure we can balance that ### Distribution way for std lib 1) embed in the binary 2) embed in the binary but write out to FS and read it from there 3) embed in the binary and write out but use only the baked version 4) through the package manager to be decided on Versioning could become a pain Config has the same issue already (but there are expected user changes here) Is there a way to get rich structured versioning? (for the std lib we can add a comment) but with the config it can break easily. Rust ships `std` as a "crate" with `Cargo.toml` #### Suggestion Start with the most conservative version for `std` first > option 1 ship baked in. Go beyond the single file include as it becomes necessary but solve this problem as it is needed Already three files - `std.nu` - tests - dirs (`shells`/`n`/`p` replacement) ## Module directory Kubouch has been working on the directory import for modules Could be ready for next release Q: Symbol resolution order with multiple files two steps: - define a module (module command) - should be order independent - import defs from the module (use command) - export env is a special case as the order matters Reexport already supported for defs but not submodules Solution: `mod.nu` ### Defining a prelude Stuff you can directly use with out `use` ing specifically What part of the standard library should be reexported from the std library effort. e.g. `help` in its reimplementation don't start every nu session with `use nu std.nu *` or else ``` module std.nu use std prelude * ``` Could be an overlay (and you could rip it out if you don't want it) ## Cratification Michael started trying to build a nu on top of the now released `nu-cmd-lang`: https://github.com/stormasm/nu_cmd_lang77 Currently all the tests tend to use a full nu build with a config. The default config is shell oriented and can thus not be directly used for testing stuff only in `nu-cmd-lang` `env.nu` might be loaded in the script or `-c` mode (check what is loaded from the user and from the defaults) Only few commands need the config state but we shouldn't regress on the behavior Question ? Does the nu! macro in concert with the -c flag pull in both config files ? 1 of 2 config files ? or no config files ? if its just 1 config file which one is it ? remember the nu! macro runs the nushell binary that has been built prior ## Test restructuring sub Crates depend on the full build Also we launch a full nu instance for minimal tests that wouldn't need the whole environment Could we move some tests on the evaluator directly for the parser and core language tests as they shouldn't mess with the env anyways! Should improve test performance Isolates the `nu-cmd-lang` behavior from config. For `nu!` tests of `nu-cmd-lang` we need to be aware of the config ### http commands 900 lines of untested in the initial refactor PR but we now have some tests with `mockito` thanks to @jaudiger Thanks! ## Parsing changes JT wants to slay the dragon (book) Bob and JT discussed a bit in the direction of more traditional parsing can we succeed or fail earlier to avoid parsing demons (like the record/closure confusion) leading characters become more important to narrow the parse e.g. all numeric values starting with numbers pulls us away from shapes Tradeoffs: - 7z - would require escaping Benefits: - much easier to react to failures with suggestions - adding a units of measure package wouldn't be a breaking change Alternatives: Cheat for 7z Lazily materialize the parse error at name resolution time (would probably suck for LSP) ## Packaging demo `nuun` subcommands `init` `install` `new` `overlay` `overlay new` `.nuun` file project structure: `.nu` file(s) (the guy who wrote it added a shebang) `.nuon` as a manifest either scripts as binaries or larger projects Also includes an environment management level through overlays foreign packages can be loaded into the environment through small build scripts Pain point right now: tests (do we need an eval) ## PR's

    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