Help me sort programming languages ​​a bit

so I asked here a few days ago about C # and its principles. Now, if possible, I have some additional general questions about some languages, because for beginners like me this seems a bit confusing. To be precise, I want to know more about the capabilities of language functions than syntax, etc.

Honestly, these are just those special features that bother me and make me so confused. For example, C has its own printf (), Pascal has writeln (), and so on. I know that basically the output in assembler of these functions will be similar, each language has more or less its own special functions. For console output, for file manipulations, etc. But all these functions are de facto part of its OS API, so why, for example, in C, they differ between the standard library functions of C and (on Windows) WinAPI functions, when even printf () has some functions of Windows to use, call part of your function to actually display the desired text in the console window, because the actual "display" is performed by the OS. Where is the line between language features and the system API?

Now I don’t quite understand the languages ​​- Python, Ruby and the like. To be more specific, I know that they are similar to java and C #, as they are compiled into bytecode. But I do not understand what its capabilities are in terms of creating graphical applications. I saw a tutorial on using Ruby to program graphical applications on Linux and Windows. But isn't this just an update? I mean the scope of other textbooks. It seems that these languages ​​were initially intended for small scripts than for creating large applications.

I hope you understand why I am embarrassed. If yes, please help me figure this out, I have no one to ask.

+3
source share
6 answers

​​ - , , . , .

do-not-cross, " " " ". , "" , .

, " ". , / , , .

, , , "" () C: open(), read(), write(), close().

API-, : API- API-.

API , , : fopen(), fputc(), fgetc(), fclose(). , : fprintf(), .

OS API . , . OpenFile(), ReadFile(), WriteFile(), CloseFile(). , , .. PrintLn().

, . , , , , - - (.. ).

+2

C . , printf ... , . C Linux, , Win32, , iPhone - .

, C API Win32 printf, . C (, printf - ..) , , .

, Java, -. : Java , , -. , JVM -, JRE , C.

+2

.

API C OS API - C. Windows MSVCRT.DLL, Linux glibc.

-, GUI- C ++. , , , C/++ API.

-, , -, " ". , , C ++, , , C ++, .

+1

, :

API?

, :

OS API lego lego.

"" - . , .

, "" -.

lego, .

+1

C printf() - . , . Windows Windows API. Linux Linux API. , Windows API. , , Windows, , , , , . API Linux Mac ( , ) , . printf(), .

, API. API OS. , .

Python Ruby ( ) . - , , . . , , , . , , ( ).

, "" : GUI. , , , Bash.

0
-2

Source: https://habr.com/ru/post/1749545/


All Articles