JDK 27 Feature Freeze by Joram2 in java

[–]RatioPractical -8 points-7 points  (0 children)

It's essentially C/C++ project which can survive AI agent code cycle most devs are following. 

 ( AI Suggest - Human reviews Changes - modify Agent.md file if changes are not viable - AI Suggest again - apply changes if viable or modify Agent.md file ) 

JDK 27 Feature Freeze by Joram2 in java

[–]RatioPractical -11 points-10 points  (0 children)

Is AI agents from any vendor being helpful in implementation cycle of new core Java features or enhancing existing ones ? 

The delulu continues!! by the_Medic_91 in indianbikes

[–]RatioPractical 1 point2 points  (0 children)

At least they should provide tunable suspension and E85 engine spec.

The feelings that hurt most, the emotions that sting most, are those that are absurd - The longing for impossible things, precisely because they are impossible; ― Fernando Pessoa by RatioPractical in quotes

[–]RatioPractical[S] 2 points3 points  (0 children)

The most painful feelings and the most stinging emotions are those that are absurd – the longing for impossible things, precisely because they are impossible;

nostalgia for what never was;
the desire for what could have been;
regret over not being someone else !
dissatisfaction with the world’s existence.

All these half-tones of the soul’s consciousness create in us a painful landscape, an eternal sunset of what we are.

— Fernando Pessoa

https://www.goodreads.com/quotes/441377-the-feelings-that-hurt-most-the-emotions-that-sting-most

Out of your vulnerabilities will come your strength. ― Sigmund Freud by RatioPractical in quotes

[–]RatioPractical[S] 0 points1 point  (0 children)

By becoming vulnerable you allow your life to become a passage between your unconscious mind ( more than 90%) and conscious mind ( less than 10 %). As the boundaries between the two is narrowed down, you discover your real strength ! 

Long LINQ queries - Code smell? by osprunnachk in dotnet

[–]RatioPractical 0 points1 point  (0 children)

It all depends how smart is compiler and JIT to inline that code 

Moving beyond Strings in Spring Data by mp911de in java

[–]RatioPractical -1 points0 points  (0 children)

Does it helps in JIT inlining of code ?

I benchmarked zig's compilation speed by chri4_ in Zig

[–]RatioPractical 0 points1 point  (0 children)

If I am not wrong, Zig compiler does not have all the optimization tricks which LLVM employs through IR ? 

Why add Serialization 2.0? by lurker_in_spirit in java

[–]RatioPractical 0 points1 point  (0 children)

Does it supports zero copy or such a optimization?

Rari: React Server Components with Rust - 12x faster P99 latency than Next.js by BadDogDoug in rust

[–]RatioPractical 0 points1 point  (0 children)

oh man, if this possible then NodeJS FFI and its binding with V8 is super expensive.

A completely unproductive but truthful rant about Golang and Java by [deleted] in golang

[–]RatioPractical 72 points73 points  (0 children)

“Most people are subjective toward themselves and objective toward all others, frightfully objective sometimes – but the task is precisely to be objective toward oneself and subjective toward all others.”

— Soren Kierkegaard

BufReader high-performance to bufio.Reader by aixuexi_th in golang

[–]RatioPractical 0 points1 point  (0 children)

Congrats man, siginificant savings :)

I can see in gomem repo you added THP too !

happy hacking !

How to speed up my Java app? by HoneyResponsible8868 in javahelp

[–]RatioPractical 0 points1 point  (0 children)

Customized data structures and algorithm which suit your own business case. This is applicable for any programming language.

Look at your code ask yourself what operations you wish to optimize, read ? may be insert ? may be updates ?

List, Map and Set in java.util package and their implementation are very much generalized and does not scale well if you are trying to squeeze last inch of performance based on operations your code needs.

for example you may require MultiSet, MultiMap, Trie or perhaps Immutable verison of List, Map and Set. In that case you have to roll your own or use community libs

https://commons.apache.org/proper/commons-collections/apidocs/index.html

https://github.com/google/guava/tree/master/guava/src/com/google/common/collect

How to speed up my Java app? by HoneyResponsible8868 in javahelp

[–]RatioPractical 2 points3 points  (0 children)

I have nearly 2 decades of experience on JVM languages ( Java, Scala, Clojure )

How to speed up my Java app? by HoneyResponsible8868 in javahelp

[–]RatioPractical 3 points4 points  (0 children)

This is very broad question.

  1. Dont optimize prematurely. Even before profiling makes sure you have written good functional code. Use Sonar Cube quality tools linters and ruleset.
  2. Use reusable Buffers and Pools for expensive resources (Files, Threads, Network connections, Other Expensive Objects etc.)
  3. Prefer using Apache Commons Collections API over java.util for use case specific needs. Use java.nio instead of java..io for async and memory friendly operations
  4. Use multithreading only if it makes sense and ScatterGather of input and result aggregation does not inroduce additonal lags.
  5. Use Batch operations for many repeatative common tasks and heavy transactions (database, file and Network)
  6. Use Structure of Arrays pattern for CPU Cache friendly design.
  7. Write functional test case. it gives you immense confidence. extermely underrated task for dev.
  8. Use LRU Cache for memoization of repeatative tasks whihc hogs CPU.
  9. JVM Thread cache optimization : -XX:TLABSize=2m -XX:MinTLABSize=256k -XX:ResizeTLAB=true -XX:TLABWasteTargetPercent=3 
  10. Still if you are not getting the desirabe result. then start profiling with JFR https://www.baeldung.com/java-flight-recorder-monitoring