Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Isaac Woods
    @IsaacWoods
    Give me a sec to find the PR
    Matt Taylor
    @64
    lol ive been recompiling rustc for the last week, i know the pain
    Isaac Woods
    @IsaacWoods
    Also basically means nobody tries out the project or contributes, which I totally get when step 1 is "build my custom fork of rustc"
    Although managarm is pretty established so that shouldn't be as much of a problem
    Matt Taylor
    @64
    well, currently if you want to build managarm you need to spend about 4h compiling shit like llvm and gcc, and we have about 4-6 active contributors
    having binaries provided and a nice build script helps though

    Also basically means nobody tries out the project or contributes, which I totally get when step 1 is "build my custom fork of rustc"

    but yeah, that is a shame

    looks like the RFC is in FCP as of 2 days ago
    Isaac Woods
    @IsaacWoods
    Yah I've been following it and I think it's a good RFC, i agree that having the pebble target is probably jumping the gun
    Matt Taylor
    @64
    i'm a little confused because the RFC doesn't seem to say anything about policy for adding small / hobby etc targets
    Isaac Woods
    @IsaacWoods
    Yah I don't think they have any interest in accepting targets for hobby platforms at all (bar redox), which is a shame
    but a position I get in terms of the health of Rust
    I don't think this RFC is going to change that
    Matt Taylor
    @64
    yeah it's kind of a zero sum game
    Isaac Woods
    @IsaacWoods
    One of the problems I seem to remember is using dependencies with dependencies from std - like I depend on a crate that provides syscall access etc.
    And it having certain dependencies causes std to fail to build
    Not sure if you've come up against that
    Matt Taylor
    @64
    hm so you added a dependency from std on your syscall crate? (presumably so you could skip out libc?)
    Ah no I also have a libc but it's almost empty
    I don't intend to have my syscall interface readily accessible from C, so routing it though libc seemed like a waste of time
    Matt Taylor
    @64
    yeah exactly
    our situation is somewhat similar since all our syscalls are really async and all libc system calls goes through a posix userspace driver
    Isaac Woods
    @IsaacWoods
    So the libc just provide some types that are used in std iirc
    ah right
    Matt Taylor
    @64
    so it would be easier if we had a crate to do the IO directly from rust, but we don't have that yet and i think i'd rather not increase divergence from upstream for small optimisation purposes (given that i already wrote the required libc glue)
    that is interesting though
    i think i'll probably do the classic 'draft up a blog post on my experiences and start a discussion' at some point
    Isaac Woods
    @IsaacWoods
    ah yeah I see, your libc is pretty fleshed out anyway so that might be the easier route
    hm yeah that would be interesting if you do, I have been thinking of trying to push forwards with it but don't have the bandwidth
    Matt Taylor
    @64
    neither do i really but it's ok, university deadlines aren't real
    Isaac Woods
    @IsaacWoods
    ah cool you're a uni student too? and the looming exam season makes them seem more real ;)
    Matt Taylor
    @64
    yeah but my exams shouldn't be too punishing this time around since some is offloaded onto coursework
    Isaac Woods
    @IsaacWoods
    ah very nice, ours have just moved online but are expected to be as punishing
    what's your degree?
    Matt Taylor
    @64
    maths & cs
    you?
    Isaac Woods
    @IsaacWoods
    ah cool
    medicine, hence the OS on the back burner
    Matt Taylor
    @64
    oof
    tbh i should have just done maths instead, the cs part is pretty boring for the most part imo (especially first year)
    Isaac Woods
    @IsaacWoods
    Yeah CS would've been the other option but the degrees in it didn't float my boat
    and I'm nowhere near good enough at maths for a degree in it ;)
    Matt Taylor
    @64
    well, you would certainly make a better mathematician than i would a medic ;)
    Isaac Woods
    @IsaacWoods
    anyone who can build an OS could be a medic, most of preclinical is looking at legacy systems and wondering why things work like that
    Matt Taylor
    @64
    lol
    Isaac Woods
    @IsaacWoods
    it's just a person instead of a codebase ;)
    Daniel Ivkin
    @ivkin25
    Hey there! I need suggestions for a really good and very informative operating systems book to read - so far, my current options are the books Modern Operating Systems, and Three Easy Pieces (a book recommended by phil-opp), and Operating System Concepts. Thanks!
    Rune Tynan
    @CraftSpider
    Hm, is there a good pattern for 'global drivers'? In the blog (V 0.9), all stuff is done with lazy static, however you can't init a lazy static with function arguments it seems, needed for V 0.10's boot_info. For now I resorted to a static mut I only mutably set during init, then ever after access through a helper as an immutable reference, but I was hoping there was a safer/smarter way to do this that I'm just missing