Better HN
topnewbestaskshowjobs
Log inSign up

orangy

21 karma · joined Jul 15, 2014 (12y ago) · 6 submissions

Submissions

comment 9y ago · link · parent

We are sorry for broken links, we just recently migrated from GitHub wiki pages to own site and indeed some links could've migrated incorrectly. Thanks for the heads up, we will fix it :)

2.

Kotlin M12 is out(blog.jetbrains.com ↗)

11 points · by orangy · 11y ago · 7 comments

3.

Kotlin – programming language targeting the JVM and JavaScript – M10 is out(blog.jetbrains.com ↗)

17 points · by orangy · 11y ago · 9 comments

4.

Kotlin M9 is out(blog.jetbrains.com ↗)

7 points · by orangy · 12y ago · discuss

comment 12y ago · link · parent

Yep, I agree. Mostly because it was me digging into JMH :) Indeed we are measuring and optimising. This is still early work in progress, but we have some good results already:

    inline fun calc<T, R>(value: T, fn: (T)->R): R = fn(value)

    inline fun identity<T>(value: T): T = calc(value) { it }


    // This is optimised down to loading constant value 1 into variable x
    
val x = identity(1)
Besides having nice syntax for lots of everyday things Java developers are doing, we want to provide means for doing it effectively, clearly and maintainably.