Exploring biphasic (multi-stage) programming (rybicki.io)
from armchair_progamer@programming.dev to programming_languages@programming.dev on 03 Jul 14:00
https://programming.dev/post/16349330

This pattern [(multi-stage programming)], which I’ll refer to as “biphasic programming,” is characterized by languages and frameworks that enable identical syntax to express computations executed in two distinct phases or environments while maintaining consistent behavior (i.e., semantics) across phases. These phases typically differ temporally (when they run), spatially (where they run), or both.

An older (2017) page on multi-stage programming

Winglang (“a programming language for the cloud”), the author’s language

#programming_languages

threaded - newest

MajorHavoc@programming.dev on 03 Jul 18:08 next collapse

It’s cool science, but I hesitate to use this stuff in anything I need to babysit, later, myself.

Domain specific languages typically exist for good reasons.

I appreciate this exploration though - if everyone took my approach, we might never find the cases that can still be improved on.

UFODivebomb@programming.dev on 04 Jul 01:39 collapse

The scala 3 page on multi staged programming: docs.scala-lang.org/scala3/…/staging.html