ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. kcomhnall "call a method with all possible combinations" - reminds me of COBOL
  2. * Fiji joined #java
  3. * kcomhnall left #java
  4. * llanhmock joined #java
  5. * redj joined #java
  6. * Flow joined #java
  7. * m2 joined #java
  8. * rvalue- joined #java
  9. * rvalue joined #java
  10. * stfstfm joined #java
  11. * domicron joined #java
  12. * leppard|2 joined #java
  13. * stfstfm joined #java
  14. * jreicher joined #java
  15. * MikeBux joined #java
  16. * metalmaniac joined #java
  17. * blacknova joined #java
  18. * ne555 joined #java
  19. * fgarcia joined #java
  20. * Betal joined #java
  21. dreamreal the problem with "call with all permutations" for me is that it relies on ... what for validation?
  22. dreamreal if the validation is consistent, that's good, I guess, but I usually want tests to test for failure as well
  23. Para The next inevitable steps will be generative testing and then fuzzing :)
  24. Para I did get stuck pondering what would be the best way to do n-way cartesian product as a stream, though. I mean, if I did that, I'd want it to also try to be at least somewhat memory efficient as well.
  25. dreamreal generators a la python
  26. jreicher Para: You mean output as a stream, or formulate a notion of cartesian product for two streams as the "operands"?
  27. * kathadris joined #java
  28. * kathadris joined #java
  29. jreicher Because I don't think all of the above can be streams.
  30. * GreenResponse joined #java
  31. * jwisbell35 joined #java
  32. * tabmow joined #java
  33. Para jreicher: n-ary Cartesian product as linear stream
  34. Para With executive decision on settling on Some™ strategy to choose how it is linearized.
  35. Para So not just two but, dunno, 17. And thus the need for memory efficiency.
  36. Para This is purely me entertaining myself, I have a few days left till vacation but all our supervisors and stakeholders are already on vacation and there's nothing left open in the backlog so have to fill the time somehow :D
  37. jreicher Para: so you'd be OK with the result being a stream but one of the "operands" being, say, an array?
  38. Para I'm not sure what you mean.
  39. Para `Stream<List<T>> products = cartesianProducts(a1, a2, a,3 ...)` would be what I want, where T is probably nothing special, common type for the vararg arities provided or whatever.
  40. jreicher I wasn't sure if the a1, a2, a3, etc. were streams also
  41. Para I don't think it's possible to produce a meaningful Cartesian product without knowing the bounds of the arities.
  42. dreamreal just let the AIs guess, it'll be fine
  43. dreamreal https://www.reddit.com/r/java/comments/1uqiej1/replace_cc_with_java/
  44. cheeser OP sounds like an LLM
  45. Para Friend of mine has found a new hobby from looking at Claude Code's open issues at GitHub.
  46. Para It's a glorious garbage fire.
  47. Shell it's really weird the last couple of years - you don't have any idea any more if any software is capable of doing what it says on the label for longer than a quick demo. claude code is just a leader there.
  48. dreamreal I was impressed by the string of non sequiturs!
  49. * acidjnk joined #java
  50. * stfstfm joined #java
  51. * blacknova joined #java
  52. * erbium joined #java
  53. * jamezp joined #java
  54. * WizJin joined #java
  55. * ForeverDreaming joined #java
  56. dmlloyd I made another thing: https://github.com/smallrye/smallrye-serial
  57. nevet GitHub - smallrye/smallrye-serial: A safe and efficient Java serialization library
  58. javabot dmlloyd's title: "GitHub - smallrye/smallrye-serial: A safe and efficient Java serialization library · GitHub"
  59. * Anaphaxaway joined #java
  60. dmlloyd the name is not exactly descriptive: it is an intermediate representation for serialized objects
  61. dmlloyd so you can examine and manipulate the serialized form of objects
  62. * kathadris joined #java
  63. * jwisbell35 joined #java
  64. * tronexte joined #java
  65. dreamreal er... as usual your docs suck. Why, what are the default providers, what would the serialized form look like or what MIGHT it look like, how would I use this, how would I know if I needed or wanted this?
  66. Para I should publish a microlib which has exactly one interface, AI. No content. That way you could just add "implements AI" everywhere.
  67. * mwnaylor left #java (ERC 5.6.0.30.1 (IRC client for GNU Emacs 30.2))
  68. dreamreal dmlloyd: and what makes it efficient, dang it respond to me
  69. * tronexte joined #java
  70. dmlloyd well, it's not inefficient
  71. dreamreal grrrr
  72. dmlloyd it just does the exact thing it says on the tin, that's all
  73. dreamreal it doesn't say WHAT IT DOES in a way that's uncompressed
  74. dreamreal I think YOU understand what it does well but to me you have not expressed it well in a way where I'm not having to spend a lot of cognition to understand it
  75. dmlloyd it turns serialized Objects into Serialized objects
  76. dmlloyd oo, I should make that be the description
  77. dreamreal yeah, that'll fix SO MUCH.
  78. dmlloyd my favorite feature though is if you feed some object into a Serializer, you can examine it using the Printer to see how it's put together
  79. dreamreal Well, you need to DESCRIBE that way more gooder. Maybe even with those weird things called "examples."
  80. dreamreal and MAYBE even "what can you learn from this, Mr. ordinary person? Why do you care? Here's why."
  81. dmlloyd I'll pass your critique on to my associates, Claude and Bob
  82. dmlloyd anyway it's not for normal plebes, it's for elite coderz only
  83. dreamreal I get that, but for the love of god... I mean, I want to write this up for BCN. Do you REALLY want me to answer all the questions I have for myself?
  84. dmlloyd what do you think I pay you for?
  85. dreamreal * dreamreal checks his bank account
  86. dreamreal ... about what you get, apparently :D
  87. * ghodawalaaman joined #java
  88. dmlloyd heh, I almost missed this nugget: https://github.com/openjdk/jdk/pull/31441
  89. nevet 8286300: Port JEP 425 to S390X by offamitkumar · Pull Request #31441 · openjdk/jdk
  90. javabot dmlloyd's title: "8286300: Port JEP 425 to S390X by offamitkumar · Pull Request #31441 · openjdk/jdk · GitHub"
  91. dmlloyd virtual threads on the mainframe
  92. Para makes me think of this RISC-V GPU https://www.youtube.com/watch?v=qMR3IXF2sWw
  93. nevet YouTube: Home made GPU escalated quickly | bitluni
  94. dmlloyd yeah I saw a reference to that in passing on Reddit recently, interesting idea
  95. cheeser huh. TIL Aleph One, of "Smashing the Stack for Fun and Profit" fame, is now at Google.
  96. dreamreal I wonder if anyone's ever put a JVM on the E-series from unisys... 9-bit processors, y'all
  97. dreamreal three octal sets make up a byte
  98. Para What's the extra bit for? Or reasoning for it, rather?
  99. dreamreal three octals
  100. Para With 3 bits spare? :P
  101. cheeser whut?
  102. dreamreal err... nine bit bytes = three octal sets.
  103. dreamreal no spare ANYTHING.
  104. Para ah right...but still why
  105. dreamreal Burroughs?
  106. dreamreal I mean, that's... really the answer
  107. dreamreal Actually, the E-series was sperry, I guess.
  108. Para Maybe it was a dare.
  109. dreamreal with unisys you could never tell. Really decent hardware for what it was: a system 36 clone.
  110. dreamreal I did the e-series first, and went to night school on a system 36 - was very weird, because i was used to ECL and IPF and had to deal with "JCL" and "ISPF" instead at night. (I didn't finish the cert: they kept assigning things I knew how to do from work, so I did them like real programmers would, and they'd ding me for doing stuff they didn't teach me.)
  111. dreamreal "You can't use a quicksort! We haven't taught that! Bubble sort or bust!"
  112. dreamreal (not the actual problem but ... imagine that sort of thing. Over and over again.)
  113. * Tenchi joined #java
  114. * ForeverDreaming joined #java
  115. * m2 joined #java
  116. * jbosmans joined #java
  117. * magla joined #java
  118. dreamreal Para: found it. Army Signal Corps. They had six bits of signal as a requirement, and thus octal fit the data well; this lent itself to 36-bit words. The nine-bit byte came about from ascii support, as a natural widening, and this meant a word itself also did pretty well with number representation. This was all done before the standardization around 8-bit bytes.
  119. * Ragnor joined #java
  120. sbalmos dreamreal: I'd have to do some digging, but the 6-bit baudot thing I think still lives on today in some ham radio digital protocols
  121. dreamreal sbalmos: wouldn't surprise me AT ALL
  122. dreamreal I just didn't have a good answer for para so thought I'd look into it
  123. sbalmos dreamreal: when do you have a good answer for para?
  124. dreamreal screw you!
  125. sbalmos weeeeeellllll...
  126. Para Mmmhh.
  127. Para I mean I'm kinda not surprised, as I've been trained to use this piece of tech https://en.wikipedia.org/wiki/Sanomalaite_M/90 (it's basically SMS/pager in brick form with self-corrupting memory) and military used to be the source of things which became standards all over.
  128. nevet Sanomalaite M/90 - Wikipedia
  129. javabot Para's title: "Sanomalaite M/90 - Wikipedia"
  130. sbalmos my memory self-corrupts in much easier fashions
  131. Para Nobody seemed to know if it was a feature or a flaw.
  132. Para "Oh don't worry, it'll just give you something to do while on night watch.", something being re-entering the encryption keys and doing connection tests :P
  133. Para Now that I think of it, maybe the reason we then came up with all the mobile tech is basically going "fuck this" nationwide on those things.
  134. * ferdna joined #java
  135. * Munnu joined #java
  136. * Anaphaxaway joined #java
  137. jreicher Para: if you define Stream product(Array x, Stream y) then you can do n-way easily by iteratively calling that.
  138. * mindCrime joined #java
  139. * Odyss3us joined #java
  140. * Henryx joined #java
  141. * metalmaniac joined #java
  142. * raj joined #java
  143. * ChaiTRex joined #java
  144. * kelt0m joined #java