info@synkre.com
  • Twitter
  • RSS
  • Twitter
  • RSS
synkre.com
  • Home
  • Blog
  • WordPress
  • Programming Tips
Select Page
How do I write lock-free non-blocking code and why should I care?

How do I write lock-free non-blocking code and why should I care?

by kornel@synkre.com | Jul 25, 2019 | Programming Tips

What are the benefits of lock free non-blocking code? Traditional Java programming uses mutex locks to give mutually exclusive access to resources. How can immutables and snapshots be used to write code without these locks. What libraries exist that provide algorithms...
Why we synchronize in Java and Scala: locks, volatiles, and atomics

Why we synchronize in Java and Scala: locks, volatiles, and atomics

by kornel@synkre.com | Jul 25, 2019 | Programming Tips

The Java Virtual Machine (JDK) has a number of techniques to allow us to work safely with data in multi-treaded applications: We can declare a variable volatile, we can synchronize, explicitly define and use a lock from java.util.concurrent.locks, or use one of the...
JavaBeans are dangerous: Immutables work better for concurrency

JavaBeans are dangerous: Immutables work better for concurrency

by kornel@synkre.com | Jul 19, 2019 | Programming Tips

JavaBeans were created by Sun Microsystems in the 1990s to address a couple of shortcomings of the Java language. They wanted a way to make fields either read-only or read-and-write. They also wanted to make Java code better readable by design tools, such as NetBeans....
JavaBeans style getters and setters will ruin your Scala code

JavaBeans style getters and setters will ruin your Scala code

by kornel@synkre.com | Jul 18, 2019 | Uncategorized

Using Java beans will destroy your functional code. I keep coming across code that implements setters and getters in Scala code. There are multiple problems with this when it comes to functional programming. Scala code should use case classes, not mutable java beans....

Fast non-blocking code with idempotent streams

by kornel@synkre.com | Jul 16, 2019 | Uncategorized

In the past couple of years, there’s been a trend to code with streams. Ever wondered why everything is turning into a stream? What are their advantages? What should you do if you wanted use streams? What libraries are out there and which ones are the good ones?...
« Older Entries

Narrow Search

Archives

  • November 2024
  • March 2024
  • February 2024
  • November 2023
  • May 2023
  • November 2021
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • August 2019
  • July 2019
  • May 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • Twitter
  • RSS

Designed by Elegant Themes | Powered by WordPress