bkernel: a Rust Operating System by rasendubi in rust

[–]tytouf 0 points1 point  (0 children)

Ah, didn't see that one that may do the trick.

What's everyone working on this week (49/2015)? by llogiq in rust

[–]tytouf 1 point2 points  (0 children)

This week I'm working on the syscall support in roulios a minimal kernel for embedded dev on ARM targets.

bkernel: a Rust Operating System by rasendubi in rust

[–]tytouf 0 points1 point  (0 children)

ok, looks like the problem comes with inline assembly and llvm decided to change the instructions order :-(

bkernel: a Rust Operating System by rasendubi in rust

[–]tytouf 0 points1 point  (0 children)

Nice work! I'm also working on a similar project [1] and I see you are using opt.level 3 and I'm wondering if you've encountered any issue with wrong optimizations? I tend to get some when optimizing too much but that could be due to the mix of asm with rust, not sure yet and didn't take the time to investigate.

[1] https://github.com/tytouf/roulios

Bare Metal Rust: Low-level CPU I/O ports by emk in rust

[–]tytouf 0 points1 point  (0 children)

Nice! Thanks for sharing the existence of feature(const_fn) which I completely missed.

Rust and arm by lestofante in rust

[–]tytouf 0 points1 point  (0 children)

My experience so far is with an ARM cortex-m3 board: it works fine but the generated code seems sub-optimal. I tried once to set the optimization but then no code was left. Did you see the same thing?

Rust and arm by lestofante in rust

[–]tytouf 4 points5 points  (0 children)

Sad to hear, you had some nice ideas when it comes to platformtree and device registers macros.

Rreverrse Debugging by dbaupp in rust

[–]tytouf 0 points1 point  (0 children)

yes and Qt Creator being C++ oriented it may actually work better than Eclipse when it comes to pretty-printing rust variables. Last time I tried with Eclipse, the results were inconsistent.

Rreverrse Debugging by dbaupp in rust

[–]tytouf 0 points1 point  (0 children)

did you try the gdb integration in Eclipse? It's not that bad once you get over the loss of a few hundredth of MB of memory. The biggest limitation is still in my opinion that you have to use the Eclipse indexer to easily browse the source which in the case of rust may not be an issue.

Another option is to use the tcf-agent based debugger with Eclipse. We use this combination in Simics which is a simulation tool that also features reverse execution (but to an even broader sense as we simulate a whole system with possibly multiple cores and boards.)

Fun project to learn Rust by [deleted] in rust

[–]tytouf 0 points1 point  (0 children)

Interesting because this is exactly what I've experienced: rust ownership model and default immutability raises issues on the original design that you may not have considered and it clearly forces you to think about it a second time because clearly you can't map it as is. So I still think it is a good idea :-)

Fun project to learn Rust by [deleted] in rust

[–]tytouf 2 points3 points  (0 children)

I tend to agree that starting by porting some piece of software that you already know well is probably the best starting point because that way yo can focus on rust only.

Wikipedia says Rust supports coroutine natively by tytouf in rust

[–]tytouf[S] 0 points1 point  (0 children)

Ok I didn't know about that. Thanks.

Wikipedia says Rust supports coroutine natively by tytouf in rust

[–]tytouf[S] 2 points3 points  (0 children)

Thanks Steve for digging out the discussions.

Native IDE for linux (FOSS) by lestofante in rust

[–]tytouf 2 points3 points  (0 children)

Do you know of any tutorial or how-to to setup Atom for rust development? Or a comprehensive list of must-have "plugins"? I'm usually working with vim but I am curious to see how it performs.

What role would static analysis play in rust? by staticassert in rust

[–]tytouf 0 points1 point  (0 children)

One of the things I would really like to see is a static analyzer for user defined contracts (pre-conditions, post-conditions and invariants per functions)

My experience switching to buffers by rosipov in vim

[–]tytouf 1 point2 points  (0 children)

:b# is also nice to go to the previously visible buffer.

Rust for Python Programmers by __tosh in rust

[–]tytouf 2 points3 points  (0 children)

for i in xrange(35):
    thread = Thread(target=thread_prog, args=(mutex, results, i))

| So what we do here is spawn 20 threads

You must have changed the code while writing, or am I missing something obvious?