[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]

Why isn't there a universal programming language?

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: 128
Thread images: 14

File: VAPYYYY.jpg (63KB, 600x800px) Image search: [Google]
VAPYYYY.jpg
63KB, 600x800px
>>
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.
>>
File: IMG_20160316_171331.jpg (148KB, 513x665px) Image search: [Google]
IMG_20160316_171331.jpg
148KB, 513x665px
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
>>
File: standards.png (24KB, 500x283px) Image search: [Google]
standards.png
24KB, 500x283px
>>
>>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
>>
File: enough.jpg (15KB, 316x202px) Image search: [Google]
enough.jpg
15KB, 316x202px
>>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.
>>
File: reichart-abstraction-diagram[2].png (32KB, 560x250px) Image search: [Google]
reichart-abstraction-diagram[2].png
32KB, 560x250px
>>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 dereferencing
if (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 list
Crystal 
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
>>
File: helperHolmes.jpg (132KB, 882x731px) Image search: [Google]
helperHolmes.jpg
132KB, 882x731px
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;
}
>>
>>58244715
int 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?
>>
File: but that's wrong.jpg (26KB, 500x380px) Image search: [Google]
but that's wrong.jpg
26KB, 500x380px
>>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?
>>
File: Snapchat-1240827813.jpg (80KB, 512x908px) Image search: [Google]
Snapchat-1240827813.jpg
80KB, 512x908px
>>58239788
A universal shit. Everyone agrees on it being horrible.
>>
File: is_this_guy_serious.gif (61KB, 736x689px) Image search: [Google]
is_this_guy_serious.gif
61KB, 736x689px
>>58239859
>only works well on wangblows
>""""universal""""
>>
File: Brionne and Vaporeon.png (179KB, 600x529px) Image search: [Google]
Brionne and Vaporeon.png
179KB, 600x529px
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.
>>
File: CeUzHQXUYAEZ_lB.png (127KB, 550x399px) Image search: [Google]
CeUzHQXUYAEZ_lB.png
127KB, 550x399px
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
>>
File: 1388721551996.png (17KB, 256x256px) Image search: [Google]
1388721551996.png
17KB, 256x256px
>>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.
Thread posts: 128
Thread images: 14


[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.