The Daily Kotlin
1.55K subscribers
55 photos
1 video
1 file
570 links
Kotlin Chats in Telegram:
RU https://kug.community/
EN https://kug.community/en

Kotlin news and tips
Download Telegram
โค2๐Ÿค”2
I've been using @DslMarker for quite a while just to highlight my DSLs โ€“ see the screenshots for before/after. Obviously a dirty hack, but it worked surprisingly well (until it didn't: KT-81567).

If you'd like proper, configurable DSL highlighting in IntelliJ, upvote this ticket: KTIJ-34906 โ€” Uniform and configurable color for DSLs
๐Ÿ‘1๐Ÿ‘1
Stacks for Kotlin: Design Notes and Local Lifetimes for Kotlin: Design Notes

local parameters let the compiler prove a value won't escape a call. That single primitive unlocks: non-local return without inline, stack-allocated vararg, view types that can't outlive their source, builders that statically prevent receiver leaks.

Then Stacks build on it to make suspend just one of many possible suspension mechanisms. Each coroutine-like API (`Sequence`, Flow, deeply-recursive) gets its own typed continuation instead of fighting over the single global one. @RestrictsSuspension becomes obsolete. KT-3480 fixes itself. DeepRecursiveFunction shrinks 9ร—.
๐Ÿ”ฅ4๐Ÿคฎ1
๐Ÿคฏ2๐Ÿคฎ2โค1
Mellum2

Now open source on Hugging Face, Mellum2 is a 12B-parameter LLM built for:

โ€ข Routing and orchestration
โ€ข RAG pipelines
โ€ข Sub-agents
โ€ข Natural language and coding tasks

Powered by a new mixture-of-experts (MoE) architecture and optimized for ultra-low-latency inference.
๐Ÿ”ฅ6
Kotlin Toolchain 0.11: The Next Step for Amper

Released with a lot of new features and fixes
๐Ÿ”ฅ2