Michael Bryan

Results 303 comments of Michael Bryan

> So if I understand correctly, you're basically committing the docs from cargo doc to the gh-pages branch? And GH pages will automatically host that? Yep. Essentially everything in the...

I thought I'd make [a more in-depth guide][1] to using inkwell for making programming languages. It's not as simple as @6A's kaleidoscope example (I want to briefly mention parsing with...

I've finished [the parsing section] so next up is the fun part... Generating LLVM IR :grin: Do you guys have any suggestions for turning an AST into a LLVM `Module`?...

Another important point that should be documented is `inkwell`'s lifetimes/ownership story. Here are a couple questions I found myself asking when working on the AST->IR translation: - Is it safe...

I also like enabling several lints on my projects, the `missing_docs` lint is awesome because it makes sure you don't accidentally leave parts of your API undocumented. This is the...

I'm pretty sure I know what it is. If you go to your project's settings and scroll down, there's an option which tells GitHub Pages which branch to use when...

I've found the easiest way to do this sort of thing is by adding `#![deny(missing_docs)]` to the top of `lib.rs` and following the compile errors. Then after you've documented a...

I know gtk-rs encountered a similar problem when emulating inheritance in Rust. They came up with an [IsA] trait which lets you use a child class as its parent. So...

One issue we've been discussing on https://github.com/TheDan64/inkwell/issues/5 is the ability to mark something as `unsafe` to *use*. What about having an `UnsafeFn` marker trait which could be used to tell...

> With `UnsafeFn`, who is setting that contract? I'd say this is done on a case-by-case basis. It's really hard to specify the various invariants and assumptions you make in...