Tag: java
-
A Guide to Memory/Object Pooling
I was recently listening to a vlog by a games developer who wanted a new programming language specifically for games, and one of his big gripes with C++ was the memory allocation process. He had a number of arguments, none of which resonated with me, but it did spark interest…
-
Recursive versus Iterative Algorithm Results Follow-up
A few week ago I did some preliminary investigation into the performance difference between recursive and iterative procedures/algorithms. The problem I chose to solve was path finding in an imperfect maze as there are algorithms which have the same theoretical complexity. I also already had some code lying around for…
-
Recursive and Iterative procedures
Today I’m looking at two different types of procedures, Recursive and Iterative. Many problems can be implemented using both techniques which have both benefits and drawbacks. For those not acquainted with the terminology an iterative procedure accomplishes computation with a block of code that repeats many times until a terminating…
-
Multi-threading Comparison between Python and Java
I find myself unprepared this week for what I was going to write about, partly because of playing Dwarf Fortress after having had a long respite, and having been away for a good portion of the weekend. So I don’t have any screen captures done for the game I was…
-
Android and Singleton Classes
Recently in my Android programming escapades I found something interesting and bothersome in an API I had written. I had created a singleton class for the main renderer of my graphics API. With the first app I was making I had no problem, and it in fact was quite helpful…
-
The Day the Earth got Mooned
The Day the Earth got Mooned is a game recently made by a youtuber that I frequently watch called JimPlaysGames, a British guy called Jim Baker. Jim has previously also made a game called Shitty Quest which was an interesting and funny adventure game with themes of what it is…
-
Code Optimisation
Recently I started reading a book about code optimisation that focuses on the x86 architecture and assembly language. The book is called Graphics Programming Black book and is written by Michael Abrash who is well known for his work writing technical articles and coding on games such as Doom and…
-
Memory Allocation – Heap and Stack
A question I recently saw online was about how memory is allocated and used within the Java programming language. There was a little confusion about what the heap and stack are. Both the stack and heap are common to many languages such as pascal, C, and many more. Stack space…
-
Java Data Structure Performance
Recently I was browsing Stack Overflow looking at questions asked about Java. One theme that kept on recurring is that of the performance of various data structures within the Java API, in particular the Vector and ArrayList classes were frequently compared. So I decided that i would have a go…
-
The Java Programming language
The first language I learned at university was Java. Java is a high level object-oriented language, it is used in web pages in the form of applets. Some features of Java were very unique at the time it was created. The compiler does not generate native code, but rather generates…