Search found 190 matches

by cyboryxmen
January 16th, 2017, 2:01 pm
Forum: Everything
Topic: Should I learn two programming languages at the same time?
Replies: 15
Views: 1684

Re: Should I learn two programming languages at the same tim

The examples that some common textbooks provide does no justice to the transformative, polymorphic properties C#'s getter and setter functions provide. public void Update() { pointer.position = system.mouse.position; float length = pointer.position_from_centre.length; if ( length > threshhold_radius...
by cyboryxmen
January 16th, 2017, 3:17 am
Forum: Everything
Topic: Should I learn two programming languages at the same time?
Replies: 15
Views: 1684

Re: Should I learn two programming languages at the same tim

As a multi-linguist and programmer of multiple languages, the first real advantage that learning new languages gives you is allowing you to think in a different perspective. In all honesty, you can pretty much get away with simple Assembly programming without the bells and whistles of higher level p...
by cyboryxmen
January 13th, 2017, 7:53 am
Forum: Everything
Topic: Data Caching and Code Optimizations
Replies: 11
Views: 1772

Re: Data Caching and Code Optimizations

Oh hey you read my unedited post. You should read the latest one where I posted the more accurate results. The gist of it is that I started with a single .exe and it gave me weird results. That was where I separated it into two solutions generating 2 .exes but I set the other to debug instead of rel...
by cyboryxmen
January 13th, 2017, 6:23 am
Forum: Everything
Topic: Data Caching and Code Optimizations
Replies: 11
Views: 1772

Re: Data Caching and Code Optimizations

So I was bored one day and I decided to test out the benefits of Struct of Arrays vs Array of Struct(without the benefits of SIMD). I wasn't committed enough to make a bunch of graphs though so you'll have to test it out yourselves to really collect the data. Here are my specs: Intel Core i7-4700MQ ...
by cyboryxmen
January 3rd, 2017, 1:58 pm
Forum: Everything
Topic: Data Caching and Code Optimizations
Replies: 11
Views: 1772

Re: Data Caching and Code Optimizations

I suppose that as Chili said, benchmarking must be done first before any theory can be proven right. It's a good thing I was literally experimenting with these concepts as this thread was posted. I'm going to try out some of my optimisations using different memory models for use with SIMD both with ...
by cyboryxmen
January 3rd, 2017, 10:20 am
Forum: Everything
Topic: Data Caching and Code Optimizations
Replies: 11
Views: 1772

Re: Data Caching and Code Optimizations

If the array is large enough and you insert or remove something from that array, then you will be hurting whereas a linked list, or better yet a doubly linked list would have no problems. I think this is the only situation where the array would fail. This would still be true if it wasn't for the pr...
by cyboryxmen
January 3rd, 2017, 10:07 am
Forum: Everything
Topic: Data Caching and Code Optimizations
Replies: 11
Views: 1772

Re: Data Caching and Code Optimizations

Before you dive into this topic, there are certain aspects of computer architecture that you must understand first. First of all, memory is SLOW . Insanely slow. It used to be on par with the cpu but as the years go by, the cpu has advanced so far in speed leaving the less developed memory in the du...
by cyboryxmen
December 31st, 2016, 5:37 pm
Forum: Everything
Topic: Psst
Replies: 10
Views: 1366

Re: Psst

I'm surprised you didn't try to teach assembly by trying to program functions in x86 assembly that can be called from a C++ program. That would turn this exercise from a little distraction to the usual lessons to something that people can use for their usual C++ programming. It would really tie in t...
by cyboryxmen
December 11th, 2016, 12:09 pm
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 1080

Re: The friend keyword is kinda useless

I suppose I phrased that last paragraph wrongly by emphasising on genericity and not the other various reasons to keep the class separate. Basically, I am aware of the downsides that friend declarations and nested classes have with privileged access, encapsulation, separation of concerns and every o...
by cyboryxmen
December 11th, 2016, 10:40 am
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 1080

Re: The friend keyword is kinda useless

I suppose nested classes would be a better way to describe them(and shorter too). To me, I still see that nested classes makes more sense semantically that they can access private members of classes that they are nested in compared to befriended classes. Let's say that there are two classes Soccer a...