summary refs log tree commit diff
path: root/src/test/bench/shootout-binarytrees.rs
AgeCommit message (Collapse)AuthorLines
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-1/+1
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-06-17auto merge of #14855 : TeXitoi/rust/relicense-shootout-binarytrees, r=brsonbors-8/+38
Everyone agreed. Related to #14248, close #14720 @brson OK?
2014-06-12Relicense shootout-binarytrees.rsGuillaume Pinot-8/+38
Everyone agreed. Related to #14248, close #14720
2014-06-11sync: Move underneath libstdAlex Crichton-2/+1
This commit is the final step in the libstd facade, #13851. The purpose of this commit is to move libsync underneath the standard library, behind the facade. This will allow core primitives like channels, queues, and atomics to all live in the same location. There were a few notable changes and a few breaking changes as part of this movement: * The `Vec` and `String` types are reexported at the top level of libcollections * The `unreachable!()` macro was copied to libcore * The `std::rt::thread` module was moved to librustrt, but it is still reexported at the same location. * The `std::comm` module was moved to libsync * The `sync::comm` module was moved under `sync::comm`, and renamed to `duplex`. It is now a private module with types/functions being reexported under `sync::comm`. This is a breaking change for any existing users of duplex streams. * All concurrent queues/deques were moved directly under libsync. They are also all marked with #![experimental] for now if they are public. * The `task_pool` and `future` modules no longer live in libsync, but rather live under `std::sync`. They will forever live at this location, but they may move to libsync if the `std::task` module moves as well. [breaking-change]
2014-05-28std: Remove format_strbuf!()Alex Crichton-2/+2
This was only ever a transitionary macro.
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-22libcore: Remove all uses of `~str` from `libcore`.Patrick Walton-1/+1
[breaking-change]
2014-05-14test: Remove all uses of `~str` from the test suite.Patrick Walton-3/+3
2014-05-08Handle fallout in bench testsKevin Ballard-0/+1
2014-04-10Remove some internal ~[] from several libraries.Huon Wilson-1/+1
Some straggling instances of `~[]` across a few different libs. Also, remove some public ones from workcache.
2014-03-23iter: remove `to_owned_vec`Daniel Micay-1/+1
This needs to be removed as part of removing `~[T]`. Partial type hints are now allowed, and will remove the need to add a version of this method for `Vec<T>`. For now, this involves a few workarounds for partial type hints not completely working.
2014-02-14extern mod => extern crateAlex Crichton-2/+2
This was previously implemented, and it just needed a snapshot to go through
2014-02-05move concurrent stuff from libextra to libsyncJeremyLetang-2/+2
2014-01-29auto merge of #11868 : bytbox/rust/remove-do, r=alexcrichtonbors-2/+2
Fixes #10815.
2014-01-29Remove do keyword from test/Scott Lawrence-2/+2
2014-01-29extra: move arena to libarenaDavid Manescu-1/+2
In line with the dissolution of libextra - #8784 - moves arena to its own library libarena. Changes based on PR #11787. Updates .gitignore to ignore doc/arena.
2014-01-17Add a generic power functionFlavio Percoco-1/+1
The patch adds a `pow` function for types implementing `One`, `Mul` and `Clone` trait. The patch also renames f32 and f64 pow into powf in order to still have a way to easily have float powers. It uses llvms intrinsics. The pow implementation for all num types uses the exponentiation by square. Fixes bug #11499
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-1/+1
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-07libextra: Introduce typed arenas.Patrick Walton-11/+12
A typed arena is a type of arena that can only allocate objects of one type. It is 3x faster than the existing arena and 13x faster than malloc on Mac.
2013-12-11Make 'self lifetime illegal.Erik Price-2/+2
Also remove all instances of 'self within the codebase. This fixes #10889.
2013-11-26test: Remove all remaining non-procedure uses of `do`.Patrick Walton-2/+2
2013-10-29rewrite shootout-binarytrees.rs to match shootout directivesGuillaume Pinot-50/+46
The old version didn't follow shootout's directives: no memory were deallocated. At the same time, parallelisation of the computation. fix #2913
2013-09-26Update the compiler to not use printf/printflnAlex Crichton-3/+3
2013-09-15Remove {uint,int,u64,i64,...}::from_str,from_str_radixblake2-ppc-1/+1
Remove these in favor of the two traits themselves and the wrapper function std::from_str::from_str. Add the function std::num::from_str_radix in the corresponding role for the FromStrRadix trait.
2013-08-30Revert "src/test/bench: restructure"Corey Richardson-0/+89
This reverts commit 14cdc26e8a7794e437946f46df5769362b42acdf.
2013-08-28src/test/bench: restructureCorey Richardson-89/+0
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-1/+1
- Made naming schemes consistent between Option, Result and Either - Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None) - Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-05Add extra::arena::Arena::new{, _with_size}.OGINO Masanori-4/+4
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2013-07-24fix fmt! usageDaniel Micay-1/+1
2013-07-24Change 'print(fmt!(...))' to printf!/printfln! in src/test/Birunthan Mohanathas-9/+8
2013-07-20Fix warnings in src/test/bench tests. Nobody will ever care.Ben Blum-1/+1
2013-06-23Updated copyright year on shootout-binarytrees.rsMatthijs Hofstra-21/+17
2013-06-23Fixed os:: and int:: not being in scope, changed io::println to printlnMatthijs Hofstra-4/+6
2013-05-22test: Update tests to use the new syntax.Patrick Walton-2/+2
2013-05-02librustc: Update the serializer to work properly with INHTWAMA, removing ↵Patrick Walton-11/+12
mutable fields in the process
2013-03-26test: Fix testsPatrick Walton-4/+5
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-3/+6
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-10-04Remove arg vectors from main functions. Stop supporting them.Brian Anderson-1/+2
2012-09-25use + mode for (almost) everything when not using legacy modesNiko Matsakis-1/+1
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-05test: "import" -> "use"Patrick Walton-2/+2
2012-08-28CamelCasify lots of stdBen Striegel-4/+4
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-6/+6
2012-08-21more sound treatment of fn& regions; change all & to be distinctNiko Matsakis-1/+3
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-1/+1
2012-08-05Switch alts to use arrowsBrian Anderson-2/+2
2012-08-02Purge placement new; Make borrowck know about unary move.Niko Matsakis-4/+5
cc #3071
2012-08-01Convert ret to returnBrian Anderson-4/+4
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-6/+6