gifnksm
c6a8778ef7
Move BigUint and BigDIgit to std::bigint.
2012-12-22 15:14:26 +09:00
gifnksm
ccc1f8d5e8
Implement BigInt and BigUint.
2012-12-22 15:14:26 +09:00
Graydon Hoare
dbd36111fe
bump 0.5 => 0.6, redirect some URLs in docs.
2012-12-21 15:35:49 -08:00
Erick Tryzelaar
9c673b246c
Remove the old serialization code
...
Closes #3713 .
2012-12-19 18:16:20 -08:00
Erick Tryzelaar
8650c6f683
Switch from serialization to std::serialize. (snapshot)
2012-12-17 20:00:36 -08:00
Brian Anderson
ec9305802b
std: Add flatpipes
2012-12-17 18:46:42 -08:00
Daniel Micay
dd2b32be56
add priority queue implementation (binary heap)
2012-12-16 19:27:05 -08:00
Erick Tryzelaar
786c143a70
Begin renaming serialization to std::serialize. (snapshot)
2012-12-13 18:16:31 -08:00
Graydon Hoare
12c32e944d
Add license boilerplate to more files.
2012-12-10 17:32:58 -08:00
Graydon Hoare
d783f4d7bb
libs: Remove transitionary material on iter_bytes, add workcache to build.
2012-11-30 10:33:16 -08:00
Brian Anderson
16f72df704
Merge remote-tracking branch 'erickt/time'
...
Conflicts:
src/libstd/time.rs
2012-11-28 14:49:58 -08:00
Graydon Hoare
dc34fb9219
std: try to fix breakage.
2012-11-22 23:32:30 -08:00
Graydon Hoare
eeb584ccbd
std: initial sketch of workcache, barely does anything.
2012-11-22 18:31:12 -08:00
Tim Chevalier
9b6f025eb6
Rename thread_pool to task_pool
...
Minor change, no review.
Closes #3972
2012-11-15 12:35:14 -08:00
Patrick Walton
70886d314d
libstd: Implement a thread pool. r=brson
2012-11-07 12:05:41 -08:00
Brian Anderson
1b0c6665d9
Merge remote-tracking branch 'brson/repl'
...
Conflicts:
mk/install.mk
src/rt/rustrt.def.in
2012-11-04 13:42:39 -08:00
Zack Corr
a450119b0b
Move rusti::rl to std::rl
2012-11-04 15:40:57 +10:00
Brian Anderson
d29962f0eb
Move futures to std
2012-10-23 14:46:49 -07:00
Graydon Hoare
57b4d10ff6
bump version to 0.5.
2012-10-12 16:41:32 -07:00
Erick Tryzelaar
e325d029d4
Remove old serialization2 vestigial code
2012-10-09 18:03:07 -07:00
Brian Anderson
016875b1b1
std: Silence remaining warnings
2012-10-05 11:59:51 -07:00
Tim Chevalier
8fc60af441
Remove by-copy mode from std, mostly
...
One instance remains in net_tcp due to a foreign fn. Lots of
instances remain in serialization.rs, but IIRC that is being removed.
I had to do unholy things to task-perf-word-count-generic to get it
to compile after demoding pipes. I may well have messed up its
performance, but it passes.
2012-10-04 19:59:47 -07:00
Graydon Hoare
a06b90322c
Finish de-exporting std. Part of #3583 .
2012-10-04 13:47:24 -07:00
Graydon Hoare
35598b4595
De-export net::*. Part of #3583 .
2012-10-03 17:01:32 -07:00
Tim Chevalier
f33539e446
Remove uses of + mode from libstd
...
More or less the same as my analogous commit for libcore. Had
to remove the forbid(deprecated_modes) pragma from some files -- will
restore it after the snapshot.
2012-10-03 14:05:51 -07:00
Graydon Hoare
654b4d6987
De-export std::{json, getopts}. Part of #3583 .
2012-10-03 13:38:00 -07:00
Graydon Hoare
fb83b40174
De-export std::{ebml, ebml2}. Part of #3583 .
2012-10-03 13:36:39 -07:00
Tim Chevalier
f78cdcb636
Removing explicit uses of + mode
...
This removes most explicit uses of the + argument mode. Pending a
snapshot, I had to remove the forbid(deprecated_modes) pragma from
a bunch of files. I'll put it back!
+ mode still has to be used in a few places for functions that get
moved (see task.rs)
The changes outside core and std are due to the to_bytes trait and
making the compiler (with legacy modes on) agree with the libraries
(with legacy modes off) about modes.
2012-10-02 14:31:39 -07:00
Patrick Walton
9284179311
libstd: Switch off legacy modes in both core and std.
2012-10-02 12:20:06 -07:00
Graydon Hoare
201513e859
De-export std::{fun_treemap, list, map}. Part of #3583 .
2012-10-02 12:04:49 -07:00
Graydon Hoare
fa010a6ee4
De-export std::{uv, uv_ll, uv_iotask, uv_global_loop}. Part of #3583 .
2012-10-01 18:21:41 -07:00
Graydon Hoare
13979eb7e2
De-export std::test. Part of #3583 .
2012-10-01 18:00:14 -07:00
Graydon Hoare
8cc61c816a
De-export std::{rope,smallintmap}. Part of #3583 .
2012-10-01 14:09:09 -07:00
Graydon Hoare
9e6d3cf3c9
De-export std::c_vec. Part of Part of #3583 .
2012-09-28 17:47:36 -07:00
Graydon Hoare
eba5eeaef8
De-export std::deque. Part of #3583 .
2012-09-28 17:21:35 -07:00
Graydon Hoare
e17d998e95
De-export std::{time, prettyprint{,2}, arena}. Part of #3583 .
2012-09-28 16:26:33 -07:00
Graydon Hoare
1948ddf583
De-mode std::unicode. Part of #3583 .
2012-09-28 16:26:18 -07:00
Graydon Hoare
43a9d90b48
De-export std::{arc,comm,sync}. Part of #3583 .
2012-09-28 16:05:45 -07:00
Graydon Hoare
70ae3e7bf2
De-export std::{bitv, cell, timer}. Part of #3583 .
2012-09-28 14:55:43 -07:00
Brian Anderson
bc9efaad9c
std: Eliminate deprecated patterns
2012-09-28 00:22:28 -07:00
Graydon Hoare
fe62ff465c
De-mode std::{treemap,sort}. Part of #3583 .
2012-09-27 18:21:32 -07:00
Graydon Hoare
86041c421d
De-export std::{dbg,sha1,md4,tempfile,term}. Part of #3583 .
2012-09-27 18:03:13 -07:00
Graydon Hoare
1845cf23aa
De-export std::{base64,cmp,par}. Part of #3583 .
2012-09-27 16:43:25 -07:00
Erick Tryzelaar
a1ab7d3cba
libstd: Add serialization2 versions of prettyprint and ebml
2012-09-26 16:20:25 -07:00
Erick Tryzelaar
c0b9986c8f
libstd: change serialization2 to take &self argument methods
...
Unfortunately this trips over issue (#3585 ), where auto-ref isn't
playing nicely with @T implementations. Most serializers don't
care, but prettyprint2 won't properly display "@" until #3585 is
fixed.
2012-09-26 16:20:24 -07:00
Erick Tryzelaar
780b23af73
libstd: add the new trait-based serialization
...
This will need a snapshot before we can convert ebml and rustc
to use the new-style serialization.
2012-09-26 16:20:24 -07:00
Graydon Hoare
dffe188991
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
2012-09-21 18:11:43 -07:00
Brian Anderson
1c39f1968c
std: Clean up crate description
2012-09-19 16:52:59 -07:00
Patrick Walton
e653d493fb
rustc: Remove legacy mode inference, unless #[legacy_modes] is used
2012-09-18 15:53:04 -07:00
Brian Anderson
ea01ee2e9e
Convert 'use' to 'extern mod'. Remove old 'use' syntax
2012-09-11 19:25:43 -07:00
Brian Anderson
1a8a0a77b1
Camel case std::serialization
2012-09-10 19:02:57 -07:00
Brian Anderson
cb7a5395dd
Convert std::map to camel case
2012-09-10 17:08:36 -07:00
Brian Anderson
9007afab0a
std: warn(non_camel_case_types) -> deny
2012-09-09 15:00:29 -07:00
Patrick Walton
47dac47e96
rustc: "import" -> "use" in .rc files
2012-09-05 11:46:25 -07:00
Brian Anderson
a618d0d7ce
std: Convert test to camel case
2012-09-04 18:26:30 -07:00
Brian Anderson
c491bf939e
std: Camel case smallintmap
2012-09-04 16:04:10 -07:00
Brian Anderson
8182497359
std: Camel case sort
2012-09-04 14:37:47 -07:00
Brian Anderson
0684c065a9
std: Camel case treemap
2012-09-04 14:35:43 -07:00
Brian Anderson
3764fe3f2a
std: Camel case list
2012-09-04 14:12:49 -07:00
Brian Anderson
cb0eb66672
std: Camel case the rope module
2012-09-02 17:32:22 -07:00
Brian Anderson
512a769f6f
std: Allow camel case for list type
2012-09-02 15:57:49 -07:00
Brian Anderson
1397c83f11
std: warn(non_camel_case_types) everywhere. still some exceptions
2012-09-02 15:49:36 -07:00
Brian Anderson
dbf6abf6bf
std: Camel case net modules
2012-08-31 15:01:48 -07:00
Brian Anderson
65b05a6ce8
Bump version to 0.4
2012-08-30 14:05:59 -07:00
Brian Anderson
94720fcea7
std: More camel casing
2012-08-29 17:44:29 -07:00
Brian Anderson
ee2ce036cc
Camel case more std types
2012-08-29 16:09:50 -07:00
Ben Blum
09ae370c62
convert std::arc types to camelcase
2012-08-26 21:28:36 -04:00
Ben Blum
edd6d9ea37
convert std::sync types to camelcase
2012-08-26 21:17:36 -04:00
Eric Holk
ca0607051a
Fix compile errors in tutorial tests.
2012-08-16 16:46:20 -07:00
Eric Holk
924e787119
Add std::comm with DuplexStream
2012-08-16 16:46:19 -07:00
Brian Anderson
78d19d8f1b
std: Add cell to the std crate and make it build
2012-08-12 16:26:45 -07:00
Ben Blum
0eae571389
Implement mutex_arc and rw_arc; add some tests
2012-08-10 20:53:09 -04:00
Ben Blum
42825fbea6
Split libcore/arc.rs: arc -> std::arc; exclusive -> unsafe::exclusive
2012-08-10 20:53:09 -04:00
Ben Blum
63b70b2370
Remove std::util
2012-08-02 14:31:58 -04:00
Graydon Hoare
7f60c56c3e
Clean out transitional lint.
2012-08-01 13:35:40 -07:00
Ben Blum
52ed570f1c
Move send_map to libcore
2012-07-30 13:56:14 -04:00
Niko Matsakis
dd106ba763
export send_map and use fewer impl names
2012-07-27 15:49:03 -07:00
Niko Matsakis
8800413f52
wip: add a sendable hashmap to stdlib
...
caveats:
- not efficient nor heavily tested
- API subject to change and currently incompatible with map
2012-07-27 08:50:50 -07:00
Graydon Hoare
dbbaa50290
Nomenclature fixes in the lint checker. Fewer double-negatives.
...
New style is allow(foo), warn(foo), deny(foo) and forbid(foo),
mirrored by -A foo, -W foo, -D foo and -F foo on command line.
These replace -W no-foo, -W foo, -W err-foo, respectively.
Forbid is new, and means "deny, and you can't override it".
2012-07-26 17:08:33 -07:00
Daniel Patterson
ee2abc1cae
Adding simple net::url module to parse and format urls.
2012-07-23 15:44:03 -07:00
Graydon Hoare
aa7b3cc929
Fix some version numbers.
2012-07-11 09:09:08 -07:00
Brian Anderson
7babcf55d7
std: Actually buildbase64
2012-07-05 14:40:51 -07:00
Brian Anderson
73f1f686e9
std: Export base64
2012-07-05 14:39:08 -07:00
Gareth Daniel Smith
be0141666d
convert doc-attributes to doc-comments using ./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-04 19:18:13 -07:00
Jeff Olson
79e279ee12
std: kludge export of net_ip in std.rc until submodule export is sorted
2012-06-29 15:41:54 -07:00
Eric Holk
be664ddd29
Moved arc to libcore and added an arc that allows shared mutable state through mutual exclusion.
2012-06-19 10:31:12 -07:00
Tim Chevalier
0276a3376b
Revert "Moved arc to libstd and added an arc that allows shared mutable state through mutual exclusion."
...
This reverts commit 015527b0ce
.
2012-06-16 15:21:08 -07:00
Eric Holk
015527b0ce
Moved arc to libstd and added an arc that allows shared mutable state through mutual exclusion.
2012-06-15 22:00:58 -04:00
Patrick Walton
d8b113f209
std: Implement a fuzzy-equal interface
2012-06-07 18:12:50 -07:00
Michael Sullivan
6396e2c3c3
Make vecs implicitly copyable for all of our projects.
2012-06-04 19:53:30 -07:00
Eric Holk
ccb54f0ce0
Move par into libstd. Closes #2441 .
2012-05-30 12:03:51 -07:00
Brian Anderson
81b8e20f31
std: Rename uv::hl to uv::iotask. Additional cleanup
2012-05-25 11:03:29 -07:00
Eric Holk
6fa1a084f7
A shareable atomically reference counted pointer wrapper.
...
Needs more tests to ensure safety, and probably some more work on usability too.
2012-05-23 14:58:16 -07:00
Jeff Olson
d02b3dffa4
std: reworking how some net and libuv modules are exported in the rc
...
.. turns out that, without the export, the modules aren't accessible
outside of the crate, itself. I thought that, by importing some module
into another (nesting it) and exporting from that nested module (which
is, itself, exported from std.rc) that my mod would be in the build
artifact. This doesn't appear to be the case. learning is fun!
2012-05-22 22:29:17 -07:00
Jeff Olson
d99b7bcb2f
std: pushing existing code in net.rs -> net_ip.rs and re-import/exporting
2012-05-22 22:29:15 -07:00
Jeff Olson
ffdaf14dd9
initial stab at API for std::net::tcp
2012-05-22 22:29:15 -07:00
Eric Holk
24431520bf
Removing par.rs, since it's not usable now anyway.
2012-05-22 15:31:39 -07:00
Eric Holk
a785f3fc95
Adding a module with parallel vector operations.
...
This should go in libstd, but currently resolve bugs make this not
work.
2012-05-22 15:31:38 -07:00
Niko Matsakis
f9aef928ca
purge ufind
2012-05-18 20:00:50 -07:00
Jeff Olson
7ac8c3081c
std: add std::timer and timer::delayed_send and timer::sleep
...
.. leveraging std::uv, we have:
timer::delayed_send - send a value over a provided channel after the
timeout has passed
timer::sleep - block the current task for the specified period
both of these fns (and everything that goes in timer.rs) leverage the
uv_timer_* API
2012-04-20 15:23:23 -07:00