about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
AgeCommit message (Collapse)AuthorLines
2011-03-25Start making the standard-lib utf-8 awareMarijn Haverbeke-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.
2011-03-25Placate win32 build; no idea how it can be working currently on tinderbox.Graydon Hoare-1/+10
2011-03-25A first stab at the 'nbody' demo, with support for calling C sqrt().Lindsey Kuper-0/+5
2011-03-24rustc: Open "use"d crates; add a _vec.vec_from_buf() method along the way; ↵Patrick Walton-0/+7
XFAIL use-import-export.rs in rustc
2011-03-18Add some mutable variants of vector functions to the standard libraryPatrick Walton-0/+6
2011-03-16rustc: Add str_from_cstr() and str_from_buf() functions to the standard ↵Patrick Walton-0/+23
library, as well as a test case
2011-03-14Add functionality for running external programs to the std libMarijn Haverbeke-3/+0
See lib/run_program.rs.
2011-03-14Extend stream functionalityMarijn Haverbeke-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.
2011-03-14Add basic file-system functionalityMarijn Haverbeke-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.
2011-01-14Change log buffer butes to a symbolic const in runtime.Graydon Hoare-2/+2
2010-12-31Add std.dbg.trap(str msg) for help debugging.Graydon Hoare-0/+8
2010-11-09Support a special const-value refcount, use it for const strings.Graydon Hoare-3/+9
2010-11-02First pass on splitting stratum and opacity off of effects. WIP.Graydon Hoare-1/+1
2010-09-30Fix bug in bind thunks failing top drop unbound args; add test and adjust ↵Graydon Hoare-0/+4
rustc to use bind again.
2010-09-06Add a little pointer-cast helper to dbg.Roy Frostig-0/+13
2010-08-24Add support in dbg.debug_obj for printing the obj body.Roy Frostig-1/+7
2010-08-24Add std.dbg module for inspecting rust values in memory.Roy Frostig-0/+100
2010-08-19Make _io.buf_reader read more than 0 bytes at a time.Roy Frostig-2/+22
2010-08-17Lots of changes around memory managment in the Runtime. Added memory regions ↵Michael Bebenita-2/+2
and fixed race caused by calling rust_srv::malloc() from multiple threads when sending messages.
2010-08-12A little tidy-up that should have gone in with ↵Roy Frostig-2/+2
4e376852e709844d67f94430d9dc954d5be722b4.
2010-08-12Add vec debugging utility to _vec module.Roy Frostig-1/+18
2010-08-11Added support for task sleeping in the scheduler.Michael Bebenita-0/+7
2010-08-11Remove commented-out code that slipped in during last commit.Roy Frostig-16/+0
2010-08-11Add native vec[u8] to str converter. Put in workaround for leak in str to ↵Roy Frostig-19/+68
vec[u8] converter. Add testcase exercising both. Drive-by fix a potential array-out-of-bounds write on rust_str buffers.
2010-08-06Implement _str.len() to return the number of bytes, rename it to byte_len(),Jeffrey Yasskin-0/+6
and add a test.
2010-08-04Add a buffered writer to stdlib _io module.Roy Frostig-2/+2
2010-07-25vec_alloc takes four arguments these days, not three.Roy Frostig-1/+1
2010-07-25Expose an RNG (the one used by our runtime) to Rust via std.Roy Frostig-0/+25
2010-07-22Notify copy glue of dst-initialization and fix _vec.alloc issues in lib and ↵Roy Frostig-5/+5
runtime. Closes #109.
2010-07-19Added a message passing system based on lock free queues for inter-thread ↵Michael Bebenita-2/+2
communication. Channels now buffer on the sending side, and no longer require blocking when sending. Lots of other refactoring and bug fixes.
2010-07-05Change from 'spawner' to 'supervisor' in rust_task, and add an unsupervise call.Graydon Hoare-0/+5
2010-07-05Divide vec fill by element size when reporting vec len.Graydon Hoare-1/+1
2010-06-25Add callable gc method exposed to user code, use it in mlist-cycle.rs test ↵Graydon Hoare-0/+5
(still not quite working; some memory corruption in the recursive tag constructors, not the GC)
2010-06-23Populate tree.Graydon Hoare-0/+129