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

Inb4 assembly

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: 71
Thread images: 5

File: image.jpg (48KB, 640x640px) Image search: [Google]
image.jpg
48KB, 640x640px
What is the most elegant computer programming langauge?
>>
>>57870225
That would be Assembly
>>
Go
>>
Assembly.
>>
>>57870225
>elegant
>indexes are base 1
that's as uncivilized as it can get in programming
>>
>>57870410
0 based indexing is inelegant

Humans count from 1 because there needs to be a one of something for it to exist

Lua is one of the only metaphysically correct languages
>>
Lisp
>>
>>57870225
cobol
>>
You can without consequence replace all examples of "elegant" when referring to programming with "dropout"
>>
>>57870225
Depends on how you define elegance, really.
>>
>>57870452
Access your array using modulus. Oh wait you have to add one like a fucking animal
>>
>>57870225
Unironically Lisp. It's a very simple language but very flexible with an easy syntax.
>>
>>57870620
>accessing an array using modulus
Literally nobody does that.
>>
File: image.jpg (213KB, 2000x2000px) Image search: [Google]
image.jpg
213KB, 2000x2000px
>>57870620
>array

:^)
>>
>>57870225
APL
ML
Rebol
Scheme
Tcl
>>
>>57870225
Lua
>>
The LISP ones. They feel... Organic, somehow. The ALGOL ones on the other hand feel mechanic.
>>
Haskell
>>
>>57870225
Java
>>
>>57872037
Try again.
>>
>>57870382
>>57870232
you people are retarded
>inb4 he cant into assembly
>>
Haskell

Short, compact, functional.
>>
>>57870225
Ruby
>>
>>57870519

Yeah... Cobol++ too ?
>>
I really think well written scala is quite elegant, however I might be biased since it was the first language I learned.
>>
>>57870225
Any LISP checks out.
If I had to name one I'd go for Scheme.
>>
Java
>>
File: 1467138789717.jpg (57KB, 500x500px) Image search: [Google]
1467138789717.jpg
57KB, 500x500px
>>57872311
This
>>
>>57870225
>nobody said C
What the hell? C
>>
>>57872450
only if you know what you're doing

as for everyone saying lisp, they're memeing because they clearly never saw common lisp
>>
File: 1466517748533.gif (443KB, 400x480px) Image search: [Google]
1466517748533.gif
443KB, 400x480px
>>57870225
Python, not even joking.
>>
>>57870410
Fortran starts indexes from 1.
>>
>>57872549
>write program in python
>find it months later
>have no fucking idea what the hell it was supposed to do or does
Yeah nah
>>
>>57872834
Post code
>>
>>57872834
>write program like a mongoloid ape
>no comments
>"hurr durr what it does?"
Kys.
>>
>>57872928
>commenting so you know the type of your variables
And now you realize dynamic typing is shit
>>
>>57872973
>you only use comments to know the variable type
Pajeet, everyone! The best fucking programmer on Earth!
>>
>>57873009
I implied you wont know the type from just reading the source code, retard.
Go read a 20k+ LoC that mostly somebody else wrote in python, you will wish it would be any other language.
>>
>>57873075
Except perl.
>>
>>57873136
Or php. Fuck php.
>>
>>57870225
Perl

eval eval '"'.


('`'|'%').('['^'-').('`'|'!').('`'|',').('{'^'[').('['^'.').('`'|'.').('['^'+').('`'|'!').('`'|'#').
('`'|'+').('{'^'[').('['^'.').'='.'>'.('['^'*').'\\'.'{'.'_'.'='.('{'^'-').('`'^'!').('`'^')')."\;".
'&'.('^'^('`'|'*')).'\\'.'@'.'*'.'#'.'\\'.'$'.('`'^')').'('."'".('`'^',').'*'.'<'."'".')'.('`'^')').
';'.('`'^"'").('^'^('`'|'.')).('`'^'(').'('.('`'^'%').')'.('`'^'%').'<'.'&'.('{'^'*').('{'^'"').'('.
"'".('^'^('`'|'/')).('`'^'/').'('."'".('^'^('`'|'/')).('`'^'(').':'.('^'^('`'|')')).','.'\\'.'@'.'<'
.'&'.']'.('{'^'(').'='.'\\'.'"'.'!'.('`'^'/').'<'.('`'^'"').'!'.('{'^'"').';'.('{'^',').('^'^(('`')|
'+')).('{'^')').'('.'&'.('{'^'.').('`'^'/').'='.'&'.('`'^'!').('`'^'%').'<'.('`'^'"').'!'.('{'^',').
':'.('^'^('`'|'(')).('{'^'*').('`'^',').'('.'&'.('^'^('`'|'/')).('`'^')').(';'&'=').('^'^('`'|',')).
'!'.('`'^')').('^'^('`'|'-')).';'.('`'^'"').'!'.('`'^'(').(';'&'=').('^'^('`'|')')).'('.'\\'.'@'.'<'
.('{'^'-').('{'^'*').('`'^'%').(';'&'=').('^'^('`'|')')).'`'.('`'^'.').('^'^('`'|')')).'&'.('{'^'#')
.('`'^'"').'*'.('^'^('`'|'-')).('`'^',').'*'.'?'.('^'^('`'|'.')).'\\'.'}'.('!'^'+').'"';$:='.'^"\~";
>>
>>57873075

