Re:Why I Like Java (2014)
by mi_lk on Monday February 21, 2022 @08:32AM
(#30415668)
tangent: what are some modern java OSS codebases that you would recommend to read?
[ Parent
| on HN ]
I found the server code of the Signal messenger to be very readable https://github.com/signalapp/Signal-Server
I like the Apache Pulsar codebase. Well designed with a mix of code at different layers of abstractions depending on the module. Particularly good if you want to learn about writing network servers and distributed systems.
Re:Why I Like Java (2014)
by RhodesianHunter on Monday February 21, 2022 @09:00AM
(#30415935)
Caffeine caching
Google's Guava
JCTools
Re:Why I Like Java (2014)
by throwaway2037 on Monday February 21, 2022 @10:15AM
(#30416727)
Nothing taught me as much about API design and testing as Google's Guava. I know there are lots of minor gripes with that library, but is it so incredibly consistent. It is also amazing that no one mentioned the Java Collections (ArrayList, LinkedList, HashSet, HashMap, TreeSet, TreeMap). They are some of the highest quality generic collections that exist anywhere. (For C++, I would say the same about an STL implementation by a high quality project like VCC/GCC/Clang.) For "Java high honors", try to understand how concurrent collections work, e.g., ConcurrentHashMap!
For highly specialised containers, try: (1) https://labs.carrotsearch.com/hppc.html, (2) https://github.com/OpenHFT/Chronicle-Queue, and (3) https://github.com/LMAX-Exchange/disruptor
Re:Why I Like Java (2014)
by smrtinsert on Monday February 21, 2022 @08:58AM
(#30415923)
What do you want to do?