Nebu · @nebu
32 followers · 152 posts · Server mastodon.lol

@talios @myfear yeah explicitly calls out that certain condensers (condensations?) are only possible if you disable dynamic class loading, reflection, etc., and so if a user opts-in to use a particular condenser, they will lose access to those features.

Presumably the non-usage of reflection etc. is checked at compile time when you specify you want to apply a given condenser.

#projectleyden

Last updated 2 years ago

Nebu · @nebu
32 followers · 152 posts · Server mastodon.lol

@talios @myfear Java already automatically does some of the that would enable (the OP mentions "Compile-time constant folding").

seems to provide a framework for defining more easily. Perhaps a library can provide an `@ConstExpr` annotation alongside a plugin to do exactly what you would expect coming from a C++ background -- such as warn you when your expression isn't actually a compile time constant.

#optimizations #constexpr #projectleyden #condensers #compiler

Last updated 2 years ago