# Roadmap for small binaries

**URL:** <https://discourse.julialang.org/t/roadmap-for-small-binaries/99266>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [May 23, 2023, 8:41am UTC](https://discourse.julialang.org/t/roadmap-for-small-binaries/99266 "2023-05-23T08:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 101

<div class="post-metadata">

**Author:** ![ToucheSir](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/touchesir/32/14411_2.png) [@ToucheSir](https://discourse.julialang.org/u/ToucheSir)\
**Post date:** [October 31, 2023, 8:18pm UTC](https://discourse.julialang.org/t/roadmap-for-small-binaries/99266/101 "2023-10-31T20:18:38Z")

</div>

> [@thautwarm](#):
>
> Basically, (single) dynamic dispatch itself can be statically compiled with “virtual tables” in .NET CLR/JVM, which can be theoretically much slower than Julia’s multiple dispatch but do not suffer at all from re-compilation and runtime compilation latency.

It just occurred to me that vtables make it trival to completely eliminate a class from compiled code if that class isn’t used anywhere. Thanks for helping me connect the dots!

> [@thautwarm](#):
>
> Dylan’s handling does not really work for Julia due to its lack of support for parametric polymorphism (could be roughly regarded as “generics” tho not precise). Parametric polymorphism is fully supported in Julia.

I’m curious whether this is a fundamental limitation of having parametric polymorphism and multiple dispatch in the same language. To avoid cluttering this thread, created [Reconciling dynamic multimethod dispatch, parametric types and static compilation](https://discourse.julialang.org/t/reconciling-dynamic-multimethod-dispatch-parametric-types-and-static-compilation/105631) if anyone has thoughts or insights.

> [@thautwarm](#):
>
> To solve the issues, the company I’m working for is now concentrating on generating small binaries (both standalone executables and dynamic libraries) for Julia codebase that is “reasonably static”. The project has made progress during mid-2023 and might be available for public use in the early 2024. Our work is based on `code_typed` in a frozen [world age](https://discourse.julialang.org/t/world-age-problem-explanation/9714).

Do you anticipate creating a small writeup to describe how this project works once it’s ready? Sounds exciting!

---

_[View the full topic](https://discourse.julialang.org/t/roadmap-for-small-binaries/99266)._
