News for hackers. Stuff that matters.
Re:SwiftWebUI by ptx on Monday July 01, 2019 @05:41AM (#20323783)
> 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

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.

Re:SwiftWebUI by Cyph0n on Monday July 01, 2019 @06:07AM (#20323911)
And even before that in Scala (e.g., Scalatags).
Re:SwiftWebUI by yogthos on Monday July 01, 2019 @07:49AM (#20324391)
Even before that in Java with GWT.
Re:SwiftWebUI by ptx on Monday July 01, 2019 @08:34AM (#20324610)
Any 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/widget...

Re:SwiftWebUI by cheez on Tuesday July 02, 2019 @08:58AM (#20334535)
And probably before that Common Lisp