Comments for Synchronous Messages https://stuartmarks.wordpress.com Stuart Marks on Java, Software Systems, and other topics Fri, 10 Jan 2025 14:08:06 +0000 hourly 1 http://wordpress.com/ Comment on Detoxifying the JDK Source Code by Java 24 : quoi de neuf ? | Loic's Blog https://stuartmarks.wordpress.com/2024/12/12/detoxifying-the-jdk-source-code/#comment-5222 Fri, 10 Jan 2025 14:08:06 +0000 http://stuartmarks.wordpress.com/?p=1950#comment-5222 […] Stuart Marks a écrit un article intéressant sur la suppression du Security Manager : Detoxifying the JDK Source Code. […]

]]>
Comment on Detoxifying the JDK Source Code by Java Weekly, Issue 573 - 라이프온룸 https://stuartmarks.wordpress.com/2024/12/12/detoxifying-the-jdk-source-code/#comment-5217 Wed, 01 Jan 2025 08:01:27 +0000 http://stuartmarks.wordpress.com/?p=1950#comment-5217 […] JDK 소스 코드의 독성 제거하기 […]

]]>
Comment on Detoxifying the JDK Source Code by Java Weekly, Issue 573 | Baeldung https://stuartmarks.wordpress.com/2024/12/12/detoxifying-the-jdk-source-code/#comment-5210 Thu, 19 Dec 2024 22:10:07 +0000 http://stuartmarks.wordpress.com/?p=1950#comment-5210 […] Detoxifying the JDK Source Code […]

]]>
Comment on Scanner is a Weird but Useful Beast by Mark Y https://stuartmarks.wordpress.com/2020/04/14/scanner-is-a-weird-but-useful-beast/#comment-5107 Wed, 15 May 2024 00:58:35 +0000 http://stuartmarks.wordpress.com/?p=1545#comment-5107 In reply to stuartmarks.

the combo is more flexible than if the two groups were split apart into two classes, because this lets you switch back and forth as needed… I’ve used this when I wanted to write a quick and dirty FIX protocol parser

https://en.m.wikipedia.org/wiki/Financial_Information_eXchange

First you can read the hard coded string (no need for tokens here)

8=FIX.4.2 | 9=

which gets right to the point where you need an integer, so you can use nextShort (with the proper delimiter) and then you can get the rest of the message(again no need for tokens)

this barely qualifies as a parser; we have not even attempted to understand the message, but at least it’s good enough to break up a stream into messages at the proper message boundaries.

]]>
Comment on Oracle Code One 2019 by abhishekomp https://stuartmarks.wordpress.com/2019/09/27/oracle-code-one-2019/#comment-5015 Sat, 04 Nov 2023 22:54:16 +0000 http://stuartmarks.wordpress.com/?p=1532#comment-5015 In reply to stuartmarks.

Thanks a lot. You and your talks on topics related to Java is really awesome. retainAll() was super nice as well which serves as A ∩ B
Thanks again.

]]>
Comment on Oracle Code One 2019 by stuartmarks https://stuartmarks.wordpress.com/2019/09/27/oracle-code-one-2019/#comment-5014 Sat, 04 Nov 2023 17:16:52 +0000 http://stuartmarks.wordpress.com/?p=1532#comment-5014 In reply to Abhishek.

Hi, thanks for watching my old talk! I guess I never uploaded that file. I’ve done so now. Here’s a link to that file. (I’ve also updated the post to include the link.)

https://stuartmarks.files.wordpress.com/2019/09/ccc.jshell.txt

]]>
Comment on Oracle Code One 2019 by Abhishek https://stuartmarks.wordpress.com/2019/09/27/oracle-code-one-2019/#comment-5013 Sat, 04 Nov 2023 13:51:38 +0000 http://stuartmarks.wordpress.com/?p=1532#comment-5013 Hello Stuart,
It was a good learning about the comparator behavior with TreeSet via your talk on Corner Cases. I was looking for the script you used during this talk, would you help locate them.
Thanks

]]>
Comment on Incompatibilities with JDK 15 CharSequence.isEmpty by Polishing Diamonds in Java - SoatDev IT Consulting https://stuartmarks.wordpress.com/2020/09/22/incompatibilities-with-jdk-15-charsequence-isempty/#comment-4965 Sat, 15 Jul 2023 19:08:56 +0000 http://stuartmarks.wordpress.com/?p=1593#comment-4965 […] Incompatibilities with JDK 15 CharSequence.isEmpty […]

]]>
Comment on The Importance of Writing Stuff Down by Polishing Diamonds in Java - SoatDev IT Consulting https://stuartmarks.wordpress.com/2023/02/22/the-importance-of-writing-stuff-down/#comment-4964 Sat, 15 Jul 2023 19:06:23 +0000 http://stuartmarks.wordpress.com/?p=1758#comment-4964 […] The Importance of Writing Stuff Down […]

]]>
Comment on The Importance of Writing Stuff Down by stuartmarks https://stuartmarks.wordpress.com/2023/02/22/the-importance-of-writing-stuff-down/#comment-4951 Mon, 22 May 2023 21:51:37 +0000 http://stuartmarks.wordpress.com/?p=1758#comment-4951 In reply to Antonio Lago.

Right, the idea of SequencedCollection elements having successors and predecessors is mostly for definitional purposes. There aren’t any such operations in the APIs, as you noted.

You might look at NavigableSet, which has higher(E) and lower(E) methods that let you find the adjacent elements. NavigableMap has similar methods for finding adjacent keys and entries, given a key. Using these APIs you can “iterate” through a NavigableSet or NavigableMap without using an explicit Iterator object.

]]>