--- Log opened Thu Aug 18 00:00:53 2022 00:54 -!- trev [~trev@user/trev] has joined #bitcoin-rust 00:57 -!- trev [~trev@user/trev] has quit [Client Quit] 00:57 -!- trev [~trev@user/trev] has joined #bitcoin-rust 02:00 -!- arturomf94[m] [~arturomf9@2001:470:69fc:105::2:235] has quit [Quit: You have been kicked for being idle] 05:16 -!- MatrixBot1 [~matrixbot@2001:bc8:1828:379::1] has quit [Quit: Bridge terminating on SIGTERM] 05:24 -!- tibo_ [~tibo@fp5a950abc.tkyc110.ap.nuro.jp] has quit [] 05:58 -!- evanlinj1 [~root@gateway/tor-sasl/evanlinjin] has joined #bitcoin-rust 06:17 -!- evanlinj1 [~root@gateway/tor-sasl/evanlinjin] has quit [Ping timeout: 268 seconds] 06:19 -!- evanlinj1 [~root@gateway/tor-sasl/evanlinjin] has joined #bitcoin-rust 06:50 -!- trev [~trev@user/trev] has quit [Remote host closed the connection] 08:38 < stevenroose> Quick poll here.. It's a bit unfortunate that Script is an owned Box, instead of also allowing to be a borrowed slice. In theory it could be a Cow<'a, [u8]> but that would push lifetimes on all mentions of Script and break all people APIs so that's probably really bad. 08:38 < stevenroose> I'm thinking we could have BorrowedScript<'a>(&'a [u8]) 08:40 < stevenroose> But I can't think of a way we could avoid having to re-impl the methods on Script 08:40 < stevenroose> Some kind of Deref construction would be ideal and we could move all inspectors to the borrowed variant with Script keeping them by virtue of the Deref 08:41 < stevenroose> It would be nice if Rust had some trick for Deref and newtype structs that wrap references, but I don't think it exists 08:43 < stevenroose> s/Deref/AsRef/ potentially, but Rust doesn't have the thing where a type T does automatically get the same API of types it AsRefs into, that'd be great too 08:58 < jeremyrubin> stevenroose: i think what you would want is trait ScriptOps, ScriptOpsMut, and maybe ScriptOpsOwned that you implement on Script and BorrowedScript (no ScriptOpsOwned) 08:59 < jeremyrubin> the trick will be that you can use the default implementations because you can bound ScriptOps to be : Deref<&[u8]> or something 09:14 < BlueMatt[m]> > Anyone who integrates Mayhem into a qualified OSS GitHub project will receive $1,000. 09:15 < BlueMatt[m]> For fucks sake, when are companies going to realize this OS really toxic shit 09:15 < BlueMatt[m]> And really obnoxious behavior 10:00 -!- MatrixBot1 [~matrixbot@2001:bc8:1824:bc3::1] has joined #bitcoin-rust 10:22 < BlueMatt[m]> I'm torn about outright closing that PR on the basis of it being a shitty program - companies shouldnt be paying people to create review burden for OSS maintainers, and I'm not super excited about giving someone who created an incomplete PR $1000. At the same time, if it is a company offering free fuzzing resources, that may be nice. 10:22 < BlueMatt[m]> in other news, chaincode is gonna run the rust-bitcoin fuzzers for us in their cluster. 15:11 -!- evanlinj1 [~root@gateway/tor-sasl/evanlinjin] has quit [Remote host closed the connection] 15:12 -!- evanlinj1 [~root@gateway/tor-sasl/evanlinjin] has joined #bitcoin-rust 16:28 -!- tibo [~tibo@240d:1a:afa:4000:a1f3:21cf:51e6:5c9d] has joined #bitcoin-rust --- Log closed Fri Aug 19 00:00:55 2022