Commit Graph

11174 Commits

Author SHA1 Message Date
Kevin Cantu
2bd482ef11 Add the Alioth chameneos-redux benchmark
This adds a Rust implementation of the Alioth chameneos-redux benchmark:
http://shootout.alioth.debian.org/u64q/performance.php?test=chameneosredux

This version already seems faster than Clojure, Ruby, and OCaml. I'm running
with N=6,000,000 in about 1m 50s.  Further optimization would be good, though.

I'm talking right now with @eholk about how pipes could be used (this is 1:many)...
2012-07-07 22:27:00 -07:00
Brian Anderson
8f9744d92d tutorial: Cleanup 2012-07-07 18:39:58 -07:00
Brian Anderson
c243c11058 Add Benjamin Herr to AUTHORS.txt 2012-07-07 18:33:57 -07:00
Brian Anderson
f3669dfc5d Merge remote-tracking branch 'ben0x539/incoming'
Conflicts:
	doc/tutorial.md
2012-07-07 18:30:54 -07:00
Brian Anderson
f96ec94886 tutorial: Typo 2012-07-07 18:03:32 -07:00
Brian Anderson
f5db5656ba tutorial: Add a few words about shadowing 2012-07-07 18:00:16 -07:00
Brian Anderson
4083e8518d tutorial: Add a section on common vector methods 2012-07-07 17:54:13 -07:00
Brian Anderson
f46e4ba1fb tutorial: Expand the section on vectors 2012-07-07 17:31:39 -07:00
Brian Anderson
6fa64eeb20 tutorial: Pointer cleanup 2012-07-07 16:49:51 -07:00
Brian Anderson
04feb6e1ab tutorial: Add a note about the experimentalness of borrowed pointers 2012-07-07 16:27:59 -07:00
Brian Anderson
7196617669 tutorial: Reorder sections around the memory model discussion
Also some minor tweaks.
2012-07-07 16:23:13 -07:00
Brian Anderson
994c881538 tutorial: Use blockquotes for asides. Add styling 2012-07-07 15:51:11 -07:00
Brian Anderson
3413b3f5c5 tutorial: Expand the section on functions 2012-07-07 15:37:58 -07:00
Brian Anderson
205b483edd tutorial: Discuss failure and asserts together 2012-07-07 15:09:54 -07:00
Brian Anderson
59355e99ca tutioral: Discuss basic function syntax is discussed before the memory model 2012-07-07 15:08:44 -07:00
Niko Matsakis
a856bccdc6 Revert "rustc: Switch to the new resolution pass"
This reverts commit c4af6e92fb.

Branch was burning...many, many unresolved imports.
2012-07-06 20:45:06 -07:00
Ben Blum
f9cb04f6fa vim: hilight option, either, libc types+constants 2012-07-06 22:30:50 -04:00
Ben Blum
b5b8f5efcc change borrowck error msg: 'declared in outer block' -> 'captured in a closure' 2012-07-06 22:30:50 -04:00
Patrick Walton
c4af6e92fb rustc: Switch to the new resolution pass 2012-07-06 19:07:26 -07:00
Brian Anderson
b5f5676a2f tutorial: Use consistent casing in headers 2012-07-06 18:27:42 -07:00
Brian Anderson
28fec95c59 tutorial: Add some work on borrowed pointers 2012-07-06 18:25:39 -07:00
Brian Anderson
af199f2edb tutorial: Expand the section on datatypes 2012-07-06 18:09:59 -07:00
Brian Anderson
ad05996223 tutorial: Fix a test-breaking typo 2012-07-06 18:09:22 -07:00
Brian Anderson
4bb13c69d6 Add 'class' and 'new' to codemirror-rust.js 2012-07-06 17:18:11 -07:00
Brian Anderson
57698fec6c tutorial: Remove some trivia 2012-07-06 17:07:29 -07:00
Graydon Hoare
6b8ebc12db First step on #2826, accept ^ for ty_ptr. 2012-07-06 16:03:51 -07:00
Michael Sullivan
23c73360ca Fix the indenter script to know about the annoying ~ in the front of log strings. 2012-07-06 15:55:56 -07:00
Michael Sullivan
038f925586 Be less eager about implicit borrowing when doing method resolution. Closes #2796. 2012-07-06 15:55:18 -07:00
Graydon Hoare
ceac155211 For #2229, recognize 'again' in place of 'cont', final change pending snapshot. 2012-07-06 15:46:39 -07:00
Eric Holk
e20f63d095 Bank protocol example from blog post 2012-07-06 15:25:06 -07:00
Eric Holk
b925648ac7 Added a k-nucleotide version that uses pipes. 31% speedup. 2012-07-06 15:16:16 -07:00
Brian Anderson
fce064db6b tutorial: Reduce header level for do/for loop sections 2012-07-06 15:10:30 -07:00
Michael Sullivan
9e6b43fb33 Rip out a bunch more append code from trans. 2012-07-06 15:04:57 -07:00
Benjamin Herr
177853c551 tutorial: Formatting fix 2012-07-06 23:55:25 +02:00
Michael Sullivan
702f0cd734 Rename dvec::from_elt to dvec::from_elem. Closes #2792. 2012-07-06 14:52:57 -07:00
Brian Anderson
ea4cd49e9f tutorial: Minor tweak 2012-07-06 14:52:21 -07:00
Brian Anderson
82001412f2 tutorial: Add a section on the memory model 2012-07-06 14:38:05 -07:00
Eric Holk
0e1a6cf3d9 Remove tvec::trans_add 2012-07-06 14:13:52 -07:00
Niko Matsakis
11d868e925 paper over #2586 by not failing when the key is not found 2012-07-06 14:10:40 -07:00
Michael Sullivan
ee0177b908 Move string append to libraries. Closes #2710. 2012-07-06 13:37:56 -07:00
Brian Anderson
8c64a98d65 tutorial: Minor tweaks to intro 2012-07-06 12:20:03 -07:00
Brian Anderson
08a99d6ae1 tutorial: Add a language overview to the introduction 2012-07-06 12:14:36 -07:00
Eric Holk
604f7c66ff Removing locked queue port/chan prototype. 2012-07-06 11:05:28 -07:00
Eric Holk
7b03832c95 Updating tests to use pipes. 2012-07-06 10:42:41 -07:00
Eric Holk
fa4134611d Fixing an infinite type, updating code to match new Early parser, remembering to add protocol parser. 2012-07-06 10:42:40 -07:00
Eric Holk
6806aa0e66 pingpong protocol parses, although I should probably rewrite this to use Paul's Early parser stuff. 2012-07-06 10:42:40 -07:00
Eric Holk
84434bc084 Recursively expand items, and keep expansion stack, per Paul's code review comments. 2012-07-06 10:42:40 -07:00
Eric Holk
d09bcc0131 Adding token tree nonterminals to earley parser. 2012-07-06 10:42:40 -07:00
Eric Holk
f0ef4ef81b You can have any protocol you want, provided it's pingpong.
This integrates the pipe compiler into the proto syntax extension.
2012-07-06 10:42:40 -07:00
Eric Holk
05cdda3a2c Plumbing and parsing for item-position macros. 2012-07-06 10:42:40 -07:00