I hereby claim:
- I am andrewgaspar on github.
- I am angasp (https://keybase.io/angasp) on keybase.
- I have a public key ASCnI6uAMSHKa9yuy0uElVqSHwwbwed0ZB_PBP6OC8qzvQo
To claim this, I am signing this object:
| use std::cell::RefCell; | |
| // `generational_arena` is a special type of arena that allows elements to be recycled, and the | |
| // handles allocated from the arena do not hold a borrow on the arena. The handles are later used to | |
| // retrieve concrete borrows on the arena temporarily. The check for live-ness is essentially | |
| // performed at runtime, rather than being checked by the borrow checker. | |
| use generational_arena::{Arena, Index}; | |
| // Allocate `ARENA` at global/thread scope. The arena is wrapped in a RefCell so we can get | |
| // runtime-checked mutable borrows of the arena. |
I hereby claim:
To claim this, I am signing this object:
| // STL Includes | |
| #include <algorithm> | |
| #include <vector> | |
| #include <cstdint> | |
| #include <iostream> | |
| // Third Party Includes | |
| #include <mpi.h> | |
| using std::uint64_t; |
| #include <cstddef> | |
| #include <cstdio> | |
| struct A | |
| { | |
| int a; | |
| }; | |
| struct B | |
| { |
| struct RequestCollection<'a, T: 'a + Copy> { | |
| handles: Vec<bool>, | |
| buffers: Vec<&'a mut [T]>, | |
| } | |
| impl<'a, T: 'a + Copy> RequestCollection<'a, T> { | |
| fn new() -> Self { | |
| RequestCollection { | |
| handles: Vec::new(), | |
| buffers: Vec::new(), |
| #![feature(test)] | |
| extern crate test; | |
| #[macro_use] extern crate itertools; | |
| use test::Bencher; | |
| const VEC_SIZE: usize = 10000; | |
| #[bench] |
| var queryResultsPromise = readListOfQueriesAsync("config.xml") | |
| .then(function(queries) { | |
| return promise.all( | |
| queries.map(searchQueryAsync) | |
| ); | |
| }).then(function(queryResults) { | |
| return writeOutAsync(queryResults); | |
| }); |
| function handleFoobar(error, foobar) { | |
| if(error) output(error); | |
| var bar = deFoo(foobar); | |
| // Matrix multiplication or something | |
| output(bar); | |
| } | |
| fooButton.on("click", function (evt) { | |
| $.get("/foobar/1", handleFoobar); |