サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
コーヒー沼
llogiq.github.io
This post is based on my RustNationUK ‘24 talk with the same title. I’ll link the talk video once the recording becomes generally available. Here are the slides though. Also, here’s the lyrics of the song I introduced the talk with (sung to the tune of Bob Dylan’s “The times, they are a-changin’”): Come gather Rustaceans wherever you roam and admit that our numbers have steadily grown. The communi
Rust’s generics give us a whole lot of flexibility. A method that takes a trait bound argument does not need to care about the actual type of the argument it is called with. For example: fn parse_read(r: impl Read) -> MyParseableType { todo!(); } However, this will monomorphize the method: For each Read instance, one instance will be created, potentially ballooning up the code size and increasing
01 June 2017 Overall, Rust is pretty good for performance. Write the most simple, naive stuff, and it will usually run within a factor of two from optimized C/C++ code, without any further performance work on the code. With some investment into optimizations, matching or exceeding C’s speed should be possible in most cases. However, Rust makes some tradeoffs for different reasons than sheer speed,
24 March 2016 Not least since last JavaLand I am a fan of mutation testing. However, there is no working crate to do it in Rust yet (There is mutant, but it’s both outdated and far from finished). So because I may cobble the time together to implement it, I’m going to blog the journey to order my thoughts. This post will give a broad overview on the mechanics of mutation testing and the problems w
28 February 2016 This post compares Rust-1.8.0 nightly to OpenJDK-1.8.0_60 It may not be obvious from my other blog entries, but I work as a Java developer. I also freely confess to enjoy it, which probably makes me part of some minority. However, if you’ve been reading some of my other posts, you’ll be hard-pressed to overlook the fact that I really enjoy programming in Rust, too. So, given that
12 December 2015 (This is an extended treatment of the topic of my recent talk at the Rhein-Main Rust Meetup). The code presented should work with Rust 1.3 and following) If you have programmed anything of interest in Rust, you probably know that it has an awesome type system (that enables the propagation of lifetime constraints, among other things). What you may not know is that the type system i
06 September 2015 (This blog post was written with some Rust 1.4.0-nightly) Recently, we’ve begun checking just about all code with clippy, both to see if we can improve something (we could) and to see if we find problems in clippy (we did). Manish started our bout with Servo, and found a few places we could improve. I started with compiletest-rs and produced a pull request, then Manish reminded m
Like with all operators, be wary of implementing those for your type unless you have specific reason to, e.g. it may make sense to define some of them on BitSets (which by the way are no longer part of the standard library as of Rust 1.3.0) or on types representing large integers. Index and IndexMut The Index and IndexMut traits specify the indexing operation with immutable and mutable results. Th
このページを最初にブックマークしてみませんか?
『llogiq.github.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く