Skip to main content

14 posts tagged with "Biweekly-Newsletter"

View All Tags

· 4 min read

KCL is a constraint-based record and functional language hosted by Cloud Native Computing Foundation (CNCF) that enhances the writing of complex configurations, including those for cloud-native scenarios. With its advanced programming language technology and practices, KCL is dedicated to promoting better modularity, scalability, and stability for configurations. It enables simpler logic writing and offers ease of automation APIs and integration with homegrown systems.

This section will update the KCL language community's latest developments every two weeks, including features, website updates, and the latest community news, helping everyone better understand the KCL community!

KCL Website: https://kcl-lang.io

Overview

Thank you to all contributors for their outstanding work over the past two weeks (10.26 - 10.08 2023). Here is an overview of the key content:

🔧 Language and Toolchain Updates

  • KCL IDE Updates - Supports for symbol find-references and rename; Optimized the formatting output for import statements and union types; Fixed the bug where file changes caused the language server to crash.

  • KCL Package Management Tool KPM Updates - kpm is integrating with ArtifactHub, enabling KCL packages publishing to ArtifactHub.

  • KCL Language Updates - Optimized error messages for mismatched parameter types in methods, providing clearer indications of the mismatch.

  • Unified Interface of KCL Command-Line - Redesigned the command-line interface and workflow for KCL tools to achieve a unified experience.

  • KCL IDE Update - More intelligent configuration value completion, property list completion, function parameter completion, built-in package reference completion, and docstring completion, etc.

  • KCL Package Manage Tool Update - More smooth workflow for creating and publishing KCL packages: supports automated processes for package updates and releases based on versioning systems; additionally, custom configuration of metadata for KCL packages is now allowed.

  • KCL Module Update - Out-of-the-box inclusion of over 120 KCL models: https://github.com/kcl-lang/artifacthub

  • KCL Language Update - Improved error messages for schema attribute type mismatches, support for lambda type annotations, and fixes for individual compilation issues and more system libraries support e.g., validation, serialization, and deserialization of JSON/YAML strings.

  • KCL Import Tool Release: Supports one-click generation of KCL configurations/models from YAML/JSON/CRD/Terraform Schema, enabling automated migration.

Special Thanks

The following are listed in no particular order:

IDE Extension Updates

The KCL IDE extension has added a large number of completion suggestions, focusing on the core aspect of configuration definition, simplifying the mental process of users when writing configurations based on models, and improving the efficiency of configuration editing. Additionally, parameter completion when invoking built-in functions has been enhanced. Talk is cheap, let's directly see the results:

For the model design phase, quick generation of document strings has also been added, reducing the need for manual boilerplate typing:

KCL Package Manager Updates

The package management tool has now interconnected the core workflow of KCL package creation, update, code review, and release. Based on this, over 120+ out-of-the-box KCL model packages have been added.

KCL Language Updates

The optimization of error message output in the KCL compilation command continues to progress, aiming to provide clear and understandable guidance to help developers quickly locate and fix issues and write correct code. Recently, KCL has optimized the error messages for schema field type mismatches:

  • before:

  • after:

Additionally, support has been added for adding type annotations in lambda expressions, and system libraries now support validation, serialization, and deserialization of JSON/YAML strings. The following issues have been fixed: cache invalidation for KCL programs with third-party libraries, path conflicts when compiling imported files across kcl.mod, and semantic checks for default value of KCL functions.

KCL Import Tool

Support for one-click generation of KCL configurations/models from YAML/JSON/CRD/Terraform Schema enables automated migration. Please refer to the One-click Migration from Kubernetes Ecosystem to KCL guide for more information.

Resources

❤️ Thanks to all KCL users and community members for their valuable feedback and suggestions in the community.

For more resources, please refer to

· 4 min read

KCL is a constraint-based record and functional language hosted by Cloud Native Computing Foundation(CNCF) that enhances the writing of complex configurations, including those for cloud-native scenarios. With its advanced programming language technology and practices, KCL is dedicated to promoting better modularity, scalability, and stability for configurations. It enables simpler logic writing and offers ease of automation APIs and integration with homegrown systems.

This section will update the KCL language community's latest developments every two weeks, including features, website updates, and the latest community news, helping everyone better understand the KCL community!

KCL Website: https://kcl-lang.io

Overview

Thank you to all contributors for their outstanding work over the past two weeks (10.12 - 10.25 2023). Here is an overview of the key content:

🔧 Language and Toolchain Updates

  • KCL IDE Updates - Supports for symbol find-references and rename; Optimized the formatting output for import statements and union types; Fixed the bug where file changes caused the language server to crash.
  • KCL Package Management Tool KPM Updates - kpm is integrating with ArtifactHub, enabling KCL packages publishing to ArtifactHub.
  • KCL Language Updates - Optimized error messages for mismatched parameter types in methods, providing clearer indications of the mismatch.
  • Unified Interface of KCL Command-Line - Redesigned the command-line interface and workflow for KCL tools to achieve a unified experience.

Special Thanks

The following are listed in no particular order:

IDE Extension Updates

In the upcoming release, the KCL IDE extension will support find/go-to references navigation, symbol renaming, and some optimizations for formatting import statements and union types. Additionally, virtual file system-related bugs causing language service crashes have been fixed.

Go-to references:

Rename symbols:

Formatting improvements for import statements and union types: optimized behavior for newlines between reference statements and other code blocks (formatted as a single newline) and spacing between union types (formatted with | as separators):

KCL Package Manager Updates

In the upcoming release, KPM will support integration with ArtifactHub. You can now submit a PR to the kcl-lang Registry repository to publish your KCL packages on ArtifactHub. The pre-uploaded KCL Kubernetes package can be seen on the ArtifactHub staging page. The functionality will be released in version v0.6.1:

KCL Language Updates

The compilation command of KCL continues to improve error message output, aiming to provide clear and understandable guidance to help developers quickly identify and fix errors while writing correct code. Recently, error messages related to method parameter type mismatches have been optimized, clearly indicating parameter type mismatches:

Additionally, a fix addressed the issue of lazy evaluation in property assignments, deferring the computation and constraint validation of property assignments until after configuration merging to avoid unnecessary compilation errors.

Unified Interface of KCL Command-Line

We are redesigning the command-line interface of KCL tools to achieve a unified user workflow, seamless integration with related tools and multi-language APIs, and command-line tool extensibility. Welcome to join the discussion if anyone are insterested: https://github.com/kcl-lang/kcl/issues/756.

Community Updates

With the inclusion in CNCF Sandbox, we are glad to announce that the CNCF KCL Slack channel is now available for KCL-related discussions. Feel free to join:

  1. Join the CNCF workspace by providing your email address: https://communityinviter.com/apps/cloud-native/cncf
  2. Join the CNCF KCL channel: https://cloud-native.slack.com/archives/C05TC96NWN8

Resources

❤️ Thanks to all KCL users and community members for their valuable feedback and suggestions in the community.

For more resources, please refer to