Skip to content

Instantly share code, notes, and snippets.

View mzabaluev's full-sized avatar

Mikhail Zabaluev mzabaluev

  • Vantaa, Finland
View GitHub Profile
@mzabaluev
mzabaluev / CHANGELOG.md
Created June 26, 2019 21:19
Changelog generated by github-release-notes

Changelog

v0.3.2 (04/11/2015)

No changelog for this release.


v0.3.1 (23/10/2015)

  • [closed] A generation mode for -sys crates #24

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@mzabaluev
mzabaluev / gobject-introspection-devinstall-HOWTO.md
Last active October 6, 2015 09:43
Setting up gobject-introspection and glib from git for local development

Setting up and building

Assuming glib and gobject-introspection are checked out from git into the current directory.

mkdir ~/devinstall
cd glib
NOCONFIGURE=1 ./autogen.sh  # run once on a fresh checkout
./configure --prefix=$HOME/devinstall
make
@mzabaluev
mzabaluev / bench-collections-7b464d364b33915b88f67213a3329e0a3d997e4d
Created February 22, 2015 22:31
Results of Rust PR #22681 on libcollections benchmarks. Tested on i686-unknown-linux-gnu.
1704 ns/iter (+/- 146) bit::bit_set_bench::bench_bit_vecset_big
31706 ns/iter (+/- 815) bit::bit_set_bench::bench_bit_vecset_iter
1597 ns/iter (+/- 195) bit::bit_set_bench::bench_bit_vecset_small
1114 ns/iter (+/- 22) bit::bit_vec_bench::bench_bit_set_big_fixed
2491 ns/iter (+/- 34) bit::bit_vec_bench::bench_bit_set_big_variable
1097 ns/iter (+/- 15) bit::bit_vec_bench::bench_bit_set_small
96807 ns/iter (+/- 785) bit::bit_vec_bench::bench_bit_vec_big_iter
882 ns/iter (+/- 14) bit::bit_vec_bench::bench_bit_vec_big_union
1497 ns/iter (+/- 18) bit::bit_vec_bench::bench_bit_vec_small_iter
996 ns/iter (+/- 12) bit::bit_vec_bench::bench_usize_small
@mzabaluev
mzabaluev / Makefile.cargo
Last active March 24, 2019 15:39
Drop-in makefile for Cargo projects
CARGO = cargo
CARGO_OPTS =
all:
$(MAKE) build
$(MAKE) doc
build:
$(CARGO) $(CARGO_OPTS) build
@mzabaluev
mzabaluev / foreign-inheritance-and-cast.rs
Last active August 29, 2015 14:07
Reflecting inheritance and dynamic casting from foreign library types
#![feature(associated_types)]
extern crate libc;
use libc::c_void;
use std::mem::transmute;
use std::ops::{Deref, DerefMut};
use mod_a::{A, AsA};
use mod_b::B;