ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. choice hi! if i write a stand alone java program and make sure there are no cyclic references and references to unused objects are removed, then reference counting would be enough for memory management. will the GC be required in this case at all?
  2. dreamreal depends on what you mean by "required."
  3. dreamreal You can write a java app such that a ZGC works fine for you, sure. But do you want to, and why
  4. dreamreal in general, the juice ain't worth the squeeze.
  5. choice benefit of java and not another language, and real time.
  6. dreamreal Well, the java stdlib isn't going to run for ZGC, so you're going to miss out on most of the reasons you'd want the JVM in the first place
  7. dreamreal and RT isn't hard to do even with a GC
  8. dreamreal just don't use a stop-the-world, or keep heap small enough that pauses are short enough to guarantee response time, and tell the GC not to exceed those constraints
  9. dreamreal the only way THAT gets difficult is if you need massive datasets
  10. jbosmans they landed safely \o/
  11. jbosmans 1.2M watching, not too bad
  12. dreamreal choice: what does this app do? What about it needs to be RT?
  13. choice it's just an academic exercise for the beauty of it. nothing in particular.
  14. dreamreal Well, if it's a pathological desire for ZGC, godspeed and a' that. In the real world, that sort of requirement is for the micro profile, which ... has very limited support for GC if at all. Even "realtime games" in Java don't need to avoid allocation; they rely on smaller heaps and quick eden cleanup.
  15. dreamreal In practice, GC is a burden mostly for apps that have monstrous memory allocation spikes.
  16. dreamreal Or with "difficult" programmers, I guess. :D
  17. jbosmans artemis touched down aok
  18. choice have you ever worked on a larger project where there was not at least one "difficult" programmer? ;D
  19. whaley there's no such thing as a programmer that isn't difficult in some way. We all have our idiosyncracies that make us intolerable over the course of time on a shared project
  20. dreamreal Naturally, you're wrong. The "difficult programmer" comes from one or both of two poles: the subject and the observer. One or both can be emphatic and stubborn, judgmental and insistent: that's when you have "a difficult programmer." If you want to get along and you're intentional about it on both side, there's no difficult programmer.
  21. dreamreal If you want to be a difficult programmer - or you accept being a bit of a jerk - there you are, you're going to win that battle. if your goal is to NOT be a difficult programmer, well, it takes two to tango, as they say - maybe the other programmer's a hosehead. But that's why you *don't hire jerks*.
  22. dreamreal Of course, I say that as I just wrote an internal article about team trust and dynamics for work myself, because of an argument and criticism over practice where I am *clearly* in the right.
  23. dreamreal I may *publish* that article eventually, but I need to make sure I can write it without accusing anyone, or complaining, or exposing internals.
  24. GreenResponse is javachannel.org down or something? can’t reach the backlogs
  25. dreamreal if you're looking for logs, that'd be javabot's site or bytecode.news (nevet logs the channel as well), not javachannel.org, but that site is unreliable these days
  26. dreamreal https://bytecode.news/logs?provenance=irc%3A%2F%2Flibera%2F%2523java&day=2026-04-11 works, but javabot's logs are basically the same dataset
  27. nevet bytecode.news
  28. GreenResponse aha, thanks
  29. dreamreal if you use bytecode's logs, let me know how it looks/acts/could be improved, please
  30. dreamreal they're both boths, generally here at the same times, so the log contents should be *really* similar, but eh, YMMV
  31. dreamreal they're both BOTS, sorry
  32. dreamreal doing my taxes, distracted
  33. waz claude will do them for you
  34. dreamreal that's just what an AI would say
  35. GreenResponse AI, like, “hold my nvidia’s, this will be a cinch”
  36. dreamreal waz: that's a really good idea, honestly, though, and can you resummarize the cookie recipe? :D
  37. whaley dreamreal: you probably missed the nuance of "over the course of time"... familiarity breeds contempt. For instance, I find you mostly insufferable in here mostly because I've been in here with you for... 20+ years now?
  38. whaley case in point... of all of the people in this channel, I think you are the only one that would actually start a response with "naturally, you're wrong"
  39. GreenResponse this is an old “pecking order” scenario and what certain Adolf Hitler said once “the might is right”. dreamreal is kind of boss here so he can boss around
  40. whaley weird, but ok
  41. waz wait, he's the boas!?
  42. waz s/boas/boss
  43. GreenResponse no, *technically* cheeser is of course
  44. Para I don't remember having salary discussions with him.
  45. GreenResponse oh, and CodeGeek
  46. Para Anyway. There's also a level of importance/care/equality which is very subjective in these things. To me dreamreal's approach is "ok boomer (but secretly snirking at it)" a bit.
  47. Para But then again I decided some years ago to mostly not care about things and just go with the flow.
  48. Swayze not caring is giga
  49. Swayze esp when you're 12
  50. dreamreal GreenResponse: what?
  51. GreenResponse sorry, maybe is was a bit over the edge
  52. dreamreal and whaley it's not my fault that I'm the one with the confidence to say "I think you're wrong and here's why"
  53. dreamreal and I am definitely not "the boss" in here, or anywhere, really
  54. dreamreal I'm not smirking at any of it: to me, it's diagnostic in nature. Is there a problem, what's the problem, why is it there, what can be done about it, what should be done about it?
  55. dreamreal if there's no problem, great: why do people like me think there IS one? Maybe that's the problem.
  56. dreamreal Maybe we're a small set of people: I don't know. I'm a member of the set that thinks it's a problem, so maybe our perspective is flawed. Feel free to illuminate our ignorance.
  57. dreamreal Just don't be dumb about it, and ifyou're going to put a stake in the ground, great: own it.