ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. cheeser that syntax (! vs. ?) is actually just like how kotlin views things: ! is a platform type assumed to be non-null and ? is the nullable type.
  2. cheeser except in kotlin you can't explicitly declare a type with !
  3. sbalmos we should just write in Rust and have an LLVM-JVM bytecode transpiler. :P
  4. * cheeser eyes dmlloyd
  5. Swayze everybody was ircfu fightin
  6. Swayze them kicks were fast as lightnin :p
  7. nimaje sbalmos: hm, iirc graalvm has a llvm bytecode interpreter
  8. dmlloyd well, my linux system motherboard is finally dead at the age of ~14 years... time to spec out a new system... with as little RAM as possible...
  9. cheeser testing/developing for constrained systems?
  10. dmlloyd no, I just can't afford RAM right now, it's price jumped by like 900% or something
  11. dmlloyd its*
  12. cheeser ah! right. i'd forgotten about that.
  13. dmlloyd I wanted to put 64GB in my next system, but maybe I'll buy a second house instead ...
  14. LaSombra You can sell some 64GB from one of your current systems as a down payment
  15. deebo just buy the same motherboard on ebay or something :)
  16. sbalmos take a quick vacation to a beach, scoop up some sand, melt it with a kitchen torch you use for creme brulee, profit
  17. dreamreal dmlloyd: mac :D
  18. dmlloyd I use a mac as my daily, but I need linux for testing
  19. cheeser pffft. that's what docker is for.
  20. dmlloyd I wonder if I should invest in one of those little arm64 cluster things instead
  21. dmlloyd yeah I mean there's docker but that's not super convenient if you just want to have a shell going
  22. dreamreal raspi5?
  23. dmlloyd like one of these: https://turingpi.com/product/turing-pi-2-5/
  24. nevet dmlloyd mentioned url: https://turingpi.com/product/turing-pi-2-5/ ("Get Turing Pi 2, mini ITX cluster board")
  25. javabot dmlloyd's title: "Get Turing Pi 2, mini ITX cluster board"
  26. sbalmos qemu running a vm!
  27. dmlloyd I guess I should have some kind of intel thing running though for testing
  28. dmlloyd the latest intel CPUs are particularly interesting for testing thread scheduling because they're weird: typically ~8 fast cores and ~8 efficiency cores with different behaviors
  29. dreamreal Apple Silicon's like that too
  30. dmlloyd the difference is that there's no userspace API to map threads to cores on macos
  31. dmlloyd you're pretty much at the mercy of the OS
  32. dreamreal heh, it's the thing king, except for CPU :D
  33. dreamreal Testing: https://www.youtube.com/watch?v=um-gUlLU9WE
  34. nevet dreamreal mentioned url: https://www.youtube.com/watch?v=um-gUlLU9WE ("INSANE ROBERT FRIPP GUITAR SOLO (Sweet Child O' Mine)")
  35. dreamreal cheeser: youtube title extraction may need to use the oembed stuff to work. I fixed nevet's youtube parsing like that; youtube's a pain. og:title works *but* they do data center sanitization.
  36. dreamreal That sanitization was driving me nuts: I couldn't get it to fail locally, but remotely? couldn't see og:title at all.
  37. cheeser stupid google
  38. dreamreal oembed works though
  39. dreamreal https://better-spring-initializr.com/
  40. Para Can't click away mvnw though.
  41. Para But definitely better as a whole.
  42. Tenchi indeed
  43. sonOfRa Why exactly would you want to explicitly not have mvnw, mvnw and gradlew are a pretty strict upgrade over... not those
  44. dreamreal that was my thought, too, sonOfRa
  45. dreamreal although I use mvnd a lot too
  46. sonOfRa Personally, I mostly use gradle, you may ask "what's wrong with that guy", but consider it's 2026, and we're both hanging out on IRC.
  47. dreamreal I have lost trust in gradle after having, like, actually used it
  48. dreamreal I get the attraction in having to literally maintain a build that breaks on minor updates to the build system, it's fun and is a great way to explain project delays, but personally, I still prefer to avoid
  49. sonOfRa Very happy with it actually, having a few hundred lines of customization scripts in our custom distribution with all our shared settings, and now every project builds the same
  50. Para Well, it's two more files, one which will never be relevant to me (mvnw.cmd) and another which I just don't see any benefit from. Maybe I've missed the conditions/experience where it becomes excellent, but until such happens, I'd rather not have things "just in case"
  51. dreamreal I've had to go "Oh yeah, sorry, that worked in 8.4.1, they broke it in 8.4.2, and then broke it again in 8.4.3" too many times to enjoy gradle voluntarily
  52. dreamreal Para: maven wrapper is less necessary than gradle wrapper, certainly
  53. dreamreal using gradle without the wrapper is like going to prague to experience the opposite gender without, like, protection
  54. sonOfRa So far we've only had breakages on major updates, and then all of those could have been fixed by reading and fixing "this build is using features that will be gone in a future version of gradle" messages that we saw for months before upgrading :D
  55. dreamreal nothing against any prague people here, I'm thinking of the memes
  56. Para Gradle should probably distribute itself in a container only.
  57. dreamreal sonOfRa: that's good but I've had other experiences :D
  58. Para My only Maven breakage over the years has been with the version which introduced colored output.
  59. dreamreal plus every encounter I've had with the gradle community has been net neutral
  60. Para Which was more of a "oh i was dum and there's a note about this in the release notes" thing than anything else.
  61. dreamreal I WANT to like gradle... and I know (and work with) someone who can do amazing things with it
  62. dreamreal Para: s/"[^and]//
  63. dreamreal we just assume you're dumb, mate, no need to point it out :D
  64. Para What's the big Why for Gradle's existence, anyway?
  65. Para What sparked its creation?
  66. Bombe “How can I make everybody’s life as painful as possible?”
  67. dreamreal no
  68. dreamreal gradle is MOSTLY convention over configuration
  69. dreamreal maven is convention; ant is configuration
  70. dreamreal gradle was trying to build a middle ground because maven made some things really hard to do well
  71. dreamreal the problem is, those things ARE hard to do, and gradle can't magically make those things trivial, although it can help
  72. dreamreal I have a feeling if you're looking for THE prime motivator it's probably how people refused to understand XML *and* Maven sort of said "we're going polyglot... some day"
  73. Para And now that Maven is polyglot, no one cares.
  74. dreamreal Well, all the maven users know XML and are used to it, and copypasta rules and gets the el jobbo el done-o.
  75. dreamreal nevet's website is written but untested, I don't want to unleash it until I get the certs all worked out, and I need the http setup to be very stable right now
  76. Para slap acme on it?
  77. Para through caddy if you're feeling fancy
  78. dreamreal certbot works, it's just that the sites use proxies so the certbot location stuff isn't doing what's expected
  79. dreamreal I'll get it, I just need to wait until the stability isn't quite as mandatory
  80. dreamreal then I get to debug the sites themselves, but eh, that'll be easier
  81. dreamreal I'd just do it with placeholders right now but the stability thing: traffic's up, so restarting the server is meaningful
  82. dreamreal ~caddy
  83. dreamreal agh, no javabot
  84. dreamreal I don't know if it has references to caddy anyway
  85. dreamreal I was gonna copy 'em over to nevet if they existed
  86. DoofusCanadensis you did good work, javabot. rest well. I'll most likely kill you in the morning.
  87. vitaliy he will reincarnate in Kotlin
  88. dreamreal vitaliy: javabot's already kotlin
  89. vitaliy uh oh... Rust then
  90. dreamreal https://github.com/evanchooly/javabot
  91. vitaliy beautiful
  92. dreamreal nevet's kotlin too but shares no code with javabot at all, 100% rewritten; any similarities are incidental or because the author of some of the operations is the same doofus
  93. vitaliy dreamreal: how do you feel about Kotlin?
  94. dreamreal It's great
  95. dreamreal Given the choice to write kotlin or java, I'll choose kotlin 12 times out of 7 unless there's a specific compelling reason not to, like "management demands this be written in java"
  96. vitaliy you don't miss the good old Bean.Singleton.Fascade.Generator.FactoryEntity.Configurator(); ?
  97. dreamreal or "your team doesn't know kotlin and this is code they need to maintain"
  98. dreamreal no, why would I care about that even in Java?
  99. vitaliy heh
  100. DoofusCanadensis my former boss had no trouble with that latter statement, dreamreal
  101. dreamreal I get the humor in the references - yes, it can get absurd. And abused.
  102. dreamreal But the question isn't, or shouldn't be, "is this the most elegantest code ever", it should be "does this code work"
  103. DoofusCanadensis he was all in on: here, everybody should learn kotlin
  104. dreamreal kotlin does have a tendency to push one towards some pretty efficient constructs
  105. dreamreal ~caddy
  106. dreamreal yeesh, fine
  107. javabot dreamreal, what does that even *mean*?
  108. cheeser dunno why my vps rebooted. i'll have to file a support ticket later.
  109. dreamreal cheeser: how do you feel about factoids being skimmed from javabot for nevet?
  110. dreamreal not all of them, not wholesale, of course
  111. DoofusCanadensis slurrrrrrp
  112. dreamreal I can't use a lot of them directly anyway, I'd have to translate them to nevet's internal format, but that'd be relatively easy to parse. nevet breaks information down into bits: there's a text entry, a url, maven coordinates, "see also," tags, a few other things like that
  113. dreamreal the main things javabot has that nevet would use would be "see also" sections, the text, and the urls
  114. dreamreal but I don't think they're consistently placed in the javabot factoids, so I'd have to do some extraction. But in ANY event I wouldn't want to do it without cheeser's say-so.
  115. cheeser they're all my exclusive IP!
  116. cheeser no, i don't care. i can do a collection dump later if it'd help.
  117. dreamreal I might even still have access to it, unless you've revoked it. I can get it. I just wasn't going to hork it all up without you being aware and approving of it.
  118. dreamreal you know, it's funny: the jwz factoids are some of the funniest stuff ##java has to offer. Outside of every reference to Quest, I guess.