Live data from Hacker News

Operating Systems: From 0 to 1

tuhdo.github.io

41–50 of 82 posts

Re: Operating Systems: From 0 to 1

#41
post #32
post #19

Earlier quoted context omitted.

In the Volume 3, it is said that: "In protected mode, the IA-32 architecture provides a normal physical address space of 4 GBytes (2 32 bytes). This is the address space that the processor can address on its address bus. This address space is flat (unsegmented), with addresses ranging continuously from 0 to FFFFFFFFH. This physical address space can be mapped to read- write memory, read-only memory, and memory mapped…

The A20 gate would affect both real and protected mode, so to be truely compliant, you should be opening it even for a protected mode OS. It was originally a purely hardware hack forcing an address line(A20, or the 21st address line) to stay low, thus "wrapping" addresses from 1mb-2mb to 0-1mb, so it would have affected real or protected mode identically. On modern hardware, there is a chance that A20 is (against the…

> On modern hardware, there is a chance that A20 is (against the accepted spec) default open, or possible not implemented.

To nitpick on this a little bit (consider it as a polite supplement):

In Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 3 (3A, 3B, 3C & 3D): System Programming Guide

in section

8.7.13.4 External Signal Compatibility

one can read (emphasis by me):

"A20M# pin — On an IA-32 processor, the A20M# pin is typically provided for compatibility with the Intel 286 processor. Asserting this pin causes bit 20 of the physical address to be masked (forced to zero) for all external bus memory accesses. Processors supporting Intel Hyper-Threading Technology provide one A20M# pin, which affects the operation of both logical processors within the physical processor.

The functionality of A20M# is used primarily by older operating systems and not used by modern operating systems. On newer Intel 64 processors, A20M# may be absent.".

TLDR: The accepted spec is that A20M# might not exist.

Re: Operating Systems: From 0 to 1

#42

Well this has got to be one of the more ambitious things I've seen on HN. I wonder if the guy behind SkyOS is still doing operating systems. http://www.skyos.org/

> I wonder if the guy behind SkyOS is still doing operating systems. http://www.skyos.org/

No, he (Robert Szeleney, http://www.skyos.org/?q=node/411) doesn't. He (together with Heiko Hufnagl) founded a studio for creating software and games for mobile devices:

> https://en.wikipedia.org/wiki/Djinnworks

> http://djinnworks.at/about-new/

Re: Operating Systems: From 0 to 1

#43
post #38

Earlier quoted context omitted.

It is better to proof read for correctness. I myself want to point out few grammatical stuffs and looking for the source in Github. You can simple create a repo or add the source text to the current repo, so that people can easily fix these issues for you by giving pull requests. You don't want people judging this excellent book based on few language quirks here and there.

Thanks. I will upload the source soon. As it is written in Lyx, not sure everyone will find it comfortable though. You can always open an issue in the meantime though.

Great. I just created an issue. You might want to create few guidelines in the repo for creating patches regarding typo/grammatical issues so that you can focus on the actual content of the book. Nice job with the book.

Re: Operating Systems: From 0 to 1

#44
post #38

Earlier quoted context omitted.

It is better to proof read for correctness. I myself want to point out few grammatical stuffs and looking for the source in Github. You can simple create a repo or add the source text to the current repo, so that people can easily fix these issues for you by giving pull requests. You don't want people judging this excellent book based on few language quirks here and there.

Thanks. I will upload the source soon. As it is written in Lyx, not sure everyone will find it comfortable though. You can always open an issue in the meantime though.

Just curious why you chose Lyx and not Org, for example. I still have your "emacs mini manual" open in my browser all the time, so I'm sure you feel natural in org-mode too.

Re: Operating Systems: From 0 to 1

#45
post #36

Earlier quoted context omitted.

Yes, I'm not native. For that reason I tried to use simple grammar and sentences, and did go through paragraph by paragraph through a grammar checker until the end of chapter 4. I will try to improve it gradually.

Regular spellchecker can correct mistyped words, but not, for example, words miused in a particular context, missing the/a, etc. Try some of those more advanced contextual spellcheckers and proofreaders like Grammarly or LanguageTool.

"miused"

https://en.wikipedia.org/wiki/Muphry's_law

If this was intentional - well played. If not - thanks for the unintentional demonstration of Muphry's Law :)

[ten seconds later] Now scanning my own post really carefully for misspellings and grammar errors ;)

Re: Operating Systems: From 0 to 1

#46
post #38

Earlier quoted context omitted.

Thanks. I will upload the source soon. As it is written in Lyx, not sure everyone will find it comfortable though. You can always open an issue in the meantime though.

Just curious why you chose Lyx and not Org, for example. I still have your "emacs mini manual" open in my browser all the time, so I'm sure you feel natural in org-mode too.

Well, Org is suitable for small notes. But for the scope of this book, it's difficult to make Org work for such a complex layout (largely because I don't want to mess with the CSS).

I used Lyx because it enabled me to focus on the content without all the markup text. Writing Latex in Emacs can reduce the distraction, but not enough. I just wanted to focus on the content at the time. Learning Latex is difficult enough, learning how to use the major mode at the same time doubles the difficulty.

Obviously, I still use Emacs daily for writing code and other things. Just not for writing book.

Re: Operating Systems: From 0 to 1

#48

This looks great! I would also like to recommend another free resource that might be a good complement(theory vs implementation) to this: "Operating Systems: Three Easy Pieces" available online at: http://pages.cs.wisc.edu/~remzi/OSTEP/

I haven't yet finished this book, but this is very good book imo. Can recommend.

Re: Operating Systems: From 0 to 1

#49

The grammar makes that book fairly painful to read :-|

Definitely. The content seems to be there, but this would really benefit from some copy-editing.

From just skimming through a few chapters I can completely understand what the author is saying but the grammar is jarring and pulls me out of the book.

Hopefully the author uploads the LaTeX source files to the repo soon. Grammar fixes are pretty trivial.

Post reply on HN