digitalmars.D.learn - Learning D as main systems programming language
- Goran Petrevski (8/8) Jan 08 2014 I'm new in the programming, systems programming especially, but I
- Rikki Cattermole (11/19) Jan 08 2014 Based upon what I've read on the forum:
- Adam D. Ruppe (8/10) Jan 08 2014 Pretty easy if you use GRUB. You can just compile a regular linux
- Jakob Ovrum (6/8) Jan 08 2014 Slices are fine, it's just the slice concatenation operators that
- qznc (4/12) Jan 09 2014 You might want to look into XOmB:
- Goran Petrevski (1/3) Jan 09 2014 Isn't it written in D1? Not sure about that...
- Dejan Lekic (6/9) Jan 10 2014 So what if it is written in D1? :) It should not be a big problem
I'm new in the programming, systems programming especially, but I want to learn D more as a systems programming language and by that I mean avoiding libraries at all. My goal is to write a simple operating system totaly in D (using Assembly wherever is needed) and by progressing in that project, learning this powerfull language as the main systems programming language. Any help/advice on this goal will be really helpful/appreciated. Thanks in advance.
Jan 08 2014
On Wednesday, 8 January 2014 at 23:38:31 UTC, Goran Petrevski wrote:I'm new in the programming, systems programming especially, but I want to learn D more as a systems programming language and by that I mean avoiding libraries at all. My goal is to write a simple operating system totaly in D (using Assembly wherever is needed) and by progressing in that project, learning this powerfull language as the main systems programming language. Any help/advice on this goal will be really helpful/appreciated. Thanks in advance.Based upon what I've read on the forum: Try and get a minimal druntime first. Doing so will make you understand what is required to make it work. You won't have access to the GC so a lot of language features (like slices) are out of the question. There are some copies of druntime floating about for embedded which will probably help you. I don't know how easy it would be to get a bootloader to call a D kernel although it has been done.
Jan 08 2014
On Thursday, 9 January 2014 at 03:36:30 UTC, Rikki Cattermole wrote:I don't know how easy it would be to get a bootloader to call a D kernel although it has been done.Pretty easy if you use GRUB. You can just compile a regular linux program with a linker script and load it right up. My minimal.zip (a bit of a misnomer as it is more than minimal including some experimentation) has some code to run D on bare x86 metal arsdnet.net/dcode/minimal.zip
Jan 08 2014
On Thursday, 9 January 2014 at 03:36:30 UTC, Rikki Cattermole wrote:You won't have access to the GC so a lot of language features (like slices) are out of the question.Slices are fine, it's just the slice concatenation operators that must be disabled. This is easily accomplished by simply not implementing the runtime functions that support them, thus causing a linker error if used.
Jan 08 2014
On Wednesday, 8 January 2014 at 23:38:31 UTC, Goran Petrevski wrote:I'm new in the programming, systems programming especially, but I want to learn D more as a systems programming language and by that I mean avoiding libraries at all. My goal is to write a simple operating system totaly in D (using Assembly wherever is needed) and by progressing in that project, learning this powerfull language as the main systems programming language. Any help/advice on this goal will be really helpful/appreciated. Thanks in advance.You might want to look into XOmB: https://github.com/xomboverlord/xomb
Jan 09 2014
You might want to look into XOmB: https://github.com/xomboverlord/xombIsn't it written in D1? Not sure about that...
Jan 09 2014
On Friday, 10 January 2014 at 00:05:35 UTC, Goran Petrevski wrote:So what if it is written in D1? :) It should not be a big problem to "port" it to D2. Second interesting project that is kinda related to the topic: https://bitbucket.org/timosi/minlibd . More: http://wiki.dlang.org/Other_Dev_ToolsYou might want to look into XOmB: https://github.com/xomboverlord/xombIsn't it written in D1? Not sure about that...
Jan 10 2014