Here, in no particular order, are the top 9 reasons I like working with Go: The Toolchain, Clean Code, Go Routines, Channels, Metaphysical Parsimony, and 4 more...
Previously, I was precalculating the completion which maximized the probability of the word, using some basterdized half-remembered version of bayes law. But I think there is a better approach, by running simulations on existing data.
Every week here and in our newsletter, we feature a new developer/blogger from the DZone community. This week we're talking to Pierre-Hugues Charbonneau, Senior IT Consultant and System Architect at CGI Inc., and author of DZone's 200th Refcard: Java Performance Optimization.
So you can see where I'm heading with the question posed at the title of this post. It is the reference resolution that is fundamental an indirection is simply what we do to (re)define what that resolution process ultimately looks like.
This article illustrates the general time - memory tradeoff with the example of different hash table implementations in Java. The more memory a hash table takes, the faster each operation (e. g. getting a value by key or putting an entry) is performed.
Today, DZone released Refcard #200: Java Performance Optimization. To mark the significance of this milestone, this Refcard boasts a complete redesign - all the information you expect from a Refcard in a shiny new package!
The administrators on the server noted the high I/O and that a single thread was constantly busy and decided that this is likely a hung thread. The long term fix was to actually make sure that we abort the operation after a while, report to the remote server that we scanned up to a point, and had nothing to show for it, and go back to the replication loop.
PHPNG is only in alpha development, but several benchmarking tests already put it streets ahead of PHP 5.6 – in some cases, it easily performs twice as quickly.
In the finite sequence article, we saw that unless we wanted to limit ourselves to a certain number of values we couldn't use generate and iterate in a simple manner.
With Identity Server, we can also use Thrift protocal to communicate with PDP. It is said that thrift is more faster than the HTTP. Therefore we hope that we can get more performance and less response time by using thrift protocol with Identity Server.
In Java it’s common to unit test at the class level. The Foo class will have an associated FooTestsclass. Solitary Unit Tests follow two additional constraints: Never cross boundaries and the Class Under Test should be the only concrete class found in a test.
One of my blog readers told me it was 2014. He laughed at the fact that I was still using XML, so within 30 minutes I was writing JSON to disk, instead of XML. It was incredibly easy to do.
In order to retrieve JMX information from a Java application, the target application must be configured to expose JMX information. The following Java code allows for polling the JMX agent and retrieving memory, CPU usage and also shows how to remotely invoke the garbage collector:
In my previous post, I did some rough “benchmarks” to see how message passing options behave. I got some great comments, and I thought I’ll expand on that.
When sending data over the Internet, we want to be sure that data has arrived safely and is delivered in a reliable manner. Assuming that our hardware and operating systems do the job well, we can use transport protocol on the application level to achieve that goal.
The first time I learned how DNS gets resolved, I was quite surprised by how long and complicated the process was. Think about how many websites you visit in a given day, then consider how many of those you go to multiple times.
This week, DZone released its latest Refcard: Node.js. For those of you interested in sharpening your Node.js skills - or, maybe, debating a potentially unpopular opinion - we decided to dig into the DZone archives and find some of the most popular posts we've had on the topic.
What I need this for is for network protocol handling. As such, even assuming that every single byte is a message, we would have to go far beyond what any reasonable pipe can be expected to be handle.
I had the pleasure of presenting to the PHP Users Group Philippines a few days ago about mysqlnd_ms. The mysqlnd plugin, MySQL Master Slave, is a transparent layer on top of mysqlnd extension.
A couple years ago when I began using Python 3, its new ResourceWarnings infuriated me and I ranted against them. And now, a ResourceWarning has saved my tuchus.
I’m designing a new component, and I want to reduce the amount of complexity involved in dealing with it. This is a networked component, and after designing several such, I wanted to remove one area of complexity, which is the use of explicitly concurrent code.
Make sure you didn't miss anything with this list of the Best of the Week in the Performance Zone (July 4 to July 11). This week's topics include slow unit tests, busy thread count alerts, detecting deadlocks, cost accounting for SSDs and Java EE.
In the world of Formula 1, milliseconds are the difference between Pole Position and second on the grid. Millions of dollars are spent on getting the maximum performance out of both the car and the driver.
Most discussions I have seen about choosing SSDs vs. spinning disk arrays for databases tend to focus on SSDs as a replacement for disk. SSDs don’t replace disk; they replace the RAM you would be using to cache enough disk pages to make up for the terrible random IO performance of spinning disk arrays.
Here are five quick points that developers should be conscious of when their code is running in a multi-threaded (usually Java EE) environment. We all write code where we don't create threads ourselves but our code is still being executed in multi-threaded environment. Here are some tips focused on helping you write code that is thread-ready and thread-safe.