zlacker

[parent] [thread] 10 comments
1. yason+(OP)[view] [source] 2010-07-07 20:03:40
Writing this in C would be how much slower? Not much.

Modern bloat comes from the software footprint, not so much about performance gains anymore. Compare the UI of MenuetOS with the latest GTK and the 100 shared libraries involved.

It's not so much that C would be slow but that with C and high-level languages it's very easy to do lots of the wrong kind of work.

replies(4): >>jasong+2 >>moomba+e >>mfukar+d1 >>DrJoke+V3
2. jasong+2[view] [source] 2010-07-07 20:04:58
>>yason+(OP)
"Writing this in C would be how much slower? Not much."

Source?

replies(1): >>Locke1+Z51
3. moomba+e[view] [source] 2010-07-07 20:08:31
>>yason+(OP)
I remember when I was taking an assembly class in college we always joked about how ridiculous it would be to write an OS in assembly. I'm surprised someone actually did it.

C is so close to assembly that these seems quite unnecessary. Although I do agree with one of the developer's points that Assembly has a kind of beauty about it.

replies(3): >>philwe+M3 >>tekham+xe >>watmou+ll
4. mfukar+d1[view] [source] 2010-07-07 20:29:18
>>yason+(OP)
Let's not turn this into C vs assembly again. People are free to choose their favourite language to develop a hobbyist OS - and do a pretty good job in the process.
◧◩
5. philwe+M3[view] [source] [discussion] 2010-07-07 21:07:02
>>moomba+e
Back in the day, every OS was written in assembly. Writing Unix in C rather than assembly was actually a controversial innovation at the time.
replies(1): >>mahmud+L7
6. DrJoke+V3[view] [source] 2010-07-07 21:08:44
>>yason+(OP)
The point of writing software in assembly is exactly the same as writing an OS (or even a kernel): fun and self-education. I mean, they probably don't mean to take over the current mainstream x86 operating system with MenuetOS, I believe it's more about fun and learning. The same is true for writing code in assembly; it is a lot of fun (at least for me) and you learn a lot about how the underlying architecture of your chosen platform really works.
replies(1): >>CUVipe+Rk
◧◩◪
7. mahmud+L7[view] [source] [discussion] 2010-07-07 22:22:44
>>philwe+M3
Unix was written in PDP-7 assembly and then ported to C.

The porting to C also cemented C's winning of the systems programming race, and fully liberated systems programmers from the underlying machine. C made the machine-word obselete by standardizing on a few types with relative widths.

If that wasn't the case, something like BLISS would have caught on, and BLISS didn't look the same on different platforms; its data types mapped 1:1 to underlying machine words and you had to deal with explicit alignment, allocation, and linkage. Explicit addressing modes and explicit heap and stack allocation modes. IOW, a royal pain in the butt, even though bliss was expression-based and well thought out (read all about Olin Shivers' praises for Bliss, though personally I don't see why: http://www.paulgraham.com/thist.html)

C is good.

◧◩
8. tekham+xe[view] [source] [discussion] 2010-07-08 01:36:24
>>moomba+e
As pointed out, this was normal. My favourite was RiscOS on the Acorn Archimedes. The GUI OS would boot (off ROM) quicker than the CRT monitor would take to warm up. And that was 20 years ago.
◧◩
9. CUVipe+Rk[view] [source] [discussion] 2010-07-08 05:04:32
>>DrJoke+V3
In fact this is exactly how Linux got its start -- check out Torvalds' "Just For Fun".
◧◩
10. watmou+ll[view] [source] [discussion] 2010-07-08 05:22:25
>>moomba+e
What about writing a dtp package in arm assembler? My first job, check out:

http://www.cconcepts.co.uk/products/publish.htm

Lol. Looking at those dialogs brings it back. I probably laid most of those suckers out.

◧◩
11. Locke1+Z51[view] [source] [discussion] 2010-07-09 02:07:01
>>jasong+2
C wouldn't be slower, it would be faster. See my other comment.
[go to top]