embulk-input-remoteãKotlinã§æ¸ãç´ããv0.3.0ããªãªã¼ã¹ãã¾ããã
Kotlinã¯4å¹´ã»ã©åã«ä¼ç¤¾ã®ã¬ãã¼ãã§ã¡ãã£ã¨èª¿ã¹ãã¾ã¾ã§ç¥èãæ¢ã¾ã£ã¦ã¾ããããæè¿ã¯Androidããµã¼ããµã¤ãã®äºä¾ãå¤ãåºã¦ããã®ã§åå¼·ãã¦ããã£ã¦ã¿ãããªã¨æã試ãã¦ã¿ã¾ããã
çµæ
Kotlinãã¤ã¤ã ð
ç©æ¥µçã«ä½¿ã£ã¦è¡ããããªãã¾ããã
è¯ãã£ãã¨ãã
Javaã¨ã®ç¸äºéç¨æ§é«ã
- KotlinããJavaã©ã¤ãã©ãªãJavaããKotlinã©ã¤ãã©ãªã©ã¡ããééçã«å¼ã¹ãã®ã§ãæ··å¨ããããã(移è¡ããããã)
å°å ¥ãç°¡å
- build.gradleã«ã¡ãã£ã¨è¿½è¨ããã ã
- IntelliJã使ã£ã¦ãã°ãJavaã®ã³ã¼ããKotlinã®ã³ã¼ãã«å¤æãã¦ãããæ©è½ããã*1
Javaã§ä¸ä¾¿ãªã¨ããã解æ¶ããã¦ã¦ç°¡æ½ã«æ¸ãã
- embulk-input-remoteã§ã¯è¡æ°ã 33% æ¸ãã¾ãã*2
- ã¢ã¯ã»ãµ, equals, hashCodeãªã©ã®boilerplateãçç¥å¯è½
- (æ¯è¼ç) Nullå®å ¨
- åæ¨è«ãããã®ã§ãåãæ示ããæ©ä¼ãæ¸ã
- Function as first class object
- Embulkãã©ã°ã¤ã³ã¯å¿åã¯ã©ã¹ã®å©ç¨ãå¤ãã®ã§å©ãã£ã
- ã³ã¬ã¯ã·ã§ã³ã®ä¾¿å©ã¡ã½ãã*3
- ãã®è¾ºã®å¦çã¯ãã¤ãRubyã§ãã£ã¦ãæãã§ã§ãã¦è¯ãã£ãã§ãã
ä¸æç¹
ããã©ã¼ãã³ã¹ (vs Java)
å®é測ã£ã¦ãªãã®ã§ãæè¨ã¯ã§ãã¾ãããã 以ä¸ã®ãªã³ã¯*4ãè¦ãæããããªã«ãªã¼ãã¼ãããçãªã®ã¯ç¡ãã®ã§ã¯ãã¨ããæå¾ ãæã£ã¦ã¾ã...w ttps://www.reddit.com/r/Kotlin/comments/3ddj8w/what_is_the_performance_of_kotlin