Re: [rust-dev] Find first set

2015-01-12 Thread Kevin McGuire
On Mon, Jan 12, 2015 at 11:12 AM, Matthew Hammer wrote: > Hi Rust Developers, > I’m in need of this bit-level operation: > > http://en.wikipedia.org/wiki/Find_first_set > > I’m happy to implement it as a loop, but it seems like many architectures > support it directly, as does libc. > > Does any

Re: [rust-dev] Rust discourse visibility [Was: Tail call compatibility]

2015-01-12 Thread Kevin McGuire
+1 ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev

Re: [rust-dev] Declaring the API unsafe while keeping the internal safety checks

2015-01-01 Thread Kevin McGuire
Yes unsafe is primarily for memory safety. However! Your idea is good. It would be really good if you could have something like that. I am just not sure what the best way to do it is. It could be done by an attribute and lint with the ability to toggle it off with a module level, function level, or

Re: [rust-dev] Kernel Rust

2014-12-17 Thread Kevin McGuire
Well, actually I notice your code does not check that the UART buffer is full which I think it is supposed to check, however from your mail it seems like it is not outputting anything? On Wed, Dec 17, 2014 at 10:02 AM, Kevin McGuire wrote: > > I saw your post about your rust kernel. Did yo

[rust-dev] Kernel Rust

2014-12-17 Thread Kevin McGuire
I saw your post about your rust kernel. Did you ever figure out what was wrong? Also have you tried using QEMU? First I would verify that your serial code is actually running. You could triple fault the x86_64 to detect if it reaches a certain point. Also setup of serial port on QEMU for x86_64

[rust-dev] ARM illegal instruction

2014-12-17 Thread Kevin McGuire
If you figure this out let me know, or the mailing list. I am curious what is wrong. The only help I can offer is that you try to find the problem. It may or may not be an illegal instruction. Some rust targets trap segmentation faults as illegal instruction. Now you can also try implementing you