# \#trim

**URL:** https://discourse.julialang.org/tag/trim/1854.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [\[ANN\] OptParse.jl – a composable, type-stable CLI parser](https://discourse.julialang.org/t/ann-optparse-jl-a-composable-type-stable-cli-parser/136580)

<div class="topic-metadata">

**Author:** [@cshen](https://discourse.julialang.org/u/cshen)\
**Replies:** 15\
**Last updated:** [June 28, 2026, 10:48pm UTC](https://discourse.julialang.org/t/ann-optparse-jl-a-composable-type-stable-cli-parser/136580 "2026-06-28T22:48:10Z")

</div>

\[ANN\] OptParse.jl – a composable, type-stable CLI parser Hi all, I’ve been working on OptParse.jl, a command-line argument parser for Julia built around three main ideas: type stability: the main goal was to make a CL…

---

## [Trimming partially type erased functions](https://discourse.julialang.org/t/trimming-partially-type-erased-functions/136314)

<div class="topic-metadata">

**Author:** [@Tortar](https://discourse.julialang.org/u/Tortar)\
**Replies:** 2\
**Last updated:** [March 22, 2026, 10:04pm UTC](https://discourse.julialang.org/t/trimming-partially-type-erased-functions/136314 "2026-03-22T22:04:43Z")

</div>

I’m using FunctionWrappers.jl to create type stable wrappers for functions I know input and output types. These functions are often closures created in local scopes. When trying to trim a function from FunctionWrappers.j…

---

## [Help with JuliaC, \`trim=safe\` and packages wrapping C-libraries](https://discourse.julialang.org/t/help-with-juliac-trim-safe-and-packages-wrapping-c-libraries/135818)

<div class="topic-metadata">

**Author:** [@ErikBuer](https://discourse.julialang.org/u/ErikBuer)\
**Replies:** 0\
**Last updated:** [February 24, 2026, 8:39pm UTC](https://discourse.julialang.org/t/help-with-juliac-trim-safe-and-packages-wrapping-c-libraries/135818 "2026-02-24T20:39:02Z")

</div>

The way i see it, being able to build applications into small-ish binaries is key for widespread adoption of Julia in the industry. The introduction of trim in 1.12 is therefore a massive leap forward! Unfortunately i h…

---

## [Using Julia Compiled functions from Python with string arguments](https://discourse.julialang.org/t/using-julia-compiled-functions-from-python-with-string-arguments/134398)

<div class="topic-metadata">

**Author:** [@Herve](https://discourse.julialang.org/u/Herve)\
**Replies:** 4\
**Last updated:** [December 6, 2025, 8:36pm UTC](https://discourse.julialang.org/t/using-julia-compiled-functions-from-python-with-string-arguments/134398 "2025-12-06T20:36:43Z")

</div>

Hi I am experimenting with Julia code that I compile with juliac. I want to use it from Python (from various reasons, one being that it is the language of choice for many colleagues). One problem I stumbled upon is that…

---

## [Trim Examples](https://discourse.julialang.org/t/trim-examples/133818)

<div class="topic-metadata">

**Author:** [@andreeco](https://discourse.julialang.org/u/andreeco)\
**Replies:** 1\
**Last updated:** [November 12, 2025, 1:25pm UTC](https://discourse.julialang.org/t/trim-examples/133818 "2025-11-12T13:25:36Z")

</div>

Hi, I would like to see some (more) examples of code using the new trim functionality. I did experiment a little and found it difficult to get type stability correctly. Not all that is allowed in Julia JIT is allowed in …

---

## [Using \`...\` syntax and \`--trim\`](https://discourse.julialang.org/t/using-syntax-and-trim/133201)

<div class="topic-metadata">

**Author:** [@apozharski](https://discourse.julialang.org/u/apozharski)\
**Replies:** 4\
**Last updated:** [October 20, 2025, 10:20am UTC](https://discourse.julialang.org/t/using-syntax-and-trim/133201 "2025-10-20T10:20:04Z")

</div>

Hello, I am working on a package for building c interfaces for an NLP solver packages and have run into something of an impasse regarding the --trim functionality and calling functions with keyword arguments which need …

---

## [Is it normal for juliac to still produce 280 MB of libraries for a "println" example?](https://discourse.julialang.org/t/is-it-normal-for-juliac-to-still-produce-280-mb-of-libraries-for-a-println-example/133140)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [October 15, 2025, 7:26pm UTC](https://discourse.julialang.org/t/is-it-normal-for-juliac-to-still-produce-280-mb-of-libraries-for-a-println-example/133140 "2025-10-15T19:26:36Z")

</div>

Sorry, possibly coming from an “over-expectations” mind setting… I had a quick try on juliac, but compiling the trivial example, even with --trim=safe, produces yes an executable of ~1.7 MB, but also a set of libraries ~…

---

## [\[Guide\] Using sum types to define dynamic C APIs for Julia 1.12 \`--trim\`](https://discourse.julialang.org/t/guide-using-sum-types-to-define-dynamic-c-apis-for-julia-1-12-trim/132111)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 29\
**Last updated:** [October 11, 2025, 12:07pm UTC](https://discourse.julialang.org/t/guide-using-sum-types-to-define-dynamic-c-apis-for-julia-1-12-trim/132111 "2025-10-11T12:07:14Z")

</div>

I have recently spent a lot of time trying to get one of my libraries ready for the Julia 1.12 --trim feature such that I can ship it as a C library and wrap it into a python module. During this work I learned a lot and …
