Search found 169 matches

by cyboryxmen
August 21st, 2019, 3:58 pm
Forum: Everything
Topic: The usefulness of bit packing
Replies: 10
Views: 106

Re: The usefulness of bit packing

Code: Select all

enum class Option
{
	a,
	b,
	c,
	a_b,
	a_c,
	b_c,
	a_b_c
};
Get on my level 😏
by cyboryxmen
August 21st, 2019, 3:24 am
Forum: Everything
Topic: Fun Easy Dumb Algorithm Puzzle
Replies: 4
Views: 129

Re: Fun Easy Dumb Algorithm Puzzle

Code: Select all

void algorithm(std::vector<int>& io)
{
    constexpr auto output = std::array{0,4,12,1,5,9,17,2,6,10,18,7,19};
    
    std::copy(output.begin, output.end, io.begin);
}
git gud scrubs!
by cyboryxmen
August 4th, 2019, 6:05 am
Forum: Everything
Topic: How a Multiple Producer Multiple Consumer queue works
Replies: 0
Views: 100

How a Multiple Producer Multiple Consumer queue works

A queue is a simple data structure that operates the same way as a real life queue. Objects get "pushed" to the back of the queue and get "popped" when they reach the front of the queue. The front and back of the queue are tracked using indices like unsigned int(s) or std::size_t(s). When an object ...
by cyboryxmen
July 30th, 2019, 4:50 pm
Forum: Everything
Topic: What makes C++ a low-level programming language?
Replies: 3
Views: 519

Re: What makes C++ a low-level programming language?

People think that low level programming is something that you learn to optimise runtime and minmax performance. I actually created this post specifically to help people be better at writing safer code. Most of the time, I see beginners write these clunky constructs that make programs unnecessarily c...
by cyboryxmen
July 17th, 2019, 12:27 pm
Forum: Everything
Topic: Got side tracked...again
Replies: 7
Views: 392

Re: Got side tracked...again

Try walking a marathon. That's a good start.
by cyboryxmen
June 27th, 2019, 11:11 am
Forum: Everything
Topic: What makes C++ a low-level programming language?
Replies: 3
Views: 519

What makes C++ a low-level programming language?

Most people consider C++ as a low-level programming language. Compared to higher level languages like Java and Python, C++ works on a much lower level than these languages would allow. The majority will agree with this statement but few of them could clarify what that actually means. This begs the q...
by cyboryxmen
June 24th, 2019, 2:05 pm
Forum: Everything
Topic: THE DISCORD SERVER IS DOWN!!11!!
Replies: 6
Views: 292

Re: THE DISCORD SERVER IS DOWN!!11!!

Discord is back online again!

Image
by cyboryxmen
June 24th, 2019, 12:35 pm
Forum: Everything
Topic: THE DISCORD SERVER IS DOWN!!11!!
Replies: 6
Views: 292

THE DISCORD SERVER IS DOWN!!11!!

😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱😱
by cyboryxmen
June 12th, 2019, 9:32 am
Forum: Everything
Topic: ECS
Replies: 2
Views: 246

Re: ECS

The CPU is able to handle multiple streams at once. Streaming through 2 arrays is a piece of cake. Quad streaming should be perfectly fine too. Eventually though, you will hit a limit as to how many streams you can go through at once. But yeah, traversing through 1 array will ultimately be more perf...