Story Details

  • Preserves: An Expressive Data Language

    Posted: 2025-01-29 12:30:37

    Preserves is a new data language designed for clarity and expressiveness, aiming to bridge the gap between simple configuration formats like JSON/YAML and full-fledged programming languages. It focuses on data transformation and manipulation with a concise syntax inspired by functional programming. Key features include immutability, a type system emphasizing structural types, built-in support for common data structures like maps and lists, and user-defined functions for more complex logic. The project aims to offer a powerful yet approachable tool for tasks ranging from simple configuration to data processing and analysis, especially where maintainability and readability are paramount.

    Summary of Comments ( 25 )
    https://news.ycombinator.com/item?id=42864122

    Hacker News users discussed Preserves' potential, comparing it to tools like JSON, YAML, TOML, and edn. Some lauded its expressiveness, particularly its support for comments and arbitrary keys. Others questioned its practical value beyond configuration files, wondering about performance, tooling, and whether its added complexity justified the benefits over simpler formats. The lack of a formal specification was also a concern. Several commenters expressed interest in seeing real-world use cases and benchmarks to better assess Preserves' viability. Some saw potential for niche applications like game modding or creative coding, while others remained skeptical about its broad adoption. The discussion highlighted the trade-off between expressiveness and simplicity in data languages.