|
|
|
|
|
by crimsonalucard
3367 days ago
|
|
My mistake, I shouldn't have used the word "functionality" so I concede. And yes, I meant sets of assembly instructions, thanks for the correction. But this is the basic idea I was trying to convey: that you lose "expressiveness" as you get higher and higher in levels of abstraction. |
|
```asm section .data str: db 'Hello world!', 0Ah str_len: equ $ - str
section .text global _start
_start: mov eax, 4 mov ebx, 1 mov ecx, str mov edx, str_len int 80h mov eax, 1 mov ebx, 0 int 80h ```
In Haskell I don't have to consider any processor.
```hs main = putStr "Hello World" ```
expressiveness is about how much code you need for a certain behavior. It's not about how many (possible fucked up) source files my compiler accepts.