Skip to content

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Feb 8, 2026

Also rework internals so that we can call truncating intrinsics from the language instead of relying on codegen.

One unfortunate difference with Julia this exposes is how conversions are truncating, while Julia throws InexactErrors and expects one to use unsafe_trunc. I guess we should require using trunc.(T, arr) instead? But then what to do with the non-truncating versions (broadcast and convert), given that we don't have an exception mechanism yet... It also seems hard to have exceptions on conversions when we apply them to tiles.

Also rework internals so that we can call truncating intrinsics from
the language instead of relying on codegen.
@maleadt maleadt marked this pull request as ready for review February 9, 2026 07:36
@maleadt
Copy link
Member Author

maleadt commented Feb 9, 2026

To keep things incremental, I'll merge this an open an issue about the truncating behavior.

@maleadt maleadt merged commit 44cc87c into main Feb 9, 2026
8 checks passed
@maleadt maleadt deleted the tb/rm_astype branch February 9, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant