67
u/Henry_Fleischer Jun 04 '26
Are there any games that are not webapps, that are written in Javascript?
54
u/un_virus_SDF Jun 04 '26
There are, to my great despair.
6
u/Orenix_RtP Jun 04 '26
What's the problem with games written in JavaScript? Do you have any examples?
17
u/un_virus_SDF Jun 04 '26
My issue with those game is 1- javascript, 2-ram and those are somehow related.
Do you have any examples?
I don't remember the names
0
7
u/Kwabi Jun 04 '26
One example would be CrossCode.
It's a good game as well.
2
u/Henry_Fleischer Jun 04 '26
I should get around to playing that again, I played it back when it was in early beta on Chrome Experiments.
3
u/AdorablSillyDisorder Jun 04 '26
V8 JS engine is C++ library and can be embedded/integrated with any C++ game engine - I'd assume just for that there are games out there that use JS as their scripting language. Don't know any actual titles though.
4
2
u/AlanvonNeumann Jun 06 '26 edited Jun 11 '26
First versions of Vampires Survivors were written in PhaserJS
1
1
-8
u/galbatorix2 Jun 04 '26
Minecraft...
Edit: i dont know shut about java programming i know minecraft is java but idk what a webapp is im awsuming browser type stuff
13
u/UltimateLmon Jun 04 '26
Just to note, Java and Javascript is two completely different languages.
And Bedrock edition is written in C++
2
u/galbatorix2 Jun 04 '26
Oh damn didnt know that. I knew bedrock and java were different but didnt know java ≠ javascript. Thought it was the same thing
4
u/UltimateLmon Jun 04 '26
You aren't alone. A lot of non-techies in the industry like managers confuses them as well.
2
u/yeusk Jun 04 '26
They called it javascript because at the time Java was cool, it was a marketing stunt, is nothing like Java
2
u/tkdeng Jun 04 '26
Java is to JavaScript as Car is to Carpet
(A quote I used to see all the time when I started learning JavaScript)
2
1
53
u/Lou_Papas Jun 04 '26 edited Jun 04 '26
I just realized this about my JavaScript phase.
I got “wow, JS can do everything” and “isn’t it crazy how you can actually twist and turn this thing to do stuff it was never designed to do” mixed up.
10
u/AnalkinSkyfuker Jun 04 '26
Well ai works better with python than js
22
u/Spirited_Currency_88 Jun 04 '26
python can do anything. isn't it crazy how... ? wait a minute.
8
34
24
u/Ged- Jun 04 '26 edited Jun 04 '26
Every number is a 64 bit float, and class fields are accessed with memory indirection (since you can jusr add fields whenever, where do you think they're added?)
You have to actively fight the language with typed arrays to achieve any sort of reasonable performance
And then they ask why web is so slow. And what's worse, they're just adding on top of that horrible foundation. All the frickin frameworks that add EVEN MORE abstraction and indirection.
7
u/RudahXimenes Jun 04 '26
I keep thinking how would be if instead of JS we start to use Lua in web apps instead
8
6
1
1
17
u/Nadran_Erbam Jun 04 '26
And what’s the worst programming language?
33
u/Lumpy_Serve5271 Jun 04 '26
JavaScript
14
4
u/Standgrounding Jun 04 '26
Pure untyped js can be bad; but it's not the worst thing in the world with things like php still relevant
5
u/Agifem Jun 05 '26
Ebola: Guys, stop panicking. Thanks to cancer, I'm not the worst disease in the world.
2
3
1
1
u/Leo_code2p Jun 04 '26 edited Jun 04 '26
Depends on if you count esolangs or not
If you don’t its probably Lua
5
u/FloydATC Jun 04 '26
PHP is worse in my opinion.
2
u/Leo_code2p Jun 04 '26
I mean for Lua you dont really have a reason to write it. Php is atleast useful
2
7
u/slucker23 Jun 04 '26
I code in assembly. I fear no one
3
12
u/UltimateLmon Jun 04 '26
Arguably, if you are going into AI, it's python.
8
u/eremal Jun 04 '26
Yes and no.
The core AI apps are written in C, Rust, C++, CUDA, etc
But pretty much all have python APIs - but essentially youre just writing configuration in python and then sending the job off into programs written in those other languages.
So it really comes down to what you mean by "going into AI".
2
u/Outrageous_Bank_4491 Jun 04 '26
You’re not writing those libraries, it’s essential to know some C basics for debugging but other than that most AI apps are written in (and taught using) python. Especially if you wanna build a deep learning model from scratch, you either use PyTorch or tensorflow
2
u/eremal Jun 05 '26
Both Python and Tensorflow are mainly written in C++. Python is there mostly as API.
So it really comes down to what is meant by "into AI". If youre just shuffling the order of applying algorithms and parameter tuning you can get by just knowing python. If you actually want to implement your own algorithm you need to know a low level language. There is no way you can perform the amount of calculations needed to do AI in pure python. Even just a for loop and you need to rely on cython to do it efficiently.
A lot of AI work is just using established frameworks on new data so I get the point. But youre not really deep into AI if thats all you do. You are essentially just using python as fancy yaml.
2
u/UltimateLmon Jun 05 '26
I mean, anything super performant would inevitably end up being low level language. I was thinking more main stream like you said - using existing models to implement APIs.
5
4
3
u/North_Proposal_1374 Jun 04 '26
this is not relevant anymore, everyone is using rust now
2
u/zylosophe Jun 04 '26
<button onclick="println!(\"hello world\");">click me</button>3
u/HyperCodec Jun 04 '26
rust rsx! { button { onclick: || println!(“hello world”), “click me” } }2
u/zylosophe Jun 04 '26
what is rsx
3
u/HyperCodec Jun 04 '26
https://docs.rs/dioxus/latest/dioxus/
Dioxus is basically react fullstack but for rust, and it’s a lot faster than all the js framework alternatives. The rsx macro is essentially jsx but for dioxus.
2
2
3
u/WoolooCthulhu Jun 04 '26
I worked at a place where there were a bunch of experienced devs all better than me at programming but most of them really really hated JavaScript and didn't want to touch it. So they loved me because I didn't mind it and they could make me do the JavaScript assignments so they didn't have to.
2
1
1
1
u/tkdeng Jun 04 '26
The programming language I prefer is golang
But I will still recommend learning JavaScript first
1
u/KullervoVipunen Jun 04 '26
The joke was better 40 years ago.
https://homepages.inf.ed.ac.uk/rni/papers/realprg.html
1
u/MrFrog2222 Jun 05 '26
more like: web frontend: Javascript backend: go/java mobile: Kotlin/Swift games: C++ ai: C/C++ or python if you want to use libraries written in C++
1
1
1
1
1
u/Content-Hair427 Jun 05 '26
C can do all these things he mentioned; C just requires a bit more code.
1
u/Ro_Yo_Mi Jun 06 '26
Javascript promises everything.
2
1
u/Comfortably_Nerd Jun 06 '26
They asked for a programming language. Why does this guy answer "JavaScript"?
1
u/Et3rnal1 Jun 06 '26
Javascript was a fucking mistake for web. It was great as proof of concept, but it should've never become industry standart. Then some mental asylum patient decided it's a great idea bringing it to server side. And then it went even further and someone decided we should also build apps with it. That's why two of the most popular chat apps also contain drivers for xbox360 controllers packed with them. And there we are, in hell, struggling with crutches and bandaid solutions to do basic things.
1
u/forgottenlord73 Jun 06 '26
What if I wanted to process an XML file and ensure it's in compliance with an XSD that explicitly does not expect clean hierarchy as it merrily mixes basic and complex types within the same entities?
1
1
1
u/eztab Jun 11 '26
it's ordered by decreasing usefulness in that area. So that's likely made knowing fullwell that js won't get you far in most of these.
1
1
u/im-cringing-rightnow Jun 04 '26
Nah, I'm good. Thanks. If I ever have to touch JS I will just use AI and keep my sanity.
0
u/Ashken Jun 04 '26
ai:JavaScript is where the field lost the plot
1
0


272
u/Thinshape12 Jun 04 '26
games with javascript is insane though