EuOS, 3D distance alg's, and fuzzy logic
- Posted by Michael Sabal <mjs at OSA.ATT.NE.JP> Oct 03, 1998
- 554 views
[EuOS] Although I think the participants may be way over their heads and will = abandon the project at the first sign of moths in the tubes, here's my = 1/50 of a dollar, US variety. Wha'chall seem to be doin' is making a *shell* rather than an OS. Now = that's not bad, as WinDeath is anything but a good shell and UNIX/LINUX = already has so many, what's one more. And Euphoria is a great language = to shell with, because of its size and speed (far superior to the = aforementioned shells). =20 An OS needs to be developed from the ground up, not the shell down. = The first step in an OS is the file system. OSes used to be called = DOSes (on all model of systems), meaning Disk Operating System. = Currently, there are about 15 file systems in popular use, and countless = more available. In order to have a DOS worth anything, it need to be = able to access at least two of these file systems, plus its own unique = file system if one exists. ($.02=3Dread the Linux DOCS b/4 you begin. = Very good information about file systems.) Next, the boot program needs to be called (LILO for Linux, IO.SYS for = MS-DOS and (?) Win9x). This defines the hardware interface -- i.e. port = access, bus control, multitasking, memory management, application = management, video management, etc. Finally it calls the shell. The = shell can then access all the utilities and applications. Now, the file = system and boot program must be coded in machine byte code, and written = to the disk boot sector and disk allocation table (or something like = that) byte by byte. =20 Using Euphoria's or WinDeath's file calls will only reinforce the = error-laden Windows file system. So I would strongly recommend sitting = down with a nice cup of milk and reading the 10,000 or so pages of Linux = documentation before you begin an OS. That should tell you just about = all you need to know about building one. Otherwise, an alternative to = the present shells is a very good idea (and leave the hardware to = someone who doesn't know what he's doing <glances at Bill>.) [3D Distance Algorithms] For whoever is still trying to "ge' i' sor'ed", I have a library of 3D = graphics routines on my home page. Some of the physics is off (i.e., = collision and gravity), but it would be easily changable. What is there = is fully functional rotation/revolution code (demonstrated in the Space = Race alpha release, also on the home page), with all division by 0 = errors accounted for, and a perspective check built in. Images are created using planes. Although the routines are not the fastest in the = world (it's pure Euphoria), they do provide a good starting place for = newbies or game hobbyists. [Fuzzy logic] Thanks for the long and informative post about fuzzy logic operators = ;). While I expect the ideal is great, reality just doesn't hold up. = First of all, the laws of probability you studied in high school are = completely invalid. Mathematically, if you flip a coin 10 times and = they are all heads, the probability of the next flip being heads is 50%. = However, we know from experience that the odds of heads coming up are = closer to 25%, getting lower with each subsequent head. Also, have you = used a search engine like Excite recently, which employs fuzzy logic? = The sites marked as 86% are almost never what you want, while the sites = marked 10% are usually right. What gives there? Nice idea, but = fundamentally flawed. Enuf ov mai opinyunz, In Christ, Michael J. Sabal mjs at osa.att.ne.jp http://home.att.ne.jp/gold/mjs/index.html --> For Euphoria programmers.