Who writes 20k+ LoC in a scripting language? Thats more retarded than not commenting your code correctly
>>
>>57873075
You would know of you weren't a fucking retarded.

No one is mentally handicapped like you and reading a good source code written in Python, doesn't matter the LoC, it's still piss easy to know what's happening.

But you can't read your own shit, so you might as well kill yourself.
>>
>>57873201
Also this >>57873187
>>
>>57871895
correct
>>
>>57870642
I do.
>>
i like scheme
tcl is elegant in a "holy shit that's simple" kind of way
>>
>>57870382
Great one. But for high level job i would choose C or Python as beautiful and functional
>>
>>57870452
>Humans count from 1 because there needs to be a one of something for it to exist
I'm sorry to have to inform you of this but array indices are memory offsets. It should be obvious that an index of 0 means to offset by nothing, i.e. access the first element.
>>
>>57870642
>What are hash tables
>>
>>57872091
>2016
>can't into assmbly
>>
Perl is the correct answer.
>>
>>57870452
0 based indexing adds a lot of little conveniences.

It's an arbitrary definition, so why not go with the one that makes your life the easiest? (0-based)
>>
Hardly ever used Lua, why is it good?
I knew someone who used it, but the language looked strange compared to what languages I use, granted that was several years ago.
>>
>>57870620
Find the number of elements in your array

Oh wait you have to add one like a fucking animal
>>
>>57874963
>Find the number of elements in your array
array.Length()

?
>>
>>57874939
It's lightweight, easy to pick up and easy to interface with C (compared to things like Python). I'm not a fan of the syntax or rules of the language but I am a fan of its C API.
>>
Basic
>>
>>57870225
Lisp
>>
>>57874939
>>57874978
Basically this. It's rock solid at its C integration and that's the only thing it was designed for and the only thing its good at.

Sure, the language itself is terrible and unremarkable, but people don't care about that. What they care about it is how easy it's going to integrate into their C program, and that's why everybody uses Lua as their scripting interface of choice.
>>
why do people call it "assembly" when it's assembler?

quick, super nintendo chalmers! call a general assembly!
>>
>>57875040
the assembler is the program that assembles though, not the language
>>
File: steal-your-face-plt.jpg (93KB, 623x623px) Image search: [Google]
steal-your-face-plt.jpg
93KB, 623x623px
>>57870225
>Typed variant (static typing)
>Contracts provide precise and easy to read error messages
>Cross-platform GUI library piss easy to use, Carmack's son uses it!
>Piss easy to write new languages in Racket
>Scheme to the core. Hygienic Macros. Simple core syntax.
>Community is always friendly

Racket confirmed for best laguage
>>
>>57870225
and Ruby what's coming on? with this language?
>>
>>57870452
This makes no sense thinking programming-wise.

Your obseevation already proves me you are retarded.

The 0 index is the offset. 0 offset is first element 1 is the second, etc.

Yeah it looks great to have base 1 indexes, but it is a downside if you are an experienced programmer.
>>
>>57870335
This. It's C done right for the modern world.
>>
>>57870232
>>57870382
Anons who don't realize that there are many different assembly languages.
>>
>>57877009
I like x64 or 8086
>>
>>57870452
0 indexing fundamentally comes from the offset concept

e.g. you have some address in memory; that address + 0 is the first entry, + 1 is the second entry, and so on.

Or for example you want to iterate over elements, then you count
for (int i = 0; i < num; i++)
rather than
for (int i = 1; i <= num; i++)
. It's just a tiny bit cleaner
>>
>>57876897
>Garbage collection

no it isn't
>>
>>57877046
You mean x86 and x64 ?

I mean they are the same assembly language, just different/new registers and if you did ever write it you would not like it.

Something like mips is so much nicer
Thread posts: 71
Thread images: 5


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