summaryrefslogtreecommitdiff
path: root/lib/std
AgeCommit message (Collapse)Author
2017-05-20Add fd mux prototype.pollerOri Bernstein
2017-05-18Add Ocexec.Ori Bernstein
It's useful.
2017-05-16Add std.pread/std.pwriteOri Bernstein
All the systems have it, and it's useful -- why not?
2017-04-23I worried myself, and added a test case.Ori Bernstein
2017-04-22Reserve stack space for the environment.Ori Bernstein
We copied it, but then clobbered it. Shit.
2017-04-09Duplicate env on thread spawn.Ori Bernstein
2017-04-09Add non-allocating closure related functions.Ori Bernstein
Dup closures into buffers.
2017-03-21Add a comment.Ori Bernstein
2017-03-21Give endcache a better name.Ori Bernstein
2017-03-21Merge freed big allocations.Ori Bernstein
This should cut the amount of time we spend bouncing back and forth into the kernel to tweak vm shit.
2017-03-20Align big free sizes.Ori Bernstein
This means that our big allocation sizes will always be page aligned. This also adds tests.
2017-03-20Add hysteresis around big allocations.Ori Bernstein
We don't need anything fancy, just a fixed size chunk of recently allocated blocks. This should make big allocations blindingly fast for repeated allocations of a known size.
2017-03-18We want to remove trailing spaces when tokenizing.Ori Bernstein
Even if we run out of slots, the trailing spaces should be removed.
2017-03-17Don't count trailing elements when hashing bitsets.Ori Bernstein
These don't logically affect the contents, so we shouldn't care what they have.
2017-03-17Add a hash function for bitsets.Ori Bernstein
2017-03-05Merge branch 'master' of git+ssh://git.eigenstate.org/git/ori/mcOri Bernstein
2017-02-20Don't divide by zero.Ori Bernstein
It can trap.
2017-02-19Clean up magic numbers in directories.Ori Bernstein
Counting up byte offsets sucks. This still sucks, but less.
2017-02-16Bulk of porting to NetBSD.Ori Bernstein
This wasn't so bad. Missing: - libthread - auditing all libsys struct types.
2017-02-14Comment why Tynone is not a bug.Ori Bernstein
Self confusion for the win.
2017-02-13Add a 'run' function to libstd.Ori Bernstein
It's useful, and it was missing.
2017-02-13There's nothing that can be done when exec fails.Ori Bernstein
2017-02-07Format minimum values correctly.Ori Bernstein
-x == -x; handle that right.
2017-02-04Ucons are now prefix expressions.Ori Bernstein
It's just what it looks like. This cleans up taking the address of union literals.
2017-02-01Avoid pointer casting by slicing.Ori Bernstein
It's a bit cleaner to do it this way.
2017-01-17Setenv for Plan 9.Ori Bernstein
2017-01-17Add the ability to do setenv() on posixy systems.Ori Bernstein
2017-01-10Use debruijn multiplication to find bit position.Ori Bernstein
Should be faster than loopy branchy testing.
2017-01-10Fix the allocator.Ori Bernstein
It had two bugs that compensated each other. First, an off-by-one in the code that prevented freeing any slabs. Second, the singly linked list of slabs should have been doubly linked. The first prevented the second from mattering. Both should be fixed by this.
2017-01-10Add some missing open flags on some oses.Ori Bernstein
2016-12-25Add isnan() function.Ori Bernstein
2016-12-25Make float parsing stricter.Ori Bernstein
Empty strings are not mumbers.
2016-12-20Add chunk iterator.Ori Bernstein
std.bychunk("abcde", 3) "abc", "de" useful for iterating over blocks of input.
2016-12-16Implement filterfd().Ori Bernstein
We can push a filter onto an fd.
2016-12-11Looks like I forgot to implement bigmodiOri Bernstein
2016-12-11Fix sign extension bugs in division.Ori Bernstein
Also does some cleanup.
2016-12-09Add a few more convenience functions to bigint.Ori Bernstein
2016-12-07Fix bsearch on empty slices.Ori Bernstein
2016-12-06Add htcount.Ori Bernstein
It's useful to know how many entries are in a hashtable.
2016-11-26Add charoffiter.Ori Bernstein
Iterates by character and offset into the rest of the string. (Should this be the offset of the character?)
2016-11-16Allow optional capturing of CLI args directly.Ori Bernstein
No need to iterate to get the arg value.
2016-11-16Zero initialized options are better off as `None.Ori Bernstein
Make the zero value useful.
2016-11-09Shit, committed wrong version.Ori Bernstein
2016-11-09Skip denormalized test on 9front.Ori Bernstein
It's got a spurious failure.
2016-11-08Add byref() iter utility.Ori Bernstein
If you want to mutate the members of the slice, or if you just don't want to do a big memory copy, use this.
2016-10-31Add float parsing support.Ori Bernstein
2016-10-31Fix float assembly masks.Ori Bernstein
2016-10-30Add code to reassemble floats after explodign themOri Bernstein
2016-10-30Add a bunch of convenience functions.Ori Bernstein
2016-10-30Add functions to return inf/nan/...Ori Bernstein