aboutsummaryrefslogtreecommitdiff
path: root/src/rt/rust_builtin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce str_slice runtime functionBrian Anderson2011-05-111-0/+18
| | | | | | | This reduces the time to execute the new lib-str tests from 1:40ish to a few seconds and will eventually allow the full lib-sha1 test to run in a reasonable amount of time. XFAIL lib-str in stage0 - it will run very slowly until the next snapshot.
* stdlib: Add a Time module to the standard libraryPatrick Walton2011-04-291-0/+29
|
* stdlib/rt: Add an unsafe function to cast immutable vectors to mutable onesPatrick Walton2011-04-271-0/+9
|
* Fix _str.bytes to trivial version.Graydon Hoare2011-04-271-0/+26
|
* stdlib: Add a pointer equality function to the standard library and a test casePatrick Walton2011-04-211-0/+5
|
* Overhaul logging system in runtimeMarijn Haverbeke2011-04-191-63/+52
| | | | | | | | | | | | | | See https://github.com/graydon/rust/wiki/Logging-vision The runtime logging categories are now treated in the same way as modules in compiled code. Each domain now has a log_lvl that can be used to restrict the logging from that domain (will be used to allow logging to be restricted to a single domain). Features dropped (can be brought back to life if there is interest): - Logger indentation - Multiple categories per log statement - I possibly broke some of the color code -- it confuses me
* Move to macro-based logging checks in the C++ codeMarijn Haverbeke2011-04-071-27/+27
| | | | | No functions should be called for log statements that turn out to be inactive.
* Start making the standard-lib utf-8 awareMarijn Haverbeke2011-03-251-0/+21
| | | | | | Finally implements _str.is_utf8, adds from_chars, from_char, to_chars, char_at, char_len, (push|pop|shift|unshift)_char. Also, proper character I/O for streams.
* Placate win32 build; no idea how it can be working currently on tinderbox.Graydon Hoare2011-03-251-1/+10
|
* A first stab at the 'nbody' demo, with support for calling C sqrt().Lindsey Kuper2011-03-251-0/+5
|
* rustc: Open "use"d crates; add a _vec.vec_from_buf() method along the way; ↵Patrick Walton2011-03-241-0/+7
| | | | XFAIL use-import-export.rs in rustc
* Add some mutable variants of vector functions to the standard libraryPatrick Walton2011-03-181-0/+6
|
* rustc: Add str_from_cstr() and str_from_buf() functions to the standard ↵Patrick Walton2011-03-161-0/+23
| | | | library, as well as a test case
* Add functionality for running external programs to the std libMarijn Haverbeke2011-03-141-3/+0
| | | | See lib/run_program.rs.
* Extend stream functionalityMarijn Haverbeke2011-03-141-0/+3
| | | | | | Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live.
* Add basic file-system functionalityMarijn Haverbeke2011-03-141-14/+50
| | | | | std.fs.list_dir will list the files in a directory, std.fs.file_is_dir will, given a pathname, determine whether it is a directory or not.
* Change log buffer butes to a symbolic const in runtime.Graydon Hoare2011-01-141-2/+2
|
* Add std.dbg.trap(str msg) for help debugging.Graydon Hoare2010-12-311-0/+8
|
* Support a special const-value refcount, use it for const strings.Graydon Hoare2010-11-091-3/+9
|
* First pass on splitting stratum and opacity off of effects. WIP.Graydon Hoare2010-11-021-1/+1
|
* Fix bug in bind thunks failing top drop unbound args; add test and adjust ↵Graydon Hoare2010-09-301-0/+4
| | | | rustc to use bind again.
* Add a little pointer-cast helper to dbg.Roy Frostig2010-09-061-0/+13
|
* Add support in dbg.debug_obj for printing the obj body.Roy Frostig2010-08-241-1/+7
|
* Add std.dbg module for inspecting rust values in memory.Roy Frostig2010-08-241-0/+100
|
* Make _io.buf_reader read more than 0 bytes at a time.Roy Frostig2010-08-191-2/+22
|
* Lots of changes around memory managment in the Runtime. Added memory regions ↵Michael Bebenita2010-08-171-2/+2
| | | | and fixed race caused by calling rust_srv::malloc() from multiple threads when sending messages.
* A little tidy-up that should have gone in with ↵Roy Frostig2010-08-121-2/+2
| | | | 4e376852e709844d67f94430d9dc954d5be722b4.
* Add vec debugging utility to _vec module.Roy Frostig2010-08-121-1/+18
|
* Added support for task sleeping in the scheduler.Michael Bebenita2010-08-111-0/+7
|
* Remove commented-out code that slipped in during last commit.Roy Frostig2010-08-111-16/+0
|
* Add native vec[u8] to str converter. Put in workaround for leak in str to ↵Roy Frostig2010-08-111-19/+68
| | | | vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
* Implement _str.len() to return the number of bytes, rename it to byte_len(),Jeffrey Yasskin2010-08-061-0/+6
| | | | and add a test.
* Add a buffered writer to stdlib _io module.Roy Frostig2010-08-041-2/+2
|
* vec_alloc takes four arguments these days, not three.Roy Frostig2010-07-251-1/+1
|
* Expose an RNG (the one used by our runtime) to Rust via std.Roy Frostig2010-07-251-0/+25
|
* Notify copy glue of dst-initialization and fix _vec.alloc issues in lib and ↵Roy Frostig2010-07-221-5/+5
| | | | runtime. Closes #109.
* Added a message passing system based on lock free queues for inter-thread ↵Michael Bebenita2010-07-191-2/+2
| | | | communication. Channels now buffer on the sending side, and no longer require blocking when sending. Lots of other refactoring and bug fixes.
* Change from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call.Graydon Hoare2010-07-051-0/+5
|
* Divide vec fill by element size when reporting vec len.Graydon Hoare2010-07-051-1/+1
|
* Add callable gc method exposed to user code, use it in mlist-cycle.rs test ↵Graydon Hoare2010-06-251-0/+5
| | | | (still not quite working; some memory corruption in the recursive tag constructors, not the GC)
* Populate tree.Graydon Hoare2010-06-231-0/+129