Chat Logs

  1. * victori- joined #java
  2. * CodeGeek joined #java
  3. * ErikT joined #java
  4. * metalmaniac joined #java
  5. * zoraj joined #java
  6. * Aedil joined #java
  7. * kbmonk joined #java
  8. * sponkz joined #java
  9. * waz joined #java
  10. * agnivn joined #java
  11. * stfstfm joined #java
  12. * dinomug joined #java
  13. * stfstfm joined #java
  14. * zoraj joined #java
  15. * sponkz joined #java
  16. * Afroboy joined #java
  17. * kbmonk joined #java
  18. * rvalue- joined #java
  19. * stfstfm joined #java
  20. * kathadris joined #java
  21. * MikeBux joined #java
  22. * Afroboy joined #java
  23. * stfstfm joined #java
  24. * zoraj joined #java
  25. * stfstfm joined #java
  26. * kcomhnall joined #java
  27. * stfstfm joined #java
  28. * dob1 joined #java
  29. * dob1 joined #java
  30. * enoq joined #java
  31. enoqregarding value classes: they are copied when returned from a method, correct?
  32. enoqor is there some kind of optimization that uses pointers once it goes beyond a certain size?
  33. * dob1_ joined #java
  34. dreamrealvalue classes in what context?
  35. * stfstfm joined #java
  36. dreamrealThis got brought up on reddit recently, is why I ask, where a professor apparently is arguing the wrong thing
  37. enoqah, not referencing reddit
  38. dreamrealthat's fine, the question remains
  39. dreamrealI was explaining why I was asking
  40. enoqcorrect me if I'm wrong, but my impression is that value classes are allocated entirely on the stack
  41. enoqso if I create a big one holding a lot of ints and what not, it's going to perform a lot of copies
  42. dreamrealagain, what do you mean by "value class"
  43. dreamreala record, an immutable?
  44. enoqproject valhalla
  45. dreamrealokay, that's what I was looking for
  46. dreamrealI do not know your answer
  47. enoqmaybe memcopy is so fast when your memory is nicely laid out that it doesn't matter unless you hit a really big chunk
  48. dreamrealmy guess is that a bag of ints is a bad candidate for a value class, but like I said, I do not know
  49. dreamreal~pbv
  50. javabotIn Java, all parameters are passed by value. For a simple explanation see here https://bit.ly/2B1KVuo [cheeser's blog] or a more technical explanation see https://bit.ly/2VaGXGR.
  51. nevetjavabot mentioned urls: https://bit.ly/2B1KVuo ("Java References for Newcomers โ€” antwerkz") and https://bit.ly/2VaGXGR ("Java: What to Know About Passing by Value")
  52. enoqpointers are copied I guess since they're cheap and primitives are also copied
  53. * magla joined #java
  54. dreamrealenoq: the pbv thing was for me, I was curious what the bot had on it
  55. dreamrealwasn't trying to inform you :) I figured you knew already
  56. enoqah, thanks :)
  57. dreamrealin the reddit thing, a professor is confusing copies of references with "pass by reference," which is unfortunate for a professor
  58. enoqto be fair there are a lot of different ways to pass stuff
  59. dreamrealOf course
  60. dreamrealbut java's is well-known and has been consistent for literal decades - it wouldn't have occurred to me to wonder if valhalla changes that, but what do I know
  61. * stfstfm joined #java
  62. * Square2 joined #java
  63. * stfstfm joined #java
  64. * zoraj joined #java
  65. Parare: pass by value, for the _logical_ behavior better description would be pass value by reference, but in that specific corner of the CS domain that doesn't make sense... :)
  66. * polyrob joined #java
  67. ParaI've long ago settled on it works logically and without suprise.
  68. dreamrealI'd say it was pass references by value, you dumbie!
  69. Para...yes
  70. ParaAlso could I be a dumble instead, it's delicious (it's a chocolate+taffy candy)
  71. ParaOr Dumle? Damn, maybe I _am_ a dumbie.
  72. dreamrealno, but dumble amps are *fantastic*
  73. * agnivn joined #java
  74. * jamezp joined #java
  75. * GreenResponse joined #java
  76. * dob1 joined #java
  77. * skinkitten joined #java
  78. dreamreal~karma eclipse
  79. javaboteclipse has a karma level of -694, dreamreal
  80. dreamreal~karma idea
  81. javabotidea has a karma level of 179, dreamreal
  82. dreamrealChronos: ^^
  83. Chronosdreamreal: hahahaha good point :)
  84. Chronos(Even if I don't necessarily agree with those results)
  85. * emaczen joined #java
  86. dreamrealI think it's a little unfair to eclipse, which is why nevet's karma works like it does :D
  87. dreamrealin nevet, for eclipse to KEEP that karma it would have to be CONSTANTLY maintained at that level
  88. * sponkz joined #java
  89. * x1bncwn joined #java
  90. * dob1 joined #java
  91. * nevet joined #java
  92. * 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.
  93. * geli joined #java
  94. * metalmaniac joined #java
  95. * kcomhnall joined #java
  96. gas51627hi all. Could you please advise a java playground that can run java code and also allows sharing the link to the runnable code?
  97. gas51627the standard java playground does not allow sharing the links unfortunately: https://dev.java/playground/
  98. javabotgas51627's title: "The Java Playground - Dev.java"
  99. dreamreal~ideone
  100. javabotdreamreal, ideone is http://ideone.com/
  101. gas51627thank you
  102. dreamreal~glot.io
  103. javabotdreamreal, what does that even *mean*?
  104. dreamrealhmm, hold on
  105. dreamreal~glot.io is <reply>https://glot.io/new/java is an online Java pastebin that can run code similar to ~ideone.
  106. javabotOK, dreamreal.
  107. dreamreal~ideone is <reply>https://ideone.com is a simple online java platform that can run code. See also ~glot.io
  108. javabotI already have a factoid named 'ideone', dreamreal
  109. dreamreal~no, ideone is <reply>https://ideone.com is a simple online java platform that can run code. See also ~glot.io
  110. javabotOK, dreamreal.
  111. dreamrealman, now I'm all disappointed we don't already have a URL to look at.
  112. gas51627https://glot.io/snippets/hfuzhn4xs2
  113. nevetgas51627 mentioned url: https://glot.io/snippets/hfuzhn4xs2 ("Untitled")
  114. gas51627please
  115. gas51627Ok, maybe this is more clear: https://glot.io/snippets/hfuzmmmdtb
  116. nevetgas51627 mentioned url: https://glot.io/snippets/hfuzmmmdtb ("Untitled")
  117. dreamrealokay, you prrrrrrrobaby want to actually present a problem statement
  118. gas51627i am bragging
  119. dreamrealbecause otherwise we're looking at going "oh look it's code"
  120. * sa02irc joined #java
  121. dreamrealokay, oh look it's code :D
  122. gas51627it statically checks that Duck sort of implements my interface.
  123. gas51627With this code I can define an interface and than check that Duck sort of implements it.
  124. gas51627If Duck does not implement it, then the compilation fails.
  125. gas51627(sort of implements it)
  126. dreamrealOkay. How is this USEFUL, though? I mean, I guess you're forcing the compiler to validate it... but you're binding a lot of bits of the compilation unit together, which doesn't scale well
  127. gas51627it's for hibernate stuff and it wants methods with the same name on the interface as on the class.
  128. dreamrealnot to harsh on anyone's mellow
  129. gas51627"you're binding a lot of bits of the compilation unit together" what do you mean?
  130. dreamrealwell, you have the interface, which has to know about the entity, and the interface then can say "I'm going to require the open extension fulfill this requirement"
  131. gas51627what is the "open extension" in this case?
  132. gas51627the class right?
  133. gas51627the Duck
  134. dreamrealyeah
  135. dreamrealit has to be extensible, which fits, honestly, given the scope you're talking about
  136. gas51627yes indeed the Duck must be open
  137. gas51627that is, it must be extendable, otherwise I couldn't create that "check extension".
  138. dreamrealyes
  139. dreamrealand given HIBERNATE, that makes sense
  140. gas51627indeed, the extended class the Duck must be extendable. Extension can be open or closed.
  141. gas51627basically, the thing is, that in spring -jpa, I can provide projection interface to project my entity, with some of the properties from the entity. With this, I can declare the projection and then statically check that MyProjection will work with this entity.
  142. gas51627so I just wanted to send my colleague a link to that snippet, but couldn't find how to send it. So thanks a lot.
  143. dreamrealOf course, and good work!
  144. gas51627thank you
  145. * lockdown joined #java
  146. * metalmaniac joined #java
  147. NeXeNwhat's up
  148. ParaCPU prices, GPU prices, RAM prices, and how HDD prices.
  149. Para*now
  150. ParaI also somehow broke my page up.
  151. yamadajava dies
  152. yamadaram prices :D
  153. ParaAverage Electron app takes more RAM than an average Java webapp these days.
  154. yamadaelectron rescues java
  155. ParaSome sort of JavaFX Electron shim thingamajig would actually probably be pretty nice.
  156. * stfstfm joined #java
  157. dreamrealhmm, i haven't needed to buy ram recently at all
  158. dreamrealwhy would you need java/electron though?
  159. ParaWell, it's now ridiculously expensive so better hope such need doesn't arise.
  160. ParaAI ate all the hardware.
  161. * dreamreal is on mac so there
  162. dreamrealall the ram that went away is on others' hardware
  163. ParaThat's the grand plan.
  164. ParaDon't sell hardware to people anymore, make them rent everything.
  165. * magla joined #java
  166. * stfstfm joined #java
  167. NeXeNPara: javafx has a chromium based webview, and there's also jcef
  168. NeXeNwait, is it chromium or webkit based ? i forget now
  169. * polarian joined #java
  170. NeXeNi would like to build jcef apps, use java as the surrounding buttons and inside the webview, so i can built FE apps normally. dukescript lets you go between. i've done it before but for a simple uh like in-house app that was to track something silly but pertinent
  171. * x1bncwn joined #java
  172. NeXeNAOT can get your footprint smaller, but javafx unfortunately uses a lot of reflection, though it will work with gluon and stuff, it's a pita to manually do
  173. * sparr joined #java
  174. * stfstfm joined #java
  175. * jreicher joined #java
  176. * nevet joined #java
  177. * 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.
  178. * Ragnor joined #java
  179. * Flow joined #java
  180. * BarnabasDK joined #java
  181. * skinkitten joined #java
  182. * weyhmueller joined #java
  183. * lord4163 joined #java
  184. * Nnavd joined #java
  185. * Square2 joined #java
  186. * sponkz_ joined #java
  187. * LFK joined #java
  188. * Maxxed joined #java
  189. * kathadris joined #java
  190. * sponkz joined #java
  191. * sponkz joined #java
  192. * sponkz_ joined #java
  193. * sponkz joined #java