News for hackers. Stuff that matters.
Re:The Kotlin Foundation by dehrmann on Saturday February 13, 2021 @12:37PM (#26125053)
> Another thing I'd like to see changed is better support for DSL's

I keep waiting for a good solution for SQL in Java (or another language) that isn't a builder or a string with templating. I don't like what React does architecturally, but JSX shows how mixing languages in an elegant-ish way can be huge.

Re:The Kotlin Foundation by chin7an on Saturday February 13, 2021 @12:54PM (#26125197)
Checkout jooq(1) for a SQL DSL in Java. I've used it with MySQL and love it. Trying to convince my employer for the paid version with RDS.

[1] http://www.jooq.org/

Re:The Kotlin Foundation by Retozi on Saturday February 13, 2021 @01:02PM (#26125270)
we use jooq extensively it's probably the most valuable tech in our backend.

Also among various other tech stacks I've never seen something that hits the sweet spot between "plain sql" and "advantages of ORM-stuff" as well as jooq

Re:The Kotlin Foundation by listenallyall on Saturday February 13, 2021 @03:13PM (#26126374)
Also, props to the primary developer Lucas, who directly replied to my questions within a day, twice
Re:The Kotlin Foundation by mirekrusin on Saturday February 13, 2021 @12:55PM (#26125207)
String templating elevated to "tagged templates" [0] which dispatches template on your own function is suprisingly acceptable solution. I'm using it to drive mssql sql generation [1] and it works really well with type system around combinators. It's perfect, extremely lightweight way to achieve embedded dsl like experience.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... [1] https://github.com/appliedblockchain/tsql

Re:The Kotlin Foundation by brabel on Saturday February 13, 2021 @01:25PM (#26125466)
You and the PC probably would be happy with Groovy, specially with them adding a SQL DSL now: https://github.com/apache/groovy/blob/master/subprojects/gro...

Groovy DSLs are much better than Kotlin's.

Re:The Kotlin Foundation by dehrmann on Saturday February 13, 2021 @04:46PM (#26127274)
Gradle, perhaps unfairly, left me not liking Groovy.
Re:The Kotlin Foundation by pjmlp on Saturday February 13, 2021 @03:53PM (#26126793)
We had that in the past, SQLJ

https://en.wikipedia.org/wiki/SQLJ

Re:The Kotlin Foundation by crummy on Saturday February 13, 2021 @06:14PM (#26127944)
Exposed is a Kotlin SQL library that you might be interested in.
Re:The Kotlin Foundation by vbezhenar on Saturday February 13, 2021 @12:57PM (#26125220)
PL/SQL?