编译型编程语言Rust v1.14.0 发布

jopen 5年前
   <p style="text-align: center;"><strong><img alt="" src="https://simg.open-open.com/show/8f9dac32e915bcc0c014efc839a62544.png" /></strong></p>    <p> </p>    <p>Rust是一个由Mozilla主导开发的通用、编译型编程语言。它的设计准则为“安全,并发,实用”,支持函数式,并发式,过程式以及面向对象的编程风格。Rust 的设计目标之一,是要使设计大型的互联网客户端和服务器的任务变得更容易。因此更加强调安全性、内存配置、以及并发处理等方面的特性。在性能上,具有额外安全保证的代码会比 C++ 慢一些,但是如果以 C++ 也手工提供保证的情况下,则两者性能上是相似的。</p>    <h2>更新日志</h2>    <ul>     <li><a href="/misc/goto?guid=4958996932944107976"><code>..</code> matches multiple tuple fields in enum variants, structs and tuples</a>. <a href="/misc/goto?guid=4958996933046080005">RFC 1492</a>.</li>     <li><a href="/misc/goto?guid=4958996933133826366">Safe <code>fn</code> items can be coerced to <code>unsafe fn</code> pointers</a></li>     <li><a href="/misc/goto?guid=4958996933236315391"><code>use *</code> and <code>use ::*</code> both glob-import from the crate root</a></li>     <li><a href="/misc/goto?guid=4958996933323667041">It's now possible to call a <code>Vec<Box<Fn()>></code> without explicit dereferencing</a></li>     <li><a href="/misc/goto?guid=4958996933428429005">Mark enums with non-zero discriminant as non-zero</a></li>     <li><a href="/misc/goto?guid=4958996933516925243">Lower-case <code>static mut</code> names are linted like other statics and consts</a></li>     <li><a href="/misc/goto?guid=4958996933609913514">Fix ICE on some macros in const integer positions (e.g. <code>[u8; m!()]</code>)</a></li>     <li><a href="/misc/goto?guid=4958996933730733423">Improve error message and snippet for "did you mean <code>x</code>"</a></li>     <li><a href="/misc/goto?guid=4958996933819314428">Add a panic-strategy field to the target specification</a></li>     <li><a href="/misc/goto?guid=4958996933919292578">Include LLVM version in <code>--version --verbose</code></a></li>     <li><a href="/misc/goto?guid=4958996934018702916">Improve macro expansion performance</a></li>     <li><a href="/misc/goto?guid=4958996934112674594">Shrink <code>Expr_::ExprInlineAsm</code></a></li>     <li><a href="/misc/goto?guid=4958996934210286192">Replace all uses of SHA-256 with BLAKE2b</a></li>     <li><a href="/misc/goto?guid=4958996934307245632">Reduce the number of bytes hashed by <code>IchHasher</code></a></li>     <li><a href="/misc/goto?guid=4958996934407111041">Avoid more allocations when compiling html5ever</a></li>     <li><a href="/misc/goto?guid=4958996934498252021">Use <code>SmallVector</code> in <code>CombineFields::instantiate</code></a></li>     <li><a href="/misc/goto?guid=4958996934606057801">Avoid some allocations in the macro parser</a></li>     <li><a href="/misc/goto?guid=4958996934695153439">Use a faster deflate setting</a></li>     <li><a href="/misc/goto?guid=4958996934794440206">Add <code>ArrayVec</code> and <code>AccumulateVec</code> to reduce heap allocations during interning of slices</a></li>     <li><a href="/misc/goto?guid=4958996934896633122">Optimize <code>write_metadata</code></a></li>     <li><a href="/misc/goto?guid=4958996934995413735">Don't process obligation forest cycles when stalled</a></li>     <li><a href="/misc/goto?guid=4958996935092940528">Avoid many <code>CrateConfig</code> clones</a></li>     <li><a href="/misc/goto?guid=4958996935179230340">Optimize <code>Substs::super_fold_with</code></a></li>     <li><a href="/misc/goto?guid=4958996935285842473">Optimize <code>ObligationForest</code>'s <code>NodeState</code> handling</a></li>     <li><a href="/misc/goto?guid=4958996935371629113">Speed up <code>plug_leaks</code></a></li>     <li><a href="/misc/goto?guid=4958996935468036616"><code>println!()</code>, with no arguments, prints newline</a>. Previously, an empty string was required to achieve the same.</li>     <li><a href="/misc/goto?guid=4958996935575852521"><code>Wrapping</code> impls standard binary and unary operators, as well as the <code>Sum</code> and <code>Product</code> iterators</a></li>     <li><a href="/misc/goto?guid=4958996935670604201">Implement <code>From<Cow<str>> for String</code> and <code>From<Cow<[T]>> for Vec<T></code></a></li>     <li><a href="/misc/goto?guid=4958996935763695736">Improve <code>fold</code> performance for <code>chain</code>, <code>cloned</code>, <code>map</code>, and <code>VecDeque</code> iterators</a></li>     <li><a href="/misc/goto?guid=4958996935860942316">Improve <code>SipHasher</code> performance on small values</a></li>     <li><a href="/misc/goto?guid=4958996935954767866">Add Iterator trait TrustedLen to enable better FromIterator / Extend</a></li>     <li><a href="/misc/goto?guid=4958996936050834529">Expand <code>.zip()</code> specialization to <code>.map()</code> and <code>.cloned()</code></a></li>     <li><a href="/misc/goto?guid=4958996936153635686"><code>ReadDir</code> implements <code>Debug</code></a></li>     <li><a href="/misc/goto?guid=4958996936248867357">Implement <code>RefUnwindSafe</code> for atomic types</a></li>     <li><a href="/misc/goto?guid=4958996936342182799">Specialize <code>Vec::extend</code> to <code>Vec::extend_from_slice</code></a></li>     <li><a href="/misc/goto?guid=4958996936443365168">Avoid allocations in <code>Decoder::read_str</code></a></li>     <li><a href="/misc/goto?guid=4958996936531549597"><code>io::Error</code> implements <code>From<io::ErrorKind></code></a></li>     <li><a href="/misc/goto?guid=4958996936628854597">Impl <code>Debug</code> for raw pointers to unsized data</a></li>     <li><a href="/misc/goto?guid=4958996936734460402">Don't reuse <code>HashMap</code> random seeds</a></li>     <li><a href="/misc/goto?guid=4958996936836848088">The internal memory layout of <code>HashMap</code> is more cache-friendly, for significant improvements in some operations</a></li>     <li><a href="/misc/goto?guid=4958996936938540096"><code>HashMap</code> uses less memory on 32-bit architectures</a></li>     <li><a href="/misc/goto?guid=4958996937026580106">Impl <code>Add<{str, Cow<str>}></code> for <code>Cow<str></code></a></li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958996937127313427" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958996937232091891" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <p>本站原创,转载时保留以下信息:<br /> 本文转自:深度开源(open-open.com)<br /> 原文地址:<a href="http://www.open-open.com/news/view/4f0c299a">http://www.open-open.com/news/view/4f0c299a</a></p>