How is it possible that a modern engine like UE5 is written in a 30 year old programming language (C,C++)? How the frick do you even write a game engine? Just with text? Its beyond my understanding.
It boggles the mind!
How is it possible that a modern engine like UE5 is written in a 30 year old programming language (C,C++)? How the frick do you even write a game engine? Just with text? Its beyond my understanding.
It boggles the mind!
>What is math
A notepad is all you need to code literally everything ever made.
But dont the lines of code stack up exponentially? Meaning Quake 2 engines compared to UE5.
Millions of lines by now probably. It's decades of building up.
because c++ is the most powerful language ever invented and you cannot change my mind
How was C++ written? And why not use that?
https://en.wikipedia.org/wiki/Assembly_language
have fun coding a game in assembly moron
>have fun
Oh, I am. ;^)
>Me
>Competent in Python and JS/TS
>Struggling with C#
>Intimidated by C/C++
>Cannot even wrap my head around Assembly
Sometimes I feel really small and stupid
>Python and JS/TS
Yeah, you are stupid
If your program runs and has acceptable performance who cares, everyone on the internet says they are 6'5 and write OS-level C that's just par for the course.
why are you interested in programming?
It's because of my job. I started with After Effects expressions and as I get better at that, writing scripts to automate certain tasks is just natural progression. I jumped to Python to automate tasks outside of After Effects.
Are you asking how the C++ compiler was written? There are multiple independent compilers, but I believe the most popular are all written in C++. Originally, they were probably written in C, before they had the capability to bootstrap the language.
>How the frick do you even write a game engine?
writing a game engine is hard if you try to do everything yourself. if you use lots of libraries to handle shit for you it goes from improbable to just unreasonably difficult. also the fact that it's using C++ is completely irrelevant, there are basically zero languages that rival it
it starts from shit like Pong and gets built upon by millions of people, its not a hard concept to grasp
basically you can use math to tell a computer how to imagine shapes, and then you can tell it to draw said shapes on your screen
https://www.a1k0n.net/2011/07/20/donut-math.html
Language age doesn't matter, moron, computers still work the same as the past when inputing instructions, now there's more and they handle it at the hardware level differently. But you rely on the compiler to compile your code down to assembly level code so as long as the compiler gets updated new instructions can still be used if the compiler was updated any good. New shit modern languages are complete garbage, all languages after C are garbage, they are just adding bloat and taking away control so moronic monkey Black folk can work together at the level of the lowest common denominator and the performance is multitudes slower, C is the easiest language if you can conceptualize how memory and CPU work and all languages after used it as the basis. GPU shit is all from the graphics API, the Black folk don't let you interact with the GPU directly and only approved shit API works, those are all written in C. Making a game engine is 99% working with the graphics API, because that's really all it does for the user of these public ones, besides abunch of shitty libraries like physics and other garbage, and gives you a shitty editor.
if you aren't using Assembly you aren't really programming
If you haven't written your own compiler you aren't really a programmer.
Try writing a C++ compiler and come back
01011001 01101111 01110101 00100000 01100001 01110010 01100101 01101110 00100111 01110100 00100000 01100001 00100000 01110010 01100101 01100001 01101100 00100000 01110000 01110010 01101111 01100111 01110010 01100001 01101101 01101101 01100101 01110010 00100000 01110101 01101110 01101100 01100101 01110011 01110011 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011 00101110 00100000
Why would I want to make a compiler for a bloated, soi-core language.
>soi-core
I bet you use Swift and Rust moron
>he doesn't write c/c++ code in assembly
All the benefits of those languages without the programmatic beaucracy. It's like being able to freely cut into a long line while there's nothing all the seething betas waiting can do about it.
People will literally kidnap you from the street the moment they learn you can write assembly. Your boss is gonna wipe your ass and suck your balls. I'm not even kidding.
top fricking KEK
there's a basedlord next door writing basedscript for twice the money
It's literally an ant colony where there are millions of ants with specific functions/tasks creating a large working system. It's not something you're going to understand as a whole as an individual.
C and C++ are both still being updated. In fact, both languages have pretty significant revisions releasing next year. The language's age doesn't really matter though.
But no one even uses those updates, most people still use C89 or 99, new updates are bloat, as for C----, they probably enjoy new bloat and fixes for problems caused by old bloat.
That really just a blanket statement with nothing to back it up, and it's kind of irrelevant to my point that the age of the language doesn't matter. Anyway, Unreal Engine 5 uses C++17.
C best.
why isnt there anything below 1.00
It's just another way to write 100%.
Interesting, thanks anon. Where do you think assembly languages would rank in this table?
Fair point.
Except writing enterprise applications in C is a poor allocation of time. The devlopmental savings by switching to even C++ would be significant
And the time lost learning it would be a lifetime.
thats not true, most FAANG and other high tech companies expressly forbid doing things in a pre C++11 way and won't merge your code if you're not using modern features
FAANG companies are full of poojets and moronic normalgays, I could give less of a shit about how THEY think things should be.
>no one uses the modern shit
>but that's literally 90% of new code written in the world
uhhh
Most modern developers are normalgays that don't understand shit unless it's been abstracted to hell and back, more news at 11.
They are also 90% diversity hires
go figure
It's fascinating. How are words impacting what's happening
how did people manage to coordinate words with actual physics wtf
Because the words don't exist moron, it's just 0 and 1s bits stacked together to make bytes and math.
>30 year old
Try 50 and 40 respectively
>programming languages get bad because they're old or something
You're right, it is beyond your understanding.
Not OP. It's a fair question specially regarding technology since technology is always being improved on. Why not assume that new languages are also better? It's not the case here but it's fair to know where he's coming from.
>why not make assumptions about things you don't know about?
are you really posing this to me as a quandry of rational thought
Idk why you think logic will ever be obsolete.
Unreal engine has some of the cleanest C++ code I've ever seen. Its really top notch
if only Tim Sweeney would go back to doing what he was good at.
There are only so many way you can use a CPU's instruction set and bidimensional RAM. They figured it out decades ago, most modern language development goes to dumbing down these archaic languages for the newer, dumber generations.
>t. java script programmer
People who code C are in fact Assembly programmers. C is just a small set of abstractions that translate directly into Assembly. Now C++ is whole another thing that adds new ways to code.