Why are old languages so unnecessarily verbose? What language would you use?
Why are old languages so unnecessarily verbose? What language would you use?
It isn't.
Learn Lisp and enjoy simplicity.
10 PRINT "OP IS A FAG"
20 GOTO 10
RUN
Just for me? you make me blush user-kyun
There is an older language than all of those that you seem to forgetting.
printf("x");
...
puts("x");
>Why are old languages so unnecessarily verbose?
incorrect
how do I print shit in Assembly?
Depends on the architecture.
on x86 you can just do a bios call.
@echo off
echo x
x86
mov eax,4
mov ebx,1
mov ecx,x
mov edx,1
int 80h
>mov ecx,x
is this valid in any assembler?
We toast the Lisp programmer who pens his thoughts within nests of parentheses.
Yes? This is a pointer
Wrong!
echo x
works for me
Simplithity
>int 80h
>Not using the syscall instruction
I still have this lying around.
; hello.asm Linux x86_64
; nasm -f elf64 hello.asm -o hello.o
; ld hello.o -o hello
SECTION .data ; Static data loaded when program starts, labels act as pointers to data
hello: DB "Hello world", `\n` ; Hello world string with carriage return
helloLen: EQU $-hello ; Length of string. '$' is current byte location in file
SECTION .bss ; Uninitialized data reserved at start of program goes here
SECTION .text ; Data after here contains instructions to be run
GLOBAL _start
_start: ; entry point for all programs by default, you can specify an alternative when linking
mov rax, 1 ; The system call for x86_64 write (sys_write)
mov rdi, 1 ; File descriptor 1 - standard output
mov rsi, hello ; Put the offset of hello in register rsi, specified in syscall table
mov rdx, helloLen ; Length of string. helloLen is a constant, so we don't need to say
; mov edx,[helloLen] to get it's actual value
syscall ; Call the kernel
mov rax, 60 ; The system call for exit (sys_exit)
xor rdi, rdi ; Exit with return code of 0 (no error)
syscall
english
why? isnt it more stupid to make your language less readable since compiler break it down to machine language.
with Ada.Text_IO;
procedure Hello is
package IO renames Ada.Text_IO;
begin
IO.Put_Line("Hello, world!");
IO.New_Line;
IO.Put_Line("I am an Ada program with package rename.");
end Hello;
printing in java is way worse
>C++ & C have the same levels of language responsibilities
Yeah, that's goofy.
for (def x="kys fag" in 0..10){
println(x)
}
console.log("x")
Python Fag BTFO
No, this is goofy.
printf("x");
Fuck me almost like there's a fantastic language that's beautiful in its simplicity.
Actually its
printf(ā%dā, x)
Which is pretty disgusting desu.
NASM
WRITE(*, '(A,G0.1,A') "Here is variable OP_IS_A_FAG: ", OP_IS_A_FAG, &
". See how easy this is?"
Cargo Cult OOP is to blame for verbosity.