Linked by Conrad Voorsanger on Thu 2nd Jun 2011 16:28 UTC
Original OSNews Interviews OSNews sat down with Ian Seyler, the Founder and Lead Programmer at Return Infinity, the maker and sponsor of Baremetal OS, a 64-bit OS for x86-64 based computers written entirely in Assembly. Editor's note: We'd love to do similar interviews with the people behind other alternative or hobby OS projects. If there's a project that you'd like to learn more about, let us know.
Thread beginning with comment 476045
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: Why not in Forth?
by Alfman on Sat 4th Jun 2011 23:36 UTC in reply to "RE[4]: Why not in Forth?"
Alfman
Member since:
2011-01-28

"But while reading 'Starting Forth' you surely noticed, where I copy the above from? ;) "

Yes.

"...using Forth words, instead of coding in assembly, usually overall size of your code is smaller, when programming in Forth."

We're still talking about compiled x86 code? Honestly I don't understand the logic, but no matter.


"No. Actually, programming in Forth is rather 'designing one's own problem-specific language'...instead of using ready-available high-level function"

This is fine for programming algorithms, and it's probably fine for OS work. However I'd be worried about leaving typical web developers to write their own functions. I imagine this results in a lot of duplicate code between libraries.


"Since I'm Forth-newbie (learning it about year for now), you may be interested in asking these questions on comp.lang.forth, where you'll meet several experienced Forth-programmers"


Thank you for answering my questions. The language seems to have an almost universal quality to it - I think you'll know what I mean by that.

Reply Parent Score: 2

RE[6]: Why not in Forth?
by Zbigniew on Sun 5th Jun 2011 13:06 in reply to "RE[5]: Why not in Forth?"
Zbigniew Member since:
2008-08-28

"...using Forth words, instead of coding in assembly, usually overall size of your code is smaller, when programming in Forth."

We're still talking about compiled x86 code? Honestly I don't understand the logic, but no matter.

If I'm correct, there have been studies into that (Like can an Assembler programmer outperform an optimizing C compiler). Result: Only about 10 percent of programmers can outperform an optimizer.
Ans so I guess, that something similar to the above is behind the logic: Forth makes "dirty work" for you.

"No. Actually, programming in Forth is rather 'designing one's own problem-specific language'...instead of using ready-available high-level function"

This is fine for programming algorithms, and it's probably fine for OS work. However I'd be worried about leaving typical web developers to write their own functions. I imagine this results in a lot of duplicate code between libraries.

Nobody said, that Forth is going to replace HTML. Regarding the libraries: Forth programmers often prefer to "reinvent the wheel" - and to implement the things own way - instead of relying on old, fatty, buggy, and (still more and more) bloated libraries.

Thank you for answering my questions.

You're welcome.

Reply Parent Score: 1

RE[6]: Why not in Forth?
by AndrewZ on Mon 6th Jun 2011 20:56 in reply to "RE[5]: Why not in Forth?"
AndrewZ Member since:
2005-11-15

"..using Forth words, instead of coding in assembly, usually overall size of your code is smaller, when programming in Forth."

We're still talking about compiled x86 code? Honestly I don't understand the logic, but no matter.

It's been a while since I thought of Forth but from my long term storage...
Technically speaking Forth is a compiled language, but technically speaking Forth is not compiled like other high level languages. Forth has no real syntax, it is mostly code 'words' and data on a stack. As such it is already very compact. Forth is very close to the metal, so it is also very optimal. Forth is not for everyone. But if you like it, you love it. If it is for you, you become a Forth zealot and you try to convert all your friends. And of course they become annoyed, because they have never heard of Forth.

Reply Parent Score: 2