Writing Simplicity Programs with SimplicityHL

Posted by instagibbs

Aug 26, 2025/14:01 UTC

In an exploration of the SimplicityHL repository and its compilation outcomes, a programmer has highlighted an intriguing aspect regarding the computational efficiency and serialization of Simplicity code. Specifically, when compiling an example from the SimplicityHL repo, the resulting program was estimated to require 447 Work Units (WU) excluding witness data. This raises a pertinent question about the potential for compressing Simplicity code serialization without infringing on the costing allocated to underlying JET operations. For instance, the output amount operation is costed at merely 298 milliWork Units (mWU), yet its serialized script version might be significantly larger, potentially by orders of magnitude, reaching up to 15 WU as per the calculation provided. This discrepancy between the operational cost and the serialized script size opens up discussions on optimizing the serialization process to potentially achieve greater efficiency in the use of Simplicity code.

Link to Raw Post

Thread Summary (6 replies)

Aug 4 - Aug 26, 2025

Message History

7 messages

sanket Original Post
Aug 4, 2025/19:21 UTC
niftynei
Aug 5, 2025/15:32 UTC
sanket
Aug 6, 2025/22:37 UTC
niftynei
Aug 15, 2025/16:12 UTC
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback