Publication: The Consequences of a Conscious Deterministic Simulation

With the recent progress in computing, and more specifically artificial intelligence (mainly neural networks), it is not strange that we see more and more sources say that it is only a question of time before such a computer program will eventually surpass the capabilities and intelligence of the human brain. A scary thought for one, an interesting thought for another. But if this is indeed a possibility, what will this mean for (human) consciousness and our understanding of it?

This article will explore the consequences for the existence of consciousness in a very specific type of computer simulation: a deterministic simulation.

Enjoy!

(Also published on LinkedIn: https://www.linkedin.com/pulse/consequences-conscious-deterministic-simulation-jasper-lammers)

Rounding Values in Different Programming Languages

After discussing the subject of my previous CodeProject publication with others, I got curious how other languages handle the mid point values. I was happily surprised that almost every language did have this subject covered. However, there are a lot of differences between languages.

To hopefully help someone in the future, I have mapped the rounding methods in a table. X’s in bold are default implementations, other X’s are optional parameters or separate methods.

The language names in the table link to the documentation I used.

Without further ado, the big “programming language/rounding method table”:

  Java C Python* C++ VB .NET JavaScript C# PHP Objective C MATLAB R Perl Swift Go Delphi Ruby**
Round half up X X       X   X                
Round half down   X           X                
Round half towards zero   X                           X
Round half away from zero   X   X X   X   X X   X X X   X
Round half to even   X X   X   X X     X X   X X X
Round half to odd               X       X        
Random tie-breaking                       X        

* The table references Python 3.7 but Python 2 actually has a different round implementation. It will round half away form zero.
** The mode keywords in Ruby are :up for “round half away from zero” and :down for “round half towards zero”, making them quite confusing in my opinion.

Of course, I’ve added this table to the article as well. Check it out here:

https://www.codeproject.com/Tips/1272542/How-NETs-Math-Round-has-Nothing-to-do-with-Maths-A

New Publication on Code Project: How .NET’s Math.Round has Nothing to do with Maths. And That’s OK!

About a week ago, I was working on some code that was moving two entities along the x-axis. Inside the library, their x value was a double, but the public interface only allowed for meters in the form of an integer. I used Math.Round to translate the double value into that integer.

One of the requirements for the code was that the entities could never be closer than one meter to each other. I used the rounded value to check this.

As you might have guessed by now, the code kept failing. Even though both entities started out exactly one meter apart, had the same starting speed and were accelerating with the same speed, using the same algorithm, the code kept failing.

At first, I thought it was some kind of double precision error. But this wouldn’t make much sense, as the algorithm would result in the same precision loss. After some debugging, I eventually found out it was not the double but Math.Round that was behaving differently than I had anticipated.

Read my new publication to find out what was actually happening:

https://www.codeproject.com/Reference/1272542/How-NETs-Math-Round-has-Nothing-to-do-with-Maths-A

New Article on Mind Dough: Matter over Mind – Consciousness…Fundamental force or chocolate cake?

A new Mind Dough article has been published!

Due to the complexity of the subject, and the size of the article it has taken me a while to finish. But part one of the Familiar Existence series is finally ready!

This article ventures into a world in which we assume the physical is indeed the seed of consciousness. What would this mean? What can we learn from it? What is a world in which matter exists over mind?

You can read it here. Enjoy!