Re: Is it possible to create a kernel for an operating system in D?

2023-09-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, September 25, 2023 9:31:36 PM MDT I come from chill. via 
Digitalmars-d-learn wrote:
> It seems very obvious, but I have not been able to find any
> information on the subject to confirm this. So I'm wondering if
> it's possible.
>
> ** Maybe I shouldn't have created the account, literally this
> will be one of the few doubts I'll have about D :u, but it'll be
> worth it I guess **.

Yes. It's been done before. In fact, there was a talk at the most recent
dconf from someone who has been working on one:

https://dconf.org/2023/index.html#zachy

The video isn't up yet though, since the videos are currently in the process
of getting rendered and uploaded to youtube.

https://forum.dlang.org/thread/rgevjorzaoeylhwii...@forum.dlang.org

- Jonathan M Davis





Re: Is it possible to create a kernel for an operating system in D?

2023-09-25 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Indeed it is. Many people have done projects in this vein, the language 
isn't the limitation.


If you use the -betterC switch, you can fairly quickly get up and going 
and program a kernel as if you were using C, except with a nicer 
language. All other considerations like linker scripts ext. still apply 
however.


Is it possible to create a kernel for an operating system in D?

2023-09-25 Thread I come from chill. via Digitalmars-d-learn
It seems very obvious, but I have not been able to find any 
information on the subject to confirm this. So I'm wondering if 
it's possible.


** Maybe I shouldn't have created the account, literally this 
will be one of the few doubts I'll have about D :u, but it'll be 
worth it I guess **.


Re: Vibe.d download function, how to get callback when done or error?

2023-09-25 Thread Steven Schveighoffer via Digitalmars-d-learn

On 9/23/23 8:07 AM, j...@bloow.edu wrote:

I'm using download(url, filename) to download files in vibe.d.

The issue is that I do not know when the download is finished or errors. 
There is a callback for the streaming side but not for the file download.




You might misunderstand how vibe is doing async. Basically, that fiber 
is put to sleep until the download is finished, and then you get the 
result. You write your code as if it were synchronous.


If you call this outside of an async context, vibe will start up an 
event loop and run it until your download is done.


-Steve


Re: At D-Conf, Mike Shah's students presented a project. Is it in GitHub? Cant find it.

2023-09-25 Thread Mike Shah via Digitalmars-d-learn

On Saturday, 23 September 2023 at 05:56:31 UTC, WhatMeWorry wrote:

Wanted to study code.

I watched the video talk. But i couldn't see any URL etc.. 
Believe it was called Draw.


https://github.com/abstewart/DRaw