There is.
It's called C.
>>58239727
you mean haskell?
there is. it's called 'i would like a big mac meal, please'
input: speech
output: calories
>>58239733
>>58239735
These are funny ways to spell python.
like asking why isn't there a universal spoon that does everything.
>>58239727
Did....did it die?
>>58239727
You mean machine code?
>>58239727
Define "universal".
>>58239784
Define "define".
Ada is THE univeral language
>>58239788
No, everyone knows it's PL/I.
Rust
>>58239750
> Hurr durr everything should be python
"Pythonista" detected.
There is, it's called C#.
Bacause a language drives the developing process in different ways. Bacause we have built languages with different paradigms in order to Crack complexity of the problems we face in developing new software.
>what is binary
>>58239750
Make an OS in python then, shitposter.
>>58239948
Technically you could. You just need to write a compiler for Python.
>>58239989
Really?
This isn't me asking if it really could be done, it's me asking how you could grasp so far and still decide to post.
>>58239733
#include<stdio.h>
main()
{
printf("/thread");
}
>>58239750
>python
>"universal"
>>58239750
Python is a shitty middleware language for making software quick, only to be replaced by a better performing language afterwards.
C++
>>58239727
pseudocode
>>58239996
Actually it would be pretty easy to write a compiler for a limited subset of Python and write a small bootloader and a shell just to show how technologically impaired people here are.
>>58239727
you mean a programming language with which to do everything? not a good idea.
you'll end up with an utterly complex mess of a language spec filled to the brim with tacked-on features like C++, C#, Java, etc.
>>58239727
Vaporeon's are not for blending OP.
There can't be a universal programming language when development focuses differ between projects.
Rust bridges a low level result with abstraction--but what if you just want to script running a few programs? It takes far longer than a Ruby oneliner or piping a mess of things together in your terminal.
JavaScript is probably the closest to being a universal language because it runs on almost everything and has very few requirements--but what if you are working on code that needs every ounce of performance it can get? It's fast, but not that fast.
Different developers have different goals, so certain languages will be better suited depending what those goals are.
>>58240586
I agree with this anon. Please spare the Vaporeon.
Because companies like m$ and Apple like tricking you into developing exclusively for their ecosystem.
Because there are tradeoffs in just about any design decision to be made.
Also the semantics and runtime model of a language is very specific, and so it can not accomodate all use cases. Languages usually have a set of problems that they fit best.
Languages that try to be everything end up being a mass of complexity and not reaching their goal.
Binary. Overhead is always the problem in other scenarios. Maybe in another 100 years when we have crazy compute compatibility. But at that point you can probably tell an vi to write something for you.
>>58239727
It's Java obviously.
>>58239727
What is Python?
>>58240586
Yeah holy shit OP you can't do that to such a cutie
>>58241344
a shitty language
Why /g/ loves Python?
>>58241375
Probably their first language that made them feel like they could actually make something.
I feel the same way towards JavaScript.
>>58241344
a snake
>>58241375
very easy, fast, and fun to write.
very easy to read (unless you try to do some bullshit one line program)
has tons of modules.
industry leader in machine learning and web servers.
if you need performance you can compile parts of your code.
what's not to love?
>why isn't there a universal hammer
Different tools for different jobs.
>>58239733
First answer, best answer.
Also: checked.
>>58239750
Python is literally C.
>>58239727
Assembly /thread
>>58242146
C is literally assembly. Therefore assembly is the universal language.
>>58239727
The universal programming language is assembly. We use high level languages because assembly is a bitch work with. The high level languages are also arguably universal anyway since they are just human readable ways to write machine language with the help of a compiler.
So I guess they're all already universal.
>>58239727
So you talking about some sort of high level language that can be converted to any other language out there?
>>58239727
Assembly.
I chose to learn C first, did I do good /g/?
>>58244013
Assembly isn't universal at all, it's processor specific.
There is.
It's called swift :^)
>>58239727
There is. It's called lambda calculus.
>>58244045
>Undefined behaviour
>deadlock
>NULL dereferencing
>use after free
>overflow by 1
>underflow by 1
nope
>>58239727
I can't stand images like this.
>>58239787#define define
There will never be a universal language as long as people keep learning inefficient high level languages and defend them on the internet.
C was close until C++ came along, then everybody copied C and C++ until there was no hope of ever having a universal standard.
Red is the closest we'll ever get
although I think JULIA attempting to fill that niche too
Anything written for IBM System/360
Most software made 50 years ago still runs on modern hardware with no to minimal changes
>>58239743
I think you got your inputs and outputs messed up there.
>>58244133
forgot pic
>>58244140
That is false.
>>58244145
>OS
>but not Hardware and Drivers
Who needs an OS without the drivers?
>>58244143
No, theyre right.
BigmacCalories = getBigMac("I would like a big Mac meal please")
>>58244100
>deadlock
don't lock an already locked mutex then you fucking retard
>NULL dereferencingif (obj != NULL) { //dereference object
>use after free
don't use after free
>over/underflow by 1
learn the difference between the relational operators
>undefined behavior
this is the one legitimate complaint you have. So much of what people do in C is undefined
>>58244113#define true ((rand()&15)!=15)
>>58244133
julia is quite specific though
>>58244179
>if (obj != NULL)
>Undefined Behaviour
>>58244210
testing if an object is NULL is not undefined behavior
>>58244145
Pretty sure you need ASM to write parts of an OS.
But maybe that's just drivers.
>>58244133
>Red
what
>>58244226
>float obj = q.NaN;
>>58244077
tis true
>>58244227
C can do inline asm when needed. It's actually very common for embedded systems that the vendors sdk has a file with every obscure asm instruction wrapped in a c function. This is mainly used for real time os and abusing all the cool features that your platform has, e.g. halting the core, DSP instructions and interrupt management.
>>58244230
It's the latest meme language
I'm collecting a listCrystal
D
Fancy
IO
Nim
Objeck
Pike
Rebol
Red
Chapel
Cilk
Charm++
Limbo
Unified Parallel C
ParaSail
Xmos-C
ZPL
SYCL
Ceylon
Jolie
Fantom
Frege
Golo
Gosu
X10
Xtend
Nemerle
Haxe
Neko
Assembly
>>58244145
>Implying you can run a computer without Assembly.
Does nobody realize that assembly is built specific to the processors hardware and can't be updated or changed? Assembly is just an easier way of writing opcodes which are just hex/binary numbers giving instructions to the processor.
>>58244187
Are you the devil?
>>58244313
>Crystal but no Ruby/Elixir
>D but no Rust
>Nim but no Python
You've failed
>>58244313
D's gotta be the least memiest
>>58244374
>GC but not really
>>58239859
This
>>58239760
it fainted. pokemon can't die.
>>58244460
No.
>>58244473
But in the first game some girl specifically states, "My Growlithe why did you die?" at lavender town on the first floor of the tower. As much as Nintendo tries to suppress it, Pokemon do die.
>>58239727
>There are 8 programming languages
>"Why isn't there one universal programming language!? We need to make one!"
>There are 9 programming languages
>>58244565
Vaporeon is basically a sapient pool of water in the shape of a doggo. Go read its original dex entry..
#include <iostream>
int main () {
std::cout << "There is." << endl;
std::cout << "It's called C++." << endl;
return 0;
}
>>58244715int main() {
loo << poo;
return 2020;
}
>>58239733
fpbp
>>58239727
It's called "English", or whatever language you write your algorithm/specs in. Then you translate that into some shit programming language.
>>58244597
>>There are 8 programming languages...
>>There are 9 programming languages
9? Ada was created by the DoD after an audit was done and they found that over 400 programming languages were in use by the DoD. And that was late 60's/early 70's.
>>58244313
> Haxe
> meme
Haxe is pretty unique stuff senpai.
>>58239776
Machine code is not universal, it depends on the system architecture, 68k assembly won't work for 386 and mostly it's not even easy to port it
>>58239989
I'm pretty sure python can be compiled already.
>>58241349
>>58240586
>people who have never seen a fluffy thread
>>58239859
How is C# universal?
>>58239907
>all binary code is the same and executes the same on every machine
you must be some special kind of retard
>>58247463
Isn't that to bytecode?
>>58239788
A universal shit. Everyone agrees on it being horrible.
>>58239859
>only works well on wangblows
>""""universal""""
What would your universal programming language look like? How would it balance low-level and speed-critical needs with easy and scriptable oneliners and hacks?
>>58247482
I have the feeling I should tell you to go back to a particular board.
I still agree with >>58240586 though. Don't harm the cutie.
If Rust could run like a script and some scripting abstractions were added, could this language be universal?
>>58244473
>>58244565
They can die: https://youtu.be/Sabgjs0THOQ?t=17m36s
DON'T watch this if you ever plan on playing Gates to Infinity. The thing starts at 17:36.
>>58239727
pick a lisp dialect
>>58244145
Are you implying that C can't be used for scripting? Shameful.
Also the C preprocessor makes for a nice DSL
>>58248254
>being this retarded
c# is not exclusively tied to windows.
>>58240002
>implicit declaration of main()
get the fuck out of here
this should be:#include <stdio.h>
int main(void)
{
puts("/thread");
return 0;
}
>>58240170
It's C
>>58239727
DELET THIS
>>58240170
C with herpes
>>58239727
But there is.
It's called C++.
>>58242105
>what's not to love?
the smell of curry?
>>58250704
Was about to say there isn't a C++ compiler for the Z80 but CCZ80++ is still a thing
I still prefer my C without herpes though
>>58247463
>not to fast enough code
>not to static binary code
>not with original Python semantics
pick at least one
>>58239727
LISP fails at this since the 50s, so why even try.
Even the fact that LISP dialects exist is evidence of its failure.
>>58247548
The Common Language Infrastructure is an open standards, C# being the most popular language for it and the Common Language Runtime (CLR) being the #1 runtime (with Mono in second place).
Common Language Runtime
UNIVERSAL
>>58239787
(define (universal-programming-language) (C))
>>58239784
CIL
>>58239727
Violence.
With the proper application of violence, any computational unit can be programmed. Pyramids can be built and sorted, nations can be destroyed and serialized, and even your waifu can be real.
>>58248566
Yeah but he's still alive though
>>58239727
Violence is so fucking cool
Everyone is using the OP to list their favourite programming language without actually answering OP's question.
>Why isn't there a universal programming language?
Because Gödel's incompleteness theorems state that any system of formal logic (language) will either be incomplete (unable to describe everything) or inconsistent (two logically equivalent statements will give inconsistent results). It's theoretically impossible for a universal language to exist.
>>58254550
>implying this whole thread wasnt just a ruse to get people to argue
Machine code. There is a universal language.
>>58239733
fpbp
>>58254577
>implying I wasn't expecting everyone to argue
I hoped at least someone would try to genuinely answer OP in those 100+ replies.
This board is not what it used to be.
>>58242158
>assembly
>universal
no
>>58239727
It's called math
>>58239727
>C doesn't exist
wrong
>>58255001
> C is a universal language
Wrong
>>58255043
What platform can you not compile C for?
>>58239727
Because different programming languages work better situationally and preferentially.