ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. dreamreal I personally don't think it's an issue if it has a dependency on KOTLIN
  2. dreamreal if it has a lot of kotlin dependencies it kinda depends
  3. dreamreal but the stdlib is pretty small, I'd be more worried about the entire ecosystem than kotlin itself
  4. dreamreal if it's multiplatform dependencies I'd be, uh, more concerned
  5. NeXeN it also increases the dependency tree and adds overhead to method resolution, albeit maybe small
  6. dreamreal by adding to the classpath?
  7. dreamreal I mean... have you been able to *measure* the overhead change?
  8. dreamreal or are you talking about something else?
  9. NeXeN no, but also java can't use kotlin inline so what may perform well purely kotlin won't perform as well in java
  10. dreamreal wait, what?
  11. dreamreal Can't... use kotlin... inline?
  12. dreamreal That's ... not how bytecode works
  13. NeXeN yeah kotlin can inline it at compile time, but a java call to kotlin dep won't benefit from it
  14. dreamreal but... but... that's ... such a LOCALIZED problem that shows up at specifically early phases of JIT runtime that it's kinda not worth counting
  15. dreamreal JIT *can* inline it, it just would do it later than the kotlin compiler MIGHT
  16. NeXeN also there's the consideration that the build process will be a little slower having to call k2 and javac
  17. dreamreal That assumes you're compiling the kotlin as part of this build, though
  18. NeXeN so in other words, if you already use it you're already paying any tax (startup time too), then it can't hurt
  19. dreamreal if a java project imports "kthing" as a dependency and kthing has kotlin stdlib as a dependency, compile time is not affected
  20. NeXeN yeah using jars won't cause any build time increase
  21. dreamreal and kthing is bytecode, so bytecode is going to act like bytecode
  22. dreamreal not to push back on your nonsense, but this is like sayig "that project's no good because the coder used vim"
  23. NeXeN and if you are using lambdas in kotlin, inline as much as possible ...i read an article a while back on kotlin lambdas and the JIT having problems with inlining them
  24. * xiaodong joined #java
  25. dreamreal I haven't seen a problem with kotlin lambdas in practice
  26. dreamreal and I think it's fair to say I use a crapton of 'em, to use the technical terms
  27. NeXeN its kind of unfair of you to say that since it scales down my argument
  28. dreamreal You haven't paid me to be fair, only experienced
  29. NeXeN but beyond that i got nothing.....i don't think it will matter much besides bloating a jar by 5 megs or more (plus whatever else it pulls in besides stdlib)
  30. * Inline joined #java
  31. dreamreal That's really it, in the end, which is why I say I'd have no real problem with it
  32. * PocketKiller joined #java
  33. * xiaodong joined #java
  34. * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
  35. * nevet joined #java
  36. * blacknova joined #java
  37. * ChaiTRex joined #java
  38. * xiaodong joined #java
  39. jreicher cheeser: what's the difference in consideration of a transitive when updating and a transitive the very first time you start using the library?
  40. * xiaodong joined #java
  41. * ChaiTRex joined #java
  42. cheeser once you've been using a library, it's already been vetted, you know what you're getting, etc. when taking up a new one, there are no expectations. people feel weird about things like a new language library showing up.
  43. jreicher I can understand that if the original vetting was so thorough that you would be reluctant to do it again, but was it?
  44. cheeser ¯\_(ツ)_/¯
  45. jreicher Exctly
  46. cheeser the general consensus on bluesky and mastodon was that only a barbarian would do such a thing
  47. jreicher IMO it's perfectly consistent to worry about an upgrade when the introduction was done very carefully, but sometimes it's not consistent. Sometimes people fuss about upgrades not realising that the horses have already bolted because they weren't careful at the start.
  48. jreicher That doesn't make sense to me.
  49. cheeser yeah. it's not an entirely consistent stance but it costs me little to rework this code back in to java and simplifies my build quite a bit.
  50. * xiaodong joined #java
  51. * xiaodong joined #java
  52. * xiaodong joined #java
  53. * xiaodong joined #java
  54. * xiaodong joined #java
  55. * xiaodong joined #java
  56. * xiaodong joined #java
  57. * sponkz joined #java
  58. * CygniX left #java (Konversation terminated!)
  59. * CygniX joined #java
  60. * elnegro joined #java
  61. * metalmaniac joined #java
  62. * stewi joined #java
  63. * rvalue- joined #java
  64. * lostlazy_ joined #java
  65. * rvalue joined #java
  66. * Nnavd joined #java
  67. * Aedil joined #java
  68. * metalmaniac joined #java
  69. * domicron joined #java
  70. * qbone joined #java
  71. * domicron joined #java
  72. * MikeBux joined #java
  73. * stfstfm joined #java
  74. * tomaw joined #java
  75. * vincere joined #java
  76. * stfstfm_ joined #java
  77. * stfstfm joined #java
  78. * CodeGeek!~codegeek@about/java/CodeGeek changed the topic to: Welcome! || Read Channel Rules at https://javachannel.org/ before participating. || Paste limit is two lines; ~pastebin lists options. || No applets, please. || Minecraft, Android, and Javascript all have their own channel. || You are being logged.
  79. * nevet joined #java
  80. * Inline joined #java
  81. * battlepope joined #java
  82. * kadams joined #java
  83. whaley cheeser: just replied on mastodon about that. my hot take was major version upgrades wouldn't bother me so much, minor versin pugrades was "you are a barbarian" inducing
  84. whaley *version upgrades
  85. dreamreal as in, introducing kotlin as a new transitive in a minor upgrade?
  86. whaley aye
  87. dreamreal that... doesn't sound like a minor upgrade, although it might fit semver rules (public API unchanging, no major breaking features)
  88. dreamreal but it's amusing that you're using mastodon :D
  89. Para From security point of view it's also kind of a scary thing, but that goes with all large dependency changes in general vOv
  90. whaley dreamreal: way better signal:noise ratio there for nerd stuff
  91. dreamreal I found the fediverse WAY too noisy a protocol. I considered it for nevet, to hook it in, but wasn't willing to pay for the network traffic.
  92. whaley but I digress... I largely consider the inclusion of any transitive dep that may already be widely distributed elsewhere in a minor version update to be a bad, irrespective of whether said transitive dep was actually the stdlib of another language
  93. Para Even EU did run ActivityPub for a while for official communicae, and then let it go because it was apparently too nerdy and bureaucratic even for them.
  94. * Byteflux joined #java
  95. * Magician joined #java
  96. * cronos joined #java
  97. * schan99 joined #java
  98. * IceMicha^ joined #java
  99. dreamreal Para: I ran mastodon locally on a VPS, it was incredible
  100. dreamreal It was like using SBT again
  101. Para dreamreal: Wow, tell me more.
  102. whaley did bluesky ever get federation, btw?
  103. Para It's kinda there but not really.
  104. dreamreal ew, bluesky's initials are absolutely valid
  105. dreamreal I also considered bluesky for nevet and decided HARD NO
  106. dreamreal Para: my VPS was absolutely hammered by it
  107. Para Like in principle I guess one could have it federate stuff but as someone who even wrote their custom schema to Java generator last year...the promise basically dies at repository.
  108. * geenvoud joined #java
  109. dreamreal Like, doing version upgrades was a massive relief on the system load
  110. Para As in data stores.
  111. dreamreal bluesky is a toxic security channel
  112. * GnarlyBob joined #java
  113. dreamreal never say anything on there you don't want forcibly exposed to the world
  114. * vitaliy joined #java
  115. Para Yeah it's a public append only log.
  116. dreamreal I think $work would censure me for even having an account there
  117. Para Plus they've kinda frozen on adding new API libraries even. Like...this was why they decided to create their own schema language yet can't even produce more than two SDKs, wtf.
  118. Para I'd be open to opening my atproto library stub for wider world if it wasn't so frozen and answers to technical questions nonexistent.
  119. Para In its current state it would just add to the noise so who cares.
  120. dreamreal for bluesky?
  121. Para yeah
  122. dreamreal I definitely wouldn't bother
  123. dreamreal ActivityPub at least has a valid motivation: it's gross and incredibly heavy, but still. Understandable. Bluesky is a horror.
  124. Para It was kind of fun as a coding exercise but beyond that...meh.
  125. Para And as said, they've convenienty left out the actual persistence part or describing how those APIs are supposed to work in a generic way to enable federation. I suppose microdosing adderall fueled Silicon Valley dreamer could spend 16 hours a day to figure it out by hammering the official website and reversing everything, but...there's no point.
  126. Para I do count it as a win though that Bluesky basically exists because Elon Musk made a huge and expensive miscalculation.
  127. dreamreal yeah, twitter's been out of business for a while now
  128. * agnivn joined #java
  129. * kcomhnall joined #java
  130. * GreenResponse joined #java
  131. * raj joined #java
  132. whaley bsky was going to exist regardless... it was being incubated as part of Twitter before the end times. Or rather, dorsey brought on Graber et. al. and salaried them under Twitter to work on it there
  133. * sa02irc joined #java
  134. Para Or maybe not; migration path probably would've been too hard/expensive and outright replacing a running system is way too dangerous for any business.
  135. * troydm joined #java
  136. * troydm joined #java
  137. * jaskarth joined #java
  138. * KindOne joined #java
  139. * tronexte joined #java
  140. * emaczen joined #java
  141. * Candle joined #java
  142. * magla joined #java
  143. * ferdna joined #java
  144. * metalmaniac joined #java
  145. * Betal joined #java
  146. * Ragnor joined #java
  147. * kcomhnall joined #java
  148. * Inline joined #java