93 lines
3.9 KiB
HTML
93 lines
3.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [zapps-wg] Version of Rust
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="/pipermail/zapps-wg/2017/index.html" >
|
|
<LINK REL="made" HREF="mailto:zapps-wg%40lists.zfnd.org?Subject=Re%3A%20%5Bzapps-wg%5D%20Version%20of%20Rust&In-Reply-To=%3C20171121052746.GB28027%40savin.petertodd.org%3E">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<style type="text/css">
|
|
pre {
|
|
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
|
|
}
|
|
</style>
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="000081.html">
|
|
<LINK REL="Next" HREF="000080.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[zapps-wg] Version of Rust</H1>
|
|
<B>Peter Todd</B>
|
|
<A HREF="mailto:zapps-wg%40lists.zfnd.org?Subject=Re%3A%20%5Bzapps-wg%5D%20Version%20of%20Rust&In-Reply-To=%3C20171121052746.GB28027%40savin.petertodd.org%3E"
|
|
TITLE="[zapps-wg] Version of Rust">pete at petertodd.org
|
|
</A><BR>
|
|
<I>Tue Nov 21 00:27:46 EST 2017</I>
|
|
<P><UL>
|
|
<LI>Previous message (by thread): <A HREF="000081.html">[zapps-wg] Version of Rust
|
|
</A></li>
|
|
<LI>Next message (by thread): <A HREF="000080.html">[zapps-wg] Version of Rust
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#77">[ date ]</a>
|
|
<a href="thread.html#77">[ thread ]</a>
|
|
<a href="subject.html#77">[ subject ]</a>
|
|
<a href="author.html#77">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>On Sat, Nov 18, 2017 at 01:46:10AM +0000, Devrandom wrote:
|
|
><i> I made some progress with walking back the Rust version, getting to
|
|
</I>><i> 2016-04-01 nightly (pre-1.8.0). A rough cut of what I did is here:
|
|
</I>><i>
|
|
</I>><i> <A HREF="https://github.com/devrandom/powersoftau/compare/experiment-devrandom-vendor...devrandom:experiment-devrandom-old-compile">https://github.com/devrandom/powersoftau/compare/experiment-devrandom-vendor...devrandom:experiment-devrandom-old-compile</A>
|
|
</I>><i>
|
|
</I>><i> This doesn't quite get us to when zcash was announced in January of 2016.
|
|
</I>><i> To make further progress, I will look into backporting the question-mark
|
|
</I>><i> operator from
|
|
</I>><i> <A HREF="https://github.com/rust-lang/rust/commit/210dd611aa1bd80ed2f4e663b3c4b87b3cea069a">https://github.com/rust-lang/rust/commit/210dd611aa1bd80ed2f4e663b3c4b87b3cea069a</A>
|
|
</I>><i> to
|
|
</I>><i> an earlier nightly.
|
|
</I>
|
|
Not sure how familiar you are with Rust, but FWIW it might be easier to just
|
|
mechanically replace the question mark operator with the try! macro. For
|
|
example, this line:
|
|
|
|
let alpha_g1_s = read_uncompressed(reader)?;
|
|
|
|
simply becomes:
|
|
|
|
let alpha_g1_s = try!(read_uncompressed(reader));
|
|
|
|
This has the advantage of having compatibility with potentially quite old
|
|
versions of Rust.
|
|
|
|
--
|
|
<A HREF="https://petertodd.org">https://petertodd.org</A> 'peter'[:-1]@petertodd.org
|
|
Type: application/pgp-signature
|
|
Size: 455 bytes
|
|
Desc: Digital signature
|
|
URL: <<A HREF="/pipermail/zapps-wg/attachments/20171121/d294bf97/attachment.sig">/pipermail/zapps-wg/attachments/20171121/d294bf97/attachment.sig</A>>
|
|
</PRE>
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message (by thread): <A HREF="000081.html">[zapps-wg] Version of Rust
|
|
</A></li>
|
|
<LI>Next message (by thread): <A HREF="000080.html">[zapps-wg] Version of Rust
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#77">[ date ]</a>
|
|
<a href="thread.html#77">[ thread ]</a>
|
|
<a href="subject.html#77">[ subject ]</a>
|
|
<a href="author.html#77">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="/mailman/listinfo/zapps-wg">More information about the zapps-wg
|
|
mailing list</a><br>
|
|
</body></html>
|