3 ms·
> use full-featured Swift to output HTML ... a hint of something huge and possibly disruptive to come. This technique has been here for a while with Kotlin and
by ptx 7y ago
> use full-featured Swift to output HTML ... a hint of something huge and possibly disruptive to come.
This technique has been here for a while with Kotlin and its kotlinx.html library: https://github.com/Kotlin/kotlinx.html#dom https://github.com/Kotlin/kotlinx.html#dom
I used it recently on a small project (server-side on the JVM) and might use it the client-side as well (compiled to JS) – you can implement adapters to integrate with your JS framework of choice.
- Cyph0n 7y agoAnd even before that in Scala (e.g., Scalatags).
- yogthos 7y agoEven before that in Java with GWT.
- ptx 7y agoAny programming language can be used to produce HTML, but here – with Scala, Kotlin and Swift – we're talking about something more specific: using an internal DSL to write concise, simple and somewhat declarative code that describes the HTML tree. Java definitely can't (reasonably, sensibly, practically) do that. GWT seems to be using XML from what I can tell: http://www.gwtproject.org/doc/latest/polymer-tutorial/widgets-buildui.html http://www.gwtproject.org/doc/latest/polymer-tutorial/widget...
- cheez 7y agoAnd probably before that Common Lisp