Rosetta Code:Village Pump/OS specifics: Difference between revisions

reworded slightly
mNo edit summary
(reworded slightly)
 
(5 intermediate revisions by 2 users not shown)
Line 8:
Of course, this shouldn't apply to tasks where the system call is only loosely related to the task: for instance, "print Fibonacci to screen" should probably not be shown for all kinds of screen I/O, as the task is mainly about Fibonacci. But for tasks which are specifically about a system feature, it seems sensible to show how it's done on lesser known systems.
 
Additionnally, for this kind of "system" task, for a given platform it's likely the answer will be similar in most languages, as it often involves some kind of system call available to most languages. This can be annoying - though this would not be the first time several answers on RC are similarly written: in some cases the same algorithm has been translated to dozens of languages.
 
Any thoughts on this?
 
:While no authority on these matters I would say it is better to have multiple entries (for say win32, win64, lin32, and lin64) under one category, not scattered between categories. Speaking of which, I'm far from convinced that X86 and X86-64 Assembly should be different categories. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 16:19, 25 February 2021 (UTC)
::Yes, x86 is yet another matter... There are 16, 32 and 64 bit variants, and many OS-specific variations. On RC, I have mainly seen DOS (16 or 32 bits), Linux (32 or 64) and Windows (32 or 64), but it's far from complete: the UNIX versions will have different system calls, there are also 16-bit Windows (Windows 3.1 era), 16 and 32 bit OS/2, but also Minix, BeOS and Haiku, Plan9 etc. And OpenVMS is [https://vmssoftware.com/ being ported]. See also the Wikipedia categories [[wp:Category:X86_operating_systems]] and [[wp:Category:x86-64 operating systems]]. If we were to provide assembly source for all of these, we would need another RC site! Not even mentioning the CPU peculiarities such as SSE2/3/4, AVX, etc. which could matter on CPU-intensive tasks (linear algebra for instance). Now, I don't think it's the purpose of the site to show everything, and anyway to achieve this we would need people with the knowledge and motivation. My point was that ''programming chrestomathy'' can span to other matters related to libraries and operating systems, and while there are already examples of this on RC, it's not entirely clear where the limit may be, if there is one. I don't plan to go beyond DOS, OS/2, Windows and possibly the most common POSIX operating systems. However, thinking about it, it would be interesting to provide good code for LU decomposition (for instance), on various generations of Intel CPUs, to show the difference and benefit of the newer ones. I might work on it, but not right now. [[User:Bastet|Bastet]] ([[User talk:Bastet|talk]]) 18:56, 25 February 2021 (UTC)
7,794

edits