tag:blogger.com,1999:blog-4815481734454081491.comments2023-10-24T02:15:03.269-07:00Minborg's Java PotPer Minborghttp://www.blogger.com/profile/08526963148025854611noreply@blogger.comBlogger189125tag:blogger.com,1999:blog-4815481734454081491.post-85805453850723214262020-04-30T11:13:02.351-07:002020-04-30T11:13:02.351-07:00Cool!Cool!Anitahttps://www.blogger.com/profile/06024819529023051048noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-47282917192071130972020-04-20T00:56:54.780-07:002020-04-20T00:56:54.780-07:00Thank you for sharing this useful article with eve...Thank you for sharing this useful article with everyone, 12 good content and quality images, hope that in the future you will produce more articles.<br /> <br />neymasporthttps://www.neymarsport.com/collections/giay-futsalnoreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-66928067572603621742020-04-13T01:30:27.624-07:002020-04-13T01:30:27.624-07:00Well explained . Great article on singleton patter...Well explained . Great article on singleton pattern . There is also good singleton pattern example visit <a href="https://www.javavogue.com/2015/11/how-to-make-singleton-class-in-java.html/" rel="nofollow"> Singleton class example </a>subham kumarhttps://www.blogger.com/profile/01727881826778414825noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-70000566008631379832020-03-26T22:18:22.791-07:002020-03-26T22:18:22.791-07:00nice article. you have explain things in best way....nice article. you have explain things in best way. visit <a href="https://www.javavogue.com/2018/11/spring-boot-tutorial/" rel="nofollow"> spring tutorials </a>Shivam Kumarhttps://www.blogger.com/profile/12633731033655211922noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-52245215568446780792019-12-16T23:23:07.579-08:002019-12-16T23:23:07.579-08:00Stop putting unrelated commercial messages on my b...Stop putting unrelated commercial messages on my blog. Shame on you.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-36252049037939726642019-12-14T05:50:15.485-08:002019-12-14T05:50:15.485-08:00Nice jobs!! keep work up!! Nice article How to cr...Nice jobs!! keep work up!! Nice article <a href="https://www.javavogue.com/2015/02/file-create-in-java/" rel="nofollow">How to create file in java </a>Shivam Kumarhttps://www.blogger.com/profile/12633731033655211922noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-66503207680137141362019-12-10T23:27:56.382-08:002019-12-10T23:27:56.382-08:00Sluta och posta reklam på min blogg! Det är ohyfsa...Sluta och posta reklam på min blogg! Det är ohyfsat.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-4834521211332935382019-12-06T00:39:43.471-08:002019-12-06T00:39:43.471-08:00priyal: Did you know that is very rude to pollute ...priyal: Did you know that is very rude to pollute other peoples work with unrelated commercial messages? Shame on you.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-72780177348615098362019-12-06T00:29:32.346-08:002019-12-06T00:29:32.346-08:00This comment has been removed by the author.priyalhttps://www.blogger.com/profile/17643432110764393055noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-25253554916999161082019-11-29T01:42:37.403-08:002019-11-29T01:42:37.403-08:00Excellent article, it helps overcoming the current...Excellent article, it helps overcoming the current intertia of the developer community in adopting the JPMSVittorio Torronihttps://www.blogger.com/profile/00861161638929345167noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-21756003125408197662019-11-27T01:07:35.404-08:002019-11-27T01:07:35.404-08:00Hi and thank you for your question!
Apparently, I...Hi and thank you for your question!<br /><br />Apparently, I missed to link to the specific GitHub repository for this article series. It can be found here: https://github.com/speedment/hol-streams<br /><br />I will update the article with links.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-35204354211110911552019-11-26T18:15:47.368-08:002019-11-26T18:15:47.368-08:00I may have missed it but where under the repo (htt...I may have missed it but where under the repo (https://github.com/minborg/javapot) are the MyUnit3Terminal and Unit3Terminal classes?onebeartoehttps://www.blogger.com/profile/16701764709032863608noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-89483049721781592502019-11-22T12:27:12.228-08:002019-11-22T12:27:12.228-08:00all your articles are super.. thank you! hope you ...all your articles are super.. thank you! hope you keep coming up with new articles !Atish Gurumurthihttps://www.blogger.com/profile/16318971868997159850noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-76584683332744565102019-11-15T01:01:17.136-08:002019-11-15T01:01:17.136-08:00Hi and thanks for the heads up on the link . I hav...Hi and thanks for the heads up on the link . I have corrected the link now. Thanks again!Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-82096063666940171272019-11-14T22:20:56.572-08:002019-11-14T22:20:56.572-08:00Part 4 - https://dzone.com/articles/java-streams-d...Part 4 - https://dzone.com/articles/java-streams-database-streamsAnonymoushttps://www.blogger.com/profile/09610522047208152969noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-73961661864781355002019-11-14T14:08:23.514-08:002019-11-14T14:08:23.514-08:00Hello, The link for the part 4 at the beginning of...Hello, The link for the part 4 at the beginning of the article is wrong and point the part3.blalbahttps://www.blogger.com/profile/00048412944909090244noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-43616101741602978752019-11-06T04:00:14.210-08:002019-11-06T04:00:14.210-08:00Hi Óscar and thank you for your question!
The tes...Hi Óscar and thank you for your question!<br /><br />The test should work because it sets up the same "seed" for the Random generator each time.<br /><br />Happy coding!Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-73272711707167964792019-11-06T03:25:00.165-08:002019-11-06T03:25:00.165-08:00The seventh test of Unit 1, infiniteRandomInts(), ...The seventh test of Unit 1, infiniteRandomInts(), is suppossed to pass?<br />Each ejecution will generate different values, isnt it?<br /><br />Anyway, thanks for the article!Óscar Delgadohttps://www.blogger.com/profile/00073388871656813105noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-54832283797313085452019-09-13T10:03:52.543-07:002019-09-13T10:03:52.543-07:00Hi. Not sure I understand your comment. I am using...Hi. Not sure I understand your comment. I am using JMH and I do return the result of the computation to avoid dead code elimination. So, I believe the results are accurate and representative for the different variants.<br /><br />In your example, you use blackhole to consume the result which is another way of eliminating dead code elimination.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-58744240873531613632019-09-12T08:09:46.374-07:002019-09-12T08:09:46.374-07:00Wouldn't it be better to avoid compiler optimi...Wouldn't it be better to avoid compiler optimisations to get more accurate results and use the techniques here (http://tutorials.jenkov.com/java-performance/jmh.html) ?<br />This is how I used it in practice https://github.com/pgilad/java-micro-benchmark-example/blob/master/src/main/java/org/sample/ArraySlicingBenchmark.javaGilad Peleghttps://www.blogger.com/profile/05406331982368560513noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-91970360716888375082019-08-19T01:17:43.931-07:002019-08-19T01:17:43.931-07:00Thanks for the link that looks very interesting. I...Thanks for the link that looks very interesting. I am aware that the "10k" varies depending on a number of reasons. This could be a topic in a separate article. Thanks for your comment and let me know what you think about the library.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-56379315373273791272019-08-16T18:36:08.703-07:002019-08-16T18:36:08.703-07:00You should read this: https://shipilev.net/blog/20...You should read this: https://shipilev.net/blog/2015/black-magic-method-dispatch/. Taking "another" path is not that dramatic and ultimately is something you very rarely care about. Also that 10.000 calls is a myth that just would not die! https://stackoverflow.com/questions/53885832/why-is-server-option-there-when-server-vm-is-the-default-option/53887071#53887071 disclaimer, that is my answer. Interesting library, will look for sure! Very eager to find out how you handle parallelism and databases that support native "streaming" over it's entries.eugenehttps://www.blogger.com/profile/17610978920670653103noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-53127834269163146122019-08-12T08:36:37.861-07:002019-08-12T08:36:37.861-07:00You are perfectly right. I think that the article ...You are perfectly right. I think that the article could be much clearer in this perspective. As you have pointed out many times, there are ways to send a message across a TCP/IP network with lower latency.Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-86626983532238888592019-08-12T08:34:24.403-07:002019-08-12T08:34:24.403-07:00I only commented because you mentioned 'theore...I only commented because you mentioned 'theoretical minimal latency'. The theoretical minimal latency can only be achieved when you modify all things available (in this case the kernel and all software-layers involved).mphttps://www.blogger.com/profile/11554060992381606414noreply@blogger.comtag:blogger.com,1999:blog-4815481734454081491.post-86869588334469024792019-08-11T05:51:49.928-07:002019-08-11T05:51:49.928-07:00I admire your persistency. Let me explain why thes...I admire your persistency. Let me explain why these references are not relevant to the article:<br />https://www.openonload.org/ Bypasses the kernel. The article specifically includes the kernel<br />http://www.coralblocks.com/index.php/coralreactor-performance-numbers/ Tests were made using the loop back interface on the same physical machine.<br /> https://wiki.fd.io/images/f/f4/02_ld_Light_A_scalable_High_Performance_and_Fully_compatible_TCP_Stack.pdf appears to bypass the kernel but it is just a slideshow so hard to tell.<br />https://eggert.org/papers/atc16-paper_yasukata.pdf "StackMap leverages the best aspects of **kernel-bypass**<br />networking into a.." Again this is by bypassing the kernel.<br /><br />Another aspect is that my tests were run on an old MacBook pro. It is likely that the latencies for the Streams would be even lower on modern hardware and the latest version of C2 compilers. So, in fact, the ratio could be even higher than proposed in the article.<br /><br />I am interested to learn if you have a reference with sub 15 us latencies for the given requirements. Keep looking!<br /><br />Per Minborghttps://www.blogger.com/profile/08526963148025854611noreply@blogger.com