Async, System & Desktop UI
Isolated concurrent tasks (async), OS/process inspection (system, env, process), and native desktop ui.
Concurrent Tasks (async)
Run isolated tasks concurrently with async.spawn and collect results with async.await or async.await_all.
tasks.dl
import async
fn work(n)
return n * n
end
t1 = async.spawn(fn() -> work(7))
t2 = async.spawn(fn() -> work(9))
show async.await_all([t1, t2])system, env, & process
sys.dl
import system
import env
show system.os() + "/" + system.arch()
show env.get_or("PORT", "8080")Immediate-Mode Desktop UI (ui)
Dlang includes a native desktop UI module powered by eframe/wgpu with ui.theme, ui.row, ui.card, ui.button, ui.line_chart, and ui.canvas.