[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Does it matter what programming language a game is programmed in?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 144
Thread images: 17

File: 1503781260947.jpg (1MB, 610x5332px) Image search: [Google]
1503781260947.jpg
1MB, 610x5332px
Does it matter what programming language a game is programmed in?
>>
>>389245960
No. Users can't tell and unless you've programmed the game without considering the features and weird behaviours of your language the impact on performance will be minimal.
>>
>>389245960
Only if it affects performance/stability. Anything larger than a 30 minute experience made in Java for example is unacceptable due to ridiculous amounts of memleaks.
>>
>>389245960
No, but it matters what compiler you use.
>>
>>389245960
Also why is C so low on that list? It requires more intelligence to make programs in C than say Java or C#, which take care of stuff like garbage collecting for you.
>>
>>389245960
man i wish i could learn a programming language, they're so fascinating.
>>
>>389246624
Minecraft says otherwise.
>>
File: 1439243753780.png (1MB, 1200x1800px) Image search: [Google]
1439243753780.png
1MB, 1200x1800px
>>389246832
because you're retarded for not leveraging good tooling for the sake of muh k&r
>>
>>389245960
There are some languages that are simply better suited for video games, whether by giving you better tools, allowing you to optimize performance better, etc. You can make games in HTML5 but I wouldn't even try to use it for anything beyond simple casual games.

But even "suboptimal" languages can be used to great effect. For example, Java is often seen as inefficient for video games, and yet one of the most popular games of all time (Minecraft) was done in Java. Would it have been better if it was done in C++? Sure, that's definitely possible. But it works well enough, so the player doesn't care (or even know, in most cases). In the end the thing that matters most is what you feel most comfortable working with. If you're a great Java programmer but you have very little C++ experience, there's literally nothing wrong with just sticking with Java.

Just because a language is more powerful/more efficient/more popular doesn't mean it's also strictly better. There's always your own level of skill to consider and how much time you can put into development. If your game would be easy to make in something simple and user-friendly like Game Maker, there's no point in learning C++ just because it's a "better" language overall.

Unless of course you enjoy learning new languages and you use game development as a fun way to get more familiar with them, in which case go wild.
>>
>>389247246
What's the point of listing their blood types?
>>
>>389247152
Minecraft is exactly the the prime example that should never have been made in Java. Sure it works on everything, but not as well as it should on higher end computers.
I can't really criticize since I haven't released any of my shitty projects though
>>
>>389247438
Japan believes your blood type influences your personality. That's why you see blood type listed so often in games and manga.
>>
I want to get into programming. Which language is a good starting point?
>>
>>389247471
Minecraft is exactly the prime example of why you should care about what works for you, rather than what is theoretically the best option.
>>
>>389247506
Start with Java:

https://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28

Then move onto Python, then C++.
>>
>>389247298
How the fuck can you make a game out of HTML5 besides text adventures and possibly chess?
>>
>>389247506
Try C# or Java.

Both have lots of tutorials and shit available to help you get started.
>>
>>389247731
Literally Google "HTML5 games" and you get plenty of casual games. Pretty much the same kind of stuff you used to see on free Flash games sites.

HTML5 is quite a bit more powerful than the traditional HTML website stuff people are used to, which many people still don't seem to realize.
>>
>>389247731
html5 includes canvas
by extension javascript is included
>>
>>389247974
JavaScript isn't HTML5 lad
>>
>>389247731
https://dragonbound.net/

>>389247298
One of the most popular games of all time (Minecraft) is also known for it's suboptimal performance, increasing memory consumption the further you go from the session spawn zone and breaking all mods every new update.
Minecraft is a monument to haphazard, a wreck of a code stitched together that somehow works and that even casual players notice the engine limitations
>>
>>389247705
>>389247741

thanks, will start with java
>>
>>389248189
That didn't stop it from becoming ridiculously popular, now did it? Let's face facts: If the game is fun, people don't give a shit about how optimized it is or isn't.
>>
>>389248189
That's JavaScript and CSS3 you moron, not HTML5. You realize HTML5 doesn't not mean "muh webpage", right?
>>
>>389248073
canvas is part of the html5 spec
canvas' api is javascript
if we want to be strict with it, no it's not HTML5 but given the circumstances i don't think anybody would argue that javascript wasn't kept in mind for HTML5

here's a game in pure css if you wanna be pedantic about it though https://codepen.io/elad2412/pen/hBaqo
>>
>>389246343
Obviously. Here's a pedestrian example. Factorio was originally written in Java as a prototype before the game was successful. It was easy and cheap to program. Once the game became successful there was no avoiding the elephant in the room - the game was terribly laggy for users and Java had to go. And so it did.

All programming languages have their uses. C++ and C# are usually your best bet if you're making a video game thanks to their versatility and performance.
>>
>>389245960
It depends by your gameplay idea.
I imagine that making a turn based rpg in basic or in rpg maker isn't a big deal.
If you have in mind some super original gameplay that has some very strict and unique rules no other language or engine can do, well, in that case it matters.
>>
>>389248524
Learning C++ is a nightmare that never ends.
Why the fuck are metafunctions and general template fuckery a thing? and why do I love it so much?
>>
>>389248632
It doesn't hold your hand. It's both a blessing and a curse.
>>
>>389246343
Bullshit. Just compare the original Game Maker version of Hotline Miami to the ported PhyreEngine version. It runs so much better.
And the final GM build of Hotline Miami 2 didn't even work properly and crashed all the time. So it got ported straight to a custom C++ engine based on SDL.
>>
>>389248683
I just wish that the fucking compilers out there would stop adding their own stupid little flairs and fuck my portability up. Fucking stop it visual studio you fucking cunt
>>
thats like asking if it matters what graphic card youre running. a 1080 will run a game better than a 5 year old card would. same principle applies to languages.

if a game is coded with an older obsolete language like C or C++ itll run slower and less efficiently than newer languages that have been developed to take full potential of modern hardware like Java, or increasingly Go lang.

no one plays games programmed in fortran for example
>>
>>389248869
what the fuck
>>
>actually PROGRAMMING to make a game
get with the times, gramps
>>
>>389245960

Depends.
1) on how good the programmers are.
2) how long must the code be maintained and updated.
3) what kind of game is it and what does it need to do.
4) what are the target specs for the game.

You can't program a competitive fps arena shooter in java and expect to be able to rival quake, nor can you program a grand strategy game in flash and expect to make the new europa universalis. But if you need to do a minecraft clone then java is more than ok.
>>
>>389247246
>C-tan is 47 years old
Wew.
>>
Think of programming languages as a tool, every language has things that it does good and bad. Ultimately for applications such as video games it varies on what would you ultimately need. If a game is going to be heavy on resources, requires minute memory management and performance, then Python is most likely not a good option to make such a game. If you want to create something fast, quickly and it doesn't need much performance then you are better off using it.
>>
File: 1279827818654.jpg (11KB, 184x184px) Image search: [Google]
1279827818654.jpg
11KB, 184x184px
>>389245960
>java above Python
>>
File: 1419139295125.gif (753KB, 500x750px) Image search: [Google]
1419139295125.gif
753KB, 500x750px
>>389245960
Missing INTERCAL, pic related.
>>
File: TobyFox.png (306KB, 378x320px) Image search: [Google]
TobyFox.png
306KB, 378x320px
>>389249053
Damn right, my man.
>>
>>389248863
Visual Studios is ass you can't hold anything to blame for it
>>
>>389247731
>How the fuck can you make a game out of HTML5 besides text adventures and possibly chess?

You do realize that ecmascript 7 (javascript 2017) is a thing, right?

You have html canvas, webgl, in memory databases and so on. There's even dedicated game engines like phaser. You can easily do most kind of games with MODERN web tools, especially if you also leverage server side tools like nodejs or containers like electron.
>>
>>389248390
Well they do, Having to own a high end computer to run a simple mod pack causes a lot of problems.
It's horribly limited by its terrible optimization and it's programming language.
While it is popular.. It could be even more so if more people had the opportunity to actually play with the mods without having to have 16gb of ram and a processor from the future.
TLDR; People do care regardless of whether something is popular.
>>
>>389248869
b8
>>
>>389248869
kek a PS/2 keyboard will also slow everything down by about 90% because the data rate is much lower than SATA3
>>
>>389248869
I need an adult. I can't figure out if I'm being trolled or some autist literally thinks this is true. Here's your (you) anyway.
>>
>>389245960
this chart is all over the place

it is neither memey nor "correct", it's just randomly assigning a language to a brain activity pic
>>
I feel like it matters if you're using BASIC for trying to make a 3d game
>>
>>389245960
Because mojang bragging about minecraft having like a billion lines of code is't a good thing
>>
>>389246832
because its a fucking meme ya dunce
>>
>>389249653
What are you talking about? Javascript is clearly the easiest to learn there, whereas binary machine code is pretty much impossible to read, let alone write.
>>
>>389249442
The latent security flaws of java are the only reason the mods exist in the first place m8

The real reason it runs like shit is notch was an ametuer genuis with terrible habits, at least according to some expert or something who look into the code.
So, when mojang, whom'st are braindead subhuman idiots, tried to expand on the game it just got worse and worse due to them being dumb as fuck and notch's bad habits.

Oh and the modloader being developed by a trained fat monkey who's all buddy buddy with mojang/curse/twitch/amazon (basically all the same thing at this point due to all the nepotistic circlejerking) and they gave his fat ass a computer with a titan and a really good i7.
>>
>>389246832
>Also why is C so low on that list?
Because it's a brainlet-friendly language. It doesn't even have superclasses.
>>
>>389249598
>old languages like c are slow
>modern languages like java are fast
most obvious troll post in history man
>>
>>389246832
Because it's a stupid meme image.
>>
>>389247029
It's really not that difficult, you could learn how to make basic stuff in Python in a few hours if you really wanted.
>>
>>389249870
comparing an antiquated language like c to a newer language like java is like comparing a trabant to a bmw.

the logic makes perfect sense to anyone but contrarian hipsters
>>
>>389250009
Probably easier to start off with BASIC if you don't already have an okay understanding of programming in general
>>
>>389249870
I work in the CS field IRL and idiots have tried the "newer languages = more efficient" crap on me before.
>>
>>389245960
>Matlab that high.

Matlab is the paid online service of scientific computing. Python does the same thing just as well for free.
>>
>>389249770
>latest
MC has been getting modded in various ways since indev.
Not that I'm disagreeing or anything.
>>
>>389250449
latent, not latest
as in java being shit with security let modders break open minecraft's guts to fuck around
>>
>>389250124
>unironically thinking you need to know any of the theory in order to understand the practicality
>>
>>389245960
Of course it matters, all AAA games are made with C++, this isn't a coincidence, your shitty modern languages aren't fast enough.
>>
>>389249803
Wouldn't Python be even more brainlet?
>>
Can Jai save the videogame programming scene?
>>
>>389250681
>save
But no, Jai wont do anything except be JBlow's deluded pet project. His brainlet fans will use it for one day and then go back to GM.
>>
>>389250528
My bad, literally just got out of bed.
>>
>>389248869
make it stop
>>
>>389248869
Os this real b8, or is it just fantasy
>>
>>389250656
Any language where memory management is done for you is brainlet.
>>
>>389250835
caught in a landslide of fallacy
>>
>>389250129
but it is more efficient
more efficient to write pure fucking garbage, fuck you web development I hope the web fucking dies
>>
>>389250095

It's actually more like comparing an entire workshop with a bmw. New languages are the 'hip' ones where anyone can code and the compiler does all the dirty work. Want full control over resources and minimize possible fuckups? better use C++
>>
>>389251068
I'm glad I'm not the only one bitter about web dev.
>tfw you tell someone you do programming and they try to get you to help them make a fucking website
Fuck you Sam you fucking cunt I hope you choke on a dick
>>
>>389249337
Home from the Come From statement?

I didn't think anybody remembered it.
>>
>>389250681
I hope so, C++ needs to be replaced.
>>
>>389251253
I've contemplated suicide because of it
It is unbelievable what this unmanageable pile of shit along with a corporate/enterprise workplace and environment does to a man in under a year
>>
File: Drbilly.jpg (27KB, 180x225px) Image search: [Google]
Drbilly.jpg
27KB, 180x225px
>matlab
>>
>>389251427
Rust seems to be the correct direction to go in, even if it's not entirely a replacement for C++.
>>
>>389251253
Still better than being asked at bars to check their noisy fridges and tv screens
>>
File: 1502357646102.jpg (177KB, 709x821px) Image search: [Google]
1502357646102.jpg
177KB, 709x821px
>>389251552
>Rust seems to be the correct direction to go in
Lol, the lengths you shills go to is crazy.
>>
>>389251552
Oh sure if you like to be coddled Rust is great.
>>
Does it really make sense to program the physics modelling in the same language as the interpersonal dynamics?
>>
>>389245960
What is Binary Lambda Calculus and why would you make a game with it?
>>
>>389251427
Can you guys just leave my language alone? It works fine. Just because new computer science students are too fucking inept to learn how BASIC memory management works doesn't mean you should just replace it all. I know stroustrup is a fucking hack but the language just works, alright?

>>389251647
People just dont get the difference between "I work with computers" and "I am good with every single type of electronics under the sun"
>>
>>389251486
The with-it crowd program in Octave instead.
>>
Are there any games made in Python with 3d graphix?
>>
File: Extreme_Dinosaurs_Intro18.jpg (11KB, 320x240px) Image search: [Google]
Extreme_Dinosaurs_Intro18.jpg
11KB, 320x240px
>>389247298
Good post.
>>
File: 1503937708014.jpg (1MB, 500x2855px) Image search: [Google]
1503937708014.jpg
1MB, 500x2855px
>>389245960
Make sure you read the right books too.
>>
>>389251654
>>389251670
Why should you use C++ instead of C?
>>
>>389251787
At least commercially "big" I don't think so. The usual games tossed around when this is asked are I think Civ and EVE, but in both cases it's used only for a few specific things.
>>
File: 2ae[1].jpg (49KB, 600x735px) Image search: [Google]
2ae[1].jpg
49KB, 600x735px
> tfw you're a programmer but you hate programming
>>
>Basic is above C++
Why
>>
>>389252048
Because when you're making a game abstracting designs into classes is really useful and easier than achieving the same design with C.
Unless you're an actual C wizard.
>>
>>389251768
C++ is obviously the best current language to make games, but it's archaic, all features added in the last 20 years have completely terrible syntax and still needing header files in 2017 is ridiculous.
>>
File: 8824732.jpg (61KB, 531x502px) Image search: [Google]
8824732.jpg
61KB, 531x502px
>>389252064
>tfw you're a programmer and you love programming
>>
>>389252140
Then what's wrong with Rust? Its abstraction-building mechanisms are just as powerful as C++'s, albeit different.
>>
File: 1459708258706.jpg (97KB, 550x512px) Image search: [Google]
1459708258706.jpg
97KB, 550x512px
>>389252064
>Went to school for software development
>Absolutely hate it
>In massive debt I can't default on
>Have to decide to either financially castrate myself and go into default with an unrelated job I might not get or go into a field I hate
>Work everyday wondering what would happen if I just picked up and left the country

If you can still get out, get out.
>>
>>389252064
I kind of know this feel.
It's not that I hate it, I find my job pretty fun as jobs go and get paid a lot to do it.

But if I'm not getting paid I have 0 desire to write anything. I don't do hobby projects at all.
It's probably more that I just hate working in general and want to just read and play vidya 24/7.
>>
>>389252142
Man I know it's archaic but all these shitty new languages don't even get any of the basics down, so I can't switch.

>>389252064
Still like programming more than not programming though. I'm pretty tempted to just do it as a hobby though, doing it as a job absolutely sucks.
>>
Programming is the most monotone, soulless activity I've experienced.

No wonder why Pajeets do it. I'd rather be doing something actually fun than just writing lines and lines of code while feeling my ass going numb from sitting on a chair for hours
>>
>>389252368
even when i'm paid for it I don't like what I do

I'm tired of shitty dev environements, specs not being written properly, nothing advancing because the framework is ass
>>
>>389252368
I dont remember posting this
>>
>tfw you work in a codebase using OO python extensively and people just don't give a fuck and don't obey any OO principles at all
this is a nightmare why even support OO programming if you don't have any real tools for enforcing it beyond defining classes?
>lmao rather than understanding and defining an interface to this variable I don't understand just let me reach in here real quick obj._variable
>>
>>389247152
Current Minecraft isn't written in Java. One Microsoft bought it from Mojang, all the new versions are c++
>>
File: Tycoon.jpg (41KB, 250x301px) Image search: [Google]
Tycoon.jpg
41KB, 250x301px
>>389245960
it surely does. Take pic related for example, it was programmed almost entirely in assembly because the author back in the day wanted everyone to run it, even if they had shitty PCs.
>>
>>389245960
Yes.
If you want poorly optimised and slow runtimes, use Java or a scripting language.
If you want an actual well designed, good performing game, use a proper mid-level language like C/C++.
>>
>>389253298
That's completely wrong, microsoft acquired mojang and two seperate versions are being developed, the PC (java) version being dev'd by the idiots and mojang, and a c++ rewrite by microsoft for win10/consoles/mobile.
Both are receiving updates and the java version is better even with all it's flaws because microsoft jew'd the shit out of the c++ version.
>>
>>389252282
it's a pile of SJW shit by M*zilla which tries way too hard to hold your hand when it shouldn't with the goal of fixing non-existent issues
>>
>>389249729
then why would matlab be so high up?
this chart makes no sense
>>
>>389253484
The Java version still exists, but pocket edition (consoles / PC / iOS / osx / Android ) is where all the support is. With Better Together, all version of Minecraft will fall under one umbrella going forward.... And that is written in c++
>>
>>389253889
because matlab is used by mathematicians, what a fucking surprise right? They're generally smarter than your typical pajeet programmer
>>
>>389253760
I don't care about the Rust community, which is shit. I care about the language and its semantics, which (unlike C++) is clear, clean and consistent.
>>
>>389254074
ok mozilla shill
>>
>>389253943
Win10 store exclusive, lack of dedicated serbs, and no mods - ever - means it's dead on PC.
Java is still receiving regular content updates, for better, or for worse, as mojang are desperate to keep their jobs.
>>
>>389253943
No mods, it's the inferior version.

>>389254074
Is it true that Rust doesn't support function/operator overloading and the powerful template system of C++? That's the make or break for me.
>>
>>389248524
>C#
>Performance
Like, it's basically MS Java though
>>
>>389254794
and it's much better than that abomination
>>
>>389254846
No it fucking isn't you retard.
>>
>>389254915
Yes it is. Now scurry back to work pajeet.
>>
>>389254794
Mind I said versatility.

>>389254915
Most things are better than Java and JS but lets wave our dicks around about languages shall we.
>>
>>389254915
>my corporate overlord told me java is better for our enterprise bullshit so I better take the dick up the ass again and agree
lol
>>
File: 1447422682792.jpg (290KB, 1366x624px) Image search: [Google]
1447422682792.jpg
290KB, 1366x624px
>>
>>389254497
>Rust doesn't support function/operator overloading
Sorta, you have to use traits.
>and the powerful template system of C++
Generics with traits again. Traits can be statically or dynamically dispatched, which IMO solves one of C++'s longstanding issues with having multiple conflicting ways of doing polymorphism.
Not quite as powerful as C++ templates though, since it isn't ducktyped
>>
>>389245960

yes, Quake3 in Haskell runs at 30fps
>>
>>389247029
The most used languages all have the same elements to them mostly.you just need to learn the weird differences . The big differences between languages is if they're object oriented or script based.
>>
>>389254998
Like, everything I've ever heard of or seen of C# looks extremely Java-y, it uses a runtime with bytecode, it keeps all the class bullshitery Java keeps as well. I don't like Java myself (I used it on a internship and have basically seen way too much of it the last 3 years in uni)), but I sincerely doubt C# has that many big advanteges over Java, seeing that Java is older and it's easy to extend, like Eclipse XTend does for instance.
>>
>>389248869
you done well son
>>
>>389255384
C# really is just Java with crap bolted on. To be honest, I prefer Java.
>>
>>389255260
looks like it was a thesis? I don't really think a thesis by one person in which ever programming language would eclipse the original made by a team.
>>
>>389255178
Might have to try it out sometime, but I just don't have the drive to learn all the quirks and black magic you can do with a new language again. I still haven't fully explored C++ either
>>
>>389255978
C++ is a huge language, and I do quite like just how much is possible in it.
But it does irk me how inconsistent and unintuitive it is sometimes.
>>
File: 1475140605186.png (9KB, 1468x135px) Image search: [Google]
1475140605186.png
9KB, 1468x135px
>>389255384
C# gives you the power to go a bit lower-level and use stuff like pointers. It still has automatic garbage collection, but at least it helps performance in some cases when you decide to use them.

It also isn't retarded about some of its concepts. Like, why the fuck does Java have both primitives and wrapper classes? Java is a language that forces everything to be OO, yet still includes primitive types and they are recommended over wrapper classes. Even C# is more consistent about that shit.

Finally, from my own experience, Java is slightly more verbose and often requires more boiler-plate code to get stuff done. That's not to say C# isn't verbose either when compared to other languages, but Java goes to the extreme with it.
>>
>>389256153
Fuck, just learning about templates in general in C++ was a nightmare. But then variadic templates became a thing and I never looked back. Also holy shit there are some really good libraries out there.
>>
File: Haxe.jpg (1MB, 2848x2134px) Image search: [Google]
Haxe.jpg
1MB, 2848x2134px
>Ctrl-f Haxe 0 of 0
You disgust me sometimes /v/
>>
>>389256179
>Like, why the fuck does Java have both primitives and wrapper classes?
Because Java doesn't have first class value types, and to be honest I can't really blame it for that.
>>
>>389247506
C. Most programming languages are usually based off that.
>>
>>389247506
Doesn't matter.
>>
D is better than C++ these days.
>>
>>389248869
>thats like asking if it matters what graphic card youre running. a 1080 will run a game better than a 5 year old card would. same principle applies to languages.
You're correct, but it depends on the game.
>if a game is coded with an older obsolete language like C or C++ itll run slower and less efficiently than newer languages that have been developed to take full potential of modern hardware like Java, or increasingly Go lang.
t. script kiddie
>>
No but Engines are really important

UE4 stronk
>>
>>389257826
I wish it didn't have GC.
>>
>>389254202
>>389254497

Sorry you guys are unhappy about mods, but it doesn't change the fact that 99% of Minecraft development going forward is c++ and that it is the more performant version.

Shouldn't hurt that you can play with your friends cross platform for a third the price either.
Thread posts: 144
Thread images: 17


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.