Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Juan Liska
    @pabl0rg
    What i mean is, HtmlBuilder and everything in kotlinx.html is a substitute for a complete statically typed template engine.
    Except you write views/"templates" in kotlin instead of html
    Gelin Luo
    @greenlaw110
    yes
    Juan Liska
    @pabl0rg
    do you have any opinion on this? Would you integrate such a template engine into Act Framework?
    Kotlin libs are usable from java -- not sure how those particular classes would be used, though.
    Gelin Luo
    @greenlaw110
    I am eager to add kotlin to ActFramework
    However at the moment I have no idea how to compile kotlin source code in memory
    When Act executing your app in dev mode, it's kind of like Play!framework, it load the source code and compile it into bytecode, do some enhancement and then run it
    This allows you to edit your source code and view changes by hitting F5 in your browser
    Juan Liska
    @pabl0rg
    I think it's possible. Is runtime compilation a requirement? (I guess for hot-reloading of pages)
    right... that's huge
    Gelin Luo
    @greenlaw110
    No need to restart the app
    yes
    Juan Liska
    @pabl0rg
    probably the main (only?) reason why php ever became a thing
    Gelin Luo
    @greenlaw110
    well, I think python and ruby should support the same thing
    Juan Liska
    @pabl0rg
    looks like they've already split the html templating stuff into a separate project
    https://github.com/Kotlin/kotlinx.html
    Gelin Luo
    @greenlaw110
    php is a thing because it's cheap enough to be available on every hosting service ;-)
    Juan Liska
    @pabl0rg
    (Kara framework is pretty much abandoned)
    yeah...
    Gelin Luo
    @greenlaw110
    For template engine, I have the same requirement on hot reloading on dev mode, which is an important feature of Rythm, and literally every template engine
    Gelin Luo
    @greenlaw110
    I guess if I support kt source in actframework it would be a big sell point
    Juan Liska
    @pabl0rg
    yeah, a good alternative to scala and kt currently has no real web framework.

    Here's an example of how to invoke the kotlin compiler... Look for

    private fun invokeCompiler

    in this file https://github.com/cbeust/kobalt/blob/master/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt

    it's not too elegant, but it works
    Gelin Luo
    @greenlaw110
    Does Kara support in memory compilation and hot reload?
    Juan Liska
    @pabl0rg
    nope, it's pretty crusty
    Gelin Luo
    @greenlaw110
    Do you want to create a Act plugin for kotlin ;-)
    Juan Liska
    @pabl0rg
    I'll give it a shot
    Gelin Luo
    @greenlaw110
    cool!
    Juan Liska
    @pabl0rg
    It looks like at development time kara depends on loading files compiled by intellij idea
    that has certain benefits b/c idea does incremental compilation, which is faster
    Gelin Luo
    @greenlaw110
    well it would be good if we can rely on that
    However I don't want Act to be bound to a specific IDE product
    Juan Liska
    @pabl0rg
    yeah... it should be optional
    Gelin Luo
    @greenlaw110
    Here are a few files you might need to refer to understand how act compile Java source files:
    We will definitely make some changes to them in order to have Act cater for kt file
    Ron Gross
    @ripper234
    [Gelin Luo, greenlaw110] test sameroom tube connection
    Juan Liska
    @pabl0rg
    I just realized the Kotlin compiler weighs about 17.5Mb
    Gelin Luo
    @greenlaw110
    holy cow
    Juan Liska
    @pabl0rg
    yeah, massive :-/
    Gelin Luo
    @greenlaw110
    Maybe a realistic solution is create a plugin for source code compiler. And then create a kt implementation which listen to ".kt" source file. The implementation can detect if intelliJ IDEA is there based on e.g. a java system property or something else
    if intelliJ IDEA is detected then the kt plugin is activated to support kt source file
    Juan Liska
    @pabl0rg
    something like that... also the kotlin compiler can be used as a daemon, but it's not documented.
    Maybe we should give Kotlin another month to mature...
    Gelin Luo
    @greenlaw110
    yeah
    BTW I've created a gitter room for actframework: https://gitter.im/actframework/actframework
    Wolfgang Fahl
    @WolfgangFahl
    rythm is part of simplegraph-core see e.g. the http://www.bitplan.com/index.php/SimpleGraph-MapSystem example where rythm is used to generate the graphviz representation.
    Gelin Luo
    @greenlaw110
    well, very cool!
    @WolfgangFahl curious to see how rythm is used in simplegraph-core