--- Log opened Mon Aug 26 00:00:52 2019 07:03 < elichai2> ideas for names for a competition to rand? i'm currently thinking of `rust-random` but it's kind of taken by them 07:36 < elichai2> if anyone want to give feedback, would be highly appreciated :) planing to publish today https://github.com/elichai/random-rs 08:39 < andytoshi> lol, we could do bitcoin_rand 09:01 < real_or_random> serious_rand :D 09:01 < real_or_random> no that's mean 10:12 < elichai2> Am I dreaming or it's not possible to do 2^-(n+1) in rust without std? (with std you can do for example `(-33f32).exp2()`, without std trying to do `1.0/2u32.pow(33) as f32` will overflow) 10:19 < andytoshi> i mean, you should be able to divide by 2 a bunch of times 10:24 < elichai2> :( 10:24 < elichai2> it looks like it's either dividing in a loop or depending on https://github.com/rust-lang-nursery/libm 10:44 < elichai2> `f32::from_bits((127u32 - 33) << 23)` so this works 10:47 < andytoshi> does rust guarantee any specific representation of floats? 10:49 < elichai2> andytoshi: kindof https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits 10:49 < elichai2> using IEEE-754 10:51 < andytoshi> lol "It turns out this is incredibly portable" in the stdlib docs 10:51 < andytoshi> it sounds like they do say "everything rust supports, uses ieee754" and there is an implication that this won't change 10:52 -!- gribble [~gribble@unaffiliated/nanotube/bot/gribble] has quit [Remote host closed the connection] 10:53 < elichai2> but then their exp2f implementation is a bit weird https://github.com/rust-lang-nursery/libm/blob/master/src/math/exp2f.rs 10:54 < elichai2> altough i'm trying to do 2^i32 which should be easier 10:57 -!- gribble [~gribble@unaffiliated/nanotube/bot/gribble] has joined #rust-bitcoin 11:07 -!- ghost43 [~daer@gateway/tor-sasl/daer] has quit [Read error: Connection reset by peer] 11:07 -!- mryandao [~mryandao@gateway/tor-sasl/mryandao] has quit [Write error: Connection reset by peer] 11:08 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #rust-bitcoin 11:12 -!- mryandao [~mryandao@gateway/tor-sasl/mryandao] has joined #rust-bitcoin 11:35 < elichai2> andytoshi: that's how you do it :) https://travis-ci.org/elichai/Random-trait/builds/576954639 13:14 -!- ghost43 [~daer@gateway/tor-sasl/daer] has quit [Ping timeout: 260 seconds] 13:15 -!- ghost43 [~daer@gateway/tor-sasl/daer] has joined #rust-bitcoin 16:13 < elichai2> FYI https://crates.io/crates/random-trait https://crates.io/crates/random-fast-rng 17:16 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has joined #rust-bitcoin 17:43 -!- TamasBlummer1 [~Thunderbi@p200300DD671264556475842CDF058161.dip0.t-ipconnect.de] has joined #rust-bitcoin 17:45 -!- TamasBlummer [~Thunderbi@p200300DD671264815035A63851C67AC1.dip0.t-ipconnect.de] has quit [Ping timeout: 264 seconds] 17:45 -!- TamasBlummer1 is now known as TamasBlummer 17:46 -!- esotericnonsense [~esotericn@unaffiliated/esotericnonsense] has quit [Read error: Connection reset by peer] 17:48 -!- esotericnonsense [~esotericn@unaffiliated/esotericnonsense] has joined #rust-bitcoin 19:03 -!- elichai2 [uid212594@gateway/web/irccloud.com/x-palnbqflrnedxzmq] has quit [Quit: Connection closed for inactivity] 21:57 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has quit [Remote host closed the connection] 21:57 -!- Dean_Guss [~dean@gateway/tor-sasl/deanguss] has joined #rust-bitcoin 23:22 -!- Kacie17Grimes [~Kacie17Gr@ns334669.ip-5-196-64.eu] has joined #rust-bitcoin --- Log closed Tue Aug 27 00:00:53 2019