2021-06-19 11:27:04 --> wymiller (~wyatt@096-042-164-072.res.spectrum.com) has joined ##rust 2021-06-19 11:27:04 -- Topic for ##rust is "Unofficial channel for the Rust programming language | Don't ask to ask, just ask! | Code of conduct: https://rust-lang.org/policies/code-of-conduct | evalr2: «code» to run Rust code | Other chat/help venues: https://rust-lang.org/community" 2021-06-19 11:27:04 -- Topic set by mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) on Sun, 30 May 2021 09:05:42 2021-06-19 11:27:04 -- Channel ##rust: 585 nicks (1 op, 0 voices, 584 normals) 2021-06-19 11:27:06 -- Channel created on Wed, 19 May 2021 08:20:38 2021-06-19 11:36:34 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-19 11:44:57 capitol how annoying, some update broke lexical-core-0.6.2, and it's down in my dependecy stack 2021-06-19 11:46:50 --> trev (~trev@user/trev) has joined ##rust 2021-06-19 11:53:30 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-19 12:01:47 zipper Hey, rust people. I have an interesting problem. I'm trying to get_mut different parts of a struct that wraps a vec but I can't. 2021-06-19 12:01:56 zipper Worse still I can't reproduce it 2021-06-19 12:04:28 --> GNUcifer (~ct@i59F4BE39.versanet.de) has joined ##rust 2021-06-19 12:05:18 GNUcifer blubb ... i should setup some better identify 2021-06-19 12:06:40 -- GNUcifer is now known as cehteh 2021-06-19 12:07:06 bertptrs zipper: what do you mean "can't reproduce it"? 2021-06-19 12:07:53 cehteh danieldg Mutabah : https://crates.io/crates/bintest .. that was pretty easy 2021-06-19 12:09:08 zipper Something was wrong with my connection 2021-06-19 12:09:19 zipper Did you see the pasted I posted? 2021-06-19 12:09:43 zipper How do I test whether I'm even online? I have a bad internet connection 2021-06-19 12:10:20 meltyness it depends on if your internet connection has a good internet connection 2021-06-19 12:11:11 bertptrs zipper: I did not see your paste, no 2021-06-19 12:12:06 zipper Okay, umm so this paste doesn't work https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c6be07242a9b372b411f27c04c42f367 2021-06-19 12:12:21 zipper but this attempt at reproducing it does https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=45982b4b477efa1be9569316a51f9849 2021-06-19 12:12:45 zipper Basically the borrow checker feels that I'm mutably borrowing twice 2021-06-19 12:13:33 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has quit (Remote host closed the connection) 2021-06-19 12:14:05 bertptrs you are, once on the left hand of the assignment and again on the right 2021-06-19 12:14:21 bertptrs no wait I'm reading the error wrong 2021-06-19 12:15:07 zipper bertptrs: the problem happens when I want to call cmp::max() 2021-06-19 12:15:19 zipper and I call get_score 2021-06-19 12:17:39 danieldg zipper: the compiler does not try to prove that two calls to get_score don't point to the same element 2021-06-19 12:18:05 --> chrysanthematic (~chrysanth@user/chrysanthematic) has joined ##rust 2021-06-19 12:18:33 danieldg zipper: so your mwavefront could alias the later get_score. Aliasing mut references are not allowed. 2021-06-19 12:18:47 zipper How come it doesn't happen when I try to reproduce the error which could also have the same thing happen? 2021-06-19 12:19:00 danieldg your reproduction didn't do that 2021-06-19 12:19:22 bertptrs zipper: non-lexical lifetimes 2021-06-19 12:19:26 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Quit: leaving) 2021-06-19 12:19:37 zipper I don't understand what you mean :) 2021-06-19 12:19:39 danieldg zipper: the issue is that you *use* mwavefront again 2021-06-19 12:19:57 <-- chrysanthematic (~chrysanth@user/chrysanthematic) has quit (Client Quit) 2021-06-19 12:20:06 zipper I see 2021-06-19 12:20:09 danieldg zipper: if you never used mwavefront (etc) it wouldn't be an issue 2021-06-19 12:20:25 danieldg becuase then those borrows could end around line 124 2021-06-19 12:20:35 bertptrs the compiler is allowed to drop things early if 1. you don't use it anymore and 2. the thing does not implement Drop 2021-06-19 12:22:29 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 252 seconds) 2021-06-19 12:22:31 danieldg zipper: you either need to do all this with interior mutability (Cell, Mutex, etc) or use split_at_mut to divide the list of scores into the "write half" and "read half" 2021-06-19 12:23:04 <-- starblue3 (~juergen@dslb-094-221-183-243.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 268 seconds) 2021-06-19 12:23:12 danieldg (assuming that you only read from indexes less than you write to) 2021-06-19 12:23:17 zipper Oh boy. I forgot those parts of Rust. I'll read up on interior mutability. 2021-06-19 12:23:30 --> chrysanthematic (~chrysanth@user/chrysanthematic) has joined ##rust 2021-06-19 12:23:34 <-- medwards (~medwards@ip5f5bf4cd.dynamic.kabel-deutschland.de) has quit (Ping timeout: 244 seconds) 2021-06-19 12:24:07 danieldg zipper: basically, this is safe if you use & not &mut 2021-06-19 12:24:15 --> Celeo (~Celeo@2603-8001-3301-2e00-3068-1ccc-7f3d-2906.res6.spectrum.com) has joined ##rust 2021-06-19 12:24:39 zipper danieldg: Yeah but I have use mut because I want to mutate what's inside it. 2021-06-19 12:24:51 danieldg if offsets is Vec> then you don't need &mut to change the values 2021-06-19 12:25:05 danieldg (Cell is nice here because it has no overhead) 2021-06-19 12:25:18 danieldg if you need thread-safety, use AtomicUsize 2021-06-19 12:28:08 bertptrs Cell has *minimal overhead. Having it present pessimizes certain compiler optimizations 2021-06-19 12:32:43 --> hawk1 (~hawk@13.67.67.200) has joined ##rust 2021-06-19 12:35:15 zipper Thanks guys. I'll try it out and get back to you 2021-06-19 12:43:12 <-- Mutabah (~tpg@124.189.161.194) has quit (Ping timeout: 244 seconds) 2021-06-19 12:43:24 --> Mutabah (~tpg@124.189.161.194) has joined ##rust 2021-06-19 12:43:58 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-19 12:48:26 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-06-19 12:52:00 <-- bowlofeggs (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-19 12:53:02 --> bowlofeggs (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-19 13:06:16 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-19 13:08:20 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-19 13:09:59 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-19 13:10:56 <-- darkapex (uid360049@user/darkapex) has quit (Quit: Connection closed for inactivity) 2021-06-19 13:14:30 <-- hawk1 (~hawk@13.67.67.200) has quit (Ping timeout: 265 seconds) 2021-06-19 13:18:33 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-19 13:18:50 meltyness :( I learned golang in like 8 hours 2021-06-19 13:20:27 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-19 13:21:21 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-19 13:22:10 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-06-19 13:22:17 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has joined ##rust 2021-06-19 13:22:49 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-06-19 13:23:05 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-19 13:23:12 --> pwnd_sfw5 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-19 13:24:15 --> xse (~xse@user/xse) has joined ##rust 2021-06-19 13:24:24 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-06-19 13:24:24 -- pwnd_sfw5 is now known as pwnd_sfw 2021-06-19 13:24:37 danieldg compared to RefCell or Mutex, though, Cell is really cheap. And I recall some of those optimizations are still turned off due to LLVM bugs. 2021-06-19 13:26:49 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-06-19 13:27:16 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Quit: penguino) 2021-06-19 13:27:38 --> xse (~xse@user/xse) has joined ##rust 2021-06-19 13:27:38 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-19 13:27:43 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 268 seconds) 2021-06-19 13:28:54 Polochon_street hi! I have a library with a type `Analysis`, which consists of just several f32 fields, which can also just be transformed as a vec / arr1 using `to_vec` / `to_arr1`. I'd like to give the user the ability to implement custom distance metrics between two analyses, something like `custom_distance(&self, analysis2, )` 2021-06-19 13:29:35 Polochon_street and I'm wondering about which types the closure should take: two vecs? Two arr1? Two f32 arrays? 2021-06-19 13:29:36 danieldg Polochon_street: so like std does with comparators on sort_by? 2021-06-19 13:29:42 Polochon_street yes! 2021-06-19 13:30:02 Polochon_street I mean, most likely people will want to use arr1, because it's so much easier to do operations with 2021-06-19 13:30:31 danieldg you could provide wrappers that convert as needed, like sort_by_key does 2021-06-19 13:30:33 Polochon_street but I'm not really sure whether that's good? 2021-06-19 13:30:53 danieldg (sort_by_key is just a wrapper that builds a sort_by closure) 2021-06-19 13:33:15 --> pragma- (~chaos@user/pragmatic-chaos) has joined ##rust 2021-06-19 13:33:38 --> talin (~unknown@hydra.org) has joined ##rust 2021-06-19 13:34:20 talin hello. i am wondering what 2usize.pow() is here: Counter::new(8).map(|n| 2usize.pow(n as u32)).collect(); 2021-06-19 13:35:11 demize It calculates 2 to the power of n. 2021-06-19 13:35:14 danieldg 2_usize (with or without _) means 2 2021-06-19 13:35:15 talin is that the same as "2 as usize"? and then calling pow() on that? 2021-06-19 13:35:21 danieldg yes 2021-06-19 13:35:26 talin hmm, i see 2021-06-19 13:35:30 talin thank you 2021-06-19 13:38:19 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-06-19 13:39:50 --> xse (~xse@user/xse) has joined ##rust 2021-06-19 13:41:00 <-- chrysanthematic (~chrysanth@user/chrysanthematic) has quit (Quit: chrysanthematic) 2021-06-19 13:41:24 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-06-19 13:42:18 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 264 seconds) 2021-06-19 13:42:37 --> xse (~xse@user/xse) has joined ##rust 2021-06-19 13:43:49 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-06-19 13:44:26 --> xse (~xse@user/xse) has joined ##rust 2021-06-19 13:51:11 <-- xse (~xse@user/xse) has quit (Quit: mwah) 2021-06-19 13:54:13 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-19 14:03:34 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-19 14:09:54 <-- hendursaga (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-06-19 14:10:18 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-19 14:18:12 --> jinsun_ (~quassel@user/jinsun) has joined ##rust 2021-06-19 14:18:33 <-- jinsun (~quassel@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-19 14:19:15 --> hendi (sid489601@id-489601.tooting.irccloud.com) has joined ##rust 2021-06-19 14:26:05 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-19 14:27:02 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-19 14:27:54 Polochon_street https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6a06d8511df6d2bcc68bd97768760eaf how does that look? 2021-06-19 14:28:08 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-19 14:28:27 Polochon_street I'm afraid that by making `F` (in custom_distance) taking &[f32], users won't realize using Array1 would be easier 2021-06-19 14:29:11 Polochon_street but then if I change the signature to `Array1`, I guess users would depend on ndarray (though my crate already depends on it, not sure whether that changes anything) 2021-06-19 14:31:11 danieldg Polochon_street: expose both if you think people would find them useful 2021-06-19 14:31:30 danieldg Polochon_street: also, prefer FnMut to Fn if you are asking for a closure 2021-06-19 14:31:48 danieldg or even FnOnce 2021-06-19 14:32:29 Polochon_street danieldg: how could I expose both of them? 2021-06-19 14:32:37 danieldg two functions 2021-06-19 14:33:19 j`ey does Array1: Into<&[f32]> or some other conversion? 2021-06-19 14:34:59 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-19 14:35:31 Polochon_street I think it does 2021-06-19 14:38:04 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 252 seconds) 2021-06-19 14:39:43 <-- Evergreen (~me@user/evergreen) has quit (Quit: Goodbye) 2021-06-19 14:40:12 --> Evergreen (~me@user/evergreen) has joined ##rust 2021-06-19 14:41:12 <-- chrizz (~chrizz@user/chrizz) has quit (Quit: leaving) 2021-06-19 14:42:18 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-19 14:43:52 --> Wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-19 14:47:50 -- lisq_ is now known as lisq 2021-06-19 14:50:01 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-19 14:52:18 --> chrysanthematic (~chrysanth@user/chrysanthematic) has joined ##rust 2021-06-19 14:55:22 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-19 15:01:33 <-- luna-is-here (~quassel@2a02:908:f761:2a3c::a) has quit (Ping timeout: 268 seconds) 2021-06-19 15:01:56 --> luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has joined ##rust 2021-06-19 15:10:10 --> retak (~ite@i5e867320.versanet.de) has joined ##rust 2021-06-19 15:10:23 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-19 15:15:28 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-19 15:15:52 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-19 15:16:34 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 252 seconds) 2021-06-19 15:26:09 --> starblue3 (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has joined ##rust 2021-06-19 15:38:03 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-19 15:40:41 -- jinsun_ is now known as jinsun 2021-06-19 15:42:42 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-19 15:44:27 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has quit (Quit: Leaving) 2021-06-19 15:46:04 --> chrizz (~chrizz@user/chrizz) has joined ##rust 2021-06-19 15:49:21 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-19 15:51:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-19 15:58:27 <-- chrizz (~chrizz@user/chrizz) has quit (Quit: leaving) 2021-06-19 16:03:03 <-- dcz (~dcz@dynamic-093-133-045-081.93.133.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-06-19 16:05:23 -- veegee_ is now known as veegee 2021-06-19 16:08:20 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-19 16:09:50 --> psydroid (~psydroidm@user/psydroid) has joined ##rust 2021-06-19 16:13:42 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-19 16:20:53 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-19 16:20:58 <-- frostschutz (~frostschu@2a01:c22:c819:6f00:b59a:20ec:36bc:630e) has quit (Quit: Leaving) 2021-06-19 16:21:07 <-- jeaye (~jeaye@user/jeaye) has quit (Quit: WeeChat 2.7.1) 2021-06-19 16:22:23 --> jeaye (~jeaye@user/jeaye) has joined ##rust 2021-06-19 16:24:26 <-- msavoritias (~msavoriti@mobile-access-b0484d-56.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-06-19 16:33:18 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-19 16:38:21 <-- canton7 (canton7@about/csharp/canton7) has quit (Quit: ZNC - http://znc.in) 2021-06-19 16:40:31 --> canton7 (canton7@about/csharp/canton7) has joined ##rust 2021-06-19 16:41:55 --> alekhine (~alekhine@c-73-38-152-33.hsd1.ma.comcast.net) has joined ##rust 2021-06-19 16:42:28 <-- retak (~ite@i5e867320.versanet.de) has quit (Ping timeout: 252 seconds) 2021-06-19 16:44:04 <-- jeaye (~jeaye@user/jeaye) has quit (Quit: WeeChat 2.9) 2021-06-19 16:45:54 --> booleandilemma (~booleandi@cpe-158-222-168-92.nyc.res.rr.com) has joined ##rust 2021-06-19 16:47:08 --> jeaye (~jeaye@user/jeaye) has joined ##rust 2021-06-19 16:48:19 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-19 16:49:30 <-- starblue3 (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has quit (Ping timeout: 264 seconds) 2021-06-19 16:49:40 <-- tha (~user@2001:19f0:5001:2f1c:5400:3ff:fe69:32fc) has quit (Quit: tha) 2021-06-19 16:51:41 <-- booleandilemma (~booleandi@cpe-158-222-168-92.nyc.res.rr.com) has left ##rust (Leaving) 2021-06-19 16:57:27 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-19 16:57:43 --> chrizz (~chrizz@user/chrizz) has joined ##rust 2021-06-19 16:58:27 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-06-19 16:58:48 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-19 16:59:08 <-- neceve (~quassel@2a02:c7f:607e:d600:a95a:ecd2:e57a:3130) has quit (Ping timeout: 252 seconds) 2021-06-19 16:59:59 <-- Shell (~shell@user/shell) has quit (Ping timeout: 244 seconds) 2021-06-19 17:00:22 --> bsdbandit (~bwell@users.757.org) has joined ##rust 2021-06-19 17:02:11 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-19 17:04:16 <-- llorllale (~llorllale@2607:9880:3a18:69:7d7d:74d2:7a88:5069) has quit (Quit: WeeChat 3.2) 2021-06-19 17:09:32 <-- sjaustirni (~sjaustirn@user/sjaustirni) has quit 2021-06-19 17:16:12 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-19 17:17:44 --> barnaby (~barnabywa@213-147-164-51.nat.highway.webapn.at) has joined ##rust 2021-06-19 17:17:56 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-19 17:18:23 --> starblue3 (~juergen@dslb-094-221-183-243.094.221.pools.vodafone-ip.de) has joined ##rust 2021-06-19 17:18:55 Arnavion Can you use slice patterns to make a &[T] as a &[T; N] without having to write N individual bindings in the pat? 2021-06-19 17:19:41 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 268 seconds) 2021-06-19 17:20:43 Arnavion Something like let s: &[u8] = ...; match s { [foo @ [u8; 16], bar @ [u8; 4]] => { /* foo: &[u8; 16], bar: &[u8; 4] */ } } instead of having 20 bindings or doing split_at(16) + two try_into()s 2021-06-19 17:21:53 --> mebus (~mebus@2a00:8a60:e019:10de::ac22) has joined ##rust 2021-06-19 17:22:36 mebus Hi! I am new to rust. I have got a zip::read::ZipFile object. Is it possible to read from it line by line? 2021-06-19 17:23:04 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-19 17:23:06 <-- Mavrik (~Mavrik@virag.si) has quit (Remote host closed the connection) 2021-06-19 17:23:27 Arnavion It impls std::io::Read, yes https://docs.rs/zip/0.5.13/zip/read/struct.ZipFile.html#impl-Read 2021-06-19 17:23:42 --> Mavrik (~Mavrik@virag.si) has joined ##rust 2021-06-19 17:23:45 --> Shell (~shell@user/shell) has joined ##rust 2021-06-19 17:23:52 Arnavion So just like an std::io::Read impl, you can put it in a std::io::BufReader and use its read_line() 2021-06-19 17:24:20 GreenJello it doesn't seem to specify what the Read produces, though 2021-06-19 17:24:37 --> img (~img@user/img) has joined ##rust 2021-06-19 17:24:48 <-- chrysanthematic (~chrysanth@user/chrysanthematic) has quit (Quit: chrysanthematic) 2021-06-19 17:24:56 Arnavion The file contents 2021-06-19 17:26:30 GreenJello oh, by "zip file" it means "file in a zip file"? 2021-06-19 17:26:56 bertptrs As opposed to ZipArchive, yes 2021-06-19 17:27:01 Arnavion Yes 2021-06-19 17:27:40 Arnavion Reading a .zip line-by-line wouldn't have made sense in the first place 2021-06-19 17:27:42 --> bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has joined ##rust 2021-06-19 17:30:32 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-19 17:31:06 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-19 17:31:09 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 265 seconds) 2021-06-19 17:32:11 Polochon_street hi again, I pasted https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b54231eef6c3ea9dc7de0b1a325298bb earlier today, and I have another dilemma - should any `distance` function live in `Analysis`, actually? Since I can access `Analysis` from `Song`, would it make sense to put all the distance functions in `Song`? 2021-06-19 17:32:37 Polochon_street `Analysis` is only there because it can also be pretty-printed with named fields (not shown here) 2021-06-19 17:32:50 -- Gustavo6046_ is now known as Gustavo6046 2021-06-19 17:33:01 Polochon_street it seems a bit silly to have `song.distance()` that calls in turn `song.analysis.distance()` tbh 2021-06-19 17:33:31 <-- Wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-19 17:53:19 <-- Celeo (~Celeo@2603-8001-3301-2e00-3068-1ccc-7f3d-2906.res6.spectrum.com) has quit (Quit: Leaving) 2021-06-19 17:59:27 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-19 17:59:42 --> Celeo (~Celeo@2603-8001-3301-2e00-212b-f103-c7e9-42d7.res6.spectrum.com) has joined ##rust 2021-06-19 18:04:48 kee Polochon_street: Can you get around this with dereferencing? 2021-06-19 18:06:03 --> metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has joined ##rust 2021-06-19 18:07:32 <-- alekhine (~alekhine@c-73-38-152-33.hsd1.ma.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-19 18:07:54 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 252 seconds) 2021-06-19 18:08:45 Polochon_street kee: how would you do that? 2021-06-19 18:09:05 Polochon_street (`Song` has more fields than that, I've removed them for simplicity's sake) 2021-06-19 18:23:41 --> Wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-19 18:25:51 Wilfred what's the best way to see if a Vec contains a &str? 2021-06-19 18:25:53 Wilfred https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=52f296b87822be0055aa5efba73d3bed 2021-06-19 18:26:08 Wilfred usually I can use &str and &String interchangeably, so this case caught me out 2021-06-19 18:26:55 j`ey maybe: .iter().any(|v| v == s) 2021-06-19 18:27:16 daemon could do with some function like perls 'ref' that just returns a stringified version og type 2021-06-19 18:27:27 daemon just as a utility lib would be nice 2021-06-19 18:27:46 j`ey what you wrte doesnt work because the contains function wants &T (aka &String) 2021-06-19 18:28:12 Wilfred so does this mean I can treat a &String as a &str, but the reverse isn't true? 2021-06-19 18:28:25 j`ey yes 2021-06-19 18:28:34 j`ey daemon: https://doc.rust-lang.org/std/any/fn.type_name.html but a bunch of caveats 2021-06-19 18:28:36 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-19 18:28:47 daemon ah I see 2021-06-19 18:28:56 Wilfred j`ey: gotcha 2021-06-19 18:35:41 cehteh also prolly you want &Vec or do you want to consume the vec? 2021-06-19 18:43:54 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-19 18:46:47 <-- barnaby (~barnabywa@213-147-164-51.nat.highway.webapn.at) has quit (Quit: barnaby) 2021-06-19 18:56:03 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-19 18:57:35 <-- Maxdamantus (~Maxdamant@user/maxdamantus) has quit (Ping timeout: 244 seconds) 2021-06-19 18:58:14 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-19 19:01:46 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-19 19:02:56 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-19 19:05:09 --> Maxdamantus (~Maxdamant@user/maxdamantus) has joined ##rust 2021-06-19 19:06:30 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-19 19:09:57 -- Wilfred is now known as wilfred 2021-06-19 19:10:42 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 244 seconds) 2021-06-19 19:11:26 <-- ioxzev1z (~ioxzev1z@user/ioxzev1z) has quit (Quit: Leaving) 2021-06-19 19:12:45 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-19 19:13:54 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-19 19:14:08 <-- Maxdamantus (~Maxdamant@user/maxdamantus) has quit (Ping timeout: 265 seconds) 2021-06-19 19:16:52 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-19 19:17:07 --> Maxdamantus (~Maxdamant@user/maxdamantus) has joined ##rust 2021-06-19 19:18:39 <-- starblue3 (~juergen@dslb-094-221-183-243.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 258 seconds) 2021-06-19 19:22:07 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-19 19:24:18 <-- sm2n (~sm2n@user/sm2n) has quit (Ping timeout: 264 seconds) 2021-06-19 19:26:30 <-- bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has quit (Quit: Leaving) 2021-06-19 19:27:53 --> sm2n (~sm2n@user/sm2n) has joined ##rust 2021-06-19 19:28:16 <-- grnman_ (~gandalf@c-73-49-209-161.hsd1.fl.comcast.net) has quit (Ping timeout: 244 seconds) 2021-06-19 19:30:53 --> tha (uid505233@id-505233.highgate.irccloud.com) has joined ##rust 2021-06-19 19:34:37 wilfred cehteh: yep, you're right. Just trying to keep my repro small :) 2021-06-19 19:35:18 cehteh huh? 2021-06-19 19:35:48 --> grnman_ (~gandalf@c-73-49-209-161.hsd1.fl.comcast.net) has joined ##rust 2021-06-19 19:37:35 --> sklv (~sklv@gateway/tor-sasl/sklv) has joined ##rust 2021-06-19 19:40:18 <-- death916 (~death916@user/death916) has quit (Ping timeout: 240 seconds) 2021-06-19 19:50:37 --> llorllale (~llorllale@2607:9880:3a18:69:acf9:f56f:2048:6af1) has joined ##rust 2021-06-19 19:52:49 --> ioxzev1z (~ioxzev1z@user/ioxzev1z) has joined ##rust 2021-06-19 19:53:27 meltyness https://doc.rust-lang.org/std/error/trait.Error.html#method.description 2021-06-19 19:53:34 meltyness :( who the heck is to_string a member of? 2021-06-19 19:54:16 danieldg Display 2021-06-19 19:54:43 danieldg or just search it 2021-06-19 19:55:08 -- metal_egg is now known as departed_egg 2021-06-19 19:55:15 meltyness std::fmt::Display? :( 2021-06-19 19:56:03 cehteh https://doc.rust-lang.org/std/string/trait.ToString.html#tymethod.to_string 2021-06-19 19:56:08 meltyness I'm trying to implement a custom error to take advantage of rust's robust error handling from the guessing-game example 2021-06-19 19:56:27 danieldg you just need to impl Display 2021-06-19 19:56:36 cehteh yes 2021-06-19 19:56:49 cehteh .. and use the search box on the top :) 2021-06-19 19:57:32 meltyness I gave up on Display because the "fn fmt(...) -> Result<(), std::fmt::Error>" is too abstract for me to understand 2021-06-19 19:58:27 danieldg meltyness: look at the example in the docs 2021-06-19 19:58:29 substack just copy paste the example and change the message. you don't need to understand it 2021-06-19 19:59:05 meltyness oh, i see with the "write!" macro? 2021-06-19 19:59:10 danieldg yep 2021-06-19 20:00:06 meltyness a-HA! thanks guys :) 2021-06-19 20:01:45 --> Allegretto (~allegrett@85-238-67-31.pool.digikabel.hu) has joined ##rust 2021-06-19 20:02:15 sklv hi, i'm trying to read ffmpeg progress output from a childstderr so I can display progress. 2021-06-19 20:03:05 sklv the rust cookbook way with lines() works for non progress status lines presumably because theyre newline terminated, but not progress lines, because they're the kind that are like 'dynamic' - each new one replaces the last one in the terminal instead of appending to it 2021-06-19 20:03:25 sklv so i'm trying to read the whole buffer every time, and then improve on that 2021-06-19 20:03:46 danieldg sklv: split on \r or whatever it uses to go back 2021-06-19 20:04:07 sklv I have tried this: https://dpaste.com/CLTS87LZP but with the read_to_string approach, I get nothing at all 2021-06-19 20:04:30 danieldg sklv: first, be sure that ffmpeg actually displays output to stderr when stderr is not a terminal 2021-06-19 20:04:48 danieldg it might be calling isatty() and not doing things if not 2021-06-19 20:04:55 danieldg ChildStderr is a pipe 2021-06-19 20:05:33 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-19 20:05:57 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-19 20:06:05 sklv WRT isatty(), that may well be the case, but I get some initial output with lines, so I should be able to at least get the same with buffer 2021-06-19 20:07:03 danieldg sklv: read_to_string reads the *whole* thing 2021-06-19 20:07:17 --> death916 (~death916@user/death916) has joined ##rust 2021-06-19 20:07:27 danieldg it doesn't stop at end of line or when there's no more data, it wants for EOF 2021-06-19 20:08:40 sklv right, so I want just read() 2021-06-19 20:10:18 --> oneforall2 (~guru@S0106ec086bc3574f.mh.shawcable.net) has joined ##rust 2021-06-19 20:10:50 oneforall2 hi will this work for the miri fix ? export RUSTFLAGS="$RUSTFLAGS -Zalways-encode-mir" 2021-06-19 20:11:08 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-19 20:13:33 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 265 seconds) 2021-06-19 20:13:36 meltyness https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ef6d4a958cf36dafa8945e4cdb10e77b here's some error handling so nice that it breaks the playground. :D 2021-06-19 20:14:02 --> bluefox (~Bluefoxic@c-73-132-244-30.hsd1.md.comcast.net) has joined ##rust 2021-06-19 20:14:51 bluefox Would Rust be appropriate for an RV64IC CPU (no M extension) with 8K of instruction memory and 8K of data memory, as an embedded language? 2021-06-19 20:16:05 danieldg you wouldn't be able to use std or even most of the non-trivial core features in that small of a space 2021-06-19 20:16:36 danieldg no idea if rust supports that cpu, you need to check that too 2021-06-19 20:16:45 danieldg but otherwise, sure 2021-06-19 20:16:49 bluefox yeah, it'd be nostd. Mostly for controlling a PPU in ~700 cycle bursts between drawing lines, and in the 300,000 cycle space between vblank 2021-06-19 20:17:34 bluefox yeah, I saw a compile target for RV32IMC from 2018, wasn't sure if M was strictly required in embedded use (probably, with the multiplication/division operations in the language) 2021-06-19 20:18:00 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-19 20:18:28 sklv danieldg: it works! thanks a lot 2021-06-19 20:19:12 danieldg bluefox: multiplies can creep in from lots of things, but if LLVM supports it they can be eliminated 2021-06-19 20:19:42 bluefox oh, it's wholly whatever LLVM can output, not something special about rust 2021-06-19 20:19:55 danieldg rust uses llvm for the backend, yes 2021-06-19 20:20:04 bluefox that makes things easier 2021-06-19 20:20:14 danieldg so rust itself will likely emit multiplies, but llvm can convert them to shift/add/etc 2021-06-19 20:21:13 bluefox I'm worried some of this is going to be tricky, with the instruction fetch operating on one memory bus and the data bus on another 2021-06-19 20:21:48 danieldg the usual text/data section splits should handle that 2021-06-19 20:22:17 bluefox makes sense 2021-06-19 20:22:41 bluefox the text area is entirely impossible to read, physically 2021-06-19 20:23:18 danieldg that's fine, as long as it's possible to initialize data too 2021-06-19 20:23:37 bluefox yeah, both are written by dma through a memory controller, controlled by some other microcontroller 2021-06-19 20:24:07 oneforall2 well that didn't work 2021-06-19 20:24:13 <-- grnman_ (~gandalf@c-73-49-209-161.hsd1.fl.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-19 20:24:34 danieldg then it should be as simple as write text to the code memory, write data/rodata to data section, set up stack pointer, start 2021-06-19 20:36:46 oneforall2 MIRIFLAGS="-Zalways-encode-mir" this might do it 2021-06-19 20:37:47 bluefox cool. I'll ave a look at this. Thanks dan. 2021-06-19 20:37:52 <-- bluefox (~Bluefoxic@c-73-132-244-30.hsd1.md.comcast.net) has left ##rust (Leaving) 2021-06-19 20:45:16 --> grnman_ (~gandalf@c-73-49-209-161.hsd1.fl.comcast.net) has joined ##rust 2021-06-19 20:47:29 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-19 20:47:50 <-- viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 244 seconds) 2021-06-19 20:50:02 meltyness :) I guessed the syntax, and now better understand the application of multiple traits to a generic type. wow! 2021-06-19 20:50:47 meltyness Rust looks so much like system specifications, I love it -- who wants to think about a spec after the spec has already been written?! 2021-06-19 20:51:27 meltyness It's like prolog except the compiler isn't an asshole! 2021-06-19 20:58:36 <-- emerent (~quassel@p200300cd5703bb37ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-06-19 20:58:49 --> emerent (~quassel@p200300cd5703bbd5ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-19 20:59:01 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-19 21:04:13 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-19 21:08:18 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-19 21:10:36 <-- brainfunnel (~quassel@72.141.208.46.dyn.plus.net) has quit (Quit: thanks, bye!) 2021-06-19 21:22:17 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-19 21:22:56 <-- cdown_ (~cdown@89.32.122.5) has quit (Quit: https://chrisdown.name) 2021-06-19 21:24:05 meltyness username: String::from("horse_ebooks") lol 2021-06-19 21:29:14 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-19 21:33:39 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 268 seconds) 2021-06-19 21:34:03 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-19 21:38:41 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-19 21:40:39 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Remote host closed the connection) 2021-06-19 21:40:53 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-19 21:41:56 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-19 21:45:42 <-- ioxzev1z (~ioxzev1z@user/ioxzev1z) has quit (Quit: Leaving) 2021-06-19 21:46:32 <-- whoami (~whoami@d118-75-90-9.try.wideopenwest.com) has quit (Ping timeout: 244 seconds) 2021-06-19 21:53:27 --> whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has joined ##rust 2021-06-19 22:08:57 --> ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has joined ##rust 2021-06-19 22:11:44 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 252 seconds) 2021-06-19 22:30:18 <-- grnman_ (~gandalf@c-73-49-209-161.hsd1.fl.comcast.net) has quit (Remote host closed the connection) 2021-06-19 22:36:36 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-19 22:36:36 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-19 22:42:01 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-19 22:43:21 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 258 seconds) 2021-06-19 22:45:32 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-19 22:45:41 <-- rjframe (~rjframe@c-68-38-42-188.hsd1.in.comcast.net) has quit (Quit: Leaving) 2021-06-19 22:48:25 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-19 22:54:43 --> aquijoule_ (~richbridg@213-225-10-42.nat.highway.a1.net) has joined ##rust 2021-06-19 22:57:18 <-- richbridger (~richbridg@213-225-3-25.nat.highway.a1.net) has quit (Ping timeout: 264 seconds) 2021-06-19 22:59:46 <-- Celeo (~Celeo@2603-8001-3301-2e00-212b-f103-c7e9-42d7.res6.spectrum.com) has quit (Changing host) 2021-06-19 22:59:46 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-19 23:00:01 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-19 23:04:45 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-19 23:06:28 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-19 23:06:28 -- jmcantrell is now known as Guest5404 2021-06-19 23:06:28 <-- Guest5404 (~weechat@user/jmcantrell) has quit (Killed (cadmium.libera.chat (Nickname regained by services))) 2021-06-19 23:06:28 -- __jmcantrell__ is now known as jmcantrell 2021-06-19 23:08:14 --> Ischwitch (~Ingvix@213.152.188.101) has joined ##rust 2021-06-19 23:09:14 <-- Ingvix (~Ingvix@213.152.188.101) has quit (Ping timeout: 272 seconds) 2021-06-19 23:09:14 -- Ischwitch is now known as Ingvix 2021-06-19 23:09:18 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-19 23:14:01 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-19 23:15:07 substack is there something like Promise.all in rust async? also acceptable would be something that takes an iterator and runs N parallel tasks at a time 2021-06-19 23:15:44 danieldg substack: select or join from the futures crate 2021-06-19 23:16:18 DeeEff_ danieldg: it's likely substack is looking for `FuturesOrdered` or `FuturesUnordered`, but select also works 2021-06-19 23:16:20 substack join does 2 futures at a time 2021-06-19 23:16:30 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-06-19 23:16:51 jbg substack: did you perhaps look right next to join in the documentation, for example join_all? 2021-06-19 23:16:56 danieldg substack: the join macro should support arbitrary numbers 2021-06-19 23:17:13 jbg DeeEff_: select would be promise.any, not promise.all 2021-06-19 23:18:01 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-19 23:18:09 DeeEff_ In general you probably want all your tasks to finish, so `FuturesUnordered` tends to be preferable 2021-06-19 23:18:17 substack ok looks like join_all does what i want 2021-06-19 23:18:24 jbg futures::join is a macro that supports arbitrary numbers. then there's the fns futures::future::join, join3, join4, join5 which support 2/3/4/5, then there's join_all which does arbitrary numbers 2021-06-19 23:18:30 jbg DeeEff_: join waits for all the futures to complete 2021-06-19 23:19:05 DeeEff_ I know what join does :) 2021-06-19 23:19:47 jbg ok, was just a bit confusing that you push futuresunordered on the basis that "you want all your tasks to finish", when join does that with much less complexity 2021-06-19 23:20:09 DeeEff_ I don't know if I agree that join is less complex 2021-06-19 23:20:11 jbg futuresunordered is great if you want some of the advanced features it offers like pushing futures into the buffer once they are already running etc 2021-06-19 23:20:29 jbg but if you simply want the equivalent of promise.all, join is clearly the simpler solution 2021-06-19 23:20:50 DeeEff_ it is more rigid, but that isn't "less complex." Calling `collect` on an iterator into a `FuturesUnordered` sounds closer to what was asked for 2021-06-19 23:21:27 DeeEff_ ¯\_(ツ)_/¯ 2021-06-19 23:21:52 jbg in what way is it closer to what was asked for? 2021-06-19 23:22:05 DeeEff_ > also acceptable would be something that takes an iterator and runs N parallel tasks at a time 2021-06-19 23:22:16 DeeEff_ It was in the message 2021-06-19 23:22:36 jbg the actual question (i.e. the part that you cut out of your copy-paste, as opposed to the "also acceptable" part) was "is there something like promise.all in rust async?" 2021-06-19 23:22:57 jbg promise.all and join_all are basically identical 2021-06-19 23:23:13 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Read error: Connection reset by peer) 2021-06-19 23:23:28 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-19 23:27:06 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-19 23:30:11 <-- sgift (~madison@2001:a61:346f:bb01:c5d0:8e9f:7123:a08b) has quit (Ping timeout: 252 seconds) 2021-06-19 23:31:03 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-06-19 23:33:10 <-- ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has quit (Remote host closed the connection) 2021-06-19 23:33:54 --> P1RATEZ (piratez@user/p1ratez) has joined ##rust 2021-06-19 23:35:15 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-19 23:37:42 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 268 seconds) 2021-06-19 23:37:43 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-19 23:39:07 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-19 23:46:15 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-19 23:47:55 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-19 23:50:32 --> gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has joined ##rust 2021-06-19 23:54:53 <-- HappyMan (~HappyMan@user/happyman) has quit (Ping timeout: 272 seconds) 2021-06-20 00:00:31 -- departed_egg is now known as metal_egg 2021-06-20 00:03:39 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-20 00:05:58 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-06-20 00:06:12 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 00:10:05 --> Fairy (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has joined ##rust 2021-06-20 00:12:45 <-- Fairy97 (~Fairy@2001:464a:4992:0:b4f6:fcca:ff2e:66eb) has quit (Ping timeout: 244 seconds) 2021-06-20 00:12:58 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 00:13:22 <-- gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has quit (Quit: ZZZzzz…) 2021-06-20 00:18:41 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-20 00:29:22 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-20 00:29:43 <-- thing (~thing@user/thing) has quit (Remote host closed the connection) 2021-06-20 00:30:08 --> thing (~thing@user/thing) has joined ##rust 2021-06-20 00:33:55 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-20 00:42:35 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-20 00:51:26 oneforall2 ok had to change from python3 x.py dist to python3 x.py build 2021-06-20 00:55:13 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-20 00:56:53 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-20 01:05:32 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 01:05:49 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-20 01:09:56 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-20 01:13:50 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-20 01:15:20 <-- sklv (~sklv@gateway/tor-sasl/sklv) has quit (Remote host closed the connection) 2021-06-20 01:16:34 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-20 01:16:53 --> trev (~trev@user/trev) has joined ##rust 2021-06-20 01:17:26 --> dcz (~dcz@dynamic-078-048-103-020.78.48.pool.telefonica.de) has joined ##rust 2021-06-20 01:20:13 --> technopagan (~technopag@p200300c5370b7d00ac2d87e2ab54367d.dip0.t-ipconnect.de) has joined ##rust 2021-06-20 01:25:41 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-20 01:31:14 <-- technopagan (~technopag@p200300c5370b7d00ac2d87e2ab54367d.dip0.t-ipconnect.de) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-20 01:35:12 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 01:35:30 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-20 01:38:11 substack this lifetime mismatch error is not helpful at all. expected type and found enum are identical 2021-06-20 01:40:19 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-20 01:44:01 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-20 02:00:20 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-20 02:02:39 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-20 02:02:57 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-20 02:05:33 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 02:11:01 <-- jeaye (~jeaye@user/jeaye) has quit (Quit: WeeChat 2.9) 2021-06-20 02:11:15 --> jeaye (~jeaye@user/jeaye) has joined ##rust 2021-06-20 02:15:23 <-- metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has quit (Quit: Konversation terminated!) 2021-06-20 02:18:01 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-20 02:19:31 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 02:19:36 jbg what is "this lifetime mismatch error"? 2021-06-20 02:19:45 jbg maybe paste it? 2021-06-20 02:19:55 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 02:27:44 cehteh mhm is it somehow possible to construct a BTreeMap<&str, String> where the key is a slice into the value (aka, same lifetime and value must be immutable)? 2021-06-20 02:28:19 substack https://gist.github.com/substack/cdc6ffc7b9058c8d3d11314e56dc04d1 2021-06-20 02:29:15 cehteh i know BtreeSet with custom compare could do that, just wondering if doable with BTreeMap somehow 2021-06-20 02:29:41 substack i've gotten this type of vague error before and it was very annoying to figure out and the msg wasn't helpful then either 2021-06-20 02:31:37 cehteh hah i seen similar things ... which also WTF'ed me 2021-06-20 02:34:02 substack just trying to speed up this batch processing program so it finishes in several days instead of several months 2021-06-20 02:34:38 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 252 seconds) 2021-06-20 02:35:13 --> retak (~ite@i5E8671CE.versanet.de) has joined ##rust 2021-06-20 02:36:56 <-- jermz (~jermz@user/jermz) has quit (Quit: leaving) 2021-06-20 02:36:57 cehteh eh work.push(spawn(async move { doesnt that need to be work.push(spawn(async move || { 2021-06-20 02:37:20 --> jermz (~jermz@user/jermz) has joined ##rust 2021-06-20 02:39:20 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-20 02:39:25 --> anchorite_ (~anchorite@95.111.56.99) has joined ##rust 2021-06-20 02:40:17 <-- anchorite (~anchorite@95.111.56.99) has quit (Client Quit) 2021-06-20 02:40:25 bertptrs move || async {} more like? 2021-06-20 02:40:38 bertptrs or have async closures been stabilized while I wasn't looking 2021-06-20 02:41:19 substack this is on nightly with feature(async_closure) 2021-06-20 02:41:24 cehteh havent done that stuff yet, it just catched my eye 2021-06-20 02:41:51 cehteh but i expected you need a || to make a closure 2021-06-20 02:43:45 substack it doesn't work if you put || 2021-06-20 02:44:28 cehteh have you considered to parallize that with rayon or similar? 2021-06-20 02:44:29 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-20 02:45:44 substack i really don't want something so magical for processing 8 billion records 2021-06-20 02:46:36 substack the first phase of the processing uses a lib that uses rayon and the results are very underwhelming 2021-06-20 02:47:11 substack after i get this part ported i want to go in and rip rayon out actually so i can be more explicit to get the processing time down 2021-06-20 02:51:19 substack also i have no idea how rayon and async are supposed to work together, if at all 2021-06-20 02:53:21 jbg unless I missed it, you still didn't paste the error message that you were complaining about? 2021-06-20 02:53:27 cehteh ah ok 2021-06-20 02:53:39 cehteh jbg: its below 2021-06-20 02:53:53 jbg oh, there's two files in the gist, cool 2021-06-20 02:54:43 jbg yeah, that is a rubbish error message. used to get those a lot in the early days of futures but haven't seen one that bad in a while 2021-06-20 02:56:09 jbg is this OSM data? at a previous $job we used rayon to import the whole planet, the performance was fantastic (rayon is not very magical btw) 2021-06-20 02:56:57 jbg async doesn't really gain you much for cpu-intensive batch processing where you have all the data coming at a predictable rate from nearby storage 2021-06-20 02:57:43 substack the library i'm pumping data into is async, i can't easily change that 2021-06-20 02:57:52 cehteh i havent used rayon yet, but i heared similar things .. must be something wrong when it doesnt perform well 2021-06-20 02:58:19 cehteh too much contention on locks, too much shared data? 2021-06-20 02:58:45 substack i don't like abstractions that don't give you anything go on when they don't work and rayon is exactly that. and for performance it's really important that you can juggle things around manually 2021-06-20 02:59:06 cehteh eventually i want to make a lock contention measurement thingy ... but not now 2021-06-20 02:59:13 jbg you could try using tokio rather than async-std, in our (admittedly limited) testing the performance is much better (although we haven't bothered re-checking recently, maybe they've improved) and it looks like your error is coming from there 2021-06-20 03:06:02 <-- jeaye (~jeaye@user/jeaye) has quit (Quit: WeeChat 3.1) 2021-06-20 03:12:34 --> starblue3 (~juergen@dslb-188-109-109-174.188.109.pools.vodafone-ip.de) has joined ##rust 2021-06-20 03:38:43 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-20 03:43:30 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-20 03:45:45 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 03:49:40 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 03:49:48 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-20 03:50:16 <-- anchorite_ (~anchorite@95.111.56.99) has quit (Remote host closed the connection) 2021-06-20 03:51:49 <-- Ingvix (~Ingvix@213.152.188.101) has left ##rust 2021-06-20 03:52:13 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-20 03:54:41 <-- retak (~ite@i5E8671CE.versanet.de) has quit (Ping timeout: 265 seconds) 2021-06-20 03:57:58 -- kevr is now known as sofakingcool 2021-06-20 03:58:55 <-- P1RATEZ (piratez@user/p1ratez) has quit 2021-06-20 04:00:09 -- sofakingcool is now known as kevr 2021-06-20 04:04:08 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-20 04:05:01 --> frostschutz (~frostschu@2a01:c23:7918:f900:246f:5df9:8518:6413) has joined ##rust 2021-06-20 04:07:19 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-20 04:09:40 <-- oneforall2 (~guru@S0106ec086bc3574f.mh.shawcable.net) has quit (Ping timeout: 265 seconds) 2021-06-20 04:09:52 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 252 seconds) 2021-06-20 04:16:00 --> neceve (~quassel@2a02:c7f:607e:d600:a95a:ecd2:e57a:3130) has joined ##rust 2021-06-20 04:22:40 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-20 04:35:38 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-20 04:38:16 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Read error: Connection reset by peer) 2021-06-20 04:40:32 --> Mateon1 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-20 04:46:22 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-20 04:47:37 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving.) 2021-06-20 04:51:02 --> viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-20 04:57:29 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-20 05:03:52 mebus Arnavion: thanks! I found a solution to read line by line. 2021-06-20 05:04:42 mebus I am trying to use the build.rs script from here: https://docs.rs/prost-build/0.7.0/prost_build/ but for some reason it never gets executed. Can somebody help me to find out why? 2021-06-20 05:06:28 bertptrs where did you put your build.rs? 2021-06-20 05:08:01 --> msavoritias (~msavoriti@mobile-access-b0484d-56.dhcp.inet.fi) has joined ##rust 2021-06-20 05:08:31 mebus bertptrs: where my Cargo.toml is 2021-06-20 05:08:44 mebus and the project source files are in src/ 2021-06-20 05:08:49 bertptrs That should work 2021-06-20 05:09:07 j`ey mebus: add a panic!() to your build.rs 2021-06-20 05:10:26 mebus this is my build.rs: https://gist.github.com/Mebus/8be410087eee762bfd2c77429ff4fad0 do I need to return a Result? 2021-06-20 05:10:54 j`ey are you thinking it's not running because you dont see the println? 2021-06-20 05:11:21 mebus j`ey: yes and I don't see the source files of protobuf being generated... 2021-06-20 05:11:28 mebus with panic I see the println 2021-06-20 05:11:34 j`ey because i dont think println is output to stdout by default 2021-06-20 05:11:37 j`ey so your build.rs is running 2021-06-20 05:11:42 mebus ah o 2021-06-20 05:11:44 mebus k 2021-06-20 05:11:50 mebus how can I print something to the screen? 2021-06-20 05:12:02 j`ey mebus: where are you looking for the protobuf source files? 2021-06-20 05:12:22 mebus in the src dir? 2021-06-20 05:12:28 j`ey it doesnt go to there 2021-06-20 05:12:29 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Read error: Connection reset by peer) 2021-06-20 05:12:31 bertptrs They should be in the OUT dir 2021-06-20 05:12:32 j`ey it's in the build dir 2021-06-20 05:12:41 j`ey target/debug/something/build 2021-06-20 05:12:57 j`ey if youre on something unixy run: find target -name '*.rs' 2021-06-20 05:14:24 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-20 05:14:58 mebus j`ey: ah, yeah. there is a file that makes sense. 2021-06-20 05:18:12 --> retak (~ite@i5e8671ce.versanet.de) has joined ##rust 2021-06-20 05:19:14 <-- retak (~ite@i5e8671ce.versanet.de) has left ##rust 2021-06-20 05:22:33 mebus I am doing this example: https://docs.rs/prost-build/0.7.0/prost_build/ What do I have to write into my main.rs to use times::Shirt::default() in my main.rs? 2021-06-20 05:27:13 --> sh9 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-06-20 05:31:55 dav1d I have a trait with the method `fn parse(&self, fields: &[FieldSpecifier], data: &[u8]) -> Option;` how would I implement this trait and have the lifetime of Self::Output bound to `data`? 2021-06-20 05:32:13 SpaceManiac dav1d: not possible 2021-06-20 05:32:14 --> javivf (~javivf@79.108.212.152.dyn.user.ono.com) has joined ##rust 2021-06-20 05:32:22 SpaceManiac or, rather, the trait definition would have to change 2021-06-20 05:32:36 dav1d SpaceManiac, then how do I have to change the trait definition? 2021-06-20 05:33:13 dav1d I tried giving `parse` a lifetime `parse<'a>(...)` but I can't figure out how to apply that to the output 2021-06-20 05:33:22 j`ey mebus: 'use crate-name;' at the top of main.rs, and then crate-name::items::Shirt.. 2021-06-20 05:36:30 <-- synthmeat (~synthmeat@user/synthmeat) has quit (Quit: WeeChat 3.1) 2021-06-20 05:39:26 SpaceManiac dav1d: hmm, actually I think it really isn't possible, unless I'm failing to recall a trick 2021-06-20 05:40:18 dav1d SpaceManiac, yeah this turns out to be quite tricky... 2021-06-20 05:40:42 <-- _xor (~xor@74.215.46.133) has quit (Quit: brb) 2021-06-20 05:41:35 SpaceManiac maybe look at nom or serde for possible approaches 2021-06-20 05:41:55 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-20 05:43:57 bertptrs mebus: copy the thing with pub mod … include! 2021-06-20 05:44:22 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 265 seconds) 2021-06-20 05:44:46 kee dav1d: Make Self::Output generic over 'a? 2021-06-20 05:44:56 kee Wrong words, but `where Self::Output: a 2021-06-20 05:46:06 mebus bertptrs: ah, this solved it 2021-06-20 05:49:00 dav1d kee, can you show me? A basic setup: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6c8ee643fe0a83f344dcfcbf0484e2f0 2021-06-20 05:52:21 <-- hendursa1 (~weechat@user/hendursaga) has quit (*.net *.split) 2021-06-20 05:52:21 <-- thing (~thing@user/thing) has quit (*.net *.split) 2021-06-20 05:52:21 <-- est31 (~est31@user/est31) has quit (*.net *.split) 2021-06-20 05:52:21 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (*.net *.split) 2021-06-20 05:52:21 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (*.net *.split) 2021-06-20 05:52:21 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (*.net *.split) 2021-06-20 05:52:21 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (*.net *.split) 2021-06-20 05:52:49 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-20 05:52:49 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-20 05:52:50 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-20 05:52:51 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-20 05:52:53 --> thing (~thing@user/thing) has joined ##rust 2021-06-20 05:53:01 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-20 05:53:34 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 05:54:05 dav1d Does this work or am I missing something? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a3aec0935acbf95fa29e619df6001fb5 SpaceManiac, kee 2021-06-20 05:55:03 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-20 05:56:06 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 264 seconds) 2021-06-20 05:56:18 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-20 05:57:36 SpaceManiac yeah, looks fine, I ran into 'unused lifetime' errors when I was checking earlier but must have just mistyped something. shouldn't be trying to give advice while up this late 2021-06-20 05:57:52 --> synthmeat (~synthmeat@user/synthmeat) has joined ##rust 2021-06-20 05:58:20 <-- synthmeat (~synthmeat@user/synthmeat) has quit (Client Quit) 2021-06-20 05:58:31 dav1d I don't quite understand why it works, yet 2021-06-20 05:58:44 --> synthmeat (~synthmeat@user/synthmeat) has joined ##rust 2021-06-20 06:00:21 <-- dcz (~dcz@dynamic-078-048-103-020.78.48.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-06-20 06:01:39 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-20 06:03:44 dav1d yeah it doesn't work, I can't really store a parser in another struct, because I run into issues with lifetimes 2021-06-20 06:04:47 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 06:05:11 SpaceManiac dav1d: do you rely on the parser->output relationship, or can you flip the trait? trait ParseFrom<'a> { type State; fn parse_from(state: &State, data: &[u8]) -> Self; } 2021-06-20 06:06:52 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 258 seconds) 2021-06-20 06:06:54 dav1d SpaceManiac, my actual usecase is, I have a Session that receives packets (&[u8]), which stores some state, then calls the parser multiple times on a slice of that &[u8] and yields an iterator of the parser results 2021-06-20 06:08:12 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-20 06:09:51 --> _xor (~xor@74.215.46.133) has joined ##rust 2021-06-20 06:09:59 dav1d something like this: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=cad61b690b4e7bec148f6b2a1a27539b 2021-06-20 06:11:56 <-- est31 (~est31@user/est31) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-20 06:12:00 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-06-20 06:12:31 <-- nf (~n@monade.li) has quit (Quit: Fairfarren.) 2021-06-20 06:12:31 <-- thing (~thing@user/thing) has quit (Ping timeout: 244 seconds) 2021-06-20 06:12:44 --> nf (~n@monade.li) has joined ##rust 2021-06-20 06:12:46 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-20 06:12:56 --> thing (~thing@user/thing) has joined ##rust 2021-06-20 06:13:30 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 06:14:13 <-- nf (~n@monade.li) has quit (Client Quit) 2021-06-20 06:14:26 mebus I am working with a strings on multiple spots in a if-else construct, but I keep getting "error: cannot borrow `pf` as mutable because it is also borrowed as immutable" - what can I do about it? I don't really understand why this is not working. 2021-06-20 06:14:37 j`ey paste the code! 2021-06-20 06:14:39 mebus do I have to clone the string or something? 2021-06-20 06:15:07 --> nf (~n@monade.li) has joined ##rust 2021-06-20 06:16:02 dav1d Intersting it works with a Vec<>, but not with the `impl Iterator` 2021-06-20 06:17:11 mebus j`ey: https://gist.github.com/Mebus/661f848acf244019e1ed5bbd5a244eb8 2021-06-20 06:17:25 mebus I cannot compare to s twice, only once. 2021-06-20 06:18:25 j`ey mebus: it's probably due to 'pf.name()', what type does that return? 2021-06-20 06:19:21 mebus j`ey: should return a &str ? 2021-06-20 06:19:28 j`ey mebus: you tell me! 2021-06-20 06:20:20 <-- nf (~n@monade.li) has left ##rust (Fairfarren.) 2021-06-20 06:20:56 j`ey mebus: does it actually work with those clones? 2021-06-20 06:21:10 mebus j`ey: no, doesn't work with the clones 2021-06-20 06:21:12 mebus pub fn name(&self) -> &str 2021-06-20 06:21:32 mebus is it really so complicated to compare a string in Rust? ^^ 2021-06-20 06:21:35 SpaceManiac mebus: `let mut s = pf.name().to_owned()` then remove the clones 2021-06-20 06:21:55 j`ey mebus: it's not about the string, it's about pf 2021-06-20 06:22:02 SpaceManiac the complication is that ZipFile's API doesn't _promise_ that calling .read_to_end won't modify the name 2021-06-20 06:22:14 j`ey it's because you have a &str from pf, and then try to call a &mut method on pf 2021-06-20 06:23:53 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-20 06:24:10 mebus SpaceManiac: that doesnt help 2021-06-20 06:24:20 dav1d `impl Iterator>::Output>` this seems to work, just randomly change stuff until the compiler spits an error out that you can partially copy and paste until it compiles 2021-06-20 06:24:45 mebus dav1d: are you talking to me? 2021-06-20 06:24:52 SpaceManiac mebus: surely it changes the error message at least a little 2021-06-20 06:25:08 ChaiTRex mebus: Don't clone to compare an &str or String to a string literal. 2021-06-20 06:25:12 ChaiTRex evalr2: let x: &str = "test"; let y: String = "test".to_owned(); (x == "test", y == "test") 2021-06-20 06:25:17 -- Notice(evalr2): ChaiTRex: (true, true) 2021-06-20 06:25:17 dav1d mebus, no 2021-06-20 06:25:45 mebus SpaceManiac: https://gist.github.com/Mebus/845452075fe3c2d5eb32324a9a915eed 2021-06-20 06:25:52 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-20 06:26:14 SpaceManiac zip.start_file(&s, ... 2021-06-20 06:28:11 mebus SpaceManiac: ah, thanks. That fixed it :-) 2021-06-20 06:28:34 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-20 06:29:30 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-06-20 06:33:42 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-06-20 06:35:19 <-- est31 (~est31@user/est31) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-20 06:35:45 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-20 06:36:43 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 06:42:33 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 06:45:37 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (Ping timeout: 244 seconds) 2021-06-20 06:46:06 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-06-20 06:46:34 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-20 06:47:07 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-20 06:54:03 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-06-20 06:54:04 <-- est31 (~est31@user/est31) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-20 06:54:19 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 06:54:55 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 268 seconds) 2021-06-20 06:57:04 --> rlv (~rlv@2a02:a03f:8bd8:2400:6596:397e:68ea:fb7f) has joined ##rust 2021-06-20 06:57:28 --> Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has joined ##rust 2021-06-20 06:57:59 --> Yruama__ (~Yruama@2a01:cb14:d35:1500:8bcb:bf04:ad7c:b9e0) has joined ##rust 2021-06-20 06:58:46 Midjak Hi is There some tools for refactoriing in Rust ecosystem ? As something to rename a function by instance 2021-06-20 06:59:24 j`ey rust-analyzer can do that https://rust-analyzer.github.io/manual.html#rename 2021-06-20 06:59:50 Midjak hi j`ey Thank you 2021-06-20 06:59:57 Midjak I am looking this 2021-06-20 07:02:58 Midjak ah It is an LSP Server... I had tried this on emacs/osx but I couldn't get it to work 2021-06-20 07:03:02 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 252 seconds) 2021-06-20 07:04:54 mebus I have got a question regarding `match`: https://gist.github.com/Mebus/72c0809ef1ad190488a2ef49086321cb Can I print and return something on Err? 2021-06-20 07:05:36 j`ey mebus: => { print!(..); Err(..) } 2021-06-20 07:06:04 j`ey mebus: => { print!(..); expimp::JobInfo::default() } rather 2021-06-20 07:09:49 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 07:10:16 --> hegstal (~hegstal@2a02:c7f:7604:8a00:3573:4e54:4d99:437f) has joined ##rust 2021-06-20 07:10:28 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 07:13:47 flipchan Hey, I have a struct(pub struct testing{pub lorem: String, pub ipsum: String,}) and I want to 2021-06-20 07:13:50 flipchan implement a default value for it, so it will say like struct{"hey1", "hey2"}, how can I do that? 2021-06-20 07:14:07 j`ey flipchan: implement the default trait 2021-06-20 07:14:47 flipchan fn default() -> Self {"test", "test", } 2021-06-20 07:14:55 flipchan im doing something wrong here 2021-06-20 07:15:15 j`ey is that exactly what youre writing? 2021-06-20 07:15:54 <-- viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 264 seconds) 2021-06-20 07:16:01 flipchan i want the user to be able to use Default::default() and then it should auto set 2 preconfigured strings 2021-06-20 07:16:15 j`ey yes that's what the Default trait is for 2021-06-20 07:16:49 j`ey but if 'fn default() -> Self {"test", "test", }' is all you wrote.. that's not really valid rust 2021-06-20 07:18:01 flipchan here: https://dpaste.com/A4PNHRSN6 check it out 2021-06-20 07:18:31 Mutabah `Self { lorem: "...".into(), ... }` is what you want 2021-06-20 07:18:31 <-- sm2n (~sm2n@user/sm2n) has quit (Quit: Leaving) 2021-06-20 07:18:38 Mutabah I.e. within the body 2021-06-20 07:18:40 <-- rlv (~rlv@2a02:a03f:8bd8:2400:6596:397e:68ea:fb7f) has quit (Quit: Client closed) 2021-06-20 07:18:49 Mutabah `-> Self { Self { ... } }` 2021-06-20 07:19:21 j`ey flipchan: you should read the rust book! 2021-06-20 07:20:31 --> sm2n (~sm2n@user/sm2n) has joined ##rust 2021-06-20 07:20:38 flipchan Mutabah, ofc. im to tired today haha 2021-06-20 07:29:17 --> HalfWord_ (~halfword@user/halfword) has joined ##rust 2021-06-20 07:43:47 --> rjframe (~rjframe@c-68-38-42-188.hsd1.in.comcast.net) has joined ##rust 2021-06-20 07:46:33 --> schmillin_ (~schmillin@user/schmillin) has joined ##rust 2021-06-20 07:50:02 <-- schmillin (~schmillin@user/schmillin) has quit (Ping timeout: 265 seconds) 2021-06-20 07:57:29 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-20 08:01:55 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-20 08:05:36 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Client Quit) 2021-06-20 08:08:14 --> brainfunnel (~quassel@72.141.208.46.dyn.plus.net) has joined ##rust 2021-06-20 08:08:18 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 252 seconds) 2021-06-20 08:09:20 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 08:10:26 --> Mateon2 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-20 08:10:30 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 252 seconds) 2021-06-20 08:10:35 -- Mateon2 is now known as Mateon1 2021-06-20 08:11:13 <-- Yruama__ (~Yruama@2a01:cb14:d35:1500:8bcb:bf04:ad7c:b9e0) has quit (Remote host closed the connection) 2021-06-20 08:11:25 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 08:13:29 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-20 08:15:48 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 08:15:49 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-20 08:16:16 --> xse (~xse@user/xse) has joined ##rust 2021-06-20 08:19:53 --> euouae (~euouae@user/euouae) has joined ##rust 2021-06-20 08:20:03 euouae Hello 2021-06-20 08:20:26 jbg hello 2021-06-20 08:20:35 euouae Rust newbie here 2021-06-20 08:21:15 capitol welcome 2021-06-20 08:21:44 euouae Thanks :) 2021-06-20 08:21:54 euouae Does anyone use emacs? 2021-06-20 08:22:25 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-20 08:25:49 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-06-20 08:26:01 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 08:26:12 Midjak yes euouae ? 2021-06-20 08:26:47 euouae Midjak: What kind of features do you use & how did you set it up? 2021-06-20 08:28:00 euouae Midjak: I installed rust-analyzer and rustic but it feels kind of clunky 2021-06-20 08:30:14 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-20 08:31:18 Midjak I use rust-mode without LSP. I didn't get it to work. I use clippy from the command line. but rust-fmt works as expected. What is your OS ? 2021-06-20 08:31:38 euouae Ok so you also have issues then, I use Ubuntu 2021-06-20 08:32:57 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-20 08:33:39 Midjak yes, but I didn't insist, I will try again soon. I need to read deeply documentation about this and rust-analyzer. 2021-06-20 08:33:58 Midjak What is your issue with rust-analyzer ? 2021-06-20 08:34:03 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-20 08:35:34 euouae My main issue is that I don't understand how to use rustic; where are the docs? 2021-06-20 08:37:53 Midjak I don't know I use rust-mode and the README is only doc I read 2021-06-20 08:38:41 Midjak I guess there is only the README documentation about mode in emacs a rarely documented extpected for te big framework as proof general or elpy 2021-06-20 08:39:33 Midjak Try rust fmt. It works out the box (if you don't need to run clippy from emacs) 2021-06-20 08:39:35 euouae Yeah I think documentation could improve, or maybe I'm not getting the sense of it 2021-06-20 08:39:58 euouae What is rust fmt? 2021-06-20 08:40:05 Midjak a formatter 2021-06-20 08:41:00 Midjak https://github.com/rust-lang/rustfmt 2021-06-20 08:42:00 Midjak try clippy too https://github.com/rust-lang/rust-clippy it's a good mean to learn about Rust 2021-06-20 08:42:41 Midjak but as as said you need to run it from command-line if you don't have rust-anlyzer 2021-06-20 08:43:05 euouae Ah I can get that to work 2021-06-20 08:44:02 Midjak try clippy and rustfmt from command line first. if it works try from emacs. 2021-06-20 08:44:16 euouae Midjak: I Think, here is my understanding of the rustic documentation (it just occured to me) they only mention the relevant Emacs function names, such as 'rustic-format-buffer' and then you're supposed to do 'C-h v rustic-format-buffer' to read what it is bound to 2021-06-20 08:44:17 Midjak C-c C-F launch rust-fmt 2021-06-20 08:44:32 euouae Midjak: I've actually gotten it to work to format on save 2021-06-20 08:44:39 Midjak ok 2021-06-20 08:45:21 Midjak so it works, no ? 2021-06-20 08:46:19 Midjak I can help you with rustic I use rust-mode 2021-06-20 08:46:27 euouae I'm also getting an issue right now 2021-06-20 08:46:33 euouae which seems to stem from my incorrect rustup installation 2021-06-20 08:46:57 euouae I tried modifying RUSTUP_HOME and CARGO_HOME when I installed, but when I updated the installation they were not exported, and I think that broke some things; in particular rust-analyzer now has some issues with workspace loading 2021-06-20 08:47:30 euouae How can I start a fresh installation of rust? Maybe I should do that 2021-06-20 08:47:32 j`ey yeah you need to make sure to keep them exported in your shell 2021-06-20 08:48:01 euouae j`ey: can I uninstall now or will rustup delete things it shouldn't? Is there a dry run of an uninstall? 2021-06-20 08:48:38 j`ey i dont see a reason to uninstall it now, just set those variables 2021-06-20 08:48:54 euouae I did but it seems to 2021-06-20 08:49:18 euouae give LSP :: rust-analyzer failed to load workspace: "cargo" "--version" failed: No such file or directory (os error 2) 2021-06-20 08:49:30 euouae and there's this https://github.com/rust-analyzer/rust-analyzer/issues/3032 2021-06-20 08:50:08 j`ey well as i said, rustup currently just deletes the folders that it uses 2021-06-20 08:50:21 j`ey so if you had done the .local/bin thing, it would delete everything in there 2021-06-20 08:50:43 j`ey maybe it cant find vargo 2021-06-20 08:50:45 euouae I did not, I instead just set CARGO_HOME and RUSTUP_HOME to ~/.local/{cargo, rustup} 2021-06-20 08:50:45 j`ey *cargo 2021-06-20 08:51:08 euouae Hm... ok /maybe/ it's an issue with Emacs more than rust 2021-06-20 08:51:56 euouae I'm seeing with M-x getenv that CARGO_HOME and RUSTUP_HOME are not defined 2021-06-20 08:52:36 Midjak yes because you launch emacs from your desktop menu. no ? 2021-06-20 08:52:42 euouae well, of course! ~/.profile is not related to emacs 2021-06-20 08:52:44 Midjak try from command line 2021-06-20 08:52:50 euouae Midjak: I launch it as a daemon 2021-06-20 08:53:05 Midjak ok you need to set the env here 2021-06-20 08:53:21 Midjak I don't remember how to but I know it's possible 2021-06-20 08:54:27 euouae Thanks, I think I'm realizing what is going on now 2021-06-20 08:54:41 Midjak I have seen you find #emacs channel ;-) 2021-06-20 08:55:21 euouae Yeah I wasn't trying to involve two channels for one issue, I was trying to separate things to corresponding channels :) 2021-06-20 08:57:05 Midjak fair enough 2021-06-20 09:02:10 --> jinsun_ (~quassel@user/jinsun) has joined ##rust 2021-06-20 09:04:24 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 252 seconds) 2021-06-20 09:05:57 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 265 seconds) 2021-06-20 09:15:02 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 252 seconds) 2021-06-20 09:17:26 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-20 09:19:46 --> Trieste_ (T@user/pilgrim) has joined ##rust 2021-06-20 09:20:27 <-- Trieste (T@user/pilgrim) has quit (Ping timeout: 272 seconds) 2021-06-20 09:21:41 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-20 09:26:03 -- Trieste_ is now known as Trieste 2021-06-20 09:29:37 --> viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-20 09:31:04 <-- neceve (~quassel@2a02:c7f:607e:d600:a95a:ecd2:e57a:3130) has quit (Remote host closed the connection) 2021-06-20 09:33:31 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-20 09:36:53 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-20 09:41:04 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-20 09:42:04 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 09:43:19 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-06-20 09:43:46 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 09:57:06 --> rglu (~rglu@2603-8090-2006-7fc6-2cf7-7331-f1c8-3b99.res6.spectrum.com) has joined ##rust 2021-06-20 10:18:09 --> Ivyy (~Ivyy@84.247.50.42) has joined ##rust 2021-06-20 10:19:06 <-- discipulus (~discipulu@user/discipulus) has quit (Ping timeout: 258 seconds) 2021-06-20 10:19:34 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 252 seconds) 2021-06-20 10:20:06 --> dcz (~dcz@dynamic-078-048-103-020.78.48.pool.telefonica.de) has joined ##rust 2021-06-20 10:22:40 la_mettrie do I/O examples like this contain sufficient error handling for a real program? https://pastebin.com/raw/wDdzFChY 2021-06-20 10:23:04 la_mettrie the user is not going to get more information in addition to fail/success 2021-06-20 10:24:07 bertptrs depends on the kind of user. if this runs on a server and is debugged by an op, this is fine. If this is a user facing cli thing, you'd need a bit more 2021-06-20 10:25:42 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-20 10:25:42 la_mettrie i'm thinking about a drawing program trying to open a file 2021-06-20 10:26:02 mike-burns If it's a GUI you'd probably want to show a dialog instead of outputting to stderr. 2021-06-20 10:27:16 <-- alip (~alip@exherbo/developer/alip) has quit (Quit: The great square has no corners. The great vessel is never finished. The great tone is barely heard. The great thought can't be thought --Dao De Jing by Lao Zi as translated by UKLG.) 2021-06-20 10:27:32 <-- MichaelLong (~ml@user/michaellong) has quit (Quit: MichaelLong) 2021-06-20 10:27:40 la_mettrie i mean, if that function fails, then we can tell to the user that loading failed. but is that enough? 2021-06-20 10:27:49 bertptrs likely, yes 2021-06-20 10:27:49 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-20 10:28:04 euouae You should also log the failure with a logger 2021-06-20 10:28:18 mike-burns Are you asking about the error message itself? 2021-06-20 10:28:28 <-- rglu (~rglu@2603-8090-2006-7fc6-2cf7-7331-f1c8-3b99.res6.spectrum.com) has quit (Quit: leaving) 2021-06-20 10:28:58 la_mettrie yes, i've been trying to find out how to get more specific error messages but i'm not sure if those functions even return more than success/fail 2021-06-20 10:29:27 mike-burns That message comes from the OS. 2021-06-20 10:29:45 mike-burns "No such file or directory", right? 2021-06-20 10:30:01 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-20 10:30:41 la_mettrie yes, i'd like to see an example which extracts those messages 2021-06-20 10:30:51 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-20 10:31:40 mike-burns > Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } 2021-06-20 10:32:20 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 10:33:21 mike-burns The common answer is to use the anyhow crate. 2021-06-20 10:35:38 bertptrs or not because you don't really need it 2021-06-20 10:37:32 bertptrs if you want to know the actual message, you can `to_string()` it, or use the Display implementation directly 2021-06-20 10:38:39 <-- euouae (~euouae@user/euouae) has quit (Quit: euouae) 2021-06-20 10:40:23 la_mettrie so i guess i have to use hours and hours to find out how this works 2021-06-20 10:40:32 bertptrs and in the case of an io::Error, you can use the kind() method to get an enum which sort of covers most cases 2021-06-20 10:40:37 la_mettrie or maybe not 2021-06-20 10:43:48 jbg that function doesn't just return success/fail, it returns success or an io::Error which tells you exactly why it failed 2021-06-20 10:44:14 jbg so the function as written is fine in terms of error reporting; it's up to the caller of the fn to do something appropriate with the error 2021-06-20 10:44:49 jbg if it's really main(), then I think it prints the Err variant if it exits with one, which should give enough info in general 2021-06-20 10:45:27 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-06-20 10:47:05 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-20 10:48:47 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-20 10:52:09 la_mettrie this doesn't work Err(err) => error = err.kind().to_string(), 2021-06-20 10:52:34 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 252 seconds) 2021-06-20 10:53:03 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Read error: Permission denied) 2021-06-20 10:53:19 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 10:56:35 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 10:58:16 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-20 11:03:11 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-20 11:04:22 <-- rjframe (~rjframe@c-68-38-42-188.hsd1.in.comcast.net) has quit (Quit: Leaving) 2021-06-20 11:07:36 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Ping timeout: 252 seconds) 2021-06-20 11:10:33 osse why not? 2021-06-20 11:11:57 la_mettrie error variable is string and it returns enum 'ErrorKind' 2021-06-20 11:12:06 la_mettrie i should know how to get string out of that enum if it contains one 2021-06-20 11:15:00 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 265 seconds) 2021-06-20 11:15:51 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-20 11:18:15 --> GNUcifer (~ct@i59F4BE39.versanet.de) has joined ##rust 2021-06-20 11:19:17 <-- cehteh (~ct@i59F4BE39.versanet.de) has quit (Ping timeout: 258 seconds) 2021-06-20 11:20:01 --> sh9 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-06-20 11:20:26 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-20 11:20:46 <-- Ivyy (~Ivyy@84.247.50.42) has quit (Ping timeout: 265 seconds) 2021-06-20 11:22:42 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 11:32:24 bertptrs ErrorKind does not contain a string, it is a representation of a lower level os error integer 2021-06-20 11:37:26 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 11:37:46 la_mettrie yeah, i have to study how to get those error messages out from there 2021-06-20 11:39:28 la_mettrie most of enum tutorials just tell how to get stuff out of enum if you already know what's in there 2021-06-20 11:39:40 bertptrs There are no strings in there 2021-06-20 11:40:05 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-06-20 11:40:21 la_mettrie yes, whatever there is, i should get it out 2021-06-20 11:40:27 --> est31 (~est31@user/est31) has joined ##rust 2021-06-20 11:40:48 bertptrs It is undefined what's in there 2021-06-20 11:41:03 bertptrs (but practically it's an integer) 2021-06-20 11:41:08 la_mettrie yes, i have to study how to get undefined stuff out of enum 2021-06-20 11:41:16 bertptrs You can't 2021-06-20 11:42:04 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 11:42:09 bertptrs What are you even trying to do 2021-06-20 11:42:55 la_mettrie trying to get those I/O error messages so that i could convert them into strings and show to the user 2021-06-20 11:43:35 bertptrs You can get an approximation by converting the std::io::Error to a string, or you can match on ErrorKind and write the strings yourself. Those are the options 2021-06-20 11:45:17 --> routeveg (~lee@197.ip-51-195-136.eu) has joined ##rust 2021-06-20 11:45:19 routeveg Lo all 2021-06-20 11:45:36 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-20 11:46:03 routeveg What's the 'nicest' way to read a number of bytes from a stream into a Vec ? 2021-06-20 11:46:43 routeveg Currently, i'm making a Vec, resizing it to the # of bytes I want to read, then doing a Reader.read_exact(vec.as_mut_slice()) 2021-06-20 11:47:43 bertptrs That 2021-06-20 11:48:07 bertptrs is already pretty much what you want to do. instead of vec.as_mut_slice() you can use &mut vec 2021-06-20 11:48:47 routeveg Hmm, ok. I guess the most unsatisfactory part of this is how I am doing a Vec::resize, which is zero-filling the memory. Then I am reading over those zeros. 2021-06-20 11:48:58 routeveg It'd be nice to skip the zero-filling step. 2021-06-20 11:49:12 routeveg I'm fairly sure it wouldn't matter most of the time, but seems like it should be possible. 2021-06-20 11:49:17 bertptrs you can combine create-vec + resize into a single vec![0; correct_length] 2021-06-20 11:49:31 bertptrs But efficient reading into uninitialized memory is unfortunately currently still unstable 2021-06-20 11:49:34 routeveg Regarding just passing the &mut vec directly: Oh interesting, how does that work? 2021-06-20 11:50:02 routeveg Is there some traity coercy thing going on? (I am pretty new to actually writing rust) 2021-06-20 11:50:11 bertptrs Vec implement Deref and DerefMut. You can read more into the docs for those traits 2021-06-20 11:50:26 routeveg Oh, right. That's pretty great :) 2021-06-20 11:50:29 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-06-20 11:55:30 routeveg Thanks for the guidance; this whole rust thing is pretty satisfying so far. I write C in my day job and while it's a shame to throw away all the good practices i've collected over the years...it feels like the ethical thing to do 2021-06-20 11:55:34 routeveg :P 2021-06-20 11:55:58 bertptrs all the good practices in C are just wallpaper over all the footguns 2021-06-20 11:56:10 bertptrs That said I've previously written C++ professionally so I know the pain 2021-06-20 11:56:34 -- jinsun_ is now known as jinsun 2021-06-20 11:58:56 <-- HalfWord_ (~halfword@user/halfword) has quit (Ping timeout: 252 seconds) 2021-06-20 12:01:00 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-20 12:02:52 --> ShibaInu (~shibe@168.235.76.252) has joined ##rust 2021-06-20 12:02:57 <-- ShibaInu (~shibe@168.235.76.252) has left ##rust 2021-06-20 12:03:25 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-20 12:04:54 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-20 12:05:37 --> Moomoc_ (~Moomoc@84.38.65.228) has joined ##rust 2021-06-20 12:09:50 Moomoc_ What is the syntax for a function pointer with a mutable argument? I have tried `fn(mut String);` and `fn(mut m: String)`, but both don't work. 2021-06-20 12:10:06 danieldg the latter 2021-06-20 12:10:13 danieldg well wait 2021-06-20 12:10:17 danieldg function pointers don't care about this 2021-06-20 12:10:23 danieldg so it's not even there 2021-06-20 12:10:46 danieldg the mutability of an argument is an internal detail of the function, not part of its signature 2021-06-20 12:11:05 Moomoc_ mmh, for trait declarations it is :) 2021-06-20 12:11:21 danieldg only if you have a default impl 2021-06-20 12:11:40 danieldg and even then, it doesn't need to match on other impls 2021-06-20 12:11:58 Moomoc_ Ok, omitting the mut now gives me this error: https://paste.rs/Znt 2021-06-20 12:12:12 danieldg that's not an error 2021-06-20 12:12:24 Moomoc_ Right, one second 2021-06-20 12:13:08 Moomoc_ danieldg: https://paste.rs/W69 2021-06-20 12:15:33 danieldg Moomoc_: actually cast the functions to that type 2021-06-20 12:15:42 Moomoc_ ugh 2021-06-20 12:15:46 danieldg or don't use an Into argument 2021-06-20 12:15:57 danieldg just having that type as the argument would suffice 2021-06-20 12:16:03 Moomoc_ I don't use into 2021-06-20 12:16:11 danieldg Into or From 2021-06-20 12:16:22 Moomoc_ I use neither of them, see the original paste 2021-06-20 12:16:26 j`ey is add_dependency your code? 2021-06-20 12:16:28 j`ey or a crate? 2021-06-20 12:16:41 danieldg I'm talking about add_dependency 2021-06-20 12:16:50 Moomoc_ Ah, that's in a crate: topological-sort 2021-06-20 12:17:07 danieldg yeah, it is causing issues 2021-06-20 12:17:26 Moomoc_ Hehe, ok. 2021-06-20 12:17:28 danieldg it's trying to do conversions for you, and that's not helpful here 2021-06-20 12:17:56 Moomoc_ So do I fork or can I work around this? 2021-06-20 12:18:11 danieldg ts.add_dependency(perform_work2 as Fun, ... 2021-06-20 12:18:41 danieldg maybe this will be fixed in the future - it does make sense to have an Into impl that does this conversion 2021-06-20 12:19:26 danieldg but function not-yet-pointer objects are a bit hard to describe in the type system at the moment 2021-06-20 12:20:15 Moomoc_ I see. I could have went with trait objects, but that is overkill for my use case. Thanks for the explanation, I get the problem :) 2021-06-20 12:22:32 Moomoc_ Thanks for your help 2021-06-20 12:24:19 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-20 12:24:33 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Read error: Permission denied) 2021-06-20 12:24:50 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 12:26:01 --> cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-06-20 12:27:22 routeveg Okay, hmm. I have a new thing - I want to define a new method on Result. That is, I want to add a function that can use the '.' syntax. 2021-06-20 12:27:42 <-- Moomoc_ (~Moomoc@84.38.65.228) has left ##rust 2021-06-20 12:27:47 routeveg I tried to do the thing, and rustc says I can't add another impl outside the defining crate of Result 2021-06-20 12:28:02 danieldg routeveg: you need to make a trait and impl that trait for Result 2021-06-20 12:28:05 routeveg Feels like I don't actually want an Impl. I just want a function 2021-06-20 12:28:15 routeveg Oh okay, hmm. i'll poke around 2021-06-20 12:28:31 j`ey routeveg: look for 'extension traits' if youre going to search 2021-06-20 12:29:16 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-20 12:35:41 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has joined ##rust 2021-06-20 12:36:00 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-20 12:36:43 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 258 seconds) 2021-06-20 12:38:10 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 252 seconds) 2021-06-20 12:49:05 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-20 12:53:06 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 13:14:21 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 265 seconds) 2021-06-20 13:15:43 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-20 13:19:01 --> pwnd_sfw6 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-20 13:19:42 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 265 seconds) 2021-06-20 13:19:42 -- pwnd_sfw6 is now known as pwnd_sfw 2021-06-20 13:19:43 --> ioxzev1z (~ioxzev1z@user/ioxzev1z) has joined ##rust 2021-06-20 13:22:21 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-20 13:22:40 -- GNUcifer is now known as cehteh 2021-06-20 13:22:49 --> Maker (~maker@70.18.215.45) has joined ##rust 2021-06-20 13:26:26 --> jeaye (~jeaye@user/jeaye) has joined ##rust 2021-06-20 13:27:11 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-20 13:28:22 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-20 13:36:27 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-20 13:38:13 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 13:42:48 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-20 13:42:54 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 13:44:42 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-20 13:50:42 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-20 13:51:00 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-20 13:52:28 -- night_wulfe_ is now known as night_wulfe 2021-06-20 13:52:33 <-- sadg (~odd@cpc113812-lea23-2-0-cust1375.6-3.cable.virginm.net) has quit (Quit: WeeChat 3.0.1) 2021-06-20 13:53:00 --> sadg (~odd@cpc113812-lea23-2-0-cust1375.6-3.cable.virginm.net) has joined ##rust 2021-06-20 13:53:03 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-20 13:53:16 <-- sadg (~odd@cpc113812-lea23-2-0-cust1375.6-3.cable.virginm.net) has quit (Client Quit) 2021-06-20 13:55:44 routeveg Hey, so I am having some confusion around something it seems I should be able to do 2021-06-20 13:55:51 routeveg https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=fee8cfa738ce8b0c929bb265e5efd5aa 2021-06-20 13:56:23 routeveg Here, i'm trying to make a function which takes a std::error::Error, and produces a Result> from it. 2021-06-20 13:57:02 danieldg routeveg: you need to say E:'static 2021-06-20 13:57:14 routeveg But the borrow checker seems to take issue with it. I'm not sure what the problem is, as I added the trait bound 'Copy', so the 'E' should be able to be passed by value, then moved into the box 2021-06-20 13:57:21 danieldg or change to dyn Error + 'a 2021-06-20 13:58:15 trev and also you forgot to derive Copy 2021-06-20 13:59:15 danieldg routeveg: in particular, the current function allows for a type that contains a reference like &u32, but the returned Box is declared as not having external references (the default for dyn Trait) 2021-06-20 14:02:48 routeveg Perhaps I misunderstand the meaning of 'static, but if I force E to be static, wouldn't that then require anything I pass in to be...well..static? 2021-06-20 14:02:56 danieldg no 2021-06-20 14:03:14 danieldg a type being 'static is different from a reference being static 2021-06-20 14:04:10 danieldg a 'static type just means it contains no references (other that 'static references) 2021-06-20 14:04:11 routeveg Ohhh I see 2021-06-20 14:04:59 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-20 14:05:06 <-- llorllale (~llorllale@2607:9880:3a18:69:acf9:f56f:2048:6af1) has quit (Ping timeout: 265 seconds) 2021-06-20 14:05:13 --> Narrat (~omnius@p200300df5f10627006ea56fffe2e7cdc.dip0.t-ipconnect.de) has joined ##rust 2021-06-20 14:09:03 routeveg Thanks! It seems to be appeased now :) 2021-06-20 14:09:21 routeveg I'll do more reading on that, and also the impl trait syntax which I hadn't encountered before 2021-06-20 14:09:56 danieldg note impl Trait and dyn Trait are related but quite distinct 2021-06-20 14:10:37 <-- tha (uid505233@id-505233.highgate.irccloud.com) has quit 2021-06-20 14:12:07 --> Moomoc_ (~Moomoc@84.38.65.228) has joined ##rust 2021-06-20 14:12:23 Moomoc_ Can I compare to fn() function pointers? 2021-06-20 14:12:40 Moomoc_ I only need equiality 2021-06-20 14:12:45 Moomoc_ * equality 2021-06-20 14:13:22 danieldg yes 2021-06-20 14:14:12 j`ey evalr2: fn foo(){} fn bar(){} fn eq(a: fn(), b: fn()) -> bool { a == b } (eq(foo, foo), eq(foo, bar)) 2021-06-20 14:14:15 -- Notice(evalr2): j`ey: (true, false) 2021-06-20 14:15:33 danieldg I guess there might be issues if you have 13 or more arguments to your function 2021-06-20 14:15:49 Moomoc_ Hehe, I will always have one. 2021-06-20 14:16:48 <-- lz0 (~lz0@user/lz0) has quit (Ping timeout: 272 seconds) 2021-06-20 14:17:27 j`ey impl PartialEq Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret 2021-06-20 14:17:31 j`ey lol 2021-06-20 14:17:33 Moomoc_ j`ey: Strange, when I had two functions and compared them and passed this value to println, it didn't compile (tried to compare fn() {a} with fn()`, but writing an eq function as you wrote works. 2021-06-20 14:17:36 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-20 14:18:08 danieldg Moomoc_: you have to cast them to pointers first 2021-06-20 14:18:10 j`ey because of coercions probably 2021-06-20 14:18:25 Moomoc_ aaaah, true 2021-06-20 14:18:32 j`ey evalr2: fn foo(){} fn bar(){} foo == bar 2021-06-20 14:18:34 -- Notice(evalr2): j`ey: error[E0369]: binary operation `==` cannot be applied to type `f ... 2021-06-20 14:18:35 -- Notice(evalr2): j`ey: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2a37467012c9fae7326ba98450a4a563 2021-06-20 14:18:38 --> Fairy97 (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has joined ##rust 2021-06-20 14:18:39 danieldg Moomoc_: by default, function names are a zero-sized type that is unique to the function 2021-06-20 14:18:48 <-- ioxzev1z (~ioxzev1z@user/ioxzev1z) has quit (Quit: Leaving) 2021-06-20 14:19:12 danieldg but you can convert that type to a pointer transparently 2021-06-20 14:19:18 Moomoc_ Ok, makes sense. Thanks to both of you 2021-06-20 14:19:23 Moomoc_ &a? 2021-06-20 14:19:32 danieldg no 2021-06-20 14:19:46 danieldg you'd use 'as' or pass it as an argument 2021-06-20 14:19:54 danieldg or assign it to a typed variable 2021-06-20 14:19:54 Moomoc_ ok 2021-06-20 14:21:32 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 265 seconds) 2021-06-20 14:22:00 <-- Fairy (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has quit (Ping timeout: 268 seconds) 2021-06-20 14:22:12 --> Deesl (~bsdboy@redhat/psirt/Deesl) has joined ##rust 2021-06-20 14:22:25 Moomoc_ My last problem is that topological sort has a requirement on T: Hash. fn(String) -> String is Hash, fn(&mut String) is not. Is there a work-around for that? Otherwise I will probably need to fork the code. 2021-06-20 14:23:13 danieldg erm, it should be Hash 2021-06-20 14:23:55 Moomoc_ Ok, my not so minimal toy code: https://paste.rs/IKz 2021-06-20 14:24:00 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Read error: Permission denied) 2021-06-20 14:24:17 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 14:25:26 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-20 14:26:06 danieldg evalr2: let mut m = std::collections::HashMap::new(); fn f(&mut String) {} let ff : fn(&mut String) = f; m.insert(ff, 3u32) 2021-06-20 14:26:09 -- Notice(evalr2): danieldg: error: expected one of `:`, `@`, or `|`, found `)` ... 2021-06-20 14:26:10 -- Notice(evalr2): danieldg: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ea62fe73f92da30057cdc63bc89e2319 2021-06-20 14:26:26 danieldg evalr2: let mut m = std::collections::HashMap::new(); fn f(_:&mut String) {} let ff : fn(&mut String) = f; m.insert(ff, 3u32) 2021-06-20 14:26:29 -- Notice(evalr2): danieldg: error: implementation of `Eq` is not general enough ... 2021-06-20 14:26:30 -- Notice(evalr2): danieldg: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5785c765f51a4285d76ce3abc4a09e69 2021-06-20 14:27:36 danieldg huh, seems like a bug in higher-ranked lifetimes there 2021-06-20 14:27:57 Moomoc_ Err? 2021-06-20 14:28:18 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 265 seconds) 2021-06-20 14:28:56 danieldg well, you can do this with trait objects instead of function pointers 2021-06-20 14:29:12 Moomoc_ Higher rank because it's a pointer to a function? So should it work in theory and I could have found a bug? 2021-06-20 14:29:13 danieldg that might need to be the solution, as annoying as it is 2021-06-20 14:29:19 Moomoc_ Oh no :) 2021-06-20 14:29:28 danieldg it's not really a bug, more a missing feature 2021-06-20 14:29:46 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 14:30:34 Moomoc_ I see. I thought I could get away by forking topological_sort and not usie a hashmap, but some type-level container and hence circumvent the necessity on Hash that it claims is the issue. 2021-06-20 14:31:15 danieldg if you look at the error I got, the Eq is also not generic enough 2021-06-20 14:31:28 danieldg so even btreemap will give you the problem 2021-06-20 14:31:54 --> Ivyy (~Ivyy@2001:a62:41d:fa01:af4c:e063:c46b:4788) has joined ##rust 2021-06-20 14:33:02 danieldg you can get around it using traits, but it's a bunch of dumb boilerplate that shouldn't be needed 2021-06-20 14:33:15 Moomoc_ Well, I thought to have struct List; struct End; List>; where a, b are functions 2021-06-20 14:35:32 --> sadg (~odd@cpc113812-lea23-2-0-cust1375.6-3.cable.virginm.net) has joined ##rust 2021-06-20 14:37:53 Moomoc_ danieldg: Just for understanding, when I implement something myself, I would get at some point into similar trouble because I cannot compare function pointers with mutable lifetimes, right? 2021-06-20 14:38:39 danieldg yep, this issue is because function pointers with references in the arguments don't "work right" 2021-06-20 14:38:49 danieldg any references, not just mut 2021-06-20 14:39:25 Moomoc_ Alright, thanks 2021-06-20 14:40:07 --> llorllale (~llorllale@2607:9880:3a18:69:cd00:7e66:2790:8be6) has joined ##rust 2021-06-20 14:40:34 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-20 14:40:50 danieldg Moomoc_: trait StringMapper { fn map(&self, s : &mut String); } struct PerformWork1; impl StringMapper for PerformWork1 { fn map(&self, s : &mut String) { m.push_str("") }} 2021-06-20 14:41:32 <-- Deesl (~bsdboy@redhat/psirt/Deesl) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-20 14:41:54 danieldg then type Fun = &'static dyn StringMapper; static PERFORM_WORK1 : PerformWork1 = PerformWork1; and use &PERFORM_WORK1 in the function calls 2021-06-20 14:43:32 Moomoc_ A reference to a trait object? :) 2021-06-20 14:43:33 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-06-20 14:43:49 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-20 14:43:56 danieldg yep 2021-06-20 14:44:06 Moomoc_ And that'll be hasheable and Eq? 2021-06-20 14:44:24 danieldg oh, you'll need to add those to the trait 2021-06-20 14:44:38 danieldg trait StringMapper : Hash + Eq + 'static { ... 2021-06-20 14:44:58 Moomoc_ mmmmh, would it be derivable? 2021-06-20 14:45:09 danieldg yes, you derive it on PerformWork1 2021-06-20 14:45:28 danieldg ... I think 2021-06-20 14:45:46 danieldg actually I don't know how easy it is to Eq on trait objects 2021-06-20 14:46:14 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-20 14:46:36 danieldg maybe easier solution: forget the trait, wrap the function pointers in a struct 2021-06-20 14:46:45 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-20 14:46:45 danieldg then impl Hash and PartialEq on that struct 2021-06-20 14:47:17 <-- Liexei (Liexei@user/liexei) has quit (Quit: Bye...) 2021-06-20 14:47:31 Moomoc_ Yes, but I am not sure how to implement Eq if I cannot pass it through. 2021-06-20 14:47:41 --> Liexei (Liexei@user/liexei) has joined ##rust 2021-06-20 14:47:43 danieldg std::ptr::eq 2021-06-20 14:47:43 Moomoc_ Except for casting it to some u64 or alike and comparing 2021-06-20 14:47:52 Moomoc_ hehe, ok. 2021-06-20 14:48:37 Moomoc_ That might actually be the solution, and it seems less painful than the trait object solution, even though I find it a good thing to think through 2021-06-20 14:48:48 danieldg for Hash you probably do need to cast to usize 2021-06-20 14:48:49 Moomoc_ (to think through → trait objects) 2021-06-20 14:50:35 Moomoc_ danieldg: But to recover the usize, I'd need to have unsafe code, right? 2021-06-20 14:50:38 danieldg you wouldn't be able to compare the trait objects until std::ptr::Pointee is stable 2021-06-20 14:50:48 Moomoc_ Recover usize -> fn() 2021-06-20 14:50:48 danieldg no, you can 'as usize' pointers in safe code 2021-06-20 14:51:11 danieldg it's just using raw pointers that is unsafe 2021-06-20 14:51:37 Moomoc_ fn() as usize works for me. Vice versa doesnt and that makes sense. 2021-06-20 14:53:18 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-20 14:53:45 danieldg note I think it's valid for the compiler to use the same address for two identical functions 2021-06-20 14:54:04 danieldg I don't think rust/llvm actually does this (it really hinders debugging) 2021-06-20 14:54:21 danieldg but it's something to keep in mind 2021-06-20 14:54:25 Moomoc_ It would probably boil down to this: https://paste.rs/Kk2 2021-06-20 14:54:50 Moomoc_ What do you mean it is valid? Sure it is, this is the point of function pointers. Or do you mean something else? 2021-06-20 14:55:48 danieldg Moomoc_: if you are ordering function pointers based on some graph and two of the functions you order are identical and go to the same address, they might be equal when you'd expect them unequal 2021-06-20 14:56:16 danieldg or maybe they're unequal in debug mode but equal in release 2021-06-20 14:56:20 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 265 seconds) 2021-06-20 14:56:24 danieldg which is never a fun thing to happen 2021-06-20 14:57:01 Moomoc_ You mean the functions would get the same symbol in the binary, even though from the code they look like different functions? 2021-06-20 14:57:17 Moomoc_ and hence I would expect them to be different, but they're not? 2021-06-20 14:57:23 danieldg well, you can have two symbols point the same address 2021-06-20 14:57:34 Moomoc_ Also true 2021-06-20 14:57:55 Moomoc_ I'll fork that library and implement the algorithm without hash an d eq. You convinced me. 2021-06-20 14:58:04 Moomoc_ * Eq 2021-06-20 14:58:44 Moomoc_ But I really learned an awful lot. Thank you very much 2021-06-20 15:03:08 <-- hendursaga (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-06-20 15:03:21 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-20 15:03:36 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-20 15:04:58 --> sjaustirni (~sjaustirn@user/sjaustirni) has joined ##rust 2021-06-20 15:10:12 --> bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has joined ##rust 2021-06-20 15:11:50 Polochon_street hi! I'm writing some doc, and would like to do like [item](Item::something) in a module where `Item` is not imported - how could I do that without the linter screaming that I imported `Item` needlessly? 2021-06-20 15:12:13 danieldg #[cfg(doc)] use 2021-06-20 15:12:31 Polochon_street erf, tried [doc], obviously it didn't work. Thanks 2021-06-20 15:17:36 routeveg It looks like there's some interesting coercion stuff going on around the ? operator here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a64d49f6bb79d591784f3f917aee17d1 2021-06-20 15:18:10 routeveg Specifically, it appears that a String coerces readily to a Box, but only when the ? is used 2021-06-20 15:18:19 j`ey routeveg: ? calls .into() 2021-06-20 15:18:25 routeveg (If you try to assign/return it directly as a Result, it doesn't do the thing 2021-06-20 15:18:31 routeveg oo, *checks docs* 2021-06-20 15:20:37 peterandre hi, i have alot of .tis .css and .html files that i want to include in my binary (.exe) i use include_bytes to include index.html But inside the file index.html index.css is loaded. How can i load the index.css when include_bytes is used ? 2021-06-20 15:21:28 Tacklebox You can use build.rs to invoke a bundler to inline your referenced assets so it's all one file for include_bytes to include 2021-06-20 15:21:41 peterandre ah ok 2021-06-20 15:22:08 peterandre thanks 2021-06-20 15:25:49 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 265 seconds) 2021-06-20 15:26:22 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-20 15:38:07 db48x another common thing to do is to create a zip file of all of your assets, then decompress it into memory at run time 2021-06-20 15:39:01 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 15:39:07 peterandre ok cool. do you have some example ? 2021-06-20 15:39:13 peterandre or short guide 2021-06-20 15:39:17 db48x if you avoid using compression when creating the zip file, then there is no need for extra copies when you read individual files 2021-06-20 15:40:49 db48x peterandre, Firefox is a good example 2021-06-20 15:41:07 db48x look for the file called “omni.ja” 2021-06-20 15:42:59 peterandre ok 2021-06-20 15:43:44 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 15:43:44 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 265 seconds) 2021-06-20 15:45:26 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-20 15:51:55 <-- dcz (~dcz@dynamic-078-048-103-020.78.48.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-06-20 15:53:04 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-20 15:53:22 <-- Roughy (~mdaw45ns@user/roughy) has quit (Ping timeout: 258 seconds) 2021-06-20 15:54:15 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-20 16:00:00 --> freakazoid334 (~freakazoi@72.168.176.37) has joined ##rust 2021-06-20 16:01:41 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-20 16:09:12 <-- jinsun (~quassel@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-20 16:09:39 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-20 16:16:58 --> Arnik (~arnik@151.243.61.62) has joined ##rust 2021-06-20 16:18:18 <-- viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 264 seconds) 2021-06-20 16:19:05 <-- ziper (~deamon@212.237.171.46) has quit (Quit: ziper) 2021-06-20 16:20:13 routeveg I made a thing https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c1596315debf0127af8b1b392d50cd23 2021-06-20 16:20:17 routeveg This 'check' function 2021-06-20 16:20:33 routeveg Seems like this is a pattern - is there something in std:: for this behavior? 2021-06-20 16:20:48 routeveg (to use with the ? operator to convert assertions into Err) 2021-06-20 16:26:25 <-- freakazoid334 (~freakazoi@72.168.176.37) has quit (Read error: Connection reset by peer) 2021-06-20 16:27:54 <-- derpadmin (~derpadmin@2a07:12c0:1780:1313:1313:1313:1313:1313) has quit (Read error: Connection reset by peer) 2021-06-20 16:37:23 <-- msavoritias (~msavoriti@mobile-access-b0484d-56.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-06-20 16:40:48 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has quit 2021-06-20 16:42:18 Arnavion Nothing built-in. You can make a fn like you did, or abuse cond.then(|| ()).ok_or("check failed")?; , or some error crates like anyhow have an ensure! macro 2021-06-20 16:42:32 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-20 16:47:42 --> dark-knight (~dark-knig@2a02:8388:1984:a800:7532:ae91:b679:864f) has joined ##rust 2021-06-20 16:53:22 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-20 16:54:49 --> viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-20 16:57:21 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-20 16:57:37 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-20 16:58:29 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 17:00:48 <-- Roughy (~mdaw45ns@user/roughy) has quit (Read error: Connection reset by peer) 2021-06-20 17:03:27 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 17:05:01 <-- sadg (~odd@cpc113812-lea23-2-0-cust1375.6-3.cable.virginm.net) has quit (Quit: WeeChat 3.0.1) 2021-06-20 17:17:24 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-20 17:17:45 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-20 17:21:48 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-20 17:22:40 <-- Narrat (~omnius@p200300df5f10627006ea56fffe2e7cdc.dip0.t-ipconnect.de) has quit (Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.) 2021-06-20 17:25:41 <-- Arnik (~arnik@151.243.61.62) has quit (Ping timeout: 265 seconds) 2021-06-20 17:27:41 Polochon_street hmm, I'm trying to pass around `FnOnce`s, but when putting them in traits and iterating with them (like this simple example https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1fccb19b4412f42ac28e609370b313c1), it doesn't compile, would anyone have any idea as to why? 2021-06-20 17:27:44 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-20 17:28:10 --> flynn (~mcbloch@user/flynn) has joined ##rust 2021-06-20 17:28:43 danieldg Polochon_street: you're using the function more than once 2021-06-20 17:29:25 danieldg sort_by_cached_key calls its closure multiple times 2021-06-20 17:30:03 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-20 17:30:26 Polochon_street yep, but how is that a problem? 2021-06-20 17:31:01 danieldg it's a move 2021-06-20 17:34:45 --> ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has joined ##rust 2021-06-20 17:35:50 Polochon_street solved it like this https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=558da8729bfd8f5f05f7bed380275669, by replacing FnOnce par Fn, and using an explicit closure, not sure how nice it is 2021-06-20 17:37:15 danieldg the explicit closure isn't really needed 2021-06-20 17:38:06 Polochon_street but it doesn't really compile without it :P 2021-06-20 17:38:12 danieldg you could use FnMut, you don't have to go down all the way to Fn 2021-06-20 17:39:11 danieldg oh, just pass &function 2021-06-20 17:40:35 <-- bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has quit (Quit: Leaving) 2021-06-20 17:40:51 Polochon_street isn't `use_function` expecting an actual F, not &F ? 2021-06-20 17:41:21 danieldg there's an impl Fn for &T 2021-06-20 17:42:33 --> Arnik (~arnik@31.59.254.129) has joined ##rust 2021-06-20 17:42:35 Polochon_street hm, the compiler complains about ``Fn<(u32,)>` closure, found `F``. My knowledge about Fn/FnOnce/FnMut is super rusty though, so that's on me. I guess a rustbook refresher should be good enough to help me solve this right? 2021-06-20 17:42:52 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-20 17:47:09 routeveg Arnavion: Ah understood. Thanks :) 2021-06-20 17:50:14 <-- frostschutz (~frostschu@2a01:c23:7918:f900:246f:5df9:8518:6413) has quit (Remote host closed the connection) 2021-06-20 17:52:03 yourfate so, as a pet project I wanna build yet another time tracking software, which outputs the data in reports that I can copy/paste into the forms at work. Now I'm thinking of how to store the data. a: directory struction, folder per year, each day is a .toml file with serialized structs inside 2021-06-20 17:52:14 yourfate b: use a database (which I have no clue about but kinda would like to learn 2021-06-20 17:53:12 --> gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has joined ##rust 2021-06-20 17:53:31 danieldg database like sqlite is probably the best 2021-06-20 17:53:50 danieldg ad-hoc filesyste-based databases are actually harder to use imo 2021-06-20 17:54:31 danieldg but then I've actually used databases before, there is a learning curve 2021-06-20 17:54:35 yourfate ok, so sqlite is kinda boring, which cool technology db do I use? prostgresql or redis? :D 2021-06-20 17:54:39 dav1d I prefer the file based approach, work in memory, persist to FS 2021-06-20 17:55:06 dav1d postgres will be like sqlite (just with a server), redis isnt really made for persistance, but could be configured for it 2021-06-20 17:55:17 yourfate ah 2021-06-20 17:55:28 danieldg yeah, dealing with a server is likely overkill for this 2021-06-20 17:55:41 yourfate rn I use emacs org mode for this 2021-06-20 17:55:55 yourfate but I don't speak elisp and don't really ahve too much interest to learn it 2021-06-20 17:56:05 yourfate was I'd need to build the reporting tool in that 2021-06-20 17:56:14 yourfate *as 2021-06-20 17:56:19 danieldg learning sql is likely useful to you 2021-06-20 17:56:24 yourfate maby 2021-06-20 17:56:26 danieldg at least simple sql 2021-06-20 17:56:37 yourfate tho i'm an electrical engineer 2021-06-20 17:56:41 <-- rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has quit (Quit: WeeChat 3.0) 2021-06-20 17:59:11 <-- ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has quit (Quit: Leaving) 2021-06-20 17:59:55 dav1d yourfate, Never got around to try it, but this might be interesting for you: https://docs.rs/sled/0.34.6/sled/ 2021-06-20 18:00:36 dav1d There are also probably a few implementations similar to https://docs.python.org/3/library/shelve.html 2021-06-20 18:02:13 yourfate there are many words I don't know in the readme :D 2021-06-20 18:02:15 yourfate looks interesting 2021-06-20 18:02:53 dav1d tbh probably overkill and/or not suited, but could be something to experiment with 2021-06-20 18:03:00 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-20 18:04:09 yourfate but i'd have to think how to structure my data for that 2021-06-20 18:04:37 yourfate for files I'd probably just do a clock event struct, with timestamp, and a type enum, for clock start / pause start / pause end / clock end 2021-06-20 18:04:38 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-20 18:05:03 yourfate each day can have arbitrary pairs of those 2021-06-20 18:06:10 <-- sjaustirni (~sjaustirn@user/sjaustirni) has quit 2021-06-20 18:09:40 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-20 18:12:13 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-20 18:12:47 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 244 seconds) 2021-06-20 18:14:03 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-20 18:16:31 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Read error: Permission denied) 2021-06-20 18:16:47 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 18:17:19 --> bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has joined ##rust 2021-06-20 18:17:26 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Ping timeout: 265 seconds) 2021-06-20 18:20:39 <-- wolfshappen_ (~waff@irc.furworks.de) has quit (Ping timeout: 268 seconds) 2021-06-20 18:21:07 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-20 18:21:20 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-20 18:24:54 --> ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has joined ##rust 2021-06-20 18:28:17 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:7532:ae91:b679:864f) has quit (Ping timeout: 244 seconds) 2021-06-20 18:41:48 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-20 18:46:34 --> haritz (~hrtz@user/haritz) has joined ##rust 2021-06-20 18:53:52 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-20 18:59:16 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 19:00:46 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has joined ##rust 2021-06-20 19:03:53 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-20 19:04:40 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 19:10:45 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-20 19:11:52 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-20 19:13:50 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-20 19:16:20 --> nate1 (~nate@2601:1c0:4201:35b0:580e:3804:cf92:f841) has joined ##rust 2021-06-20 19:17:49 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-20 19:18:57 --> sh91 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-06-20 19:21:14 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Ping timeout: 265 seconds) 2021-06-20 19:21:42 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-20 19:26:03 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-20 19:29:34 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-20 19:30:23 <-- Arnik (~arnik@31.59.254.129) has quit (Ping timeout: 265 seconds) 2021-06-20 19:30:54 --> wolfshappen (~waff@irc.furworks.de) has joined ##rust 2021-06-20 19:31:16 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-06-20 19:31:50 <-- nate1 (~nate@2601:1c0:4201:35b0:580e:3804:cf92:f841) has quit (Ping timeout: 265 seconds) 2021-06-20 19:33:51 --> rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-20 19:34:25 <-- Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has quit (Ping timeout: 244 seconds) 2021-06-20 19:35:10 rtyler I'm hoping somebody can help me with a pattern that seems to elude me right now: I basically need a runloop wherein I give a function sessionA, and it returns to me sessionA1, on the next iteration of the loop the function should be given sessionA1 and be returned sessionA2, etc, etc. Of course my naive implementation fails because the value is moved in previous iterations of the loop 2021-06-20 19:35:53 -- sh91 is now known as sh9 2021-06-20 19:36:52 danieldg rtyler: just give the function &mut session? 2021-06-20 19:37:16 danieldg rtyler: you can also do this with moves, though 2021-06-20 19:37:31 danieldg i.e. the naive implementation should work 2021-06-20 19:37:49 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Quit: WeeChat 3.0.1) 2021-06-20 19:41:23 rtyler perhaps my naive implementation is different than yours :P 2021-06-20 19:41:38 danieldg make one on the playground 2021-06-20 19:41:44 rtyler let mut session = foo(); loop { let session = consume(session); } 2021-06-20 19:41:57 danieldg drop the let 2021-06-20 19:41:58 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-20 19:42:23 rtyler huh, I knew it'd be something silly, thanks again danieldg :P 2021-06-20 19:44:09 <-- wolfshappen (~waff@irc.furworks.de) has quit (Quit: later) 2021-06-20 19:44:29 --> wolfshappen (~waff@irc.furworks.de) has joined ##rust 2021-06-20 19:44:54 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-20 19:48:16 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-20 20:06:13 --> [Kalisto]1 (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-20 20:06:56 --> vxvshnuj (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-20 20:07:29 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-20 20:07:58 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-06-20 20:08:24 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-20 20:08:36 -- [Kalisto]1 is now known as [Kalisto] 2021-06-20 20:09:40 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-20 20:11:48 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-20 20:20:01 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-20 20:22:10 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 20:26:05 <-- mIGu (~mig21@user/naur) has quit (Ping timeout: 272 seconds) 2021-06-20 20:26:56 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 20:27:25 <-- Ivyy (~Ivyy@2001:a62:41d:fa01:af4c:e063:c46b:4788) has quit (Ping timeout: 265 seconds) 2021-06-20 20:28:31 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-20 20:28:41 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-20 20:32:51 --> deivislk (~deivislk@189.7.117.212) has joined ##rust 2021-06-20 20:35:53 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 258 seconds) 2021-06-20 20:36:31 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Read error: Permission denied) 2021-06-20 20:36:47 --> sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has joined ##rust 2021-06-20 20:41:00 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:3573:4e54:4d99:437f) has quit (Remote host closed the connection) 2021-06-20 20:50:37 <-- viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 265 seconds) 2021-06-20 20:52:14 <-- brainfunnel (~quassel@72.141.208.46.dyn.plus.net) has quit (Quit: thanks, bye!) 2021-06-20 20:57:57 <-- schmillin_ (~schmillin@user/schmillin) has quit (Quit: Leaving) 2021-06-20 20:58:11 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-20 21:05:44 --> starblue (~juergen@dslb-178-006-092-053.178.006.pools.vodafone-ip.de) has joined ##rust 2021-06-20 21:08:59 <-- starblue3 (~juergen@dslb-188-109-109-174.188.109.pools.vodafone-ip.de) has quit (Ping timeout: 265 seconds) 2021-06-20 21:09:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-20 21:12:13 <-- vxvshnuj (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: vxvshnuj) 2021-06-20 21:12:22 <-- sgift (~madison@2001:a61:346f:bb01:74c5:c9df:ca56:192a) has quit (Ping timeout: 265 seconds) 2021-06-20 21:18:50 <-- schmillin (~schmillin@user/schmillin) has quit (Remote host closed the connection) 2021-06-20 21:25:33 <-- db48x (~db48x@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 268 seconds) 2021-06-20 21:30:20 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-20 21:33:00 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 258 seconds) 2021-06-20 21:34:23 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-20 21:37:59 <-- deivislk (~deivislk@189.7.117.212) has quit (Ping timeout: 258 seconds) 2021-06-20 21:42:54 <-- ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has quit (Ping timeout: 264 seconds) 2021-06-20 21:43:14 --> aquijoule__ (~richbridg@213-225-32-247.nat.highway.a1.net) has joined ##rust 2021-06-20 21:44:10 --> deivislk (~deivislk@189.7.117.212) has joined ##rust 2021-06-20 21:44:46 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-20 21:45:10 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-20 21:45:36 <-- aquijoule_ (~richbridg@213-225-10-42.nat.highway.a1.net) has quit (Ping timeout: 252 seconds) 2021-06-20 21:53:42 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-20 22:08:08 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-20 22:09:56 --> freakazoid333 (~freakazoi@72.168.176.37) has joined ##rust 2021-06-20 22:11:51 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-20 22:15:01 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-06-20 22:15:28 --> ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has joined ##rust 2021-06-20 22:16:32 <-- Disconsented (~quassel@107.170.227.20) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-20 22:21:02 <-- vicfred (~vicfred@user/vicfred) has quit (Ping timeout: 265 seconds) 2021-06-20 22:21:47 --> rateliux (ratelius@gateway/vpn/protonvpn/ratelius) has joined ##rust 2021-06-20 22:22:56 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-20 22:24:55 <-- ratelius (ratelius@gateway/vpn/protonvpn/ratelius) has quit (Ping timeout: 244 seconds) 2021-06-20 22:32:38 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-20 22:34:03 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 265 seconds) 2021-06-20 22:37:11 --> Disconsented (~quassel@107.170.227.20) has joined ##rust 2021-06-20 22:41:53 <-- Maker (~maker@70.18.215.45) has quit 2021-06-20 22:43:37 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-20 22:46:47 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-20 22:48:01 --> Khoyo (~khoyo@user/khoyo) has joined ##rust 2021-06-20 22:57:16 <-- gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has quit (Quit: ZZZzzz…) 2021-06-20 23:04:37 <-- deivislk (~deivislk@189.7.117.212) has quit (Ping timeout: 258 seconds) 2021-06-20 23:11:00 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-20 23:18:47 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 23:22:46 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-20 23:25:32 --> gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has joined ##rust 2021-06-20 23:27:41 --> db48x (~db48x@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-20 23:33:45 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-20 23:35:36 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-20 23:36:49 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 258 seconds) 2021-06-20 23:36:50 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-20 23:42:56 <-- db48x (~db48x@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Quit: ERC (IRC client for Emacs 27.2)) 2021-06-20 23:47:10 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-20 23:49:27 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-20 23:56:20 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-20 23:56:44 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 265 seconds) 2021-06-20 23:57:33 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-21 00:00:41 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-21 00:00:59 --> ur5us_ (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has joined ##rust 2021-06-21 00:01:48 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 00:01:49 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-21 00:01:59 --> cheakoirccloud_ (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-06-21 00:02:06 --> darkapex_ (uid360049@user/darkapex) has joined ##rust 2021-06-21 00:02:10 --> explore_ (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-21 00:02:37 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 00:03:02 --> Liexei- (Liexei@user/liexei) has joined ##rust 2021-06-21 00:03:21 --> hnOsmium0001_ (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-21 00:03:25 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-21 00:04:02 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-21 00:04:29 --> emerent_ (~quassel@p200300cd5703bb7dba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-21 00:04:29 <-- emerent (~quassel@p200300cd5703bbd5ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Killed (mercury.libera.chat (Nickname regained by services))) 2021-06-21 00:04:29 -- emerent_ is now known as emerent 2021-06-21 00:04:44 --> np (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-21 00:04:49 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-21 00:04:51 --> sudoforg1 (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-21 00:05:01 --> chronon_ (~chronon@user/chronon) has joined ##rust 2021-06-21 00:05:26 --> llorllale1 (~llorllale@2607:9880:3a18:69:cd00:7e66:2790:8be6) has joined ##rust 2021-06-21 00:05:29 rk4 another 3-4 weeks before programming rust 2nd edition arrives :< 2021-06-21 00:06:09 rk4 thinking i'll work through it then see what rust jobs are floating about 2021-06-21 00:06:14 --> starblue1 (~juergen@dslb-178-006-092-053.178.006.pools.vodafone-ip.de) has joined ##rust 2021-06-21 00:07:03 --> RemiYuko (~licht@user/akechishiro) has joined ##rust 2021-06-21 00:07:57 --> OverflwnRE (~Overflwn@2a02:8070:c3b7:5b00::c639) has joined ##rust 2021-06-21 00:08:17 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-21 00:08:19 --> tsal_ (~tsal@user/tsal) has joined ##rust 2021-06-21 00:08:22 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-21 00:09:36 <-- gco (~gco@2601:647:5a00:524:ce5:8a6:8524:7a17) has quit (*.net *.split) 2021-06-21 00:09:36 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (*.net *.split) 2021-06-21 00:09:36 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-21 00:09:36 <-- ur5us (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has quit (*.net *.split) 2021-06-21 00:09:36 <-- darkapex (uid360049@user/darkapex) has quit (*.net *.split) 2021-06-21 00:09:36 <-- tsal (~tsal@user/tsal) has quit (*.net *.split) 2021-06-21 00:09:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (*.net *.split) 2021-06-21 00:09:36 <-- starblue (~juergen@dslb-178-006-092-053.178.006.pools.vodafone-ip.de) has quit (*.net *.split) 2021-06-21 00:09:36 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (*.net *.split) 2021-06-21 00:09:36 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (*.net *.split) 2021-06-21 00:09:36 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has quit (*.net *.split) 2021-06-21 00:09:36 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (*.net *.split) 2021-06-21 00:09:36 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (*.net *.split) 2021-06-21 00:09:36 <-- chronon (~chronon@user/chronon) has quit (*.net *.split) 2021-06-21 00:09:36 <-- Liexei (Liexei@user/liexei) has quit (*.net *.split) 2021-06-21 00:09:36 <-- llorllale (~llorllale@2607:9880:3a18:69:cd00:7e66:2790:8be6) has quit (*.net *.split) 2021-06-21 00:09:37 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-21 00:09:37 <-- cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has quit (*.net *.split) 2021-06-21 00:09:37 <-- MichaelLong (~ml@user/michaellong) has quit (*.net *.split) 2021-06-21 00:09:37 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (*.net *.split) 2021-06-21 00:09:37 <-- img (~img@user/img) has quit (*.net *.split) 2021-06-21 00:09:37 <-- bowlofeggs (~bowlofegg@fedora/bowlofeggs) has quit (*.net *.split) 2021-06-21 00:09:37 <-- AkechiShiro (~licht@user/akechishiro) has quit (*.net *.split) 2021-06-21 00:09:37 -- darkapex_ is now known as darkapex 2021-06-21 00:09:37 -- Liexei- is now known as Liexei 2021-06-21 00:09:37 -- explore_ is now known as explore 2021-06-21 00:09:37 -- cheakoirccloud_ is now known as cheakoirccloud 2021-06-21 00:09:41 -- hnOsmium0001_ is now known as hnOsmium0001 2021-06-21 00:16:43 --> img (~img@user/img) has joined ##rust 2021-06-21 00:28:40 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 00:33:10 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-21 00:33:15 <-- rozbb (~ksundar@pool-96-239-34-154.nycmny.fios.verizon.net) has quit (Quit: Leaving) 2021-06-21 00:37:39 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-21 00:40:14 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-21 00:42:29 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-21 00:43:28 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-21 00:50:06 --> trev (~trev@user/trev) has joined ##rust 2021-06-21 00:54:34 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 00:55:19 --> cesarb (~cesarb@user/cesarb) has joined ##rust 2021-06-21 00:59:34 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-21 01:00:08 <-- ChanServ (ChanServ@services.libera.chat) has quit (shutting down) 2021-06-21 01:01:17 <-- bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has quit (Quit: Leaving) 2021-06-21 01:06:12 -- saatii is now known as saati 2021-06-21 01:14:56 --> ChanServ (ChanServ@services.libera.chat) has joined ##rust 2021-06-21 01:14:56 -- Mode ##rust [+o ChanServ] by copper.libera.chat 2021-06-21 01:15:40 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 01:18:48 <-- ac5tin (~ac5tin@user/ac5tin) has quit (Quit: WeeChat 3.1) 2021-06-21 01:19:05 --> ac5tin (~ac5tin@user/ac5tin) has joined ##rust 2021-06-21 01:20:17 --> |7| (~seachdamh@user/seachdamh) has joined ##rust 2021-06-21 01:23:19 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 01:24:06 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-21 01:25:50 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-21 01:26:49 --> comatory (~ondrejsyn@182.24.broadband4.iol.cz) has joined ##rust 2021-06-21 01:30:47 <-- |7| (~seachdamh@user/seachdamh) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-06-21 01:31:06 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 01:32:27 --> |7| (~seachdamh@user/seachdamh) has joined ##rust 2021-06-21 01:34:17 <-- cjb (~cjb@user/cjb) has quit 2021-06-21 01:34:23 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Read error: Connection reset by peer) 2021-06-21 01:35:46 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 01:37:41 <-- ur5us_ (~ur5us@2406:e002:6adb:4101:bf0a:c10b:6645:4acb) has quit (Ping timeout: 252 seconds) 2021-06-21 01:40:54 --> bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-06-21 01:41:29 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-21 01:47:21 <-- rateliux (ratelius@gateway/vpn/protonvpn/ratelius) has quit (Quit: WeeChat 3.2-rc1) 2021-06-21 01:49:29 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-21 01:55:12 <-- sudoforg1 (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 258 seconds) 2021-06-21 01:57:30 <-- comatory (~ondrejsyn@182.24.broadband4.iol.cz) has quit (Ping timeout: 268 seconds) 2021-06-21 02:00:05 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-21 02:02:42 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-21 02:08:20 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 02:10:30 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 264 seconds) 2021-06-21 02:15:27 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 02:15:39 --> mr_ballon (uid294865@id-294865.brockwell.irccloud.com) has joined ##rust 2021-06-21 02:17:47 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-21 02:19:18 --> Cymew (~ante@c-ef9c225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-21 02:22:10 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-21 02:23:29 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-21 02:25:06 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-21 02:25:34 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 02:34:19 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-21 02:34:52 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-21 02:35:59 <-- unyu (~pyon@user/pyon) has quit (Client Quit) 2021-06-21 02:40:26 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-21 02:41:43 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-21 02:47:02 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-21 02:50:43 --> anchorite_ (~anchorite@95.111.56.99) has joined ##rust 2021-06-21 02:51:09 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 268 seconds) 2021-06-21 02:54:16 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-21 02:54:56 <-- chronon_ (~chronon@user/chronon) has quit (Quit: leaving) 2021-06-21 03:00:28 --> dmathieu (~textual@pop.92-184-110-219.mobile.abo.orange.fr) has joined ##rust 2021-06-21 03:01:26 <-- cesarb (~cesarb@user/cesarb) has quit (Quit: Leaving) 2021-06-21 03:03:58 Geekingfrog Uhm, when I run `cargo build --release` and immediately follow with `cargo install --path .` is still builds a lot of stuff. I would have thought that install was simply a copy of the released binary? What is cargo doing? 2021-06-21 03:04:57 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-21 03:05:02 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-21 03:05:45 <-- dmathieu (~textual@pop.92-184-110-219.mobile.abo.orange.fr) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-21 03:06:52 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-21 03:09:12 --> dmathieu (~textual@pop.92-184-110-219.mobile.abo.orange.fr) has joined ##rust 2021-06-21 03:14:55 jbg afaik cargo install always builds with a temporary target dir 2021-06-21 03:15:20 jbg it's not really like `make install` 2021-06-21 03:16:49 jbg if you want it to reuse your development target dir you can probably set CARGO_TARGET_DIR explicitly 2021-06-21 03:18:29 jbg also, `cargo install` ignores `Cargo.lock` by default, which would also cause some stuff to be built if you haven't run `cargo update` recently. you can use `cargo install --locked` to make it use the (potentially older) dependencies locked in `Cargo.lock` 2021-06-21 03:19:23 saati do you know why? 2021-06-21 03:20:06 saati i mean what was the rationale for those two decisions 2021-06-21 03:21:12 jbg `cargo install` is not like `make install`. the purpose of `cargo install` is for things like `cargo install ripgrep` 2021-06-21 03:21:40 jbg and it makes good sense for that to use the latest compatible dependencies and to use a temporary target dir 2021-06-21 03:22:23 jbg then in that context you can see `cargo install --path` as being basically a tool for testing out your local in-development crate with `cargo install`, so it makes sense for it to work the same way 2021-06-21 03:25:09 <-- Arnavion (arnavion@user/arnavion) has quit (Quit: Arnavion) 2021-06-21 03:25:18 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-21 03:26:03 <-- evalr2 (arnavion@user/arnavion) has quit (Remote host closed the connection) 2021-06-21 03:26:10 --> evalr2 (arnavion@user/arnavion) has joined ##rust 2021-06-21 03:29:54 Geekingfrog Ok, makes sense 2021-06-21 03:31:14 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 268 seconds) 2021-06-21 03:35:07 --> Boomerang (~Boomerang@xd520f68c.cust.hiper.dk) has joined ##rust 2021-06-21 03:35:15 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 258 seconds) 2021-06-21 03:46:08 --> viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-21 03:46:18 Moomoc_ I want to match a type in a macro, but cannot use the binding multiple times, e.g. ($arg:ty foo bar $arg). Is there a work-around? 2021-06-21 03:52:32 <-- evalr2 (arnavion@user/arnavion) has quit (Remote host closed the connection) 2021-06-21 03:52:32 <-- Arnavion (arnavion@user/arnavion) has quit (Remote host closed the connection) 2021-06-21 03:59:34 -- Moomoc_ is now known as Moomoc 2021-06-21 04:01:16 <-- acid (~acid@user/acid) has quit (Ping timeout: 244 seconds) 2021-06-21 04:02:20 --> acid (~acid@user/acid) has joined ##rust 2021-06-21 04:03:23 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-21 04:06:30 <-- dmathieu (~textual@pop.92-184-110-219.mobile.abo.orange.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 04:06:40 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-21 04:09:30 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-21 04:13:27 --> hegstal (~hegstal@2a02:c7f:7604:8a00:7fb:5bd8:2599:2fdb) has joined ##rust 2021-06-21 04:17:02 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 250 seconds) 2021-06-21 04:18:50 --> maroloccio (~marolocci@186.210.216.126) has joined ##rust 2021-06-21 04:19:13 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:7fb:5bd8:2599:2fdb) has quit (Remote host closed the connection) 2021-06-21 04:19:59 --> hegstal (~hegstal@2a02:c7f:7604:8a00:2a76:42b9:78db:d162) has joined ##rust 2021-06-21 04:23:04 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-21 04:26:52 --> maroloccio1 (~marolocci@189.15.9.54) has joined ##rust 2021-06-21 04:26:58 --> arinov_ (~arinov@212.156.215.30) has joined ##rust 2021-06-21 04:27:49 --> evalr2 (arnavion@user/arnavion) has joined ##rust 2021-06-21 04:29:22 <-- maroloccio (~marolocci@186.210.216.126) has quit (Ping timeout: 246 seconds) 2021-06-21 04:36:17 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-21 04:50:36 --> mIGu (~mig21@user/naur) has joined ##rust 2021-06-21 04:51:02 --> tsdh (~user@j289989.servers.jiffybox.net) has joined ##rust 2021-06-21 04:53:38 --> unmanbearpig (~unmanbear@user/unmanbearpig) has joined ##rust 2021-06-21 04:53:40 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:2a76:42b9:78db:d162) has quit (Remote host closed the connection) 2021-06-21 04:53:50 --> w0x12ef (~w0x12ef@36.112.134.194) has joined ##rust 2021-06-21 04:55:30 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 264 seconds) 2021-06-21 04:55:52 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-21 04:56:17 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-21 05:01:49 --> HalfWord (~halfword@user/halfword) has joined ##rust 2021-06-21 05:05:52 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-21 05:09:59 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Quit: ZNC 1.8.2+deb2~bpo10+1 - https://znc.in) 2021-06-21 05:12:17 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-21 05:14:07 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 244 seconds) 2021-06-21 05:14:44 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has joined ##rust 2021-06-21 05:15:13 <-- maroloccio1 (~marolocci@189.15.9.54) has quit (Ping timeout: 246 seconds) 2021-06-21 05:16:36 --> dmathieu (~textual@2a01:e34:ecbd:4370:d513:245e:f68b:7549) has joined ##rust 2021-06-21 05:21:10 <-- bradfier (~bradfier@user/bradfier) has quit (Quit: Leaving...) 2021-06-21 05:22:55 --> bradfier (~bradfier@user/bradfier) has joined ##rust 2021-06-21 05:24:05 <-- w0x12ef (~w0x12ef@36.112.134.194) has quit (Ping timeout: 268 seconds) 2021-06-21 05:26:36 Moomoc such rust topological_sort add_dependency 2021-06-21 05:26:42 Moomoc oops, sorry 2021-06-21 05:27:09 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- thing (~thing@user/thing) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-06-21 05:27:09 <-- hendursa1 (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-06-21 05:28:59 <-- dmathieu (~textual@2a01:e34:ecbd:4370:d513:245e:f68b:7549) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-21 05:29:20 --> dmathieu (~textual@2a01:e34:ecbd:4370:d513:245e:f68b:7549) has joined ##rust 2021-06-21 05:30:10 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-21 05:30:19 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-21 05:30:31 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-21 05:30:41 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-21 05:32:42 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-21 05:32:49 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-21 05:32:51 --> thing (~thing@user/thing) has joined ##rust 2021-06-21 05:32:53 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-21 05:38:02 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-21 05:42:59 --> maroloccio (~marolocci@189.15.9.54) has joined ##rust 2021-06-21 05:47:29 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 05:48:58 -- OverflwnRE is now known as Overflwn 2021-06-21 05:53:26 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 265 seconds) 2021-06-21 05:57:47 --> brandonh (~brandonh@151.68.85.160) has joined ##rust 2021-06-21 05:58:37 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 05:59:20 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 06:02:27 <-- arinov_ (~arinov@212.156.215.30) has quit (Ping timeout: 258 seconds) 2021-06-21 06:04:01 --> gggp (~textual@36.112.128.143) has joined ##rust 2021-06-21 06:04:06 <-- gggp (~textual@36.112.128.143) has quit (Client Quit) 2021-06-21 06:04:48 <-- dmathieu (~textual@2a01:e34:ecbd:4370:d513:245e:f68b:7549) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 06:04:49 tomboy64 how can i prepend a single number to an iterator? e.g. (1).iter().chain(some.iter())? 2021-06-21 06:05:04 Mutabah std::iter::once(1)` 2021-06-21 06:06:09 tomboy64 ! 2021-06-21 06:06:11 tomboy64 thanks 2021-06-21 06:08:57 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-21 06:09:42 <-- unmanbearpig (~unmanbear@user/unmanbearpig) has quit (Ping timeout: 250 seconds) 2021-06-21 06:10:50 <-- aquijoule__ (~richbridg@213-225-32-247.nat.highway.a1.net) has quit (Ping timeout: 265 seconds) 2021-06-21 06:19:37 dav1d I have a problem with futures, I have this code: `futures::future::try_join_all(flows.map(|rs| publisher.publish(&rs))).await`, flows is just an iterator. The problem is `cannot return value referencing function parameter `rs`` because the returned future of `publish()` has the reference to rs, how can I fix this? 2021-06-21 06:20:35 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 06:21:07 --> richbridger (~richbridg@089144205017.atnat0014.highway.webapn.at) has joined ##rust 2021-06-21 06:21:33 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-21 06:22:49 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-21 06:23:16 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 06:32:15 --> ninjin (~ninjin@user/ninjin) has joined ##rust 2021-06-21 06:35:50 saati can someone give me a quick rundown of the differences between quinn, quiche and neqo (and any other quic libs)? 2021-06-21 06:38:59 <-- Hafydd (~Hafydd@user/hafydd) has quit (Quit: WeeChat 3.0) 2021-06-21 06:41:40 jbg dav1d: it's not really possible to answer that in the abstract, it depends on what `rs` is, what `publish()` is doing with it, etc 2021-06-21 06:42:06 dav1d jbg, gimmy a sec, I'll put it into a playground then 2021-06-21 06:47:34 dav1d jbg: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e63a25c841ac08b01ea187fc9d9ce1d3 2021-06-21 06:48:45 jbg ah yeah, now I understand it better 2021-06-21 06:49:11 jbg I assume in your real code there is some reason you can't just take Flow instead of &Flow? 2021-06-21 06:49:38 jbg you're throwing away the Flow objects in your iterator anyway, so there's no need in your example to pass it by reference 2021-06-21 06:50:48 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-21 06:51:36 jbg (which is basically the source of the error; the Flow is dropped at the end of the body of the map() but the Future still holds a reference to it) 2021-06-21 06:52:54 jbg if you need the trait method to take &Flow for whatever reason, you could have your iterator iterate over some external storage of Flows and have the iterator item type be &Flow 2021-06-21 06:53:19 jbg then you only have to make sure the storage of Flows lasts at least as long as the futures do, which should be easy to arrange 2021-06-21 06:58:03 bihtori dav1d: Possible solution using Arc: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=28f5d20955af604a88b7e859a4101772 2021-06-21 07:00:40 jbg yeah, I was going to suggest Arc too, but it doesn't add anything beyond moving the Flow in the example as given. could be the best solution in the real code though 2021-06-21 07:00:41 dav1d jbg, I had it take Flow for a while, but the moment I have multiple publishers, I need to clone the Flow, which I want to avoid 2021-06-21 07:00:43 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-21 07:00:49 jbg ah, sounds like Arc is ideal in that case 2021-06-21 07:01:28 jbg if you don't have external (to the futures) storage of the Flow objects, then you need the futures to own them. if you need more than one future to own one Flow, then that's exactly what Rc/Arc are for 2021-06-21 07:02:24 bihtori jbg: yep overusing Arc sometimes does may smell like an anti-pattern, but it depends. In many cases .(move |stuff|) helps alot but not here. 2021-06-21 07:03:27 dav1d thanks! 2021-06-21 07:03:37 --> brainfunnel (~quassel@72.141.208.46.dyn.plus.net) has joined ##rust 2021-06-21 07:04:18 jbg if one Flow goes to one future, simply removing & from the method call and the method definition in trait/impl is sufficient though. 2021-06-21 07:05:20 dav1d yeah, I was moving from taking ownership back to a reference, but sounds like I have to think about more what I really need 2021-06-21 07:05:37 dav1d *more about 2021-06-21 07:06:04 --> brandonh_ (~brandonh@151.68.85.160) has joined ##rust 2021-06-21 07:06:58 <-- brandonh (~brandonh@151.68.85.160) has quit (Ping timeout: 252 seconds) 2021-06-21 07:07:33 <-- brandonh_ (~brandonh@151.68.85.160) has quit (Client Quit) 2021-06-21 07:09:00 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-21 07:09:09 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 258 seconds) 2021-06-21 07:11:05 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-21 07:12:29 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-21 07:14:34 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 268 seconds) 2021-06-21 07:15:29 --> est31 (~est31@user/est31) has joined ##rust 2021-06-21 07:16:25 <-- talin (~unknown@hydra.org) has quit (Ping timeout: 268 seconds) 2021-06-21 07:16:56 <-- cation (cation@user/cation) has quit (Ping timeout: 268 seconds) 2021-06-21 07:17:36 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Ping timeout: 252 seconds) 2021-06-21 07:19:45 --> Hafydd (~Hafydd@user/hafydd) has joined ##rust 2021-06-21 07:21:12 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 250 seconds) 2021-06-21 07:21:20 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 07:22:58 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-06-21 07:27:30 <-- gggp (~textual@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-06-21 07:30:41 <-- maroloccio (~marolocci@189.15.9.54) has quit (Quit: Client closed) 2021-06-21 07:31:36 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-21 07:33:19 --> cation (cation@user/cation) has joined ##rust 2021-06-21 07:33:44 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-21 07:43:42 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 07:44:05 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-21 07:49:35 --> davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has joined ##rust 2021-06-21 07:49:47 davros anyone used rust with wasm here? 2021-06-21 07:50:17 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-21 07:53:04 davros (ive just downloaded some 'rust-wasm' example from github, i see it compiles & runs in a desktop window , wasn't quite expecting that, is that likely just a desktop build of the same code, or is it running wasm through some stub? 2021-06-21 07:56:27 --> brandonh (~brandonh@151.68.5.207) has joined ##rust 2021-06-21 07:56:28 j`ey how did you build it? 2021-06-21 07:56:34 --> ioxzev1z (~ioxzev1z@user/ioxzev1z) has joined ##rust 2021-06-21 07:56:53 j`ey could be either 2021-06-21 07:59:26 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-21 08:01:56 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 250 seconds) 2021-06-21 08:06:11 davros hmm the example gives "a makefile to build for the web", i just did 'cargo run' . nevermind, not important 2021-06-21 08:06:33 j`ey link the repo! 2021-06-21 08:06:43 davros yeah i was just about to 2021-06-21 08:07:00 davros https://github.com/gliheng/rust-wasm 2021-06-21 08:07:06 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-06-21 08:07:10 j`ey so which example did you run? 2021-06-21 08:07:26 davros sdl2-simple 2021-06-21 08:07:45 davros i see another more minimal guide in rust documentation 2021-06-21 08:08:13 davros https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm < sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-21 08:08:50 davros that is certainly something i need to do (run the same program completely native or in a browser) 2021-06-21 08:09:57 j`ey https://github.com/gliheng/rust-wasm/blob/master/sdl2-simple/src/main.rs#L84 2021-06-21 08:10:08 --> joni (~user@p200300c1df1f0b22b26ebffffecf971c.dip0.t-ipconnect.de) has joined ##rust 2021-06-21 08:10:59 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-21 08:11:24 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-21 08:16:14 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-21 08:17:06 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 264 seconds) 2021-06-21 08:25:50 <-- ljoonal (~ljoonal@user/ljoonal) has quit (Quit: ljoonal.xyz) 2021-06-21 08:26:40 --> ljoonal (~ljoonal@user/ljoonal) has joined ##rust 2021-06-21 08:27:28 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Read error: Permission denied) 2021-06-21 08:27:36 --> Walther (walther@kapsi.fi) has joined ##rust 2021-06-21 08:27:45 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 08:29:36 <-- mike-kfed (~htd@095129203062.t4.akis.net) has quit (Quit: WeeChat 3.1) 2021-06-21 08:29:38 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-21 08:32:33 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-21 08:36:04 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-06-21 08:36:33 -- psydroid is now known as psydroid[m] 2021-06-21 08:36:47 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-21 08:42:50 <-- kron (~weechat@user/qaph) has quit (Quit: reboot) 2021-06-21 08:44:57 tomboy64 is there an optimized function available that lets me vec.append() from an iterator? 2021-06-21 08:45:30 tomboy64 append only works with Vec. and i'm looking for something besides a for loop 2021-06-21 08:46:17 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 08:46:21 tomboy64 hmmm resize_with() perhaps 2021-06-21 08:47:03 <-- feldim2425 (~feldim242@178-191-253-8.adsl.highway.telekom.at) has quit (Quit: ZNC 1.8.x-git-91-b00cc309 - https://znc.in) 2021-06-21 08:47:36 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-06-21 08:47:41 --> sudoforg1 (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-21 08:47:45 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-21 08:48:07 --> feldim2425 (~feldim242@178-191-253-8.adsl.highway.telekom.at) has joined ##rust 2021-06-21 08:48:12 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-21 08:51:03 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-21 08:51:17 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-21 08:52:33 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-06-21 08:52:53 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-21 08:56:06 <-- |7| (~seachdamh@user/seachdamh) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-06-21 08:57:32 <-- brandonh (~brandonh@151.68.5.207) has quit (Quit: brandonh) 2021-06-21 08:57:36 danieldg tomboy64: extend 2021-06-21 09:01:07 --> maroloccio (~marolocci@189.15.9.54) has joined ##rust 2021-06-21 09:01:25 tomboy64 thanks 2021-06-21 09:01:54 discipulus davros: have you already done the tutorial in the Rust wasm book? https://rustwasm.github.io/docs/book/ 2021-06-21 09:02:10 -- psydroid[m] is now known as psydroid 2021-06-21 09:03:24 discipulus I noticed the Rust and WebAssembly working group is defunt now 2021-06-21 09:08:55 discipulus I have interest in rust wasm myself. I plan to learn more about non-browser applications in the future. 2021-06-21 09:09:48 la_mettrie i'm trying to get basic file operations to work so that I could grasp errors. but it seems it's difficult to get a code like this to compe (this totally doesn't work): https://pastebin.com/raw/UeUSuFns 2021-06-21 09:09:59 la_mettrie *to compile 2021-06-21 09:15:02 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-21 09:18:18 lambda la_mettrie: you can't assign your error to `filevar`, because it's of type `std::fs::File` 2021-06-21 09:19:56 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Read error: Permission denied) 2021-06-21 09:20:12 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 09:27:10 la_mettrie yes, i know i can't do many things. more difficult it is to know how i can do it so that it works 2021-06-21 09:28:10 kee la_mettrie: What are you trying to do? 2021-06-21 09:28:21 kee As in, what's the intention of that code? 2021-06-21 09:29:03 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 250 seconds) 2021-06-21 09:34:21 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 09:35:05 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 09:36:29 la_mettrie kee: to open a file but also get that potential error message so that it can be shown to the user ...if it fails, is it because of permissions or file_not_found or something else 2021-06-21 09:37:45 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-21 09:38:40 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 09:38:43 --> brandonh (~brandonh@151.34.95.83) has joined ##rust 2021-06-21 09:39:25 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 09:39:56 lambda la_mettrie: what do you want to happen when an error occurs? the function obviously can't continue and read from the file, because there is no file 2021-06-21 09:40:57 la_mettrie lambda: to get the type of the error (file not found or no permissions or something else) to be known so that i can tell it to the user 2021-06-21 09:41:05 kee la_mettrie: Try this. (You'll have to display the message in a caller, because this function isn't `restore_image_and_show_pretty_error`.) 2021-06-21 09:41:19 kee Actually, wait a minute, it didn't compile. 2021-06-21 09:42:50 kee la_mettrie: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=23eaa5c399b284554cea220075f86d6e 2021-06-21 09:43:01 kee Raw: https://gist.githubusercontent.com/rust-play/23eaa5c399b284554cea220075f86d6e/raw/842ffc4916359bbb43b1d9dc0868ffc6644f897d/playground.rs 2021-06-21 09:44:25 kee Feel free to just .unwrap() the result of calling `restore_image`. Example: 2021-06-21 09:45:12 kee la_mettrie: Actually, you've left some errors unhandled that I didn't notice. 2021-06-21 09:46:49 kee What you should do is return Result from your function. 2021-06-21 09:47:12 kee Have *all* the displaying code outside that function, at the last possible point where you can't recover from the error. 2021-06-21 09:48:13 la_mettrie okay, thanks a lot. it seems i quite don't see why every function should return something 2021-06-21 09:54:21 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-21 09:55:55 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-21 09:56:38 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-21 09:57:49 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-21 09:59:15 --> Mateon2 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-21 09:59:27 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 265 seconds) 2021-06-21 09:59:27 -- Mateon2 is now known as Mateon1 2021-06-21 10:01:32 lambda la_mettrie: because that's the way to communicate information back to the calling function - if you have nothing to return, then so be it, but in this case you want to inform the caller that the function failed 2021-06-21 10:03:42 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-21 10:05:07 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Client Quit) 2021-06-21 10:05:12 la_mettrie yeah, that's elementary, but i just thought that there's something in rust's error handling that makes returning compulsory at times and there might be something i've not grasped 2021-06-21 10:05:21 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-21 10:05:39 <-- justBull (~justache@user/justache) has quit (Remote host closed the connection) 2021-06-21 10:06:23 --> justBull (~justache@user/justache) has joined ##rust 2021-06-21 10:06:33 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Client Quit) 2021-06-21 10:06:41 la_mettrie my intuition is that if i follow those textbook examples of how to do things, i'd end up using shorter functions since many in-built functions seem to be build around the idea that they return something and it may be difficult to use many such calls in one bigger function 2021-06-21 10:06:58 la_mettrie *to be built 2021-06-21 10:11:14 ioxzev1z Why did rust choose to return the value of the last expression, rather than having an explicit return statement? 2021-06-21 10:11:27 elichai2 Hi, I'm using `for_each` on an async stream, how can I stop the iteration when some bool changes to true? (a shutdown handler) 2021-06-21 10:11:28 ioxzev1z return foo; reads easier than just foo on its own 2021-06-21 10:11:32 elichai2 I'm using: https://docs.rs/futures/0.3.15/futures/prelude/stream/trait.StreamExt.html#method.for_each 2021-06-21 10:14:14 elichai2 should I return something instead of `future::ready(())`? maybe `ready::maybe_done()`? not sure what is it exactly 2021-06-21 10:14:57 elichai2 or maybe I should use take_until ? 2021-06-21 10:14:58 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 250 seconds) 2021-06-21 10:16:08 lambda ioxzev1z: because that would require special-casing functions from other blocks where it might make more sense 2021-06-21 10:18:18 lambda and usually you don't have `foo` on its own as the last expression but something more complicated, which makes it look more like a tail call 2021-06-21 10:21:14 lambda la_mettrie: generally, many smaller functions that all do only one "thing" tends to make for cleaner code 2021-06-21 10:23:47 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 10:29:54 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-21 10:30:08 <-- Boomerang (~Boomerang@xd520f68c.cust.hiper.dk) has quit (Quit: Leaving) 2021-06-21 10:31:21 kee la_mettrie: In-built functions are built around the idea that they return something because it's easier to reason about returning. 2021-06-21 10:31:37 kee For the compiler, and for me (which I generalise to everybody). 2021-06-21 10:32:12 kee You could mutate state everywhere, and Rust could provide a standard library geared for mutated state, but it wouldn't be as useful. 2021-06-21 10:32:28 kee Every mutable object has a different interface, for one. 2021-06-21 10:32:42 kee If you had but one interface, you've just re-invented returning, with extra steps. 2021-06-21 10:33:05 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 258 seconds) 2021-06-21 10:35:21 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-21 10:36:40 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Ping timeout: 265 seconds) 2021-06-21 10:36:57 --> RayS (~raysl@sdf1.xen.prgmr.com) has joined ##rust 2021-06-21 10:41:14 <-- RayS (~raysl@sdf1.xen.prgmr.com) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-21 10:42:12 --> RayS (~raysl@sdf1.xen.prgmr.com) has joined ##rust 2021-06-21 10:42:45 <-- joni (~user@p200300c1df1f0b22b26ebffffecf971c.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-21 10:43:11 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-21 10:44:12 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-21 10:50:02 cehteh how can i figure out what profile was used when building for conditional compilation? is debug_assertions the only flag available? 2021-06-21 10:51:01 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 268 seconds) 2021-06-21 10:51:38 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-21 10:52:15 --> rglu (~rglu@2603-8090-2006-7fc6-3c1e-a0fb-ed40-f0e5.res6.spectrum.com) has joined ##rust 2021-06-21 10:53:47 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 258 seconds) 2021-06-21 10:54:26 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Read error: Permission denied) 2021-06-21 10:54:43 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 10:58:40 <-- RayS (~raysl@sdf1.xen.prgmr.com) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-21 10:59:39 --> RayS (~raysl@sdf1.xen.prgmr.com) has joined ##rust 2021-06-21 11:00:02 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 250 seconds) 2021-06-21 11:03:17 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-06-21 11:04:47 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-21 11:05:17 <-- Cymew (~ante@c-ef9c225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 258 seconds) 2021-06-21 11:06:46 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-21 11:06:49 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-06-21 11:07:12 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-21 11:09:42 <-- sapzk (~sapzk@user/sapzk) has quit (Ping timeout: 252 seconds) 2021-06-21 11:10:09 --> SignalWalker (~Ash@2600:1700:fea0:5d40:24cc:1fff:fe35:99f5) has joined ##rust 2021-06-21 11:12:16 -- SignalWalker is now known as Ash 2021-06-21 11:12:20 -- Ash is now known as SignalWalker 2021-06-21 11:13:41 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-21 11:16:56 --> GNUcifer (~ct@mue-88-130-78-146.dsl.tropolys.de) has joined ##rust 2021-06-21 11:16:58 <-- cehteh (~ct@i59F4BE39.versanet.de) has quit (Killed (NickServ (GHOST command used by GNUcifer!~ct@mue-88-130-78-146.dsl.tropolys.de))) 2021-06-21 11:17:08 -- GNUcifer is now known as cehteh 2021-06-21 11:18:00 <-- swinnenb (~swinnenb@user/swinnenb) has quit (Quit: This is the hidden truth, the world between the lines.) 2021-06-21 11:18:37 --> swinnenb (~swinnenb@user/swinnenb) has joined ##rust 2021-06-21 11:19:29 <-- SignalWalker (~Ash@2600:1700:fea0:5d40:24cc:1fff:fe35:99f5) has quit (Quit: Leaving) 2021-06-21 11:20:56 --> SignalWalker (~SignalWal@2600:1700:fea0:5d40:24cc:1fff:fe35:99f5) has joined ##rust 2021-06-21 11:26:45 <-- discipulus (~discipulu@user/discipulus) has quit (Ping timeout: 258 seconds) 2021-06-21 11:27:16 --> Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-21 11:27:57 Arnavion cehteh: There's no way. cfg(debug_assertions) works as an approximation, but note that the user can enable debug assertions even for release 2021-06-21 11:29:25 <-- jngbsn (~jngbsn@user/jngbsn) has quit (Ping timeout: 272 seconds) 2021-06-21 11:29:28 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 11:30:12 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 11:33:02 <-- HalfWord (~halfword@user/halfword) has quit (Quit: * undeclared identifier SPOON in WHEREIS statement - Matrix error 20021) 2021-06-21 11:34:02 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Remote host closed the connection) 2021-06-21 11:34:18 --> jngbsn (~jngbsn@user/jngbsn) has joined ##rust 2021-06-21 11:34:32 --> Mateon2 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-21 11:34:47 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 11:34:54 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 244 seconds) 2021-06-21 11:35:00 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 252 seconds) 2021-06-21 11:35:00 -- Mateon2 is now known as Mateon1 2021-06-21 11:36:21 --> fef (~thedawn@user/thedawn) has joined ##rust 2021-06-21 11:36:22 [code] Arnavion, cehteh what about using a build script and looking at env("PROFILE") and setting a cfg flag? 2021-06-21 11:36:26 cehteh Arnavion: yes i know that, thats why i asked if there is some more direct access to the actual profile used 2021-06-21 11:37:39 cehteh dont want to use a build script here, its a lib for testing, just adds a bit more complication 2021-06-21 11:37:42 Arnavion cehteh: Profiles are out of your control. It's always been the long term plan that the root can define arbitrary new ones. So don't match on the name, match on the specific feature like debug_assertions that you care about 2021-06-21 11:38:12 --> HalfWord_ (~halfword@user/halfword) has joined ##rust 2021-06-21 11:38:24 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 11:38:43 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-21 11:38:59 cehteh Arnavion: my lib calls 'cargo build' thus i wanted to pass through what the originator passed 2021-06-21 11:39:01 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 265 seconds) 2021-06-21 11:39:09 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 11:39:23 cehteh using debug_assertions now as approximation, good enough but not perfect 2021-06-21 11:39:30 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 265 seconds) 2021-06-21 11:39:58 <-- swinnenb (~swinnenb@user/swinnenb) has quit (Quit: This is the hidden truth, the world between the lines.) 2021-06-21 11:40:20 [code] your lib shouldn't be calling cargo build. you should use a build script for that if you need it or use workspaces 2021-06-21 11:40:36 --> swinnenb (~swinnenb@user/swinnenb) has joined ##rust 2021-06-21 11:40:58 cehteh in thus case its just the right thing i believe ... https://crates.io/crates/bintest 2021-06-21 11:42:51 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 11:43:36 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 11:43:58 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Read error: Permission denied) 2021-06-21 11:44:15 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 11:46:21 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-21 11:48:54 --> nate1 (~nate@216.176.47.241) has joined ##rust 2021-06-21 11:49:19 <-- fef (~thedawn@user/thedawn) has quit (Remote host closed the connection) 2021-06-21 11:55:00 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-21 11:57:54 --> jphaynes66 (~TerraFirm@91.90.126.5) has joined ##rust 2021-06-21 11:59:38 <-- ioxzev1z (~ioxzev1z@user/ioxzev1z) has quit (Quit: Leaving) 2021-06-21 12:02:48 --> amvc (~amvc@37.120.205.221) has joined ##rust 2021-06-21 12:07:21 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-21 12:10:54 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-06-21 12:11:21 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-21 12:11:36 <-- Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 258 seconds) 2021-06-21 12:17:52 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-21 12:20:06 <-- nate1 (~nate@216.176.47.241) has quit (Ping timeout: 265 seconds) 2021-06-21 12:25:57 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 12:27:28 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-21 12:28:25 <-- neurocyte (~neurocyte@user/neurocyte) has left ##rust 2021-06-21 12:30:07 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-21 12:30:27 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-21 12:33:54 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 264 seconds) 2021-06-21 12:34:28 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 12:35:03 -- mrusme is now known as mrus 2021-06-21 12:35:35 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-21 12:43:53 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 12:44:38 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 12:47:08 --> Izem (~remby@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has joined ##rust 2021-06-21 12:48:05 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 12:48:50 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 12:49:25 <-- jphaynes66 (~TerraFirm@91.90.126.5) has quit (Quit: Bye y'all.) 2021-06-21 12:49:38 --> apoc (~apoc@user/apoc) has joined ##rust 2021-06-21 12:52:22 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 12:53:08 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 12:56:52 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 12:57:35 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 12:58:54 --> Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-21 13:00:24 <-- brandonh (~brandonh@151.34.95.83) has quit (Read error: Connection reset by peer) 2021-06-21 13:01:24 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:02:08 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:02:22 --> remirol (~lorimer@user/lorimer) has joined ##rust 2021-06-21 13:02:22 <-- lorimer (~lorimer@user/lorimer) has quit (Killed (NickServ (GHOST command used by remirol))) 2021-06-21 13:02:31 -- remirol is now known as lorimer 2021-06-21 13:04:13 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 272 seconds) 2021-06-21 13:06:01 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:06:45 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:07:23 --> brandonh (~brandonh@151.34.22.105) has joined ##rust 2021-06-21 13:09:20 --> msi (~msi@191.162.197.131) has joined ##rust 2021-06-21 13:10:40 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:11:24 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:11:26 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Read error: Permission denied) 2021-06-21 13:11:43 --> sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has joined ##rust 2021-06-21 13:11:48 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-21 13:12:35 <-- Izem (~remby@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has quit (Quit: Izem) 2021-06-21 13:12:56 --> Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has joined ##rust 2021-06-21 13:14:00 --> narann (~narann@2a01:e34:ee2e:4830:f592:d05e:5d43:1be6) has joined ##rust 2021-06-21 13:14:33 <-- xkuru (~xkuru@user/xkuru) has quit (Quit: Unvirtualizing) 2021-06-21 13:14:50 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-21 13:15:06 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 252 seconds) 2021-06-21 13:15:12 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:15:26 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 13:15:55 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:16:35 routeveg Hi all; can I have a sanity check around lifetime coercion? 2021-06-21 13:17:39 routeveg When a function is called, if a mutable reference is involved, the resulting borrow lifetime cannot be coerced to end before the lifetime of the thing being referenced. 2021-06-21 13:18:09 routeveg And this affects all other things which are borrowed by the function, mutable and otherwise 2021-06-21 13:18:19 <-- Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has left ##rust (Good Bye) 2021-06-21 13:18:29 routeveg I guess, specifically what I want confirmation on, is that coercion is affected by mutability of borrowed things. 2021-06-21 13:19:04 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-21 13:19:17 <-- xkuru (~xkuru@user/xkuru) has quit (Client Quit) 2021-06-21 13:19:35 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-21 13:19:46 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:20:30 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:21:00 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 265 seconds) 2021-06-21 13:22:00 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-21 13:24:11 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:24:15 --> ausserz (~ausserz@user/ausserz) has joined ##rust 2021-06-21 13:24:55 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:24:57 <-- narann (~narann@2a01:e34:ee2e:4830:f592:d05e:5d43:1be6) has quit (Ping timeout: 244 seconds) 2021-06-21 13:26:06 --> narann (~narann@2a01:e34:ee2e:4830:f592:d05e:5d43:1be6) has joined ##rust 2021-06-21 13:27:22 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-21 13:28:30 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:28:43 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-21 13:29:16 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:32:53 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:33:37 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:34:50 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 13:35:06 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-21 13:37:23 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:37:45 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-21 13:38:08 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:40:05 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-21 13:41:40 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:42:18 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 13:42:24 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:46:18 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:47:02 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:49:44 <-- maroloccio (~marolocci@189.15.9.54) has quit (Quit: Client closed) 2021-06-21 13:50:39 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:51:23 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:52:36 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-21 13:53:22 Polochon_street hi! I'm trying to do "trait alias" ("name" a closure type) here https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0bf0a2a03b92b8f53cbd8935d640e7cd, but for some reason, it says that the closure I pass to the function doesn't implement my trait 2021-06-21 13:53:47 Polochon_street it makes somehow sense, but I'm wondering if there's a way to make it automagically associate my trait and closures of the same type? 2021-06-21 13:55:02 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 13:55:47 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 13:59:35 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:00:18 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:01:05 kron Polochon_street: impl DistanceMetric for F where F: FnOnce(u32, u32) -> u32 {} 2021-06-21 14:01:20 Polochon_street ahh, right. I needed to impl it correctly 2021-06-21 14:01:27 Polochon_street thanks a lot, it works :D 2021-06-21 14:03:26 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-21 14:04:14 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Remote host closed the connection) 2021-06-21 14:04:41 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-21 14:04:59 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:07:12 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-21 14:08:55 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:09:39 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:12:43 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Ping timeout: 265 seconds) 2021-06-21 14:13:08 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:13:51 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:14:50 --> Trollmann (~Trollmann@user/trollmann) has joined ##rust 2021-06-21 14:17:45 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:18:32 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:21:24 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-21 14:22:15 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:22:59 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:23:34 --> x_kuru (~xkuru@user/xkuru) has joined ##rust 2021-06-21 14:26:14 <-- xkuru (~xkuru@user/xkuru) has quit (Ping timeout: 252 seconds) 2021-06-21 14:26:46 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:26:51 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-21 14:27:32 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:30:44 <-- freakazoid333 (~freakazoi@72.168.176.37) has quit (Read error: Connection reset by peer) 2021-06-21 14:30:47 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-21 14:31:02 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:31:12 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 14:31:47 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:33:23 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-21 14:35:21 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:36:04 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:36:46 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (Ping timeout: 244 seconds) 2021-06-21 14:39:40 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:40:25 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:42:04 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-21 14:44:05 <-- betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 14:44:48 --> betelgeuse7 (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 14:46:24 <-- amvc (~amvc@37.120.205.221) has quit (Ping timeout: 252 seconds) 2021-06-21 14:48:28 --> moerf (~marv@p200300f1df16d900d92047e9d4636f13.dip0.t-ipconnect.de) has joined ##rust 2021-06-21 14:49:30 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has quit (Remote host closed the connection) 2021-06-21 14:53:32 <-- maurer (~maurer@user/maurer) has quit (Ping timeout: 252 seconds) 2021-06-21 14:54:41 <-- moerf (~marv@p200300f1df16d900d92047e9d4636f13.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-06-21 14:54:53 -- betelgeuse7 is now known as betelgeuse 2021-06-21 14:55:31 <-- brandonh (~brandonh@151.34.22.105) has quit (Quit: brandonh) 2021-06-21 14:57:44 --> moerf (~moerf@p200300f1df16d900d92047e9d4636f13.dip0.t-ipconnect.de) has joined ##rust 2021-06-21 14:59:17 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-21 14:59:36 --> amvc (~amvc@89.36.78.205) has joined ##rust 2021-06-21 15:05:07 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-21 15:14:50 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 15:16:21 -- Mode ##rust [+cCf ##rust-unidentified] by ChanServ 2021-06-21 15:17:29 <-- mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has left ##rust (.) 2021-06-21 15:17:31 --> mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has joined ##rust 2021-06-21 15:19:24 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-21 15:20:08 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-21 15:22:46 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (Quit: WeeChat 2.9) 2021-06-21 15:23:48 -- Mode ##rust [+o mrmonday] by ChanServ 2021-06-21 15:23:55 -- Mode ##rust [-b *!~nitrix@user/nitrix] by mrmonday 2021-06-21 15:24:00 -- Mode ##rust [-o mrmonday] by mrmonday 2021-06-21 15:24:11 -- Mode ##rust [+o mrmonday] by ChanServ 2021-06-21 15:24:16 -- Mode ##rust [-b *!*@46.217.110.127] by mrmonday 2021-06-21 15:24:19 -- Mode ##rust [-o mrmonday] by mrmonday 2021-06-21 15:25:38 --> nitrix (~nitrix@user/nitrix) has joined ##rust 2021-06-21 15:27:29 mrmonday jbg: I spotted that you set +r, I've set up a forward channel to catch unidentified users to hopefully point them in the right direction 2021-06-21 15:30:16 <-- amvc (~amvc@89.36.78.205) has quit (Ping timeout: 268 seconds) 2021-06-21 15:30:17 <-- tristero (~nobody@user/tristero) has quit (Read error: Connection reset by peer) 2021-06-21 15:32:34 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Ping timeout: 244 seconds) 2021-06-21 15:34:48 <-- ausserz (~ausserz@user/ausserz) has quit (Ping timeout: 252 seconds) 2021-06-21 15:38:34 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-21 15:38:57 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-21 15:39:30 --> twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has joined ##rust 2021-06-21 15:39:30 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-06-21 15:40:07 twiclo https://p.twil.cx/duk.rs 2021-06-21 15:40:09 twiclo I'm just now getting into proper error handling with my project. I'm not sure what the compiler is wanting me to do with implementing this 2021-06-21 15:40:45 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 15:41:16 GreenJello twiclo, there aren't any other warnings? 2021-06-21 15:41:24 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-06-21 15:43:06 -- Gustavo6046_ is now known as Gustavo6046 2021-06-21 15:43:16 twiclo No sire 2021-06-21 15:43:19 twiclo *sir 2021-06-21 15:43:23 twiclo I don't respect you that much 2021-06-21 15:43:43 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (Quit: setting you up the bomb) 2021-06-21 15:44:07 GreenJello :-p 2021-06-21 15:44:29 mrmonday jbg: also next time, /invite ozone to clear up the spammers if you're there soon enough 2021-06-21 15:44:37 twiclo There is one other warning that I'm not using the bom function yet. I didn't think it's relevant but it could be 2021-06-21 15:44:38 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-21 15:44:52 GreenJello twiclo, yep, that's what I was asking about 2021-06-21 15:45:03 GreenJello if bom is unused, then Generic is also unused 2021-06-21 15:45:24 --> cosmicennui (~cosmicenn@c-73-34-75-186.hsd1.co.comcast.net) has joined ##rust 2021-06-21 15:45:32 GreenJello I don't get why the compiler warns about both, but it does 2021-06-21 15:45:35 twiclo Alright I'll use it and see what happens 2021-06-21 15:46:19 Hans-Martin I'd wager a bet that the warning goes away :-) 2021-06-21 15:46:24 --> bkircher (~bkircher@ppp-93-104-84-10.dynamic.mnet-online.de) has joined ##rust 2021-06-21 15:46:37 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: WeeChat 3.2) 2021-06-21 15:48:36 <-- dmang (~dmang@user/dmang) has quit (Remote host closed the connection) 2021-06-21 15:49:37 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 244 seconds) 2021-06-21 15:51:16 --> freakazoid333 (~freakazoi@72.168.176.37) has joined ##rust 2021-06-21 15:51:19 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 265 seconds) 2021-06-21 15:51:53 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-21 15:52:01 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 15:54:44 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-21 15:56:15 <-- moerf (~moerf@p200300f1df16d900d92047e9d4636f13.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-06-21 15:58:07 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-21 16:00:03 --> ilpanda (ilpanda@user/ilpanda) has joined ##rust 2021-06-21 16:02:33 twiclo https://p.twil.cx/lib.rs 2021-06-21 16:02:55 twiclo The first two functions are async and my HttpServer::new() can handle that but when I try it with bom it fails 2021-06-21 16:03:20 twiclo https://p.twil.cx/qof.rs 2021-06-21 16:03:22 twiclo Better version 2021-06-21 16:04:04 twiclo I do know that I need to wrap the response from bom in an HttpResponse but that shouldn't be giving me an async error right? 2021-06-21 16:04:22 <-- Arnavion (arnavion@user/arnavion) has quit (Ping timeout: 265 seconds) 2021-06-21 16:10:36 --> brainfunnel_ (~quassel@67.141.208.46.dyn.plus.net) has joined ##rust 2021-06-21 16:11:39 GreenJello you have to define it like the other routes 2021-06-21 16:12:31 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-21 16:12:36 GreenJello the arguments are also wrong 2021-06-21 16:13:20 <-- brainfunnel (~quassel@72.141.208.46.dyn.plus.net) has quit (Ping timeout: 250 seconds) 2021-06-21 16:14:30 --> a7raser (~a7raser@86.10.115.139) has joined ##rust 2021-06-21 16:14:31 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Client Quit) 2021-06-21 16:14:38 -- a7raser is now known as a7ras 2021-06-21 16:14:43 GreenJello and yes, if even only the return type is invalid you'll get an error like this 2021-06-21 16:15:07 GreenJello iirc the return type can be anything that impls Responder 2021-06-21 16:15:47 <-- a7ras (~a7raser@86.10.115.139) has left ##rust 2021-06-21 16:15:56 --> a7ras (~a7raser@86.10.115.139) has joined ##rust 2021-06-21 16:16:10 <-- bkircher (~bkircher@ppp-93-104-84-10.dynamic.mnet-online.de) has quit (Ping timeout: 258 seconds) 2021-06-21 16:19:23 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-21 16:21:10 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-21 16:22:44 <-- freakazoid333 (~freakazoi@72.168.176.37) has quit (Read error: Connection reset by peer) 2021-06-21 16:24:09 SoF hey, is there a way to recover from a stack overflow? 2021-06-21 16:25:23 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 16:25:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:25:43 twiclo IRC is a good start 2021-06-21 16:26:16 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:27:10 SoF ah - panic::catch_unwind works here too 2021-06-21 16:27:23 SoF wait 2021-06-21 16:28:15 Hans-Martin I'm trying to wrap my head around libp2p. Head's already pretty warped... I'm trying to copy&paster parts of the chat example and get this error: https://hastebin.com/anemivager.rs 2021-06-21 16:28:59 Hans-Martin Rust claims that `event` is of type () 2021-06-21 16:29:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:30:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:31:03 rglu SoF: Rather than jumping through hoops to preserve a recursive solution, have you considered an iterative one? 2021-06-21 16:34:07 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:34:51 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:38:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:39:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:42:03 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-06-21 16:43:00 <-- sapzk (~sapzk@user/sapzk) has quit (Ping timeout: 252 seconds) 2021-06-21 16:43:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:43:50 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:45:34 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-06-21 16:47:21 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-21 16:47:26 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:47:30 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 16:47:32 <-- Gustavo6046_ (~Gustavo60@user/gustavo6046) has quit (Write error: Connection reset by peer) 2021-06-21 16:47:48 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 16:48:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:48:35 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 268 seconds) 2021-06-21 16:49:14 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 252 seconds) 2021-06-21 16:50:13 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-21 16:51:44 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:52:28 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:52:59 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 16:54:14 <-- Gustavo6046_ (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 268 seconds) 2021-06-21 16:56:07 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 16:56:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 16:58:13 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-06-21 17:00:15 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 258 seconds) 2021-06-21 17:00:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:00:41 --> bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has joined ##rust 2021-06-21 17:01:24 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:03:01 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 17:04:43 <-- narann (~narann@2a01:e34:ee2e:4830:f592:d05e:5d43:1be6) has quit (Quit: Leaving) 2021-06-21 17:05:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:05:49 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:06:33 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 17:06:38 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-21 17:07:36 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-21 17:07:42 <-- SignalWalker (~SignalWal@2600:1700:fea0:5d40:24cc:1fff:fe35:99f5) has quit (Remote host closed the connection) 2021-06-21 17:09:32 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:10:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:14:05 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:14:50 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:15:37 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 17:16:20 <-- anchorite_ (~anchorite@95.111.56.99) has quit (Ping timeout: 268 seconds) 2021-06-21 17:16:35 <-- a7ras (~a7raser@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-06-21 17:17:19 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-21 17:18:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:19:22 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:19:35 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Quit: gourlaysama) 2021-06-21 17:20:11 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-21 17:22:59 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:23:43 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 17:26:08 --> mteo (francis@user/francis) has joined ##rust 2021-06-21 17:29:10 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has quit 2021-06-21 17:30:32 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-21 17:32:44 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-21 17:33:13 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-21 17:36:14 <-- francis (francis@user/francis) has quit (Quit: moving /home) 2021-06-21 17:41:48 georgemp is it possible for me to set the crate type for a lib (depending on the architecture) - on some archs build staticlib and cdylib, and on some other only staticlib? 2021-06-21 17:42:25 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 258 seconds) 2021-06-21 17:44:24 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-21 17:44:32 <-- goldfish (~goldfish@user/goldfish) has quit (Remote host closed the connection) 2021-06-21 17:44:46 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-21 17:50:55 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-21 17:55:16 --> goldfish_ (~goldfish@user/goldfish) has joined ##rust 2021-06-21 17:56:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 17:56:21 <-- goldfish (~goldfish@user/goldfish) has quit (Read error: Connection reset by peer) 2021-06-21 17:56:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:00:19 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:01:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:04:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:05:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:06:35 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-21 18:08:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:09:22 Arnavion No. If you need that, make separate manifest files 2021-06-21 18:09:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:13:18 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:13:43 georgemp ah ok..thanks 2021-06-21 18:14:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:16:40 <-- mr_ballon (uid294865@id-294865.brockwell.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 18:17:59 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Remote host closed the connection) 2021-06-21 18:18:43 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:20:25 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-21 18:22:26 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:22:56 --> ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has joined ##rust 2021-06-21 18:23:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:24:13 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-21 18:26:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:27:43 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:29:22 <-- unyu (~pyon@user/pyon) has quit (Ping timeout: 265 seconds) 2021-06-21 18:29:59 --> ausserz (~ausserz@user/ausserz) has joined ##rust 2021-06-21 18:31:19 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:31:34 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-21 18:32:05 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:32:17 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-21 18:32:24 <-- pierrepaul (uid504261@id-504261.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 18:35:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:36:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:40:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:40:56 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:41:18 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-21 18:44:07 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-21 18:44:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:45:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:47:19 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-21 18:47:40 --> HappyMan (~HappyMan@user/happyman) has joined ##rust 2021-06-21 18:48:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:49:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:53:15 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:54:00 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 18:54:16 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-21 18:56:02 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has joined ##rust 2021-06-21 18:57:43 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 18:58:29 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:02:05 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:02:43 <-- ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-21 19:02:49 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:05:33 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-21 19:06:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:06:30 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-21 19:06:33 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-21 19:07:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:10:03 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-21 19:10:54 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:11:36 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:13:29 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-21 19:15:01 --> tarkah (~tarkah@user/tarkah) has joined ##rust 2021-06-21 19:15:03 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-21 19:15:23 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:16:07 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:16:25 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 19:19:21 <-- rglu (~rglu@2603-8090-2006-7fc6-3c1e-a0fb-ed40-f0e5.res6.spectrum.com) has quit (Quit: leaving) 2021-06-21 19:19:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:20:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:20:56 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-21 19:22:09 --> wons (wons@user/wons) has joined ##rust 2021-06-21 19:23:35 --> w0x12ef (~w0x12ef@36.112.128.143) has joined ##rust 2021-06-21 19:24:16 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:25:00 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:27:40 <-- brainfunnel_ (~quassel@67.141.208.46.dyn.plus.net) has quit (Quit: thanks, bye!) 2021-06-21 19:27:47 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 268 seconds) 2021-06-21 19:29:51 <-- goldfish_ (~goldfish@user/goldfish) has quit (Quit: Leaving) 2021-06-21 19:32:24 <-- tarkah (~tarkah@user/tarkah) has quit (Quit: Leaving) 2021-06-21 19:32:33 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-21 19:35:42 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-21 19:37:11 --> jleightcap (~jleightca@static-198-54-129-70.cust.tzulo.com) has joined ##rust 2021-06-21 19:37:18 <-- jleightcap (~jleightca@static-198-54-129-70.cust.tzulo.com) has quit (Client Quit) 2021-06-21 19:38:39 --> jleightcap (~jleightca@static-198-54-129-70.cust.tzulo.com) has joined ##rust 2021-06-21 19:38:53 <-- viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 268 seconds) 2021-06-21 19:40:52 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 19:42:40 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 19:43:50 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-21 19:43:52 <-- xsperry (~as@user/xsperry) has quit (Excess Flood) 2021-06-21 19:44:17 <-- jbonjean (~jbonjean@user/jbonjean) has quit (Quit: jbonjean) 2021-06-21 19:44:39 --> jbonjean (~jbonjean@user/jbonjean) has joined ##rust 2021-06-21 19:44:58 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-21 19:45:04 <-- cranes (~cranes@c-73-196-177-111.hsd1.nj.comcast.net) has quit (Ping timeout: 272 seconds) 2021-06-21 19:48:30 <-- jbonjean (~jbonjean@user/jbonjean) has quit (Remote host closed the connection) 2021-06-21 19:48:53 --> jbonjean (~jbonjean@user/jbonjean) has joined ##rust 2021-06-21 19:55:18 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 19:56:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 19:58:28 w0x12ef https://github.com/tokio-rs/tokio 2021-06-21 19:59:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:00:07 <-- jbonjean (~jbonjean@user/jbonjean) has quit (Quit: jbonjean) 2021-06-21 20:00:24 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:00:28 --> jbonjean (~jbonjean@user/jbonjean) has joined ##rust 2021-06-21 20:04:00 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:04:46 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:08:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:09:17 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:10:23 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 20:12:48 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:12:59 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 20:13:33 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:14:48 <-- kwilczynski (sid379192@user/kwilczynski) has quit 2021-06-21 20:17:10 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:17:54 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:21:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:21:58 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-21 20:22:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:23:17 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 268 seconds) 2021-06-21 20:25:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:26:10 <-- mteo (francis@user/francis) has quit (Quit: yup) 2021-06-21 20:26:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:26:49 <-- wons (wons@user/wons) has quit (Ping timeout: 265 seconds) 2021-06-21 20:30:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:30:31 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-21 20:31:13 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:32:37 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 265 seconds) 2021-06-21 20:33:19 --> mteo (francis@user/francis) has joined ##rust 2021-06-21 20:34:55 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-21 20:35:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:35:06 <-- acid (~acid@user/acid) has quit (Ping timeout: 264 seconds) 2021-06-21 20:35:15 --> acid (~acid@user/acid) has joined ##rust 2021-06-21 20:35:37 <-- Liexei (Liexei@user/liexei) has quit (Quit: Bye...) 2021-06-21 20:35:37 <-- Mavrik (~Mavrik@virag.si) has quit (Remote host closed the connection) 2021-06-21 20:35:48 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:35:49 <-- thing (~thing@user/thing) has quit (Ping timeout: 244 seconds) 2021-06-21 20:35:54 <-- V (~v@anomalous.eu) has quit (Remote host closed the connection) 2021-06-21 20:36:07 <-- kilobyte22 (~kilobyte@banana-new.kilobyte22.de) has quit (Remote host closed the connection) 2021-06-21 20:37:15 --> V (~v@anomalous.eu) has joined ##rust 2021-06-21 20:37:15 --> kilobyte22 (~kilobyte@banana-new.kilobyte22.de) has joined ##rust 2021-06-21 20:37:46 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Remote host closed the connection) 2021-06-21 20:37:50 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (Ping timeout: 252 seconds) 2021-06-21 20:37:57 --> thing (~thing@user/thing) has joined ##rust 2021-06-21 20:38:05 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-21 20:38:57 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-21 20:39:13 --> Liexei (Liexei@user/liexei) has joined ##rust 2021-06-21 20:39:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:40:20 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:40:58 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 252 seconds) 2021-06-21 20:44:09 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:44:42 <-- HalfWord_ (~halfword@user/halfword) has quit (Ping timeout: 265 seconds) 2021-06-21 20:44:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:46:33 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-21 20:46:58 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-21 20:48:34 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:49:07 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 20:49:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:52:33 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 20:52:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:53:41 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 20:53:55 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 20:54:49 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 20:55:26 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-06-21 20:55:51 --> deivislk (~deivislk@189.7.117.212) has joined ##rust 2021-06-21 20:57:11 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-21 20:57:19 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 20:57:36 -- Gustavo6046_ is now known as Gustavo6046 2021-06-21 20:58:02 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 21:11:56 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-21 21:13:49 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 21:14:47 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 21:15:51 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-21 21:15:54 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 264 seconds) 2021-06-21 21:17:12 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 21:18:06 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-21 21:21:45 <-- x_kuru (~xkuru@user/xkuru) has quit (Read error: Connection reset by peer) 2021-06-21 21:21:55 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-21 21:23:59 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-21 21:28:12 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-21 21:29:20 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-21 21:29:41 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-21 21:31:38 <-- tsal_ (~tsal@user/tsal) has quit (Ping timeout: 268 seconds) 2021-06-21 21:37:01 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-21 21:37:17 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-21 21:44:31 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 21:44:42 meltyness i need the rust compiler to look over my math homework :( 2021-06-21 21:46:08 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 21:46:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 21:49:08 --> m0xb (~m0xb@71-6-108-136.static-ip.telepacific.net) has joined ##rust 2021-06-21 21:49:40 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-21 21:50:24 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 21:50:32 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 21:51:07 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 21:51:08 ChaiTRex meltyness: If the words aren't spilling off the page, that's a lot of avoided memory errors right there. 2021-06-21 21:51:53 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-21 21:52:35 meltyness error[E0000]: integrals getty biggy, derivatives shrinky dinky 2021-06-21 21:54:48 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 21:55:34 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 21:59:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 21:59:56 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:00:11 <-- bilegeek (~bilegeek@2600:1008:b017:63a6:c26d:d119:faaa:a6d7) has quit (Quit: Leaving) 2021-06-21 22:00:32 <-- deivislk (~deivislk@189.7.117.212) has quit (Ping timeout: 252 seconds) 2021-06-21 22:01:15 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-21 22:03:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:04:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:04:19 <-- np (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-21 22:05:55 w0x12ef what is this use case #[async_triat] 2021-06-21 22:07:49 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Ping timeout: 244 seconds) 2021-06-21 22:08:11 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:08:33 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-21 22:08:52 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 22:08:57 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:09:18 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-21 22:09:21 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-21 22:09:24 <-- D-04 (~D-04@185.130.184.207) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-21 22:09:43 --> D-04 (~D-04@185.130.184.207) has joined ##rust 2021-06-21 22:09:46 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-21 22:11:07 <-- farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has quit (Ping timeout: 264 seconds) 2021-06-21 22:11:07 <-- yourfate (~yourfate@cabal.yourfate.org) has quit (Ping timeout: 264 seconds) 2021-06-21 22:11:12 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Read error: Connection reset by peer) 2021-06-21 22:11:15 <-- Nixx (~quassel@bulbasaur.sjorsgielen.nl) has quit (Read error: Connection reset by peer) 2021-06-21 22:11:20 <-- emerent (~quassel@p200300cd5703bb7dba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-06-21 22:11:20 <-- fooker (~fooker@2001:638:301:11a3::6) has quit (Ping timeout: 252 seconds) 2021-06-21 22:11:22 <-- Xe (~cadey@tailscale/xe) has quit (Ping timeout: 272 seconds) 2021-06-21 22:11:41 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-21 22:11:42 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (Ping timeout: 264 seconds) 2021-06-21 22:11:43 <-- msi (~msi@191.162.197.131) has quit (Quit: leaving) 2021-06-21 22:11:54 --> fooker (~fooker@2001:638:301:11a3::6) has joined ##rust 2021-06-21 22:12:16 --> farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has joined ##rust 2021-06-21 22:12:18 <-- lisq (~quassel@lis.moe) has quit (Ping timeout: 264 seconds) 2021-06-21 22:12:29 --> lisq (~quassel@lis.moe) has joined ##rust 2021-06-21 22:12:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:12:44 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-21 22:12:50 --> Nixx (~quassel@bulbasaur.sjorsgielen.nl) has joined ##rust 2021-06-21 22:13:02 --> yourfate (~yourfate@cabal.yourfate.org) has joined ##rust 2021-06-21 22:13:07 --> Xe (~cadey@tailscale/xe) has joined ##rust 2021-06-21 22:13:09 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 22:13:14 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-21 22:13:14 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:13:38 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-21 22:14:10 meltyness my Result has 3 arms :{ 2021-06-21 22:14:11 --> emerent (~quassel@p200300cd5703bb19ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-21 22:14:17 meltyness https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=87d4b314ac5266c0eb08d0839d9d540f 2021-06-21 22:14:44 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-21 22:16:37 SiegeLord What's the utility of having `mod tests`? 2021-06-21 22:16:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Remote host closed the connection) 2021-06-21 22:17:41 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:17:50 --> deivislk (~deivislk@189.7.117.212) has joined ##rust 2021-06-21 22:18:04 meltyness in case this extremely critical application is discovered having been broken by i32's PartialOrd implementation 2021-06-21 22:18:10 ChaiTRex SiegeLord: It makes it easy to avoid compiling them when not testing. 2021-06-21 22:18:47 SiegeLord I would have thought #[test] are implicitly #[cfg(test)] 2021-06-21 22:18:56 danieldg it's more useful when tests use helper functions 2021-06-21 22:19:25 danieldg or if you have thigns that are 'use'd only in tests 2021-06-21 22:21:22 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:22:06 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:22:52 meltyness https://doc.rust-lang.org/book/ch11-03-test-organization.html#the-tests-module-and-cfgtest 2021-06-21 22:22:54 --> francis (francis@user/francis) has joined ##rust 2021-06-21 22:23:32 meltyness SiegeLord "The #[cfg(test)] annotation on the tests module tells Rust to compile and run the test code only when you run cargo test, not when you run cargo build. This saves compile time when you only want to build the library and saves space in the resulting compiled artifact because the tests are not included." 2021-06-21 22:24:17 danieldg I doubt the 'saves space' part is accurate 2021-06-21 22:24:42 meltyness One man's > is another mans >> 2021-06-21 22:25:38 rk4 say no to excessive operator overloading^ 2021-06-21 22:25:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:26:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:26:27 danieldg I wonder if I could make a program where adding #[cfg(test)] to a module made the binary larger 2021-06-21 22:28:18 danieldg probably could do it by pushing llvm to uninline something by calling it 2021-06-21 22:28:46 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-06-21 22:28:46 <-- w0x12ef (~w0x12ef@36.112.128.143) has quit (Ping timeout: 252 seconds) 2021-06-21 22:28:56 meltyness the preprocessor is turing-complete? yikes. 2021-06-21 22:30:01 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:30:13 danieldg that's kinda common for preprocessors 2021-06-21 22:30:46 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:31:25 meltyness if there's one way to thwart static analysis, it seems like it would be that 2021-06-21 22:31:52 danieldg eh, you just expand the macros before doing the analysis 2021-06-21 22:31:53 Tacklebo1 Coming from something like M4, the rust preprocessing/macro situation is very nice. 2021-06-21 22:32:21 danieldg macro expansion is the easiest part of static analysis 2021-06-21 22:32:51 <-- Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Quit: WeeChat 3.2) 2021-06-21 22:33:01 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-21 22:33:15 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-21 22:34:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:35:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:37:20 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-21 22:39:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:39:48 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:43:27 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:43:47 <-- feirlane (~feirlane@37.228.209.66) has quit (Ping timeout: 252 seconds) 2021-06-21 22:44:11 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:44:36 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-21 22:44:45 routeveg Had a weird discussion on #FreeBSD earlier; someone was talking about lua being good for something because it's easily embeddable, someone else was talking about rust. 2021-06-21 22:45:02 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-21 22:45:04 routeveg What does it mean, meaningfully, for a language to be easily embeddable 2021-06-21 22:45:33 routeveg I guess my mind immediately goes to FFIs that let you call and be called by external things, but loads of languages have such FFIs 2021-06-21 22:45:35 --> feirlane (~feirlane@37.228.209.66) has joined ##rust 2021-06-21 22:46:01 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-21 22:46:02 routeveg So, how could rust be made 'more embeddable'? 2021-06-21 22:46:03 danieldg easy ffi, small or nonexistant runtime 2021-06-21 22:46:37 danieldg no_std rust is pretty good; things like std::env are not 2021-06-21 22:46:55 routeveg Is having the ability to interact/introspect with the compiler/runtime/interpreter parts, perhaps important? 2021-06-21 22:47:20 danieldg I'd consider that more 'scriptable' than 'embeddable' 2021-06-21 22:47:30 routeveg Mhmm. hmmmm 2021-06-21 22:48:01 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:48:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:49:47 routeveg So rust + some kind of continuationy/longjmpy thing = scriptable rust, perhaps! 2021-06-21 22:50:34 danieldg I'd just compile things to dylib and use the dynamic linker if I were scripting rust 2021-06-21 22:50:53 danieldg dlopen/dlsym are useful 2021-06-21 22:51:49 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-21 22:51:57 routeveg But how about some kind of thoroughly awful way of doing instruction-level stepping. 2021-06-21 22:52:02 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 22:52:18 routeveg (in process, without using ptrace etc...) 2021-06-21 22:52:31 danieldg I have no idea why you would want to do that 2021-06-21 22:52:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:53:05 danieldg maybe make every function async and put an await after each statement :D 2021-06-21 22:53:08 routeveg danieldg: So you can make an API to help you manipulate the rust runtime, much as you would the lua one 2021-06-21 22:53:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:53:22 routeveg Lke, step until something is true, or a function returns, etc.. 2021-06-21 22:53:32 routeveg heh, yeah that would do it 2021-06-21 22:54:22 routeveg Could also use an instruction decoder to figure out where the program counter would go after each instruction, then replace that code with an int3/ud2 or something 2021-06-21 22:54:48 routeveg So you'd just get a signal on each instruction, which you could have a handler for. 2021-06-21 22:55:19 danieldg you'll be fighting the optimizer 2021-06-21 22:55:51 danieldg lots of statements have no instruction, and lots of statements have many instructions 2021-06-21 22:56:00 routeveg Mhm; if you built with debug info you could figure out where line numbers are etc... 2021-06-21 22:56:37 routeveg so you could be like : cpu.step_line(); 2021-06-21 22:56:50 routeveg cpu.get_current_file_and_line() 2021-06-21 22:56:52 danieldg yes, there are programs that do this already. For example, gdb 2021-06-21 22:57:07 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 22:57:23 routeveg But GDB is out of process, so you can use ptrace - i mean you could do it in process by modifying code. 2021-06-21 22:57:41 routeveg I...don't think you can ptrace yourself in Linux. 2021-06-21 22:57:50 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Quit: Ping timeout (120 seconds)) 2021-06-21 22:57:53 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-21 22:58:07 danieldg I think you might be able to ptrace one of your threads 2021-06-21 22:58:20 routeveg oh? Hmmmmm 2021-06-21 22:58:30 routeveg It does seem like you should be able to, doesn't it 2021-06-21 22:58:42 routeveg I feel like I tried it once and something didn't work. But am not sure. 2021-06-21 22:59:37 routeveg Maybe it was something else. Like, there was a problem reading /proc/self/mem 2021-06-21 23:01:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-21 23:03:29 --> gggp (~textual@36.112.134.194) has joined ##rust 2021-06-21 23:06:57 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 23:07:38 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-21 23:16:07 <-- tg (~tg@rockylinux/infra/tg) has quit (Quit: tg) 2021-06-21 23:16:28 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-21 23:17:10 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-06-21 23:17:59 --> comatory (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-21 23:20:18 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 240 seconds) 2021-06-21 23:21:46 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-21 23:22:18 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-21 23:22:26 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 23:22:45 <-- comatory (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-21 23:22:49 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 23:23:07 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-21 23:25:37 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-21 23:29:02 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-06-21 23:32:16 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-21 23:33:02 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-06-21 23:33:36 --> Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has joined ##rust 2021-06-21 23:33:56 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 23:36:05 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-21 23:38:11 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 23:38:13 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 265 seconds) 2021-06-21 23:38:16 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-21 23:39:30 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-21 23:40:23 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-21 23:41:36 <-- deivislk (~deivislk@189.7.117.212) has quit (Ping timeout: 265 seconds) 2021-06-21 23:43:10 -- __jmcantrell__ is now known as jmcantrell 2021-06-21 23:45:46 <-- gggp (~textual@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-06-21 23:46:04 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-21 23:47:03 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-21 23:47:49 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-21 23:49:31 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 23:50:57 --> w0x12ef (~w0x12ef@106.37.74.209) has joined ##rust 2021-06-21 23:51:02 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-21 23:51:45 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-21 23:53:01 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-21 23:54:15 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-21 23:54:40 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-21 23:55:53 <-- Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has quit (Quit: Izem) 2021-06-22 00:00:11 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-22 00:02:06 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:02:23 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 00:08:01 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:08:52 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 00:11:00 --> confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has joined ##rust 2021-06-22 00:13:45 --> Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has joined ##rust 2021-06-22 00:14:05 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:15:26 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 00:20:03 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:20:58 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 00:22:03 <-- Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has left ##rust (Good Bye) 2021-06-22 00:25:50 rk4 don't suppose anyone's accelerated operations on parquet files in python applications through the use of rust, i notice apache/arrow-rs is a thing, add in pyo3 it ought to be viable 2021-06-22 00:26:30 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:27:02 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 00:29:49 --> faxlore_ (sid505520@id-505520.highgate.irccloud.com) has joined ##rust 2021-06-22 00:30:25 -- faxlore_ is now known as faxlore 2021-06-22 00:33:35 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:35:16 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 00:40:34 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 00:40:39 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:42:38 --> trev (~trev@user/trev) has joined ##rust 2021-06-22 00:45:24 <-- jleightcap (~jleightca@static-198-54-129-70.cust.tzulo.com) has quit (Ping timeout: 265 seconds) 2021-06-22 00:45:59 --> jleightcap (~jleightca@86.106.143.100) has joined ##rust 2021-06-22 00:47:53 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:48:22 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 00:54:42 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 00:55:03 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 00:56:41 <-- jleightcap (~jleightca@86.106.143.100) has quit (Changing host) 2021-06-22 00:56:41 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 01:00:29 --> comatory (~ondrejsyn@182.24.broadband4.iol.cz) has joined ##rust 2021-06-22 01:00:38 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:02:19 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 01:04:04 <-- cosmicennui (~cosmicenn@c-73-34-75-186.hsd1.co.comcast.net) has quit (Quit: WeeChat 2.8) 2021-06-22 01:04:36 <-- w0x12ef (~w0x12ef@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-06-22 01:07:11 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:07:38 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 01:07:48 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-22 01:10:04 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 01:10:17 w0x12ef does Vec::new() return a reference 2021-06-22 01:10:29 rk4 lets answer a different question 2021-06-22 01:10:39 rk4 lets explore the docs! 2021-06-22 01:11:24 rk4 https://doc.rust-lang.org/std/vec/struct.Vec.html#method.new what do you think of that function signature 2021-06-22 01:12:54 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 264 seconds) 2021-06-22 01:14:24 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 01:15:22 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Ping timeout: 265 seconds) 2021-06-22 01:15:51 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:21:28 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:21:28 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 01:21:28 --> imm__ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-22 01:21:29 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-22 01:21:38 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 252 seconds) 2021-06-22 01:23:41 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-22 01:25:53 w0x12ef what do you mean by signature ? 2021-06-22 01:26:31 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-22 01:27:13 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:27:20 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 01:28:16 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-22 01:28:26 <-- cjb (~cjb@user/cjb) has quit 2021-06-22 01:29:24 rk4 "pub const fn new() -> Vec" would be the function signature 2021-06-22 01:29:42 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Ping timeout: 264 seconds) 2021-06-22 01:33:50 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:33:56 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 01:35:17 rk4 it tells you what type the function returns, and thus if it returns a reference or not. it would be a little odd for new() to return a reference, but that's a seperate thing to learn, in the meantime...reading the docs is a skill that's worth practicing :) 2021-06-22 01:36:16 saati w0x12ef: you get an owned vec 2021-06-22 01:36:53 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-22 01:38:18 w0x12ef saati, is this named RAII? 2021-06-22 01:39:19 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 01:39:57 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 01:40:10 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Client Quit) 2021-06-22 01:41:24 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 01:41:42 rk4 https://doc.rust-lang.org/stable/book/ch04-01-what-is-ownership.html?highlight=raii#memory-and-allocation can answer that 2021-06-22 01:42:05 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 01:42:42 rk4 [it talks in terms of Strings, but a String is just a Vec with some additional details] 2021-06-22 01:43:10 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:44:09 saati w0x12ef: it could be considered part of it? 2021-06-22 01:44:12 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 252 seconds) 2021-06-22 01:44:40 bihtori Doesn't String have those "small string optimizations" that are and will not be part of Vec? 2021-06-22 01:44:55 saati https://doc.rust-lang.org/src/alloc/string.rs.html#279-281 2021-06-22 01:44:58 bihtori Or was that some other language... 2021-06-22 01:45:01 saati no, it's literally a vec 2021-06-22 01:45:35 w0x12ef rk4:so I must not return reference of variable,which is owned by the function 2021-06-22 01:46:13 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 01:46:34 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-22 01:46:50 w0x12ef In C++, this pattern of deallocating resources at the end of an item’s lifetime is sometimes called Resource Acquisition Is Initialization (RAII) 2021-06-22 01:46:59 saati bihtori: there are various small string optimization crates 2021-06-22 01:47:03 w0x12ef Sorry ,I cannot understand this 2021-06-22 01:47:05 w0x12ef In C++, this pattern of deallocating resources at the end of an item’s lifetime is sometimes called Resource Acquisition Is Initialization (RAII) 2021-06-22 01:47:24 saati do you know some C? 2021-06-22 01:47:30 w0x12ef yeah 2021-06-22 01:47:35 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:47:41 --> mpt (~tom@2a00:20:800f:87cc:fcb9:2f31:1e2e:8504) has joined ##rust 2021-06-22 01:48:06 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 01:48:23 saati ok so in C you generally malloc() and get some total garbage data you have to handle yourself, then when you are done with it you need to manually free() it 2021-06-22 01:48:32 rk4 https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html#dangling-references answers your question about returning a reference to something that the function owns 2021-06-22 01:49:03 w0x12ef rk4, dangling reference is unsafe ? 2021-06-22 01:49:12 saati this is usually not needed in C++ or rust because the objects/values you own (on your stack pretty much) automatically call their destructor/drop 2021-06-22 01:49:25 saati when they go out of scope 2021-06-22 01:49:36 w0x12ef saati, c++ ? do you mean the smart pointer 2021-06-22 01:49:56 w0x12ef oh, i know , you mean the deconstructor 2021-06-22 01:50:56 w0x12ef but we are talking about deallocation ,what the matter with the initialization(RAII) 2021-06-22 01:51:13 --> dcz (~dcz@dynamic-078-048-188-020.78.48.pool.telefonica.de) has joined ##rust 2021-06-22 01:51:54 rk4 rust is generally all safe, unless you start using the `unsafe` keyword 2021-06-22 01:52:09 --> LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:f59d:7b1e:ea53:a935) has joined ##rust 2021-06-22 01:52:13 saati if you automatically deallocate you must make sure you don't have dangling pointers, in rust you can't make dangling pointers without unsafe 2021-06-22 01:53:22 w0x12ef Does RAII mean I can create object without new it on the heap? 2021-06-22 01:53:22 <-- mpt (~tom@2a00:20:800f:87cc:fcb9:2f31:1e2e:8504) has quit (Read error: Connection reset by peer) 2021-06-22 01:53:26 saati so raii is a misleading name in rust a bit, the initialization part is more important in C++ where you can easily make invalid pointers 2021-06-22 01:53:46 w0x12ef puzzled 2021-06-22 01:54:28 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 01:55:05 rk4 i think you should just read the book ;P, it's not very long 2021-06-22 01:55:31 rk4 you'll have lots of questions after that, but the rust 101 stuff will be much more cleared up 2021-06-22 01:55:39 saati w0x12ef: are you talking about c++ or rust? 2021-06-22 01:56:33 saati in c++ it's a design pattern, which means you should make well behaved objects that properly delete whatever they got with new and still own 2021-06-22 01:56:53 saati in rust new is just a convention for a function name 2021-06-22 01:57:46 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 01:58:45 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 01:59:40 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:00:12 w0x12ef_ does rust have the new keyword 2021-06-22 02:00:22 w0x12ef_ like c++ new 2021-06-22 02:01:17 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-22 02:02:15 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 02:02:59 rk4 https://doc.rust-lang.org/stable/book/appendix-01-keywords.html 2021-06-22 02:03:03 Sobek New is not a keyword in rust 2021-06-22 02:03:14 Shell w0x12ef_: no. (also you shouldn't use new in C++ these days either.) to allocate stuff on the heap, you'd use the Box type. 2021-06-22 02:03:32 w0x12ef_ that's safe ,yes 2021-06-22 02:03:56 w0x12ef_ Does c++ learn from rust 2021-06-22 02:04:02 w0x12ef_ snover, cool 2021-06-22 02:04:10 w0x12ef_ Sobek, ^ 2021-06-22 02:04:14 w0x12ef_ oops 2021-06-22 02:05:17 w0x12ef_ RAII and pointers are talking about different things , 2021-06-22 02:06:05 w0x12ef_ RAII is related with lifetime 2021-06-22 02:06:41 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:07:05 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 02:08:00 <-- sudoforg1 (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-06-22 02:12:15 -- w0x12ef_ is now known as w0x12ef 2021-06-22 02:13:03 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-22 02:13:47 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 02:13:49 <-- LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:f59d:7b1e:ea53:a935) has quit (Ping timeout: 246 seconds) 2021-06-22 02:14:06 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:15:18 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 244 seconds) 2021-06-22 02:15:23 --> bkircher (~bkircher@2001:a61:25d9:8601:ac03:c330:f07c:5d05) has joined ##rust 2021-06-22 02:15:44 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-22 02:17:22 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-22 02:19:33 <-- Erutuon (~Erutuon@user/erutuon) has quit (Quit: WeeChat 2.8) 2021-06-22 02:19:44 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-22 02:19:52 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-22 02:20:42 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:20:43 --> LeDragonDev (~LeDragonD@lfbn-mon-1-1474-174.w92-167.abo.wanadoo.fr) has joined ##rust 2021-06-22 02:21:13 <-- Erutuon (~Erutuon@user/erutuon) has quit (Client Quit) 2021-06-22 02:21:23 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-22 02:21:29 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 02:24:15 discipulus TRPL book doesn't really go into allocators, right? 2021-06-22 02:24:41 bertptrs no, allocators are a it of a niche feature and partially unstable 2021-06-22 02:24:49 bertptrs *bit 2021-06-22 02:25:20 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-22 02:26:15 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:26:56 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-22 02:27:35 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 02:27:36 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-22 02:27:49 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-22 02:31:19 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-22 02:33:07 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 02:33:25 discipulus I see. I now noticed there is a Vec::new_in(alloc: A) and it's a nightly experimental feature. 2021-06-22 02:33:49 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 02:33:54 w0x12ef #[unstable(feature = "allocator_api", issue = "32838")] 2021-06-22 02:34:26 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 268 seconds) 2021-06-22 02:34:30 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:35:33 <-- LeDragonDev (~LeDragonD@lfbn-mon-1-1474-174.w92-167.abo.wanadoo.fr) has quit (Quit: Client closed) 2021-06-22 02:36:05 <-- comatory (~ondrejsyn@182.24.broadband4.iol.cz) has quit (Ping timeout: 265 seconds) 2021-06-22 02:37:29 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-22 02:39:49 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:39:59 w0x12ef https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2bd86e03b7b4801f122fc4e67509916a 2021-06-22 02:40:24 w0x12ef one question 2021-06-22 02:40:50 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-22 02:41:01 --> viirc_ (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-22 02:41:24 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 02:47:16 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:48:44 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 02:49:16 <-- greizgh (~quassel@2001:41d0:8:5025::1) has quit (Quit: greizgh) 2021-06-22 02:49:26 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-22 02:49:54 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 02:50:12 --> greizgh (~quassel@2001:41d0:8:5025::1) has joined ##rust 2021-06-22 02:54:46 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 02:54:47 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 02:56:20 --> alius (~adrien@2a01:e0a:13c:cd90:1b64:22f8:dfdf:dc) has joined ##rust 2021-06-22 02:57:50 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-22 02:57:54 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-22 03:00:20 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:02:11 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 03:04:20 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-22 03:04:58 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-22 03:07:26 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 03:08:02 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:12:21 --> kalekale (~kalekale@2400:1a00:b011:dc35:9f95:c357:4e9:547b) has joined ##rust 2021-06-22 03:12:33 <-- kalekale (~kalekale@2400:1a00:b011:dc35:9f95:c357:4e9:547b) has left ##rust (Leaving) 2021-06-22 03:13:22 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:13:56 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-22 03:14:46 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 03:16:29 <-- bkircher (~bkircher@2001:a61:25d9:8601:ac03:c330:f07c:5d05) has quit (Quit: WeeChat 3.0.1) 2021-06-22 03:17:23 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 03:17:25 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 03:17:27 w0x12ef https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2bd86e03b7b4801f122fc4e67509916a 2021-06-22 03:17:34 w0x12ef help with this 2021-06-22 03:17:48 <-- Arnavion (arnavion@user/arnavion) has quit (Ping timeout: 258 seconds) 2021-06-22 03:19:15 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:19:15 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-22 03:20:29 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 03:21:51 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 03:21:52 osa1 w0x12ef: what is the question? 2021-06-22 03:22:23 w0x12ef why version 1 does not work 2021-06-22 03:23:16 osa1 paste the full code so that we can easily see what's wrong 2021-06-22 03:23:23 w0x12ef why version 2 work after adding a for loop 2021-06-22 03:23:46 w0x12ef the key is the for loop 2021-06-22 03:24:21 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-22 03:24:21 w0x12ef verion 1 report the list_2 has no enough lifetime 2021-06-22 03:25:02 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 03:25:27 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-22 03:26:14 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 268 seconds) 2021-06-22 03:26:24 bertptrs You've got to post a bit more context, this just doesn't work because of undefined variables 2021-06-22 03:27:10 jeho i need to get myself a rust job 2021-06-22 03:27:21 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:27:44 bertptrs don't we all 2021-06-22 03:27:44 rk4 jeho: +1 2021-06-22 03:27:50 bertptrs (well some of us have one) 2021-06-22 03:27:59 jeho must be nice 2021-06-22 03:27:59 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-22 03:28:17 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-22 03:28:25 rk4 today my app crashed in the cloud because of a missing package import stanza, in a statically typed compiled language...wat 2021-06-22 03:28:46 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 03:29:28 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-22 03:29:36 jeho dynamic linking 2021-06-22 03:30:42 rk4 nah, so said language allows you to open a db connection like so: db := sql.Open("db conn str", "mysql") 2021-06-22 03:31:24 rk4 if you don't import a mysql package _somewhere_ (it doesn't have to be in the same file or module as the sql.Open call) it dies at runtime 2021-06-22 03:31:50 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:32:07 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 03:32:09 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 03:32:28 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-22 03:32:28 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-06-22 03:32:51 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-22 03:33:14 rk4 this is owing to some global state, when you import the mysql package it mutates some state on the sql package 2021-06-22 03:33:58 bertptrs is this go? 2021-06-22 03:34:03 * rk4 coughs 2021-06-22 03:34:49 jeho go's spinoff no-go 2021-06-22 03:35:18 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 03:37:43 jeho my coding in rust is getting to the point where it's getting easy 2021-06-22 03:37:54 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:37:58 sensille jeho: after how many months? 2021-06-22 03:38:36 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 03:41:55 jeho about a year I think now 2021-06-22 03:42:36 sensille oh damn, not sure i can keep at it for that long :) 2021-06-22 03:43:03 jeho not enjoying the challenges of it? 2021-06-22 03:43:26 sensille it's not always rewarding 2021-06-22 03:44:00 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-22 03:44:06 rk4 hmm, about 2 years here and i'm still working stuff out. but i think i can do any work task in rust, given work is in go nothing gets too tricky language wise (because it can't) 2021-06-22 03:44:20 rk4 took reading 2 books to get the hang of things 2021-06-22 03:44:52 jeho I"m whipping out my own generic iterators in a flash 2021-06-22 03:44:53 rk4 i think C++ devs have a head start there, i had never encountered smart pointers or RAII 2021-06-22 03:44:57 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:45:20 <-- ilpanda (ilpanda@user/ilpanda) has left ##rust (Leaving) 2021-06-22 03:45:36 jeho yeah.. smart pointers are important for any complex rust program 2021-06-22 03:45:59 --> ozarker7 (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has joined ##rust 2021-06-22 03:46:06 w0x12ef TRPL book and the rust reference ,what is the diff 2021-06-22 03:46:40 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 03:47:41 bertptrs TRPL explains things, the reference defines things 2021-06-22 03:47:56 <-- ozarker (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-22 03:47:56 -- ozarker7 is now known as ozarker 2021-06-22 03:48:01 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Quit: WeeChat 3.0.1) 2021-06-22 03:48:11 w0x12ef good answer 2021-06-22 03:48:12 bertptrs unless you like formal definitions, start with TRPL 2021-06-22 03:48:18 jeho that sums it up 2021-06-22 03:48:23 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-22 03:49:11 jeho most of what I know about rust is from the docs 2021-06-22 03:49:42 jeho i spend a lot of time looking up methods, and examples 2021-06-22 03:50:37 w0x12ef if one function requires reference ,but I pass it a value ,what is the result 2021-06-22 03:51:48 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 252 seconds) 2021-06-22 03:51:55 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 03:51:56 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 03:53:21 osse compiler error 2021-06-22 03:53:26 jeho the compiler barks at you 2021-06-22 03:54:18 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-22 03:55:48 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-22 03:57:29 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-22 03:59:32 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 03:59:32 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:00:59 w0x12ef probably not 2021-06-22 04:01:35 w0x12ef it need a ref ,why not auto cast to a ref 2021-06-22 04:02:01 w0x12ef at the same time , pass ref is secure 2021-06-22 04:04:21 ThinkT510 if you want a function to take take a reference then that is what you need to give it 2021-06-22 04:04:55 ThinkT510 the function signature will dictate what it takes 2021-06-22 04:05:49 w0x12ef ThinkT510, so the compiler accept it 2021-06-22 04:05:52 w0x12ef maybe 2021-06-22 04:05:59 w0x12ef can 2021-06-22 04:06:08 ThinkT510 no 2021-06-22 04:06:56 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 04:07:13 ThinkT510 look at the function signature. if it takes a reference then you need to feed it a reference 2021-06-22 04:07:17 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:07:55 ThinkT510 perhaps you need to brush up on the ownership concept 2021-06-22 04:09:45 w0x12ef ThinkT510, https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=553972acacf6a198bae67a6fdcbc408a 2021-06-22 04:09:58 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-22 04:10:10 w0x12ef fn eq(&self, other: &Self) 2021-06-22 04:10:17 w0x12ef this is the signature 2021-06-22 04:10:27 w0x12ef assert_eq!(x1, x3); this works 2021-06-22 04:11:03 discipulus That looks like a method 2021-06-22 04:11:51 w0x12ef so what 2021-06-22 04:12:26 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 04:12:33 ThinkT510 w0x12ef: you've defined the age of x2 as 12 and the age of x1 and x3 as 11. then in line 37 you are asking the compiler to assert that x1 and x2 are equal. they are not equal. one is 11 and the other is 12 2021-06-22 04:13:20 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-22 04:13:36 w0x12ef the question is not the result of the test 2021-06-22 04:13:45 w0x12ef the question is the syntax 2021-06-22 04:13:54 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:14:09 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 04:14:18 SpaceManiac w0x12ef: method calls foo.bar() and some macros like assert_eq! and println! autoref, but normal function parameters don't, to make it easier to see if a local variable is being moved or not 2021-06-22 04:15:44 w0x12ef SpaceManiac, what is this use case : assert_failed(kind, &*left_val, &*right_val 2021-06-22 04:17:30 w0x12ef SpaceManiac, if I pass values , what is the meaning of *value 2021-06-22 04:18:45 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 258 seconds) 2021-06-22 04:20:48 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:21:20 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-22 04:21:23 ThinkT510 * is used as a dereference operator. if it is not already a reference then the compiler will tell you that you can't dereference it. 2021-06-22 04:21:27 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 04:22:35 --> hegstal (~hegstal@2a02:c7f:7604:8a00:7821:4ac6:7f63:f8) has joined ##rust 2021-06-22 04:25:26 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:25:39 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 04:29:30 --> chddr (~Thunderbi@31.148.23.125) has joined ##rust 2021-06-22 04:30:47 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:30:55 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 04:32:10 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 04:32:56 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-22 04:33:02 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-22 04:36:10 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Read error: Connection reset by peer) 2021-06-22 04:36:39 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:38:37 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 04:39:10 w0x12ef thecatster_, assert_eq!(x1, x3); x1 is not ref here ,why it not report error 2021-06-22 04:39:26 w0x12ef ThinkT510, ^ 2021-06-22 04:40:26 sensille i want to store some items by a given key, but also want to keep them ordered by time of insertion. in C i'd use a tree for that and also put the items in a double linked list. i wonder what a good data structure in rust would be 2021-06-22 04:40:36 ThinkT510 w0x12ef: see what SpaceManiac told you. for a better understanding you can look at the rust docs to see the signatures. 2021-06-22 04:40:54 sensille if i insert an item that's already in the tree it should get bumped in the list 2021-06-22 04:41:50 edmcbane a linked hashmap? https://docs.rs/linked-hash-map/0.5.4/linked_hash_map/ 2021-06-22 04:42:10 edmcbane you'd need to do something ad-hoc for the bump on re-insertion though 2021-06-22 04:42:38 w0x12ef SpaceManiac, Probably I just understand the half of what did you say 2021-06-22 04:43:24 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:44:18 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-22 04:45:35 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 04:46:27 discipulus w0x12ef: The assert_eq! macro adds the reference operator and dereference operator. https://doc.rust-lang.org/src/core/macros/mod.rs.html#35-62 2021-06-22 04:46:48 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-06-22 04:47:02 sensille edmcbane: looks like a good start, but no bump operation 2021-06-22 04:47:10 <-- chddr (~Thunderbi@31.148.23.125) has quit (Ping timeout: 252 seconds) 2021-06-22 04:47:19 discipulus w0x12ef: remember that assert_eq! is a macro, not a function or method call. 2021-06-22 04:47:36 w0x12ef discipulus, so what does that mean ,&* 2021-06-22 04:48:07 w0x12ef first dereference it ,then get reference 2021-06-22 04:49:38 ThinkT510 where are you seeing &*? 2021-06-22 04:50:29 w0x12ef $crate::panicking::assert_failed(kind, &*left_val, &*right_val, $crate::option::Option::None); 2021-06-22 04:50:29 discipulus I think w0x12ef interpretted "adds the reference operator and dereference operator" as &*. Which is not what I intendent to convey. 2021-06-22 04:51:33 <-- goldfish (~goldfish@user/goldfish) has quit (Remote host closed the connection) 2021-06-22 04:51:51 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-22 04:51:51 w0x12ef match (&$left, &$right) ? 2021-06-22 04:52:32 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:52:40 w0x12ef match operation take its reference ,I see 2021-06-22 04:53:11 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 04:53:22 edmcbane sensille: removing and reinserting, in that case, should be easy although inefficient 2021-06-22 04:53:37 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-22 04:58:27 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 04:58:42 w0x12ef discipulus, am I correct 2021-06-22 04:59:01 w0x12ef just said 2021-06-22 04:59:38 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 05:00:00 discipulus yes that's right 2021-06-22 05:00:00 jeho sensille, BTreeMap? 2021-06-22 05:00:20 sensille two of them 2021-06-22 05:01:41 --> arinov_ (~arinov@212.156.215.30) has joined ##rust 2021-06-22 05:02:13 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-22 05:03:13 <-- smitop (~smitop@user/smitop) has quit (Remote host closed the connection) 2021-06-22 05:04:00 --> smitop (~smitop@user/smitop) has joined ##rust 2021-06-22 05:04:40 w0x12ef discipulus, thanks 2021-06-22 05:05:31 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-22 05:05:49 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:06:50 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-22 05:12:47 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:13:32 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-22 05:14:20 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 258 seconds) 2021-06-22 05:15:06 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-22 05:17:23 w0x12ef How can I get the disassembly code of rust program 2021-06-22 05:17:52 j`ey same way as with any other compiled program 2021-06-22 05:18:01 j`ey using objdump or some other disassembler 2021-06-22 05:18:22 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:18:37 w0x12ef j`ey, does struct have a method table at runtime ,which is used for method address query 2021-06-22 05:18:51 w0x12ef like vtable in c++ 2021-06-22 05:18:59 j`ey no 2021-06-22 05:19:03 j`ey but dyn Traits do 2021-06-22 05:19:23 w0x12ef how is dyn trait represented at low level 2021-06-22 05:19:26 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 05:20:02 j`ey pointer to the data, pointer to the 'vtable' 2021-06-22 05:20:15 w0x12ef what is the address of the vtable 2021-06-22 05:20:33 w0x12ef maybe there is a internal struct in rust 2021-06-22 05:20:48 j`ey what do you mean by internal struct? 2021-06-22 05:21:16 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-22 05:21:31 w0x12ef it describe how the data and vtable linked together 2021-06-22 05:21:38 w0x12ef in memory orfer 2021-06-22 05:21:41 w0x12ef order 2021-06-22 05:22:02 w0x12ef I guess 2021-06-22 05:22:52 j`ey yes, but it's not defined by a spec 2021-06-22 05:22:57 j`ey https://doc.rust-lang.org/std/ptr/struct.DynMetadata.html 2021-06-22 05:24:56 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-22 05:25:35 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:26:54 <-- kron (~weechat@user/qaph) has quit (Remote host closed the connection) 2021-06-22 05:27:12 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-22 05:27:40 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 05:31:03 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-22 05:32:58 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:32:59 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 05:41:50 <-- mteo (francis@user/francis) has quit (Remote host closed the connection) 2021-06-22 05:42:39 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 05:42:57 --> mteo (francis@user/francis) has joined ##rust 2021-06-22 05:43:37 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-22 05:43:39 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 05:50:04 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-22 05:51:48 <-- mattgirv (quassel@apps.fossgalaxy.com) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-22 05:52:00 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 05:54:12 --> mattgirv (quassel@apps.fossgalaxy.com) has joined ##rust 2021-06-22 05:55:24 <-- mattgirv (quassel@apps.fossgalaxy.com) has quit (Client Quit) 2021-06-22 05:55:56 --> mattgirv (quassel@apps.fossgalaxy.com) has joined ##rust 2021-06-22 05:55:56 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-22 05:56:08 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-22 05:58:31 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 06:03:53 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-22 06:07:30 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 06:08:37 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-22 06:12:32 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 06:17:06 <-- alius (~adrien@2a01:e0a:13c:cd90:1b64:22f8:dfdf:dc) has quit (Ping timeout: 264 seconds) 2021-06-22 06:19:23 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-22 06:20:19 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-22 06:21:45 <-- lord| (~lordpipe@user/lordpipe) has quit (Ping timeout: 244 seconds) 2021-06-22 06:21:59 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 268 seconds) 2021-06-22 06:24:07 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-22 06:24:42 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-22 06:25:39 --> Shell (~shell@user/shell) has joined ##rust 2021-06-22 06:34:35 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-22 06:34:56 <-- arinov_ (~arinov@212.156.215.30) has quit (Ping timeout: 268 seconds) 2021-06-22 06:38:01 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 268 seconds) 2021-06-22 06:41:47 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 06:43:08 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 06:50:40 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-22 06:55:33 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has joined ##rust 2021-06-22 06:55:58 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-22 07:08:38 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Quit: ubert) 2021-06-22 07:09:42 <-- sgift (~madison@2001:a61:3461:4a01:6da2:e16f:60f7:79ed) has quit (Quit: Leaving) 2021-06-22 07:10:10 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-06-22 07:11:01 --> chddr (~Thunderbi@31.148.23.125) has joined ##rust 2021-06-22 07:12:59 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 07:17:52 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 265 seconds) 2021-06-22 07:21:37 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-22 07:29:15 --> brainfunnel (~quassel@67.141.208.46.dyn.plus.net) has joined ##rust 2021-06-22 07:30:24 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-22 07:30:26 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-22 07:35:11 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 07:40:46 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-22 07:45:18 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 264 seconds) 2021-06-22 07:48:37 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 07:48:56 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-22 07:49:57 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-22 07:50:32 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-22 07:52:08 <-- mxco86 (~mxco86@user/mxco86) has quit (Ping timeout: 252 seconds) 2021-06-22 07:52:34 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-22 07:53:26 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-06-22 07:57:18 --> mxco86 (~mxco86@user/mxco86) has joined ##rust 2021-06-22 08:00:12 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-22 08:00:17 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-22 08:00:52 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-22 08:01:05 --> maroloccio (~marolocci@189.15.9.54) has joined ##rust 2021-06-22 08:03:08 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-22 08:04:15 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 08:04:24 <-- w0x12ef (~w0x12ef@60.10.194.47) has left ##rust (Leaving) 2021-06-22 08:05:13 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-22 08:05:34 <-- tomjwatson915 (~tomjwatso@80.30.122.193) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-22 08:06:52 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-22 08:08:20 -- imm__ is now known as imm_ 2021-06-22 08:08:33 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-22 08:10:17 <-- frost (~frost@59.71.242.236) has quit (Ping timeout: 258 seconds) 2021-06-22 08:12:12 --> Shell (~shell@user/shell) has joined ##rust 2021-06-22 08:12:59 <-- Shell (~shell@user/shell) has quit (Client Quit) 2021-06-22 08:14:50 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-22 08:17:30 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Ping timeout: 240 seconds) 2021-06-22 08:17:43 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-22 08:19:28 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 08:20:00 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-22 08:20:20 --> Shell (~shell@user/shell) has joined ##rust 2021-06-22 08:24:22 <-- bahamat (~bahamat@64.30.129.150) has quit (Quit: ZNC - https://znc.in) 2021-06-22 08:24:37 --> bahamat (~bahamat@64.30.129.150) has joined ##rust 2021-06-22 08:25:43 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 08:25:45 <-- chddr (~Thunderbi@31.148.23.125) has quit (Quit: chddr) 2021-06-22 08:29:39 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-22 08:29:52 <-- m0xb (~m0xb@71-6-108-136.static-ip.telepacific.net) has quit (Quit: Client closed) 2021-06-22 08:30:36 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-22 08:30:36 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 258 seconds) 2021-06-22 08:31:00 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-22 08:32:43 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 268 seconds) 2021-06-22 08:33:16 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-22 08:34:27 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-22 08:35:34 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 244 seconds) 2021-06-22 08:37:50 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Quit: Leaving) 2021-06-22 08:37:53 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 08:39:17 w0x12ef what do you use to debug rust code 2021-06-22 08:39:22 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-22 08:40:01 Sobek (I'm a terrible person that has mostly been using prints, instead of a decent debugger) 2021-06-22 08:40:15 Sobek Butterflies 2021-06-22 08:40:35 w0x12ef print is good 2021-06-22 08:41:07 cehteh lor one of the logging crates 2021-06-22 08:41:08 Sobek Good old gdb should work I think. rust being a compiled language. 2021-06-22 08:41:22 cehteh i rarely (almost never) use a debugger 2021-06-22 08:41:31 w0x12ef gdb is powerful 2021-06-22 08:41:35 Sobek I've done some bare metal rust debigging in bochs using the debugger in it. 2021-06-22 08:42:26 w0x12ef on linux? 2021-06-22 08:42:45 w0x12ef great job 2021-06-22 08:43:28 Sobek radare2 is also cool to use. (In my case I think I used r2 to get a decent understanding what the compiler had prodced assembly wise, and bochs to do the debugging of the assembler. 2021-06-22 08:44:01 w0x12ef perhaps boches is not needed to debug application level 2021-06-22 08:44:19 Sobek It definitely is not recommended for application level :D 2021-06-22 08:44:51 w0x12ef Sobek, where is the rust vtable stored in eld 2021-06-22 08:44:53 w0x12ef elf 2021-06-22 08:45:20 Sobek vtable as in the structure used for dynamic dispatch ? 2021-06-22 08:46:00 Sobek (I mostly do not use dynamic dispatched stuff, so no idea) 2021-06-22 08:46:01 IanWizard FWIW: I just use a flag to enable debugging output, and a logging function, which only prints debug messages if said flag is enabled. That's become my goto solution cross-language and cross-platform. 2021-06-22 08:46:46 --> kline (~freedom0@libera/staff/kline) has joined ##rust 2021-06-22 08:46:50 IanWizard I've yet to need any real debugger. Those compile time guarantees also help. 2021-06-22 08:47:56 Sobek print works until it doesn't work anymore. It is true however that rust runtime bugs tend to be different class of bugs than those in C. Segfault usually invites using gdb to investigate, but safe rust isn't supposed to segfault, so. 2021-06-22 08:48:28 kline here's a challenging question id like a steer on. id like to integrate rust in a project that has a plugin system with shared objects. and its all built with autotools. where do i begin to read about this? 2021-06-22 08:49:10 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-22 08:50:36 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-06-22 08:51:28 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-22 08:51:50 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-22 08:59:11 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-22 09:00:44 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-22 09:02:02 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 258 seconds) 2021-06-22 09:02:14 bertptrs You can build a crate as a cdylib, that would be a start. It's not a very mature ecosystem yet 2021-06-22 09:05:51 Sobek It might depend where and how you want to integrate it. I feel like there are two questions : one of them is the build system fun, and the other is how you integrate it architecture wise. (Statically linked, dynamically linked, plugins in rust, rust in the core, rust in the core with a rust plugin API for rust plugins ?) 2021-06-22 09:06:38 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-22 09:08:16 kline Sobek, cdylib 2021-06-22 09:08:36 kline C core with rust cdylib plugins 2021-06-22 09:10:10 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-22 09:10:14 kline https://github.com/solanum-ircd/solanum/blob/main/extensions/drain.c is a start to replace 2021-06-22 09:10:44 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-22 09:10:51 kline it's relatively straightforward to write the code for it, but its the integration to autotools thats the problem 2021-06-22 09:12:57 Sobek https://github.com/lu-zero/autotools-cargo-example 2021-06-22 09:13:26 Sobek It looks like someone has already spent some time on that issue. 2021-06-22 09:14:05 Sobek https://github.com/lu-zero/autotools-rs 2021-06-22 09:14:16 Sobek (That's the other way round integration) 2021-06-22 09:15:44 kline cool 2021-06-22 09:16:17 kline it would be good if every rust module didnt need https://github.com/lu-zero/autotools-cargo-example/tree/master/src/rust 2021-06-22 09:16:33 kline but ill play later 2021-06-22 09:18:29 Sobek https://gitlab.com/flukejones/rust_cargo_autotools/-/tree/master by the same person (and he apparently spent a gsoc on it, but his website seems down :/ 2021-06-22 09:19:01 --> Ellipsis753 (~shanee@193.138.218.216) has joined ##rust 2021-06-22 09:19:35 kline Sobek, its available in cache, ive been reading it 2021-06-22 09:21:53 Ellipsis753 Hi. I have processes that need to communicate via shared memory. Is there a good crate for mutexes, queues, etc? I've found "shared_memory" and it looks alright, but a bit limited and rarely used. 2021-06-22 09:22:48 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-22 09:23:27 <-- hendursaga (~weechat@user/hendursaga) has quit (Quit: hendursaga) 2021-06-22 09:25:05 Sobek More recent work is https://people.gnome.org/~federico/blog/librsvg-build-infrastructure.html kline 2021-06-22 09:25:14 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-22 09:25:19 kline thakns 2021-06-22 09:26:44 kline Sobek, this one feels like it has the most potential, since its doing a much more similar thing 2021-06-22 09:30:24 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-22 09:30:37 <-- maroloccio (~marolocci@189.15.9.54) has quit (Ping timeout: 246 seconds) 2021-06-22 09:31:27 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-06-22 09:32:18 dav1d GAT's as outlined here: https://github.com/rust-lang/rfcs/blob/master/text/1598-generic_associated_types.md `trait Foo { type Output<'a>; } doesnt work, yet, right? 2021-06-22 09:32:24 --> maroloccio (~marolocci@189.15.9.54) has joined ##rust 2021-06-22 09:33:12 bertptrs Nope. 2021-06-22 09:34:42 dav1d :( 2021-06-22 09:35:54 Sobek Perhaps you could look into the implementation effort and propose a PR to the compiler ? o:) 2021-06-22 09:37:22 --> tristero (~nobody@user/tristero) has joined ##rust 2021-06-22 09:37:44 --> msi (~msi@186.224.210.190) has joined ##rust 2021-06-22 09:38:18 -- night_wulfe_ is now known as night_wulfe 2021-06-22 09:38:24 --> jkl (~jkl@2600:1700:2420:6d10::3f1) has joined ##rust 2021-06-22 09:43:06 dav1d I could ;) 2021-06-22 09:43:11 <-- li (~li@libera/staff/li) has left ##rust 2021-06-22 09:43:55 --> antonym (uid432694@user/antonym) has joined ##rust 2021-06-22 09:44:36 osa1 if I define a trait in a no-std crate is there a way to implement the trait in downstream std crates without having to newtype it? 2021-06-22 09:45:46 bertptrs there is not. orphan rules dictate you need to either own the trait or the type 2021-06-22 09:45:52 <-- jkl (~jkl@2600:1700:2420:6d10::3f1) has quit (Remote host closed the connection) 2021-06-22 09:45:58 bertptrs the usual workaround is an optional `std` feature in your crate 2021-06-22 09:46:15 osa1 OK, thanks 2021-06-22 09:54:46 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-22 09:57:34 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-22 09:58:58 --> w0x12ef (~w0x12ef@36.112.135.215) has joined ##rust 2021-06-22 10:02:46 w0x12ef what is the meaning of &'static return type 2021-06-22 10:04:25 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 10:05:52 raekye w0x12ef: the 'static lifetime is special in that it is alive for the entirety of the program, e.g. a string constant "hello" (which is stored in the binary rather than created each time it gets evaluated). https://doc.rust-lang.org/rust-by-example/scope/lifetime/static_lifetime.html 2021-06-22 10:06:40 raekye loosely speaking it means it returns a reference to some global data 2021-06-22 10:06:52 w0x12ef get it 2021-06-22 10:11:13 w0x12ef raekye, what is the use of *self* in a trait declaration 2021-06-22 10:11:26 w0x12ef trait AppendBar { 2021-06-22 10:11:30 w0x12ef fn append_bar(self) -> Self; 2021-06-22 10:11:31 w0x12ef } 2021-06-22 10:14:33 raekye w0x12ef: The Self "type" refers to whatever type actually implements the trait, e.g. for the Clone trait and its clone() function, the return type of clone() depends on the actual class implementing Clone 2021-06-22 10:15:07 w0x12ef cool , is this just a syntax sugar for self:SelfType 2021-06-22 10:15:55 cehteh mhm its a bit D'oh that std::process::Command isnt copyable ... would be nice if one could prepare a command and then call it multiple times 2021-06-22 10:16:09 <-- alilleybrinker (uid504511@id-504511.tinside.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 10:16:10 raekye When you have self (or &self, &mut self) it's syntactic sugar for self: Self (I'm not aware of "SelfType"?) 2021-06-22 10:16:30 raekye (&self for self: &Self and &mut self for self: &mut Self correspondingly) 2021-06-22 10:20:08 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-22 10:23:39 <-- Ellipsis753 (~shanee@193.138.218.216) has quit (Quit: Leaving) 2021-06-22 10:23:44 jbg cehteh: you don't need to clone it, you can just call the methods that spawn the process multiple times 2021-06-22 10:23:58 jbg the Command itself is a re-usable builder 2021-06-22 10:24:33 cehteh jbg: does .args() reset all args or append? thats not well documented, i am just trying to figure out 2021-06-22 10:24:35 jbg you can see this by the fact that spawn()/output()/etc take &mut self rather than self 2021-06-22 10:24:41 w0x12ef is string literals always static lifetime? 2021-06-22 10:24:51 jbg .args() "Adds multiple arguments to pass to the program" as the docs say 2021-06-22 10:25:02 cehteh jbg: yes i seen that and with env you can clear, but there is no args clear, 2021-06-22 10:25:12 jbg and btw the docs literally say "Command can be reused to spawn multiple processes. The builder methods change the command without needing to immediately spawn the process" near the top 2021-06-22 10:25:27 cehteh so its not really friendly when you want to reuse it with slightly mutated args 2021-06-22 10:26:03 jbg yeah, there does not seem to be a way to clear the args (that I can see, at least) 2021-06-22 10:26:05 jbg which is a bit odd 2021-06-22 10:26:46 cehteh yes .. i wanted to do a test now, coudl be wording in the docs (i'll look at the source in a minute) or it just lacks args_clear 2021-06-22 10:26:48 jbg you can just make a fn that returns the command with everything set up except the args, and then do that_fn().args().spawn() or whatever each time though 2021-06-22 10:27:02 cehteh yes thats what i am doing now 2021-06-22 10:27:10 jbg "add" is quite clear to me, and the impl just calls .arg() repeatedly 2021-06-22 10:27:43 cehteh yes add is clear .. but then the absence of args_clear makes it a bit ugly 2021-06-22 10:27:53 cehteh https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=86402dfd775e452fefa39e0ad2f3b85d 2021-06-22 10:27:54 jbg I don't see any obvious reason why there could not be an args_clear, it's strange that there isn't when there is env_clear 2021-06-22 10:28:10 cehteh is what i am currently came up for testing the binary 2021-06-22 10:28:42 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-22 10:28:56 cehteh well i may open a ticket for that, maybe its some limitation on some OS dunno, i cant really imagine thats the case but who knows .. i havent looked at the docs yet 2021-06-22 10:29:23 cehteh s/docs/source 2021-06-22 10:30:54 jbg you can easily extract uberallfs.call(&["-d", "-v", "objectstore", "ubatest", ... the other args ...]) into a closure and just call that repeatedly 2021-06-22 10:30:57 jbg which looks much tidier 2021-06-22 10:32:04 cehteh yes, but i opted for writing out the exact arguments as they are passed when you do it manually, it has some repetition, but its a testsuite and then easy to see 2021-06-22 10:32:51 cehteh in production code i wont do that, but tests are nice when verbose 2021-06-22 10:33:26 cehteh btw call/fail return the Output .. next thing will be filters on those 2021-06-22 10:34:38 jbg the unix impl for Process.arg is kinda interesting, it builds up argv as it goes, so each call to arg() overwrites the null pointer in argv with the new arg + null 2021-06-22 10:34:56 jbg then it also pushes it to a vec to keep the owned value alive 2021-06-22 10:35:18 jbg as opposed to just pushing it to the vec and then building argv when you call spawn() or whatever 2021-06-22 10:35:44 bertptrs It's a very C-like way of doing things. see: strtok 2021-06-22 10:36:52 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-22 10:37:10 kee Is there something like docs.rs that works in Dillo? Firefox is too heavy to run at the same time as compiling. 2021-06-22 10:38:00 jbg in what way doesn't it work in dillo? I don't think docs.rs is doing anything particularly complex? 2021-06-22 10:38:20 jbg you can build the docs for any crate locally but I guess they won't work in dillo either if docs.rs doesn't 2021-06-22 10:38:54 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Quit: night) 2021-06-22 10:39:13 cehteh jbg: urgs ... :D now i see .... 2021-06-22 10:39:48 jbg docs.rs works great in lynx btw, so I'm inclined to point the finger at dillo for this one ;) 2021-06-22 10:41:03 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-22 10:41:41 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-22 10:42:28 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-06-22 10:43:28 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Quit: leaving) 2021-06-22 10:43:59 cehteh w3m doesnt work either :D 2021-06-22 10:45:03 cehteh well works somewhat 2021-06-22 10:46:31 jbg you might have to define "work" - it works fine in w3m here, but I define "work" as "I can read the docs" 2021-06-22 10:46:52 <-- w0x12ef (~w0x12ef@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-06-22 10:47:23 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-22 10:47:46 jbg it's hardly convenient, with all the scrolling up and down to navigate, but using lynx/w3m is rarely convenient these days :) 2021-06-22 10:48:26 jbg a rust crate docs <-> man pages bridge, now there's an idea 2021-06-22 10:48:38 jbg `man std::process::Command` 2021-06-22 10:48:50 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-22 10:49:13 cehteh do it 2021-06-22 10:49:14 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Ping timeout: 252 seconds) 2021-06-22 10:49:42 cehteh or maybe info pages (because those allow linking) 2021-06-22 10:50:00 cehteh but hey how about html :) ... i mean simple one 2021-06-22 10:50:15 Sobek Well, given the grey beard complaint about documentation in the lkml about rust in linux it might be an instant hit (unless thos greay beard prefer to use GNU Info ?) 2021-06-22 10:50:20 cehteh without alls that overload of css and js 2021-06-22 10:50:58 cehteh manpages are a bit inconvinient when things become bigger 2021-06-22 10:51:02 jbg I dislike GNU info, it feels like browsing the web with lynx/w3m 2021-06-22 10:51:14 cehteh yeah many people dislike it 2021-06-22 10:51:22 jbg but yeah it's a bit of a religious argument 2021-06-22 10:51:25 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-22 10:51:38 cehteh it has some advantages, means structured docs .. but thats also limiting 2021-06-22 10:52:06 jbg but meh, if you bridge to one you might as well bridge to both 2021-06-22 10:52:21 cehteh anyway i guess i see if some already missed the lack of args_clear and other things 2021-06-22 10:52:42 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-22 10:52:47 jbg and why not really? if I can `man strtok` why can't I `man std::str::from_utf8` 2021-06-22 10:52:54 Sobek Hmm, the documentation page are mostly auto generated, I feel it would be possible te create an alternate pipeline that packages the content in a format that can be used more easily to create light weight doc for set-ups where heavy js and css are unwelcome. 2021-06-22 10:53:15 jbg yeah of course 2021-06-22 10:53:25 jbg only the last stage of the pipeline needs to change, to spit out whatever format you want 2021-06-22 10:53:32 cehteh jbg: biggiest adantages of rust manpages is the browsing and interlinking 2021-06-22 10:54:19 jbg that's an advantage, but "biggest advantage" is a matter of opinion and depends on context 2021-06-22 10:54:24 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 265 seconds) 2021-06-22 10:54:26 cehteh and i really dislike that marcdown is used .. another rant but markdown has such a limited / crappy toolchain anytihin beyond html isnt thought of 2021-06-22 10:54:42 cehteh possible but with headdache 2021-06-22 10:54:55 jbg I do find the hyperlinking useful, but I would also find it really useful to be able to quickly look up the description and signature of a method that I already know the exact name of 2021-06-22 10:55:03 Sobek well, links can probably be turned into a see rust::std::...::fmt, which can be opened with a man rust::std::...::fmt This isn't completely broken, except you're likely to open way more pages with rust than you usually do with manpage. 2021-06-22 10:55:59 jbg at the moment I generally type the type/method name into google and usually get there within a click or two 2021-06-22 10:55:59 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 10:57:02 cehteh where does one look for std lib issues? https://github.com/rust-lang/rust/issues << is core language only? 2021-06-22 10:57:02 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 258 seconds) 2021-06-22 10:57:43 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 10:57:57 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-22 10:59:44 jbg std's in that repo too (library/std) 2021-06-22 10:59:48 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-22 11:00:12 --> hounded (~hounded@2603-7000-da43-eccc-0000-0000-0000-0cec.res6.spectrum.com) has joined ##rust 2021-06-22 11:01:11 <-- Roughy (~mdaw45ns@user/roughy) has quit (Client Quit) 2021-06-22 11:02:38 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-22 11:03:04 cehteh ok found no related ticket yet .. strange that no one needed that yet 2021-06-22 11:04:13 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-22 11:06:14 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-22 11:08:32 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 11:16:37 <-- cehteh (~ct@mue-88-130-78-146.dsl.tropolys.de) has quit (Killed (NickServ (GHOST command used by GNUcifer!~ct@mue-88-130-79-078.dsl.tropolys.de))) 2021-06-22 11:16:49 --> cehteh (~ct@mue-88-130-79-078.dsl.tropolys.de) has joined ##rust 2021-06-22 11:17:36 --> neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has joined ##rust 2021-06-22 11:19:30 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 252 seconds) 2021-06-22 11:20:14 <-- sapzk (~sapzk@user/sapzk) has quit (Ping timeout: 252 seconds) 2021-06-22 11:21:25 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 11:23:30 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 11:24:09 bertptrs not too strange. useful as they are man pages have a terrible ux 2021-06-22 11:24:53 bertptrs ddg's !rust bang works fine. The !drs bang works for other crates 2021-06-22 11:26:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-22 11:26:59 dav1d regarding static: " loosely speaking it means it returns a reference to some global data" - 'static is also when something is owned, right? Because it doesnt have to life the entirety of the program, but it *could* 2021-06-22 11:28:31 dav1d Ah, found the thing I was remembering: https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md#2-if-t-static-then-t-must-be-valid-for-the-entire-program 2021-06-22 11:28:52 <-- maroloccio (~marolocci@189.15.9.54) has quit (Quit: Client closed) 2021-06-22 11:29:46 --> Ellipsis753 (~shanee@193.138.218.201) has joined ##rust 2021-06-22 11:31:18 Ellipsis753 Does Mutex<> work between processes via shared memory? (Or only threads within a single process?) 2021-06-22 11:33:28 bertptrs Threads within a single process 2021-06-22 11:34:01 bertptrs For IPC you'll need something else 2021-06-22 11:35:21 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-22 11:35:37 <-- cmagina (~cmagina@user/cmagina) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-22 11:36:02 SoF hi, is there a format string (like {:?}) that allows me to say "indent this string incl. all newlines this string returns"? 2021-06-22 11:36:36 dav1d I have two trait implementations, I want to choose at runtime which one to use (DebugParser vs NormalParser, both implement Parser), I know I can do that via dynamic dispatch and a box. But I would like to do it with an Enum, e.g. either::Either, does Either auto implement the trait (it doesnt seem to), can I implement the trait, or should I make 2021-06-22 11:36:36 dav1d my own Either version just for my usecase? 2021-06-22 11:36:38 SoF so "{:? indent=4}", String::from("a\nb") would return " a\n b" 2021-06-22 11:39:30 dav1d SoF: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e7fb8a9445c2ad09995952b22f02e7a3 2021-06-22 11:39:37 dav1d ah nvm 2021-06-22 11:39:42 dav1d I just see what you mean 2021-06-22 11:41:39 SoF thanks for trying :) 2021-06-22 11:42:57 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-22 11:43:26 SoF dav1d: you can implement your own trait for external types 2021-06-22 11:43:42 SoF impl MyTrait for either::Either { etc. } 2021-06-22 11:44:10 dav1d SoF, yeah, but I would have to do that in the same place where I define the trait, right? e.g. I can't do it only in example/main.rs? 2021-06-22 11:44:16 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-22 11:44:44 jbg you have to do it either in the crate of Either or the crate of MyTrait 2021-06-22 11:44:46 <-- brickfat (~brickfat@user/brickfat) has quit (Remote host closed the connection) 2021-06-22 11:44:49 jbg it doesn't matter which module of that crate 2021-06-22 11:44:50 SoF ah I see. if the compiler complains, you can make an empty trait, dav1d 2021-06-22 11:44:58 SoF so MyTrait2: MyTrait 2021-06-22 11:45:13 SoF then MyTrait2 is defined in example/main.rs and you can impl it for Either 2021-06-22 11:45:35 --> cmagina (uid286142@user/cmagina) has joined ##rust 2021-06-22 11:45:42 jbg SoF I don't think that will work, since you won't be able to impl MyTrait2 for Either (since MyTrait is not implemented for it) 2021-06-22 11:45:46 Ellipsis753 bertptrs: Thanks. 2021-06-22 11:46:03 jbg Trait2: Trait is not inheritance, it's specifying requirements 2021-06-22 11:46:23 SoF oh right, I confused something 2021-06-22 11:46:41 jbg you can make a newtype though and impl the trait for that 2021-06-22 11:48:26 dav1d mh, thanks, so best option seems to be to just make a new enum which implements the trait 2021-06-22 11:49:00 jbg making your own Either seems fine 2021-06-22 11:49:38 j`ey make a crate called 'mope', like there's 'mopa' 2021-06-22 11:49:47 j`ey My Own Personal Either 2021-06-22 11:58:05 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-22 11:59:44 dav1d :D 2021-06-22 12:00:00 dav1d I wish there was a way to auto implement all traits that Left and Right implement together 2021-06-22 12:00:03 tomboy64 ugh. i'm having a bit of a brainblock rn. how do i get (e.g. remove and use) some random element in a HashSet? 2021-06-22 12:00:16 dav1d isnt there .remove()? 2021-06-22 12:00:49 dav1d ah, it's take: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.take 2021-06-22 12:00:52 tomboy64 dav1d: that requires the element. or rather a reference to it 2021-06-22 12:00:53 dav1d tomboy64: ^ 2021-06-22 12:01:10 dav1d oh sorry, it's late for me 2021-06-22 12:02:10 tomboy64 ^^ 2021-06-22 12:03:52 --> Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-22 12:04:45 -- avu is now known as afoo 2021-06-22 12:04:59 -- viirc_ is now known as _VI 2021-06-22 12:05:01 -- _VI is now known as _Vi 2021-06-22 12:05:05 -- afoo is now known as avu 2021-06-22 12:05:10 -- whoami is now known as Cardinal 2021-06-22 12:05:12 -- Cardinal is now known as whoami 2021-06-22 12:05:39 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 258 seconds) 2021-06-22 12:06:11 -- whoami is now known as whoami_ 2021-06-22 12:06:17 -- whoami_ is now known as whoami__ 2021-06-22 12:06:21 -- whoami__ is now known as whoami 2021-06-22 12:06:34 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-22 12:06:56 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-22 12:07:44 -- CommunistWolf is now known as cw 2021-06-22 12:08:34 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-06-22 12:09:30 -- pragma- is now known as garp 2021-06-22 12:09:34 -- garp is now known as pragma- 2021-06-22 12:10:00 -- Kirjava is now known as cake 2021-06-22 12:10:04 -- cake is now known as Colourful 2021-06-22 12:10:06 -- Colourful is now known as Kirjava 2021-06-22 12:10:34 Hans-Martin I'm using VS code with Rust Language Server, and since yesterday the rls seems to be stuck on startup. This happens in several rust project directories. Tried killing rls processes, cargo clean, etc. Ist there any known current problem? 2021-06-22 12:10:47 -- _________ is now known as noodly 2021-06-22 12:10:51 -- noodly is now known as __________ 2021-06-22 12:11:00 Hans-Martin platform is linux if that matters... 2021-06-22 12:11:01 -- __________ is now known as _________ 2021-06-22 12:12:21 -- cw is now known as lupine 2021-06-22 12:14:33 -- lupine is now known as CapitalistWolf 2021-06-22 12:15:07 GreenJello Hans-Martin, I don't think the RLS is maintained anymore? Try switching to rust-analyzer 2021-06-22 12:15:10 -- edm is now known as edmoore 2021-06-22 12:15:30 Hans-Martin ah, that's an idea. will try it 2021-06-22 12:16:21 -- CapitalistWolf is now known as CommunistWolf 2021-06-22 12:18:05 -- edmoore is now known as eroomde 2021-06-22 12:18:08 -- eroomde is now known as edm 2021-06-22 12:19:12 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-22 12:20:53 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 268 seconds) 2021-06-22 12:22:44 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 12:24:22 bertptrs tomboy64: drain().next() work for you? 2021-06-22 12:27:12 <-- Ellipsis753 (~shanee@193.138.218.201) has quit (Quit: Leaving) 2021-06-22 12:27:17 bertptrs evalr2: use std::collections::HashSet; let mut s = HashSet::from_iter([1, 2, 3]); print!("{:?}", s.drain().next()); s 2021-06-22 12:27:19 -- Notice(evalr2): bertptrs: error[E0599]: no function or associated item named `from_iter` f ... 2021-06-22 12:27:20 -- Notice(evalr2): bertptrs: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6c04dcb49c5c4229c2ff492ddc576815 2021-06-22 12:27:43 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-22 12:27:52 <-- xkuru (~xkuru@user/xkuru) has quit (Remote host closed the connection) 2021-06-22 12:28:06 tomboy64 bertptrs: that empties the container completely even when the iterator is not exhausted and makes the rest of the set unusable right away. 2021-06-22 12:28:14 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-22 12:28:48 bertptrs huh, you're right, that's rather inconsistent 2021-06-22 12:29:44 bertptrs With Vec you can make this work, but not with HashSet it seems 2021-06-22 12:30:10 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-22 12:34:19 --> Karel (~Karel@42.217.60.188.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-06-22 12:36:17 cehteh jbg: fyi https://internals.rust-lang.org/t/lack-of-api-mutating-args-at-std-command/14908 2021-06-22 12:40:46 --> k3rn31 (~davide@2001:b07:6473:a66d:5a00:e3ff:fea2:2a63) has joined ##rust 2021-06-22 12:42:12 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-22 12:44:07 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 265 seconds) 2021-06-22 12:44:49 <-- k3rn31 (~davide@2001:b07:6473:a66d:5a00:e3ff:fea2:2a63) has quit (Client Quit) 2021-06-22 12:48:38 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 268 seconds) 2021-06-22 12:50:22 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 12:55:54 <-- Erutuon (~Erutuon@user/erutuon) has quit (Quit: WeeChat 2.8) 2021-06-22 12:58:33 kee Is there something like docs.rs that works in Dillo? Firefox is too heavy to run at the same time as compiling. 2021-06-22 12:58:45 <-- justBull (~justache@user/justache) has quit (Remote host closed the connection) 2021-06-22 12:59:45 --> justBull (~justache@user/justache) has joined ##rust 2021-06-22 13:03:32 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-22 13:03:48 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 13:06:56 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 13:09:51 Polochon_street hi! Let's say I have a binary, with a main function that uses clap for argument parsing. Is there an easy way to test it using the default testing suite? Or should I just test its components, and assume the argument parsing is 💯 ? 2021-06-22 13:10:01 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-22 13:11:05 GreenJello in addition to unit tests you can write integration tests that execute the binary and inspect output 2021-06-22 13:11:15 GreenJello you ideally have both 2021-06-22 13:12:07 GreenJello if you don't have integration tests, then you'd want to document procedures on what to manually test before cutting a release 2021-06-22 13:12:17 <-- jess (~jess@libera/staff/jess) has quit 2021-06-22 13:12:24 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-22 13:15:47 --> Ellipsis753 (~shanee@45.83.220.204) has joined ##rust 2021-06-22 13:16:23 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-22 13:18:38 Ellipsis753 What guarantees are there around fork()ing and the Rust stdlib? I'm building a shared lib that's loaded into a process which then forks into several processes. Is this problematic because stdlib initializes before it's forked, or is that supported? 2021-06-22 13:22:41 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 13:23:59 Hans-Martin GreenJello switching to rust-analyzer helped, thx 2021-06-22 13:26:19 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-22 13:26:46 --> belcher (~belcher@user/belcher) has joined ##rust 2021-06-22 13:27:37 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-22 13:27:54 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-06-22 13:29:36 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Read error: No route to host) 2021-06-22 13:30:04 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-22 13:32:27 belcher iv created my own struct, and im using .collect() to try to create a Vec, i get the error message "help: the trait `FromIterator<&MyStruct>` is not implemented for `Vec`"... but when i look at the page for FromIterator i get the impression the trait is only meant to implemented on collections, my struct isnt a collection it just represents one thing... am i missing something in the understanding? 2021-06-22 13:33:03 --> Mateon2 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-22 13:33:03 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 258 seconds) 2021-06-22 13:33:17 -- Mateon2 is now known as Mateon1 2021-06-22 13:33:20 j`ey belcher: its the & 2021-06-22 13:33:37 belcher right, the reference 2021-06-22 13:33:41 j`ey sounds like youre iterating over &Struct, not Struct 2021-06-22 13:33:53 j`ey so you cant build a Vec from that 2021-06-22 13:34:14 GreenJello .cloned().collect() might work, though 2021-06-22 13:34:15 j`ey (you can clone, by adding .cloned() before the collect()) 2021-06-22 13:34:19 belcher hmm yes, my code inside map() at one point uses vec.get() and that returns an Option<&MyStruct> 2021-06-22 13:35:11 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-22 13:35:15 j`ey you either need to clone or somehow take ownership, use remove instead of get() maybe) 2021-06-22 13:36:32 Karel I remember reading a blog post about rustfmt internals a while ago, that explained why code formatting is more difficult then expected (something with comments and heuristics for overflowing lines). But I can't find the post anymore, does anyone have the link? 2021-06-22 13:37:39 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-22 13:38:15 <-- Ellipsis753 (~shanee@45.83.220.204) has quit (Ping timeout: 265 seconds) 2021-06-22 13:39:48 dav1d is there a writeup about how the default allocator works? I asumme it's more than a simple malloc & free, but also caches memory blocks etc. 2021-06-22 13:40:39 j`ey the default does default to malloc/free 2021-06-22 13:40:55 j`ey but malloc/free does those tricks! 2021-06-22 13:41:14 belcher ty for the help(!) 2021-06-22 13:41:16 <-- belcher (~belcher@user/belcher) has left ##rust (Leaving) 2021-06-22 13:43:02 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-22 13:44:28 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-22 13:44:46 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-22 13:44:53 dav1d j`ey, oh, interesting. I always assumed jemalloc was replaced with a custom implementation 2021-06-22 13:44:54 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-22 13:46:03 j`ey dav1d: the default was jemalloc, now its the system allocator 2021-06-22 13:46:20 dav1d thanks! 2021-06-22 13:47:43 --> vasilakisfil (~vasilakis@c213-89-149-11.bredband.tele2.se) has joined ##rust 2021-06-22 13:49:02 --> kwilczynski (sid379192@user/kwilczynski) has joined ##rust 2021-06-22 13:50:38 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (Quit: WeeChat 3.2) 2021-06-22 13:52:36 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-22 13:52:41 --> bread (uid502657@id-502657.brockwell.irccloud.com) has joined ##rust 2021-06-22 13:55:16 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 14:07:34 <-- vicfred (~vicfred@user/vicfred) has quit (Ping timeout: 268 seconds) 2021-06-22 14:10:12 Polochon_street GreenJello: though it's not really possible to do integration testing with the default Rust suite, right? Since you'd need to launch the binary somehow 2021-06-22 14:11:24 GreenJello Polochon_street, there are crates like assert_cmd that make it easy 2021-06-22 14:11:43 Polochon_street oh, didn't know that. Thanks! 2021-06-22 14:11:43 GreenJello iirc it does produce the binary before running integration tests 2021-06-22 14:11:51 GreenJello even without a crate 2021-06-22 14:12:19 GreenJello it's just handling different targets and debug vs release in the cargo test options that's tricky 2021-06-22 14:13:02 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (Quit: WeeChat 3.2) 2021-06-22 14:14:42 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-22 14:17:43 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-22 14:18:55 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-22 14:20:18 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 265 seconds) 2021-06-22 14:22:49 --> Xe_ (~cadey@tailscale/xe) has joined ##rust 2021-06-22 14:22:51 -- Xe is now known as Guest1099 2021-06-22 14:22:51 <-- Guest1099 (~cadey@tailscale/xe) has quit (Killed (zirconium.libera.chat (Nickname regained by services))) 2021-06-22 14:22:51 -- Xe_ is now known as Xe 2021-06-22 14:32:33 Hans-Martin does anyone know how to beat libp2p into submission? my chat app variant connects nicely using mdns, but not when I try to dial a peer explicitly by IP 2021-06-22 14:32:50 Hans-Martin or is libp2p off-topic? 2021-06-22 14:35:49 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-06-22 14:36:09 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-22 14:37:55 --> farmstatejake (~farmstate@user/farmstatejake) has joined ##rust 2021-06-22 14:38:34 capitol no, but there might not be anyone here who has experience with it 2021-06-22 14:39:05 Hans-Martin thought so. somewhat esoteric stuff. 2021-06-22 14:39:57 -- aoei is now known as RustySpoons 2021-06-22 14:40:22 Hans-Martin hard enough to learn a new library but wrapping your head around async/await and type system magic when coming from a simple objekt oriented language is really bad :-) 2021-06-22 14:40:29 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-22 14:44:11 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Excess Flood) 2021-06-22 14:44:37 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-22 14:44:44 --> maurer (~maurer@user/maurer) has joined ##rust 2021-06-22 14:45:15 obviyus writing some functional code purely using iterators is such a joy 2021-06-22 14:46:10 obviyus especially when you start messing around with scan() and fold() \o/ 2021-06-22 14:46:47 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-22 14:47:51 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 265 seconds) 2021-06-22 14:51:08 kee Can I assume std::time::Instant is good enough for a game loop? 2021-06-22 14:54:27 GreenJello kee, should be good for that 2021-06-22 15:00:01 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-22 15:01:36 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-22 15:02:24 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-22 15:06:07 ska In https://github.com/samuelsleight/neil there is a src/problem.rs that needs an implentation. Can I compile that existing code into a library and then have a separate code that imports it? 2021-06-22 15:06:44 <-- moistphantom (~root@user/moistphantom) has quit (Quit: moistphantom) 2021-06-22 15:08:36 GreenJello ska, it seems to already be published to crates.io, so you could depend on it 2021-06-22 15:16:01 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-06-22 15:18:58 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-22 15:22:25 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-22 15:23:28 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 15:24:04 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-22 15:24:32 ska GreenJello: how did you verify that? 2021-06-22 15:25:11 ska I suppose just search crates.io. 2021-06-22 15:27:24 ska GreenJello: Then my next question: what do I do to import it into my code? 'extern crate neil' ? 2021-06-22 15:27:53 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 15:28:06 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-22 15:28:53 GreenJello in Cargo.toml: [dependencies] 2021-06-22 15:28:53 GreenJello neil = "0.2" 2021-06-22 15:28:55 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-22 15:29:04 --> IlPalazzo-ojiisa (~froderick@188.117.231.222) has joined ##rust 2021-06-22 15:29:11 IlPalazzo-ojiisa To quote the nomicon: “BTreeMap doesn't really make sense for partially-ordered types, and so it requires that its keys implement Ord. However, BTreeMap has Unsafe Rust code inside of its implementation. Because it would be unacceptable for a sloppy Ord implementation (which is Safe to write) to cause Undefined Behavior, the Unsafe code in BTreeMap must be written to be robust against Ord implementations which aren't actually total — 2021-06-22 15:29:11 IlPalazzo-ojiisa […]” 2021-06-22 15:29:12 GreenJello in your .rs file: use neil::Problem; 2021-06-22 15:29:22 GreenJello and you can view the docs here https://docs.rs/neil/0.2.0/neil/ 2021-06-22 15:29:37 IlPalazzo-ojiisa My question is: does this robustness lead to run-time costs? If so, how large are those costs? 2021-06-22 15:31:07 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 258 seconds) 2021-06-22 15:32:03 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 268 seconds) 2021-06-22 15:32:20 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-22 15:34:11 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-22 15:34:51 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 15:35:27 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-22 15:36:29 <-- ausserz (~ausserz@user/ausserz) has quit (Ping timeout: 258 seconds) 2021-06-22 15:37:16 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 15:37:40 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Quit: WeeChat 3.1) 2021-06-22 15:42:28 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Ping timeout: 265 seconds) 2021-06-22 15:43:44 --> barnaby (~barnabywa@mobiledyn-185-69-244-134.mrsn.at) has joined ##rust 2021-06-22 15:48:31 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-06-22 15:51:45 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-22 15:52:38 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 15:53:21 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-22 15:55:15 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 15:55:15 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-06-22 15:55:36 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 15:58:44 --> nexos (~nexos@p200300e5b70eee006187b9badcc709db.dip0.t-ipconnect.de) has joined ##rust 2021-06-22 16:01:34 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::c639) has quit (Remote host closed the connection) 2021-06-22 16:02:59 --> p2-mate (~p2@emantra.psychaos.be) has joined ##rust 2021-06-22 16:03:40 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 252 seconds) 2021-06-22 16:04:17 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-22 16:06:04 <-- sapzk (~sapzk@user/sapzk) has quit (Quit: WeeChat 3.1) 2021-06-22 16:09:54 <-- dcz (~dcz@dynamic-078-048-188-020.78.48.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-06-22 16:12:47 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-22 16:14:22 <-- cehteh (~ct@mue-88-130-79-078.dsl.tropolys.de) has quit (Ping timeout: 265 seconds) 2021-06-22 16:21:02 --> talin (~unknown@hydra.org) has joined ##rust 2021-06-22 16:21:43 talin hello. i am trying to do a rust tutorial, but i can't figure out how to make an interator. i get a failure on line 22 here where i try to push an item onto a vec: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e109036019047931edd3a5056f7aadbd 2021-06-22 16:22:13 --> phryk (~totallyno@user/phryk) has joined ##rust 2021-06-22 16:22:42 phryk is it somehow possible to set arbitrary rustc parameters from Cargo.toml? 2021-06-22 16:25:18 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 252 seconds) 2021-06-22 16:25:38 kron phryk: no, but from .cargo/config 2021-06-22 16:25:53 phryk kron: not good enough. :/ 2021-06-22 16:26:19 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: Leaving) 2021-06-22 16:26:24 phryk trying to package a piece of rust software and am getting failures because of missing SONAME – i know there's a rustc flag to set it, but i can't just set it through env vars because there's multiple shared objects being built – but all of them seem to have their own Cargo.toml… 2021-06-22 16:27:50 phryk and the OS in question doesn't have a package for patchelf, otherwise I'd just add a build-time dep and patch the SONAMEs in with that… :F 2021-06-22 16:28:03 kron talin: you can dereference a &T into a T manually by doing *x. So you can call clone on T by doing (*x).clone(), although that is one of the uglier variants 2021-06-22 16:28:31 dav1d talin, the problem is, you push &T into the vector 2021-06-22 16:29:33 dav1d talin: for your example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=402a1c95fddc8c22863d02c10d26e777 because all your items are Copy 2021-06-22 16:30:08 dav1d now depending on what you want, you could let your iterator return references (and mess around with lifetimes) or require the Clone bound and clone the items 2021-06-22 16:31:21 dav1d e.g. just setting the ` + Clone` bound would be enough for your example 2021-06-22 16:31:50 Midjak I am trying to find how to change the selected text background color in customize-faces. Do you know what it is ? 2021-06-22 16:32:19 <-- schmillin (~schmillin@user/schmillin) has quit (Quit: Leaving) 2021-06-22 16:32:20 Midjak ok region 2021-06-22 16:33:13 talin thank you guys 2021-06-22 16:33:22 dav1d talin: what you probably want is to implement the into_iter trait which can consume your inner 2021-06-22 16:33:27 talin kron: why are there parenthesis around the (*x)? 2021-06-22 16:34:01 dav1d (*x).clone() vs *(x.clone()) 2021-06-22 16:34:39 talin aah, i see 2021-06-22 16:35:13 <-- IlPalazzo-ojiisa (~froderick@188.117.231.222) has left ##rust 2021-06-22 16:35:56 talin when it says "impl Groups" what do the two Ts signify? i mean, they represent a generic type, but what does the first and second T define it for? 2021-06-22 16:36:16 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-22 16:37:31 dav1d T can be any type in your example, impl says this requires a generic T, Groups means you give that T to the groups struct 2021-06-22 16:38:32 Midjak oh sorry wrong channel 2021-06-22 16:39:26 mrmonday phryk: from a quick look at the docs it looks like you should be able to do it with a build.rs file, I'm not sure if there's a better way or not 2021-06-22 16:41:14 phryk mrmonday: can you point me at the place in the docs you found this? 2021-06-22 16:41:45 mrmonday phryk: https://doc.rust-lang.org/cargo/reference/build-scripts.html?highlight=link-arg#outputs-of-the-build-script 2021-06-22 16:41:52 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 16:42:18 --> HalfWord_ (~halfword@user/halfword) has joined ##rust 2021-06-22 16:42:26 <-- bread (uid502657@id-502657.brockwell.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 16:42:34 mrmonday I'm guessing `cargo:rustc-cdylib-link-arg=FLAG` is what you need 2021-06-22 16:42:37 talin dav1d: aaah, that makes sense. thank you 2021-06-22 16:43:16 dav1d talin, I am failing to come up with an easy example ... 2021-06-22 16:44:52 dav1d it becomes more useful when implementing traits 2021-06-22 16:45:02 dav1d s/useful/clear/ 2021-06-22 16:45:18 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-06-22 16:46:08 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-22 16:48:07 phryk mrmonday: thanks. will build.rs be invoked by cargo automatically, if it exists? 2021-06-22 16:49:03 phryk ah nvm [package]\n…build="foo.rs" 2021-06-22 16:49:45 --> Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has joined ##rust 2021-06-22 16:49:54 Bish o/ 2021-06-22 16:49:56 phryk oh, but build.rs honored by default. at least that much makes sense. 2021-06-22 16:50:28 mrmonday phryk: yeah, scroll to the top of the page for an example - just drop a build.rs in the root next to the Cargo.toml and it will be picked up 2021-06-22 16:50:58 mrmonday if whatever you're packaging already has a build script you'll need to modify that instead 2021-06-22 16:51:37 -- Lohn is now known as lohn2 2021-06-22 16:53:07 phryk mrmonday: the executables already have build.rs scripts, the shared libs don't. 2021-06-22 16:53:27 phryk also, funny, cargo:rustc-link-arg was explicitly added to enable adding SONAME 2021-06-22 16:56:32 <-- nvmd (~nvmd@user/nvmd) has quit (Ping timeout: 268 seconds) 2021-06-22 16:58:14 --> nvmd (~nvmd@user/nvmd) has joined ##rust 2021-06-22 16:59:28 phryk mrmonday: do I see it right that the "cargo:rustc-cdy…" thing just goes into a `println!()`? 2021-06-22 16:59:52 --> cehteh (~ct@7-167-142-46.pool.kielnet.net) has joined ##rust 2021-06-22 16:59:53 <-- ska (~ska@cpe-173-174-111-177.austin.res.rr.com) has quit (Quit: Leaving) 2021-06-22 17:01:07 mrmonday pretty much, yep 2021-06-22 17:01:08 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-22 17:01:25 phryk also, is there a way for the build.rs script to easily access info from within the associated Cargo.toml? Being able to pull the version out of there would eliminate the need to update the build.rs on every release… 2021-06-22 17:01:35 phryk (want to make this a PR upstream 2021-06-22 17:01:36 phryk ) 2021-06-22 17:02:25 mrmonday phryk: https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates 2021-06-22 17:03:16 phryk mrmonday: noice, much obliged. 2021-06-22 17:03:51 --> nf (~n@monade.li) has joined ##rust 2021-06-22 17:04:10 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-22 17:04:42 cehteh phryk: there is the cargo metadata crate which lets you extract things from cargo in more or less ugly way, i am using that from build.rs (in the more ugly way) 2021-06-22 17:06:01 phryk cehteh: read the link mrmonday posted, some extremely helpful things in there. 2021-06-22 17:06:23 cehteh i know that, but in my case that was not enough 2021-06-22 17:07:47 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-22 17:09:57 <-- nf (~n@monade.li) has quit (Quit: Fairfarren.) 2021-06-22 17:10:09 --> nf (~n@monade.li) has joined ##rust 2021-06-22 17:16:54 <-- nf (~n@monade.li) has left ##rust (Fairfarren.) 2021-06-22 17:18:02 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-22 17:21:08 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 258 seconds) 2021-06-22 17:22:22 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Remote host closed the connection) 2021-06-22 17:22:31 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-22 17:23:05 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-22 17:24:16 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 17:28:02 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-06-22 17:28:44 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-22 17:29:11 --> asvln (asvln@gateway/vpn/protonvpn/asvln) has joined ##rust 2021-06-22 17:29:56 <-- asvln (asvln@gateway/vpn/protonvpn/asvln) has quit (Client Quit) 2021-06-22 17:31:29 --> asvln (asvln@gateway/vpn/protonvpn/asvln) has joined ##rust 2021-06-22 17:32:52 <-- asvln (asvln@gateway/vpn/protonvpn/asvln) has quit (Client Quit) 2021-06-22 17:33:09 --> asvln (asvln@gateway/vpn/protonvpn/asvln) has joined ##rust 2021-06-22 17:39:03 <-- SoF (~skius@user/skius) has quit (Quit: Ping timeout (120 seconds)) 2021-06-22 17:39:46 --> SoF (~skius@user/skius) has joined ##rust 2021-06-22 17:40:24 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 265 seconds) 2021-06-22 17:42:19 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 17:42:40 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 252 seconds) 2021-06-22 17:48:28 <-- vasilakisfil (~vasilakis@c213-89-149-11.bredband.tele2.se) has quit (Quit: Konversation terminated!) 2021-06-22 17:55:05 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-22 17:56:02 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 252 seconds) 2021-06-22 17:59:17 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 17:59:38 --> freakazoid333 (~freakazoi@72.168.176.34) has joined ##rust 2021-06-22 18:00:34 --> x_kuru (~xkuru@user/xkuru) has joined ##rust 2021-06-22 18:01:55 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-22 18:03:18 <-- xkuru (~xkuru@user/xkuru) has quit (Ping timeout: 258 seconds) 2021-06-22 18:12:10 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-22 18:14:17 <-- SoF (~skius@user/skius) has quit (Read error: Connection reset by peer) 2021-06-22 18:14:38 --> SoF (~skius@user/skius) has joined ##rust 2021-06-22 18:18:13 <-- freakazoid333 (~freakazoi@72.168.176.34) has quit (Read error: Connection reset by peer) 2021-06-22 18:18:20 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-22 18:18:38 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-06-22 18:20:24 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 268 seconds) 2021-06-22 18:21:32 <-- SoF (~skius@user/skius) has quit (Ping timeout: 252 seconds) 2021-06-22 18:22:11 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 18:22:12 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-22 18:22:15 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 268 seconds) 2021-06-22 18:23:39 --> SoF (~skius@user/skius) has joined ##rust 2021-06-22 18:24:10 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has quit 2021-06-22 18:25:30 --> ssbr_ (~ssbr@2620:15c:10f:203:8295:58ce:d0bd:be8d) has joined ##rust 2021-06-22 18:26:36 routeveg Hi all 2021-06-22 18:26:46 routeveg I've just tried to write something realistic in Rust, and hit a probem 2021-06-22 18:26:48 routeveg *problem 2021-06-22 18:26:50 routeveg https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021 2021-06-22 18:27:02 -- dwt is now known as dwt27 2021-06-22 18:27:12 j`ey routeveg: click share 2021-06-22 18:27:21 -- dwt27 is now known as cillian64 2021-06-22 18:27:28 routeveg Oops! https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021 2021-06-22 18:27:42 j`ey routeveg: click share :P 2021-06-22 18:27:42 routeveg Wait, no https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=b763ffe7536df83e2ab412b490c66824 2021-06-22 18:27:45 routeveg There! 2021-06-22 18:28:10 -- cillian64 is now known as dwt 2021-06-22 18:28:19 routeveg So, the problem is that map is still borrowed in the 'None' block of the match, which makes sense - but that means I can't add things to it! 2021-06-22 18:29:55 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-22 18:30:18 danieldg routeveg: look at map.entry 2021-06-22 18:30:57 danieldg it has some nice functions to get-or-insert-if-not 2021-06-22 18:31:13 ssbr_ routeveg: I usually work around this by moving code to outside of the match, although in this case that wouldn't help because of the long borrow. entry would work. 2021-06-22 18:32:00 ssbr_ (i.e. the match is borrowing for 'a -- so in fact it's borrowed for the whole rest of the function. Even if you move code outside of the match you still can't use it!) 2021-06-22 18:32:23 routeveg Looks like map.entry does what I need here, so thanks for pointing me at that :) 2021-06-22 18:32:33 routeveg But i'm still bothered about how-to-make-it-work-without-entry 2021-06-22 18:32:41 routeveg ssbr_: Yes, exactly i am hitting that too! 2021-06-22 18:33:01 danieldg routeveg: you basically have to move that last get_mut.unwrap outside the match and return it 2021-06-22 18:33:02 routeveg I feel like if I can properly understand how to make this work, I will have levelled up 2021-06-22 18:33:16 danieldg it's a limitation of the borrow checker 2021-06-22 18:33:28 ssbr_ I think last time I ran into something like this (and couldn't solve it via something like entry) I used an unsafe lifetime transmute :-T 2021-06-22 18:33:32 routeveg I did that but as ssbr_ said, map remains borrowed for the rest of the function 2021-06-22 18:33:33 ssbr_ ISTR polonius fixed it 2021-06-22 18:33:37 danieldg i.e. what you want is valid but isn't allowed 2021-06-22 18:38:39 routeveg So I guess the problem is that at the first borrow, the lifetime of whatever we return becomes tied to the lifetime of the SessionMap, whether we return whatever came out of get_mut or not 2021-06-22 18:39:05 routeveg This stuff hurts my head, ngl 2021-06-22 18:40:01 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-22 18:41:40 ChaiTRex routeveg: Here it is with Entry: https://play.rust-lang.org/?edition=2021&gist=8664bde393955fa19f3bbd616ac8e45f 2021-06-22 18:41:56 phryk How do I get cargo to write build logs? 2021-06-22 18:43:01 ChaiTRex You can also, if you want to, remove the lifetime. 2021-06-22 18:45:35 --> amvc (~amvc@89.36.78.254) has joined ##rust 2021-06-22 18:48:04 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 265 seconds) 2021-06-22 18:49:49 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-22 18:55:18 ssbr_ How does one structure a procedural macro crate so that it can be tested? You can't use a proc macro from the same crate -- do you just have the proc macro crate have zero tests, and include it from your other crate which does have tests, including for the proc macro? 2021-06-22 19:00:04 --> xse_ (~xse@user/xse) has joined ##rust 2021-06-22 19:00:51 --> xse__ (~xse@user/xse) has joined ##rust 2021-06-22 19:04:01 <-- xse (~xse@user/xse) has quit (Ping timeout: 265 seconds) 2021-06-22 19:04:48 <-- xse_ (~xse@user/xse) has quit (Ping timeout: 252 seconds) 2021-06-22 19:07:00 <-- Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 252 seconds) 2021-06-22 19:09:20 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-22 19:10:00 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-06-22 19:10:10 --> xse_ (~xse@user/xse) has joined ##rust 2021-06-22 19:11:50 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-22 19:14:13 <-- xse__ (~xse@user/xse) has quit (Ping timeout: 258 seconds) 2021-06-22 19:14:44 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-22 19:17:06 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-22 19:19:12 <-- Karel (~Karel@42.217.60.188.dynamic.wline.res.cust.swisscom.ch) has quit (Ping timeout: 258 seconds) 2021-06-22 19:21:53 --> aquijoule_ (~richbridg@089144205017.atnat0014.highway.webapn.at) has joined ##rust 2021-06-22 19:22:52 <-- richbridger (~richbridg@089144205017.atnat0014.highway.webapn.at) has quit (Ping timeout: 265 seconds) 2021-06-22 19:23:28 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 244 seconds) 2021-06-22 19:23:32 --> Karel (~Karel@60.113.61.188.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-06-22 19:23:48 <-- barnaby (~barnabywa@mobiledyn-185-69-244-134.mrsn.at) has quit (Quit: barnaby) 2021-06-22 19:25:04 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 19:26:26 -- xse_ is now known as xse 2021-06-22 19:29:44 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-22 19:33:46 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 258 seconds) 2021-06-22 19:34:32 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-06-22 19:35:47 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 19:35:50 w0x12ef static mut el: *mut GlobalConfig = 0 as *mut _; 2021-06-22 19:35:51 <-- Karel (~Karel@60.113.61.188.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-06-22 19:36:06 w0x12ef what is the semantic of this clause 2021-06-22 19:36:56 Mutabah what do you mean 2021-06-22 19:37:08 Mutabah It defines a mutable global variable 2021-06-22 19:40:41 --> Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-22 19:41:55 routeveg ChaiTRex: Thanks! That seems rather neat and entirely reasonable 2021-06-22 19:42:19 routeveg Though I would like to understand what particular quality this problem has, so as to be so difficult to achieve without entry 2021-06-22 19:42:43 routeveg Like, in terms of lifetimes, what is it about the function that I tried to write that makes it hard? 2021-06-22 19:43:48 routeveg I suppose some statements can be made, like: "rust doesn't know that you aren't going to stuff the SessionMap into the mutable session thing, meaning that the session needs to live at least as long as the session map. 2021-06-22 19:44:35 w0x12ef Mutabah, what is *mut _ 2021-06-22 19:45:13 routeveg w0x12ef: * is a mutable pointer I believe. It's like a &mut, but for pointing at stuff that can be manipulated with unsafe { } blocks 2021-06-22 19:45:26 routeveg I mean, "*mut is a mutable pointer" 2021-06-22 19:45:55 GreenJello w0x12ef, _ is short for GlobalConfig here 2021-06-22 19:45:59 <-- brainfunnel (~quassel@67.141.208.46.dyn.plus.net) has quit (Quit: thanks, bye!) 2021-06-22 19:46:05 GreenJello it's an elided type 2021-06-22 19:46:24 w0x12ef hmm 2021-06-22 19:46:30 w0x12ef syntax sugar 2021-06-22 19:48:32 w0x12ef if el == 0 as *mut _ { 2021-06-22 19:48:36 w0x12ef el = Box::into_raw(Box::new(LuaEngine::new(Lua::new()))); 2021-06-22 19:48:37 w0x12ef } 2021-06-22 19:48:40 w0x12ef &mut *el 2021-06-22 19:48:58 w0x12ef what is the meaning of &mut *el 2021-06-22 19:50:15 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-22 19:50:39 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-22 19:52:00 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-22 19:52:51 routeveg w0x12ef: Looks like it is getting a regular rust &mut reference to the thing pointed by the pointer 2021-06-22 19:55:06 w0x12ef probably , if the return is a &mut , do I need to use a &mut to receive it 2021-06-22 19:55:27 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-22 19:56:39 routeveg So, that check appears to be looking for a NULL pointer. If el is a null pointer, it then allocates a new box, sets the pointer to that box's address, then returns a &mut to the new Box 2021-06-22 19:56:54 routeveg This is just me guessing btw. I haven't done any unsafe rust 2021-06-22 19:59:50 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-06-22 19:59:56 <-- hounded (~hounded@2603-7000-da43-eccc-0000-0000-0000-0cec.res6.spectrum.com) has quit (Quit: Leaving) 2021-06-22 20:03:41 <-- ssbr_ (~ssbr@2620:15c:10f:203:8295:58ce:d0bd:be8d) has quit (Remote host closed the connection) 2021-06-22 20:03:59 --> ssbr_ (~ssbr@2620:15c:10f:203:8295:58ce:d0bd:be8d) has joined ##rust 2021-06-22 20:04:30 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-06-22 20:04:50 w0x12ef routeveg, unsafe stuff is bad ? 2021-06-22 20:05:23 Mutabah `*` dereferences the raw pointer, and then the `&mut` takes a mutable borrow/reference to the pointed-to data 2021-06-22 20:05:58 Mutabah and yes, `unsafe` is often seen as bad (as the compiler can't check the validity of unsafe operations, it's all on the programmer to maintain correctness) 2021-06-22 20:08:46 w0x12ef Mutabah, golang unsafe is learning from rust ? 2021-06-22 20:10:14 <-- nexos (~nexos@p200300e5b70eee006187b9badcc709db.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-06-22 20:13:37 Mutabah uhhh... what do you mean by that? 2021-06-22 20:14:02 Mutabah Ah, the go `unsafe` package 2021-06-22 20:14:22 Mutabah not sure... with rust it's closer integrated with the language 2021-06-22 20:21:21 <-- msi (~msi@186.224.210.190) has quit (Ping timeout: 265 seconds) 2021-06-22 20:22:20 --> staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has joined ##rust 2021-06-22 20:28:09 <-- staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has quit (Quit: staticvoidmaine) 2021-06-22 20:31:05 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-22 20:35:32 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 252 seconds) 2021-06-22 20:35:44 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-22 20:35:51 <-- HalfWord_ (~halfword@user/halfword) has quit (Ping timeout: 265 seconds) 2021-06-22 20:37:07 w0x12ef Mutabah, Should I always create global pointers with Box new ? for nonglobal pointers,Box is not needed ? 2021-06-22 20:38:14 davros https://vimeo.com/566342045 got 'forward+' lighting in my rust engine 2021-06-22 20:40:06 --> cesarb (~cesarb@user/cesarb) has joined ##rust 2021-06-22 20:40:06 ChaiTRex routeveg: The reason your code doesn't work is because you .get_mut a value that's in the map. You don't want that value's contents to change behind the scenes while you're using it, because that could be confusing. Yet, you insert into the map while you're using the value. Inserting into the map could change the value behind the scenes. 2021-06-22 20:40:26 ssbr_ w0x12ef: Functions that don't require ownership will accept a &T, which you can pass in even if you just have a local T (as long as that has the correct lifetime). 2021-06-22 20:40:45 ssbr_ w0x12ef: if they require ownership, they'll want a Box or other owner pointer type, and you will have to make one that the function accepts. 2021-06-22 20:40:57 ChaiTRex The idea is that you either have an immutable reference, and it won't change behind the scenes, or you have a mutable reference, and only you can change it (via that mutable reference). 2021-06-22 20:41:29 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 244 seconds) 2021-06-22 20:45:08 <-- xnor (~xnor@71-34-107-240.ptld.qwest.net) has quit (Read error: Connection reset by peer) 2021-06-22 20:45:38 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 252 seconds) 2021-06-22 20:51:06 --> cdown_ (~cdown@89.32.122.5) has joined ##rust 2021-06-22 20:51:31 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-22 20:53:15 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 265 seconds) 2021-06-22 20:57:03 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-22 20:57:18 --> w0x12ef_ (~w0x12ef@124.126.15.211) has joined ##rust 2021-06-22 20:59:06 w0x12ef_ for function ,any reference must have an annotated lifetime ? 2021-06-22 20:59:22 w0x12ef_ any reference being returned must have the same lifetime as an input or be static. 2021-06-22 21:00:24 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-22 21:00:36 <-- Tacklebo1 (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Quit: WeeChat 3.2) 2021-06-22 21:00:46 ssbr_ w0x12ef_: Those are two different questions, right? First question: the lifetime can be implicit/inferred. Second question: technically, you can also use a lifetime from your type definition, if you are a method, but maybe count that as an "input". 2021-06-22 21:01:20 ssbr_ for example, you could do: impl<'a> Foo<'a> {fn bar(&self) -> &'a T {...}} 2021-06-22 21:01:30 ssbr_ this occurs in real life sometimes, even :) 2021-06-22 21:02:58 ssbr_ davros: strong quake 2 "very excited about dynamic lighting" vibes on those bullets. Nice! :D 2021-06-22 21:03:48 w0x12ef_ ssbr_, why the impl also need a lifetime annotation 2021-06-22 21:04:36 ssbr_ w0x12ef_: this is an example type that uses it -- the point is that if your type has a lifetime for something inside it, then that itself is also in scope for methods to use in their lifetime annotations 2021-06-22 21:05:09 ssbr_ w0x12ef_: an example of such a type might be pub struct Foo<'a>(&'a T); impl<'a> Foo<'a> {fn bar(&self) -> &'a T {self.0}} 2021-06-22 21:05:38 <-- amvc (~amvc@89.36.78.254) has quit (Quit: Leaving) 2021-06-22 21:05:42 w0x12ef_ ssbr_, ok,how to describe a lifetime that must live longer than the function 2021-06-22 21:06:07 ssbr_ w0x12ef_: any lifetime parameter will work. 2021-06-22 21:06:29 <-- ghost64 (~ghost64@user/ghost64) has quit (Read error: Connection reset by peer) 2021-06-22 21:06:30 w0x12ef_ fn invalid_output<'a>() -> &'a String { &String::from("foo") } 2021-06-22 21:07:08 ssbr_ w0x12ef_: it is not possible to create a local which outlives the function 2021-06-22 21:07:19 ssbr_ w0x12ef_: you can return a String by value, but you can't return a reference to a local 2021-06-22 21:07:55 w0x12ef_ yes 2021-06-22 21:09:10 w0x12ef_ ssbr_, the 'a lifetime of the return type ,is it longer than the function itself 2021-06-22 21:10:10 --> fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has joined ##rust 2021-06-22 21:10:33 ssbr_ w0x12ef_: it's anything the caller wants it to be, which is always at least as long as the function call (because it isn't possible to have a 'a that begins before a function call, and ends inside the function) 2021-06-22 21:12:07 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-22 21:14:19 w0x12ef_ ssbr_, here the 'a is constraining the return type to prevent return local reference 2021-06-22 21:14:42 w0x12ef_ so the code cannot compile 2021-06-22 21:15:16 ssbr_ right. 2021-06-22 21:16:43 --> ghost64 (~ghost64@user/ghost64) has joined ##rust 2021-06-22 21:17:07 <-- cesarb (~cesarb@user/cesarb) has quit (Quit: Leaving) 2021-06-22 21:22:14 <-- mjsir911 (~bnc@user/mjsir911) has quit (Remote host closed the connection) 2021-06-22 21:22:19 w0x12ef_ do I need to define lifetime for a function itself 2021-06-22 21:22:29 --> mjsir911 (~bnc@user/mjsir911) has joined ##rust 2021-06-22 21:25:51 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 21:27:04 danieldg w0x12ef_: only references have defined lifetimes 2021-06-22 21:27:22 <-- w0x12ef_ (~w0x12ef@124.126.15.211) has quit (Remote host closed the connection) 2021-06-22 21:27:35 danieldg functions are generally 'static 2021-06-22 21:28:02 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 21:28:31 w0x12ef danieldg, so no concern for non reference types for lifetime 2021-06-22 21:29:18 danieldg yep 2021-06-22 21:29:59 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 265 seconds) 2021-06-22 21:30:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-22 21:31:28 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 252 seconds) 2021-06-22 21:31:38 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-22 21:31:53 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-22 21:37:34 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:7821:4ac6:7f63:f8) has quit (Remote host closed the connection) 2021-06-22 21:41:31 meltyness "Some existing libraries on crates.io can help with writing a program that accepts command line arguments," that's gonna be a yikes from me, dog. 2021-06-22 21:43:13 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 21:44:42 Mutabah meltyness: Hmmm? 2021-06-22 21:45:15 <-- Roughy (~mdaw45ns@user/roughy) has quit (Ping timeout: 258 seconds) 2021-06-22 21:45:20 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-22 21:45:59 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-22 21:46:01 <-- Roughy (~mdaw45ns@user/roughy) has quit (Remote host closed the connection) 2021-06-22 21:46:19 meltyness Just kind of a "gee willikers" you feel me, kinda "sweet zombie jesus" kinda thing. 2021-06-22 21:46:33 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-22 21:49:46 Mutabah I got that impression, but why do you say that? 2021-06-22 21:52:32 <-- emerent (~quassel@p200300cd5703bb19ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-06-22 21:52:51 --> emerent (~quassel@p200300cd5703bb02ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-22 21:52:56 Mutabah meltyness: Do you not like the idea of pulling in libraries? 2021-06-22 21:53:36 Mutabah (You _can_ access the command line using `std`, but it's just so easy to pull in getopts/clap/structopt and get a nicer interface) 2021-06-22 21:53:38 meltyness That seems like a weird place to put a shim. 2021-06-22 21:55:04 meltyness I mean if the command line is that complicated, it seems like it would be easier to step up to a YAML 2021-06-22 21:55:16 meltyness Especially given rusts excellently succinct and legible error handling 2021-06-22 21:55:28 mike-burns Parsing command-line arguments is complicated in every language. 2021-06-22 21:55:40 Mutabah well... for certain definitions of complicated 2021-06-22 21:55:52 Mutabah but, it is string handling, and kinda mindless to write 2021-06-22 21:56:09 Mutabah much easier to pull in a library that does all the work for you and gives good parsing and error messages 2021-06-22 21:57:11 w0x12ef golang rust c++ objectc , are all c family language ? 2021-06-22 21:57:49 danieldg depends on how you define family, but maybe 2021-06-22 21:58:05 --> que_ (~overlord@user/que/x-4349088) has joined ##rust 2021-06-22 21:58:24 cehteh well i did that in C 300 loc .. inkl help and meaningful error message .. *but* think like clap can do a lot more than simple commandline parsing 2021-06-22 21:58:25 discipulus like system's programming language? 2021-06-22 21:58:38 discipulus systems 2021-06-22 21:59:12 w0x12ef no java 2021-06-22 21:59:22 w0x12ef so 2021-06-22 21:59:28 <-- q__ (~overlord@user/que/x-4349088) has quit (Ping timeout: 265 seconds) 2021-06-22 22:03:06 GreenJello meltyness, with structopt you could have one set of types that can each be derived from command line arguments or yaml/json/etc 2021-06-22 22:04:19 GreenJello but there are cases where it saves thousands of lines of code even without that requirement 2021-06-22 22:05:41 meltyness i haven't written any middleware myself, but yeah i guess when you get into a big ugly monolith like the linux "ip" commands, something like that would have been useful probably 2021-06-22 22:05:47 GreenJello (I have a CLI where there are subcommand enums 3 or 4 levels deep, and specific options at each leaf, and --help/readme generated from the types) 2021-06-22 22:07:24 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-22 22:07:47 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-22 22:12:23 routeveg ChaiTRex: I guess the thing I don't quite get is *why* does the mutable borrow of 'map' live on for the rest of the function 2021-06-22 22:13:34 routeveg Couldn't it just end after the map.get_mut call, once the return value from that goes out of scope? 2021-06-22 22:14:48 routeveg I assume it's something to do with the 'a lifetime being applied to both the map and the return value; that the latter is basically telling rust that a mutable borrow must last for this whole function 2021-06-22 22:15:25 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-22 22:17:03 ChaiTRex routeveg: As far as the scope, the Nono match arm is the result of the map.get_mut call, and it's in scope throughout that match arm. 2021-06-22 22:17:08 ChaiTRex None 2021-06-22 22:17:31 ChaiTRex The borrow checker could get smarter, though. 2021-06-22 22:18:08 danieldg routeveg: since the borrow is being returned, it lasts "beyond" the return of the function, and there's currently no support for seeing that this doesn't matter for all returns 2021-06-22 22:22:17 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-22 22:24:37 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Read error: Connection reset by peer) 2021-06-22 22:27:06 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 22:31:58 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-22 22:32:19 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-22 22:40:47 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-22 22:42:11 ssbr_ routeveg: that's exactly right w.r.t. 'a -- since you are returning the reference, that return *forces* the borrow to be for 'a, and that outlasts even the match statement. 2021-06-22 22:42:44 ssbr_ routeveg: so no matter what you do, *even if you didn't actually run that return statement*, the fact that you borrowed something for 'a means it's borrowed for 'a, and you can't do anything more with it since that was a mutable borrow. 2021-06-22 22:43:49 ssbr_ (to which I think the solutions are "use polonius" (maybe?), "structure it s.t. you can run code in both arms of the match (e.g. via using entry instead), or "unsafe code") 2021-06-22 22:44:25 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-22 22:48:10 --> lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has joined ##rust 2021-06-22 22:50:20 <-- lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has quit (Quit: Quit) 2021-06-22 22:50:34 --> lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has joined ##rust 2021-06-22 22:51:02 ssbr_ routeveg: it took me a long time to appreciate what was going on here (ran into this issue like three times before it clicked). FWIW, I remembered right, polonius *does* fix this: https://godbolt.org/z/6rP7rc3r8 2021-06-22 22:51:59 ssbr_ if you remove the -Zpolonius there, then you get an error because the match borrows the value for 'a. Add it back, and it's fine. Of course you probably can't really use polonius, but take this as evidence that someday you won't need to care about this :) 2021-06-22 22:53:01 ssbr_ (not sure why the rust playground doesn't let you specify flags like that, that I can see. So handy!) 2021-06-22 22:56:56 <-- death916 (~death916@user/death916) has quit (Ping timeout: 258 seconds) 2021-06-22 22:57:21 --> mefistof1les (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-22 22:58:38 <-- lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has quit (Quit: Quit) 2021-06-22 22:58:51 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 258 seconds) 2021-06-22 23:00:12 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 252 seconds) 2021-06-22 23:00:20 -- mefistof1les is now known as mefistofeles 2021-06-22 23:00:33 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-22 23:00:46 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-22 23:02:05 routeveg Ah, I am starting to see! Thanks ssbr_ and danieldg 2021-06-22 23:02:23 routeveg I also didn't know about compiler explorer before; looks pretty interesting/useful 2021-06-22 23:04:30 <-- ssbr_ (~ssbr@2620:15c:10f:203:8295:58ce:d0bd:be8d) has quit (Ping timeout: 264 seconds) 2021-06-22 23:05:44 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-22 23:08:11 --> death916 (~death916@user/death916) has joined ##rust 2021-06-22 23:10:01 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Hay te huacho!) 2021-06-22 23:17:57 w0x12ef is there context bind for variables 2021-06-22 23:18:35 --> dataangel (~user@c-73-45-99-66.hsd1.il.comcast.net) has joined ##rust 2021-06-22 23:20:33 dataangel If I write a lot of code where I need const generic arguments should I just give rust another try in a couple of years? I can't tell if it's me or language learning pains but the feature seems pretty nerfed even compared to C++98. 2021-06-22 23:23:48 [code] dataangel: well it is quite new. apis are still being converted over to it 2021-06-22 23:24:08 [code] c++ has had const exprs for quite a while 2021-06-22 23:24:29 dataangel This is separate from `const fn` though 2021-06-22 23:24:39 dataangel this is just being able to have ints as template args 2021-06-22 23:24:48 dataangel which C++ has handled fine for 22+ years 2021-06-22 23:25:02 [code] then use C++ if it works better for you 2021-06-22 23:25:19 dataangel It just sucks having to give up on the other benefits 2021-06-22 23:25:48 [code] rust is adding that sort of thing. but it'll be a while before it's as useful 2021-06-22 23:26:22 dataangel I would prefer to start a project with rust to head off the inevitable memory management mistakes in C++. Every C++ project I've worked on has inevitably resulted in mysterious things people can't fix had lots of waiting for valgrind/sanitizer runs 2021-06-22 23:26:35 dataangel Borrow checker and mutability xor aliasing by default is a real benefit 2021-06-22 23:26:38 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-22 23:27:35 dataangel But not being able to propagate a constant from one generic function to another because there happens to be a signed to unsigned conversion, or because I need to do something super trivial like divide, etc breaks my ability to write zero cost abstractions 2021-06-22 23:28:47 dataangel And sometimes I realize work arounds but it's a new puzzle every time 2021-06-22 23:29:40 [code] what are you using it for? array length sizing? 2021-06-22 23:29:41 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-22 23:30:33 -- justBull is now known as justK 2021-06-22 23:31:01 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-22 23:31:18 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-22 23:31:46 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Client Quit) 2021-06-22 23:31:50 dataangel I have something kinda like BTree but where the B is configurable via generic constant 2021-06-22 23:32:12 [code] you trying to port your C++ data structures to rust? 2021-06-22 23:32:20 dataangel So it ends up being used in array sizing but also in a bunch of math for computing indexes and things like that 2021-06-22 23:32:52 dataangel nah this is from scratch but I've done enough C++ templates easily expressed in a generic way there, it is only challenging to do in rust 2021-06-22 23:33:07 [code] well rust can do that now. 2021-06-22 23:33:19 [code] via const generics 2021-06-22 23:33:37 dataangel only for the simplest possible examples where you do no computation on the value and don't need to pass it to other generic functions 2021-06-22 23:33:43 [code] it was just released in 1.51 2021-06-22 23:33:44 dataangel it breaks down pretty trivially 2021-06-22 23:33:51 <-- x_kuru (~xkuru@user/xkuru) has quit (Read error: Connection reset by peer) 2021-06-22 23:34:02 [code] yeah it's the simplest form 2021-06-22 23:36:16 [code] dataangel: i'd probably just use a Vec and with_capacity() 2021-06-22 23:36:35 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-22 23:38:43 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 258 seconds) 2021-06-22 23:38:43 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-22 23:50:26 <-- death916 (~death916@user/death916) has quit (Ping timeout: 252 seconds) 2021-06-22 23:51:40 discipulus I'm still on §15.6 of TRPL. I realize now that RefCell doesn't allocate heap space. It's storing T on the stack. The book didn't mention that. 2021-06-22 23:55:42 --> death916 (~death916@user/death916) has joined ##rust 2021-06-22 23:56:10 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-22 23:57:42 Mutabah Why would the book mention when something isn't indirection 2021-06-22 23:57:55 Mutabah I guess it's a common misconception... 2021-06-22 23:58:16 SpaceManiac It's in the "Smart Pointers" chapter and given equal billing with Rc and Box, so it's understandable 2021-06-23 00:03:45 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-23 00:07:37 -- night_wulfe_ is now known as night_wulfe 2021-06-23 00:08:02 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-23 00:11:42 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-23 00:17:44 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-23 00:24:16 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-23 00:32:37 --> justsomeguy (~justsomeg@user/justsomeguy) has joined ##rust 2021-06-23 00:40:48 --> trev (~trev@user/trev) has joined ##rust 2021-06-23 00:43:56 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-23 00:45:53 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-23 00:51:10 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-23 00:51:32 --> dcz (~dcz@dynamic-078-049-121-144.78.49.pool.telefonica.de) has joined ##rust 2021-06-23 00:51:57 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-23 00:52:57 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-23 00:54:20 --> xse_ (~xse@user/xse) has joined ##rust 2021-06-23 00:58:46 <-- xse (~xse@user/xse) has quit (Ping timeout: 268 seconds) 2021-06-23 01:03:07 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-23 01:06:01 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 244 seconds) 2021-06-23 01:07:32 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-23 01:12:57 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 01:14:07 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-23 01:16:28 --> comatory_ (~ondrejsyn@182.24.broadband4.iol.cz) has joined ##rust 2021-06-23 01:20:42 <-- habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (Ping timeout: 264 seconds) 2021-06-23 01:35:18 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-23 01:37:52 --> fredmorcos (~fredmorco@84-115-234-144.cable.dynamic.surfer.at) has joined ##rust 2021-06-23 01:37:56 <-- comatory_ (~ondrejsyn@182.24.broadband4.iol.cz) has quit (Ping timeout: 265 seconds) 2021-06-23 01:44:23 --> habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has joined ##rust 2021-06-23 01:44:49 --> fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 01:46:40 <-- fabic (~fabic@lfbn-reu-1-222-165.w83-198.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-23 01:47:56 <-- fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-06-23 01:48:03 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 01:48:04 --> ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has joined ##rust 2021-06-23 01:51:55 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-23 01:55:12 --> comatory_ (~ondrejsyn@182.24.broadband4.iol.cz) has joined ##rust 2021-06-23 01:57:06 <-- neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has quit (Quit: bye) 2021-06-23 01:58:55 --> neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has joined ##rust 2021-06-23 02:03:37 <-- comatory_ (~ondrejsyn@182.24.broadband4.iol.cz) has quit (Ping timeout: 258 seconds) 2021-06-23 02:05:12 <-- cjb (~cjb@user/cjb) has quit 2021-06-23 02:06:41 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-23 02:08:01 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-23 02:13:42 <-- habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (Ping timeout: 244 seconds) 2021-06-23 02:30:03 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-23 02:36:44 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 02:54:36 <-- arinov_ (~arinov@213.194.126.155) has quit (Ping timeout: 258 seconds) 2021-06-23 02:57:55 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-23 02:58:00 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-23 03:17:06 <-- leah2 (~leah@vuxu.org) has quit (Ping timeout: 240 seconds) 2021-06-23 03:19:03 --> ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 03:20:24 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-23 03:20:52 --> leah2 (~leah@vuxu.org) has joined ##rust 2021-06-23 03:21:49 <-- ur5us_ (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Remote host closed the connection) 2021-06-23 03:23:08 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 03:23:48 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Remote host closed the connection) 2021-06-23 03:24:37 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-23 03:27:29 --> control (guesswho@user/control) has joined ##rust 2021-06-23 03:27:54 control hello, what is the best way to use cuda on rust? 2021-06-23 03:28:05 --> habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has joined ##rust 2021-06-23 03:29:04 control can't get rustacuda to work properly. any other methods? 2021-06-23 03:30:29 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-23 03:31:43 --> w0x12ef (~w0x12ef@117.61.27.167) has joined ##rust 2021-06-23 03:32:53 <-- Arnavion (arnavion@user/arnavion) has quit (Quit: Arnavion) 2021-06-23 03:34:05 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 252 seconds) 2021-06-23 03:34:52 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-23 03:35:21 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-23 03:35:28 --> arinov_ (~arinov@212.156.215.30) has joined ##rust 2021-06-23 03:36:44 --> RedCrab (~Red_Crab@user/redcrab) has joined ##rust 2021-06-23 03:40:14 davros i didn't even know rustcuda was a thing. i thought you had to write seperate compute-shaders 2021-06-23 03:42:34 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 244 seconds) 2021-06-23 03:42:48 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-23 03:43:50 --> fef (~thedawn@user/thedawn) has joined ##rust 2021-06-23 03:44:24 <-- fef (~thedawn@user/thedawn) has left ##rust (Leaving) 2021-06-23 03:44:38 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 244 seconds) 2021-06-23 03:44:44 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-23 03:45:59 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 03:46:13 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 03:46:31 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-23 03:46:43 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-23 03:49:08 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-06-23 03:57:39 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 03:58:12 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-23 04:00:17 --> Shell (~shell@user/shell) has joined ##rust 2021-06-23 04:00:39 <-- Shell (~shell@user/shell) has quit (Remote host closed the connection) 2021-06-23 04:03:14 --> Shell (~shell@user/shell) has joined ##rust 2021-06-23 04:03:42 <-- Shell (~shell@user/shell) has quit (Remote host closed the connection) 2021-06-23 04:05:40 --> Shell (~shell@user/shell) has joined ##rust 2021-06-23 04:10:18 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 240 seconds) 2021-06-23 04:11:09 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-23 04:11:59 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-23 04:13:45 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-23 04:16:37 <-- control (guesswho@user/control) has quit (Remote host closed the connection) 2021-06-23 04:17:20 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-06-23 04:19:09 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-23 04:26:12 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-23 04:27:08 <-- vila (~vila@2a01:e0a:176:40d0:8001:c409:f52c:5090) has quit (Ping timeout: 272 seconds) 2021-06-23 04:27:41 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 04:32:39 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-23 04:34:16 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-23 04:35:42 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-23 04:36:20 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-23 04:38:30 --> vila (~vila@2a01:e0a:176:40d0:20d2:eb86:14a6:adc8) has joined ##rust 2021-06-23 04:44:56 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 04:45:54 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-23 04:54:18 --> johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has joined ##rust 2021-06-23 04:59:05 --> hegstal (~hegstal@2a02:c7f:7604:8a00:5796:3b40:5569:c90) has joined ##rust 2021-06-23 04:59:57 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-23 05:05:02 --> |7| (~seachdamh@user/seachdamh) has joined ##rust 2021-06-23 05:20:47 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-23 05:21:28 <-- Allegretto (~allegrett@85-238-67-31.pool.digikabel.hu) has quit (Ping timeout: 268 seconds) 2021-06-23 05:21:56 --> Akawama (~ionLion@user/akawama) has joined ##rust 2021-06-23 05:22:42 Akawama If anybody using ion shell, what's the location for config file, equivalent to .bashrc? 2021-06-23 05:23:56 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 268 seconds) 2021-06-23 05:26:28 bronsen Akawama: this https://gitlab.redox-os.org/redox-os/ion/-/issues/980 mentions ~/.config/ion/initrc 2021-06-23 05:28:05 Akawama bronsen thanks ++ 2021-06-23 05:28:11 <-- Akawama (~ionLion@user/akawama) has quit (Quit: Akawama) 2021-06-23 05:28:33 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-06-23 05:34:04 --> Allegretto (~allegrett@fibhost-67-230-113.fibernet.hu) has joined ##rust 2021-06-23 05:34:26 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-23 05:35:07 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-23 05:37:30 w0x12ef what is the meaning of <'a> in func<'a> 2021-06-23 05:37:47 w0x12ef just declaring ? 2021-06-23 05:38:06 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 264 seconds) 2021-06-23 05:38:09 Sobek I'd say yes. 2021-06-23 05:41:14 nox Yes, just like 2021-06-23 05:43:24 w0x12ef nox, so how write it together with T 2021-06-23 05:43:34 nox <'a, T> 2021-06-23 05:43:34 w0x12ef the generic T 2021-06-23 05:43:43 w0x12ef good 2021-06-23 05:44:04 --> neurocyte_ (~neurocyte@user/neurocyte) has joined ##rust 2021-06-23 05:44:09 w0x12ef nox, so why does it need a lifetime declaration 2021-06-23 05:44:18 w0x12ef with function name 2021-06-23 05:44:36 nox To… use the lifetime… in the function signature… just like with a generic T? 2021-06-23 05:45:11 w0x12ef I mean writing 'a at input is enough , I think 2021-06-23 05:45:32 Mutabah define "at input" 2021-06-23 05:46:03 w0x12ef Mutabah, what do you mean 2021-06-23 05:46:22 w0x12ef define is not declaration ? 2021-06-23 05:46:33 Mutabah Can you clarify what you meant by that previous statement (maybe with a code sample of what you think should work) 2021-06-23 05:47:50 osse they meant within the parentheses where the parameters are written 2021-06-23 05:48:50 nox w0x12ef: So how do you cope with a `'a` in a function definition in an impl block which already defines `'a`? 2021-06-23 05:49:08 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-23 05:49:15 nox And why should they be handled differently from `T`? 2021-06-23 05:49:20 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-23 05:50:02 Sobek If you want a different lifetime you call it 'b 'c etc. If it is the same, you use 'a in the signature and it should work. (The compiler is your helpful friend anyways). 2021-06-23 05:51:07 w0x12ef fn print_multi<'a, 'b>(x: &'a i32, y: &'b i32) 2021-06-23 05:51:20 w0x12ef I understand nox says 2021-06-23 05:51:27 w0x12ef nox:make sense 2021-06-23 05:51:39 w0x12ef just like this : x: &'a i32 2021-06-23 05:51:46 nox Sobek: The impl block could be far away from the function you just wrote, 2021-06-23 05:52:02 nox in which case you could miss that you just reused a lifetime from the impl itself, 2021-06-23 05:52:11 nox which may make your unsafe code unsound, 2021-06-23 05:52:13 nox which is bad 2021-06-23 05:53:04 w0x12ef 'a can be recognized as generic type ,as the syntax is the same 2021-06-23 05:56:38 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-23 05:57:27 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 05:58:38 Bish no it can't, as it has a ' ;) 2021-06-23 05:58:49 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 05:58:50 w0x12ef nox: 2021-06-23 05:58:56 w0x12ef Bish, yes 2021-06-23 05:59:27 w0x12ef x: &'a i32 and x:&T 2021-06-23 05:59:31 Bish but i was confused by this at first too 2021-06-23 05:59:38 Bish but it made sense when i saw that static things are static' 2021-06-23 06:00:12 w0x12ef Bish,so what is your consideration 2021-06-23 06:00:23 Bish ? my consideration? 2021-06-23 06:01:08 w0x12ef your opinion 2021-06-23 06:01:36 Bish hm, i never really understood yet what lifetimes are good for, so i can't tell really 2021-06-23 06:01:43 Bish but i think it's odd to "mix" these syntaxes yes 2021-06-23 06:02:01 w0x12ef Bish, <'a, 'b> can be elided ? 2021-06-23 06:02:33 w0x12ef for x: &'a i32, y: &'b i32 already declare them 2021-06-23 06:03:27 <-- xkuru (~xkuru@user/xkuru) has quit (Quit: Unvirtualizing) 2021-06-23 06:03:40 Bish did you need to declare them? 2021-06-23 06:03:53 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-23 06:05:12 w0x12ef of course 2021-06-23 06:06:24 -- RustySpoons is now known as Rust 2021-06-23 06:11:11 discipulus w0x12ef: it looks like the lifetime can be elided since there's no return value. The compiler will add them implicitly. 2021-06-23 06:11:45 --> brandonh (~brandonh@151.34.105.205) has joined ##rust 2021-06-23 06:11:57 <-- brandonh (~brandonh@151.34.105.205) has quit (Client Quit) 2021-06-23 06:12:02 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-23 06:12:25 w0x12ef discipulus, if no return value ,the lifetime is useless 2021-06-23 06:12:41 nox Lifetimes are parameters, generic types are parameters 2021-06-23 06:13:07 discipulus right, so you don't need to add them explicitly. 2021-06-23 06:14:26 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-23 06:14:36 nox It can be confusing if the parameter already exists in an outer scope, so you do need them. 2021-06-23 06:14:53 nox There was an effort a couple of years ago to make them implicit, but in the end people decided against that 2021-06-23 06:15:30 <-- raoul (~raoul@nomnomnomnom.co.uk) has quit (Remote host closed the connection) 2021-06-23 06:15:30 <-- edcragg (~edcragg@nomnomnomnom.co.uk) has quit (Remote host closed the connection) 2021-06-23 06:15:51 discipulus I think I missed something in the conversation then. 2021-06-23 06:18:12 w0x12ef nox:how is the lifetime parameter passed to function 2021-06-23 06:18:33 w0x12ef I mean what is the code like 2021-06-23 06:18:34 discipulus nox: I scrolled up, I didn't notice w0x12ef mention this function being defined in an impl. Actually, this is a function, not a method as there's no self. 2021-06-23 06:19:17 discipulus fn print_multi(x: &i32, y: &i32) will have the lifetime elision rules applied to it. 2021-06-23 06:19:51 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 06:19:51 discipulus Even if it was a method, the lifetime elision rules would still be applied, right? 2021-06-23 06:20:42 Sobek However `fn print_multi_ret(x: &i32, y :&i32) -> &i32` will make the compiler unhappy ? (And require explicit annotation of the return lifetime) 2021-06-23 06:20:59 discipulus Sobek: yes 2021-06-23 06:22:05 Sobek Is `fn print_multi_ret(x: &'a i32, y :& i32) -> &'a i32` annotated enough to make rustc happy btw ? 2021-06-23 06:24:33 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-06-23 06:25:23 nox discipulus: We were talking about *declarations* 2021-06-23 06:25:54 nox Sobek: You need `<'a>` 2021-06-23 06:28:17 discipulus nox: declarations of what? 2021-06-23 06:28:23 nox Lifetimes 2021-06-23 06:28:46 discipulus where? 2021-06-23 06:29:00 nox discipulus: 11:37 what is the meaning of <'a> in func<'a> 2021-06-23 06:29:19 nox If you use elision, there is no `'a` at all in the signature, so that's a different topic, AFAICT 2021-06-23 06:30:29 discipulus nox: w0x12ef also asked if the lifetimes can be elided 2021-06-23 06:30:44 nox Ah, I missed that then, my bad 2021-06-23 06:30:54 --> tglman (~tglman@46.233.83.141) has joined ##rust 2021-06-23 06:32:33 w0x12ef <'a> means the lifetime of the function 2021-06-23 06:32:53 w0x12ef &'a is of the inputs 2021-06-23 06:32:58 discipulus nox: no problem. this is helpful to check my understanding too 2021-06-23 06:33:24 w0x12ef so this mean input at least live same long with the function itself 2021-06-23 06:33:28 nox No 2021-06-23 06:33:30 discipulus <'a> is the declaration of the lifetime 2021-06-23 06:33:34 --> aniruddha (~aniruddha@103.242.197.215) has joined ##rust 2021-06-23 06:33:53 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has joined ##rust 2021-06-23 06:33:54 Bish offtopic: are there people that use redis as their main database? 2021-06-23 06:34:13 Bish i wanted performance so i used it for my first rust project and it's so freaking fast! and i can't see a reason why i wouldn't do that 2021-06-23 06:34:24 Bish (except for joins, not being possible, obviously) 2021-06-23 06:34:50 <-- aniruddha (~aniruddha@103.242.197.215) has quit (Quit: WeeChat 1.9.1) 2021-06-23 06:35:14 discipulus <'a> is the declaration of the lifetime for use later on in the function parameters and return value. It's like a generic type parameter as nox said earlier. 2021-06-23 06:35:15 --> aniruddha (~aniruddha@103.242.197.215) has joined ##rust 2021-06-23 06:37:47 -- pie__bnc is now known as pie_ 2021-06-23 06:38:04 -- pie_ is now known as __ 2021-06-23 06:38:06 -- __ is now known as pie_ 2021-06-23 06:38:22 -- pie_ is now known as pie__ 2021-06-23 06:38:23 -- pie__ is now known as pie_ 2021-06-23 06:38:42 w0x12ef does rust have name mangle like c++ 2021-06-23 06:39:09 -- pie_ is now known as the 2021-06-23 06:39:12 -- the is now known as pie_ 2021-06-23 06:40:44 j`ey w0x12ef: yes 2021-06-23 06:41:36 --> darkbit (~db@152.32.99.67) has joined ##rust 2021-06-23 06:41:52 w0x12ef j`ey, what is the use of rust name mangling 2021-06-23 06:42:06 --> mpt (~tom@2a02:908:1862:49e0::3) has joined ##rust 2021-06-23 06:42:23 j`ey w0x12ef: having the same name function in different namespaces 2021-06-23 06:42:25 j`ey like C++ 2021-06-23 06:42:48 w0x12ef lifetime should be written in the mangled name ? 2021-06-23 06:43:20 j`ey no i dont think so 2021-06-23 06:45:20 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 06:53:33 -- SomeWeirdAnon is now known as SomeAwayAnon 2021-06-23 06:54:04 -- SomeAwayAnon is now known as SomeWeirdAnon 2021-06-23 06:56:29 --> raoul (~raoul@nomnomnomnom.co.uk) has joined ##rust 2021-06-23 06:57:47 saati lifetime checks are compile time, they don't exist in the binary 2021-06-23 06:59:25 --> edcragg (~edcragg@nomnomnomnom.co.uk) has joined ##rust 2021-06-23 06:59:38 --> mekeor (~user@2001:a61:3430:c01:f86:cca7:c1fe:e2b4) has joined ##rust 2021-06-23 07:02:04 <-- mpt (~tom@2a02:908:1862:49e0::3) has quit (Ping timeout: 268 seconds) 2021-06-23 07:04:58 --> Ivyy (~Ivyy@2001:a62:41d:fa01:f7e9:40d0:fdd9:49b3) has joined ##rust 2021-06-23 07:08:04 <-- mekeor (~user@2001:a61:3430:c01:f86:cca7:c1fe:e2b4) has quit (Remote host closed the connection) 2021-06-23 07:08:09 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 268 seconds) 2021-06-23 07:09:30 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 07:13:22 <-- w0x12ef (~w0x12ef@117.61.27.167) has quit (Ping timeout: 265 seconds) 2021-06-23 07:17:22 <-- thing (~thing@user/thing) has quit (Quit: WeeChat 3.2) 2021-06-23 07:17:48 --> thing (~thing@user/thing) has joined ##rust 2021-06-23 07:26:31 -- SomeWeirdAnon is now known as SomeAwayAnon 2021-06-23 07:28:48 <-- aniruddha (~aniruddha@103.242.197.215) has quit (Quit: WeeChat 1.9.1) 2021-06-23 07:34:11 Midjak Hi, I get something I don't understand in this program: https://gist.github.com/rust-play/ac443ed6a30f91490789a5448c6833c5 . `gstreamer::ElementFactory::find("fakesrc")` return an Option: https://gstreamer.pages.freedesktop.org/gstreamer-rs/stable/latest/docs/gstreamer/struct.ElementFactory.html#returns-14 . If I try to replace unwrap() (l-75) with '?' I get this error: "cannot use the '?' operator in a function that returns ()" 2021-06-23 07:35:15 upb yeah you can use ? when you return Result<> 2021-06-23 07:35:15 j`ey Midjak: your function needs to return an Option 2021-06-23 07:35:45 j`ey Midjak: your function is: fn midjaks_fn() { find("fake")?; } 2021-06-23 07:35:54 Midjak this is the case 2021-06-23 07:35:57 j`ey and ? returns early, by returning None 2021-06-23 07:36:08 Midjak ah ok 2021-06-23 07:36:14 Midjak got it 2021-06-23 07:36:28 j`ey I wish there was a better wording for that error 2021-06-23 07:36:31 j`ey trips up a lot of people 2021-06-23 07:36:49 Midjak yes indeed 2021-06-23 07:37:35 Midjak thank you 2021-06-23 07:39:46 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 07:41:29 Midjak the "in" and "on" subtility :-) 2021-06-23 07:42:51 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-06-23 07:53:53 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 07:56:46 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-23 07:59:41 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 08:00:30 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-23 08:00:54 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-23 08:01:38 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-23 08:02:30 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 252 seconds) 2021-06-23 08:02:39 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 08:05:42 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Ping timeout: 264 seconds) 2021-06-23 08:07:59 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-23 08:19:48 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-23 08:31:20 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-23 08:34:05 <-- cdown_ (~cdown@89.32.122.5) has quit (Ping timeout: 265 seconds) 2021-06-23 08:37:57 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-23 08:39:58 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-23 08:41:01 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-23 08:41:57 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-23 08:43:22 <-- zeden (~zeden@user/zeden) has quit (Client Quit) 2021-06-23 08:43:43 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-23 08:44:14 <-- tglman (~tglman@46.233.83.141) has quit (Ping timeout: 265 seconds) 2021-06-23 08:45:36 <-- zeden (~zeden@user/zeden) has quit (Client Quit) 2021-06-23 08:46:10 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-23 08:47:07 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-23 08:49:59 <-- apoc (~apoc@user/apoc) has quit (Ping timeout: 244 seconds) 2021-06-23 08:52:15 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-23 08:52:38 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-23 08:53:13 --> staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has joined ##rust 2021-06-23 08:53:29 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-23 08:55:01 <-- sapzk (~sapzk@user/sapzk) has quit (Client Quit) 2021-06-23 08:55:45 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-06-23 08:57:12 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 09:00:03 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-23 09:02:34 <-- staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has quit (Quit: staticvoidmaine) 2021-06-23 09:03:04 --> staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has joined ##rust 2021-06-23 09:03:51 <-- fredmorcos (~fredmorco@84-115-234-144.cable.dynamic.surfer.at) has quit (Quit: Leaving) 2021-06-23 09:05:07 --> fredmorcos (~fredmorco@84-115-234-144.cable.dynamic.surfer.at) has joined ##rust 2021-06-23 09:10:14 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-23 09:12:27 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-23 09:13:00 --> Magician (deepy@user/deepy) has joined ##rust 2021-06-23 09:13:38 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Client Quit) 2021-06-23 09:14:21 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-06-23 09:14:30 --> PonzoSporrigan (~ghost64@user/ghost64) has joined ##rust 2021-06-23 09:14:45 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-23 09:14:45 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-06-23 09:14:45 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Ping timeout: 244 seconds) 2021-06-23 09:14:47 <-- deepy (deepy@user/deepy) has quit (Ping timeout: 244 seconds) 2021-06-23 09:15:20 --> w0x12ef (~w0x12ef@117.61.24.170) has joined ##rust 2021-06-23 09:15:28 w0x12ef expected enum `Result`, found enum `Option` 2021-06-23 09:15:28 <-- ghost64 (~ghost64@user/ghost64) has quit (Ping timeout: 252 seconds) 2021-06-23 09:16:49 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-23 09:16:54 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-23 09:17:18 j`ey w0x12ef: yes? 2021-06-23 09:17:46 w0x12ef ok, 2021-06-23 09:17:48 w0x12ef while let Some(row) = rows.next() 2021-06-23 09:17:59 w0x12ef sql query operation 2021-06-23 09:18:20 j`ey is the error pointing to that line? 2021-06-23 09:18:53 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-23 09:19:31 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-23 09:19:57 w0x12ef yeah 2021-06-23 09:20:35 j`ey is rows an Iterator? what type does 'next' return? 2021-06-23 09:22:20 --> madninja (~madninja@211.sub-174-198-156.myvzw.com) has joined ##rust 2021-06-23 09:25:04 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-23 09:25:30 <-- fritschy (~fritschy@b2b-109-90-32-97.unitymedia.biz) has quit (Ping timeout: 264 seconds) 2021-06-23 09:28:12 --> fritschy (~fritschy@b2b-109-90-32-97.unitymedia.biz) has joined ##rust 2021-06-23 09:28:55 w0x12ef this next() expression has type `Result>, rusqlite::Error>` 2021-06-23 09:30:03 j`ey ok, so your: while let Some(row) = rows.next(), is wrong 2021-06-23 09:30:07 cehteh shouldnt next() return Option? 2021-06-23 09:30:10 j`ey since Some is an Option, but you have a Result 2021-06-23 09:30:22 j`ey w0x12ef: try: let Ok(Some(row)) = rows.next() 2021-06-23 09:30:47 cehteh if something can go wrong on iteration then Option> *maybe* ... still a bit surprising 2021-06-23 09:31:19 j`ey cehteh: take a look at https://docs.rs/fallible-iterator/0.2.0/fallible_iterator/ 2021-06-23 09:32:10 cehteh oh .. thanks thats new to me 2021-06-23 09:32:26 w0x12ef j`ey, that's ok , 2021-06-23 09:32:38 w0x12ef give some explain ? 2021-06-23 09:33:55 j`ey w0x12ef: well as you said, the function returns Result> 2021-06-23 09:34:09 j`ey so you cant use Some(foo) to match it, because you need to match on the result 2021-06-23 09:34:14 j`ey which is Ok/Err 2021-06-23 09:35:13 w0x12ef the Result is not redundant? 2021-06-23 09:35:42 j`ey well the Sql command could fail for some reason 2021-06-23 09:36:06 j`ey I assume? I dont know the library 2021-06-23 09:36:35 w0x12ef it could fail ,yes ,then how can OK match the error result ? 2021-06-23 09:37:07 j`ey Because Result is enum Result { Ok, Err } 2021-06-23 09:37:31 j`ey just like you can match on an option with Some, because enum Option { None, Some } 2021-06-23 09:38:38 w0x12ef cool 2021-06-23 09:39:13 w0x12ef match self.conn.execute(sql_cmd, &[]) { 2021-06-23 09:39:26 w0x12ef ^^^^^^^ cannot infer type for type parameter `T` 2021-06-23 09:39:37 j`ey that's due to the &[] I guess 2021-06-23 09:40:03 j`ey you could try: let foo: &[SomeTypeHere] = &[]; and pass foo instead 2021-06-23 09:40:10 j`ey but I cant tell you what to use for SomeTypeHere 2021-06-23 09:41:11 w0x12ef pub fn execute(&self, sql: &str, params: &[&ToSql]) -> Result { 2021-06-23 09:41:20 w0x12ef the signature 2021-06-23 09:43:31 w0x12ef [] is a vec? 2021-06-23 09:43:42 cehteh array 2021-06-23 09:44:01 rk4 w0x12ef: still haven't touched the book eh ;) 2021-06-23 09:44:02 cehteh and &[] is a slice ... caveat they are different 2021-06-23 09:44:04 w0x12ef what is the error meaning 2021-06-23 09:44:12 w0x12ef rk4, on the way 2021-06-23 09:44:41 w0x12ef rk4, I have printed the book 2021-06-23 09:45:09 j`ey w0x12ef: what version of rustsqlite are you using? 2021-06-23 09:45:11 cehteh and with 1.53 we got the IntoIterator for arrays \o/ ... small changes that pleases the eyes 2021-06-23 09:45:31 w0x12ef 0.19.0 2021-06-23 09:45:35 w0x12ef j`ey, ^ 2021-06-23 09:45:45 j`ey w0x12ef: any reason to use an old version? 2021-06-23 09:46:37 j`ey also I can't actually find that same signature as you https://docs.rs/rusqlite/0.19.0/rusqlite/struct.Connection.html#method.execute 2021-06-23 09:46:47 w0x12ef rk4, for some syntax ,I just want to confirm it 2021-06-23 09:47:16 * j`ey afk 2021-06-23 09:47:19 w0x12ef j`ey, oops , 2021-06-23 09:47:57 cehteh hah that takes an iterator not &[] which is cool ... you can leave out the & with recent rust, but still it needs a type 2021-06-23 09:49:08 j`ey does it mean you can only use one type of param? im kinda confused 2021-06-23 09:49:16 cehteh const NO_PARAMS: &[SomeTypeHere] = &[]; << would that work somehow? 2021-06-23 09:49:25 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 09:52:17 <-- staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has quit (Quit: staticvoidmaine) 2021-06-23 09:52:27 w0x12ef cehteh, what shoud I give the SomeTypeHere 2021-06-23 09:52:47 --> staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has joined ##rust 2021-06-23 09:52:54 w0x12ef any type? 2021-06-23 09:53:23 <-- staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has quit (Remote host closed the connection) 2021-06-23 09:53:31 w0x12ef oh,that works 2021-06-23 09:53:38 w0x12ef const NO_PARAMS: &[String] = &[]; 2021-06-23 09:54:01 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-23 09:57:17 cehteh actually it want an empty iterator, type doesnt matter, is such a thing in the stdlib? iterator that only returns None for any type 2021-06-23 09:58:00 <-- w0x12ef (~w0x12ef@117.61.24.170) has quit (Ping timeout: 250 seconds) 2021-06-23 09:58:10 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-23 09:58:15 j`ey cehteh: yeah but the type would still need to be specified in some way 2021-06-23 09:58:40 --> w0x12ef_ (~w0x12ef@117.61.17.23) has joined ##rust 2021-06-23 09:59:52 <-- smarton (~smarton@2a01:4f9:c010:4e92::1) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-23 10:00:42 cehteh yes 2021-06-23 10:01:01 cehteh well i am surprised by myself to find an usecase for an empty iterator :D 2021-06-23 10:02:38 cehteh the SomeTypeHere must be something that implements ToSql .. but looking at that, thats a lot :) 2021-06-23 10:02:41 --> smarton (~smarton@121407.xyz) has joined ##rust 2021-06-23 10:03:09 cehteh including String .. 2021-06-23 10:03:41 <-- edmcbane (~fdegrassi@93-43-89-194.ip91.fastwebnet.it) has quit (Quit: Lost terminal) 2021-06-23 10:04:23 cehteh https://docs.rs/rusqlite/0.19.0/rusqlite/types/struct.Null.html 2021-06-23 10:04:33 w0x12ef_ why does it need to infer type for type parameter `T` 2021-06-23 10:04:38 cehteh hah ..i'd just use NULL for sake of more confusion 2021-06-23 10:05:01 cehteh const NO_PARAMS: &[NULL] = &[]; :) 2021-06-23 10:06:25 cehteh w0x12ef_: rust *always* needs static types, somehow, usually it can infer a lot, but without anything to get a hold on it cant infer it 2021-06-23 10:07:06 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Ping timeout: 250 seconds) 2021-06-23 10:07:07 cehteh [] is an empty array .. and there is no indication about "array of what" 2021-06-23 10:07:14 w0x12ef_ Is there concrete reason that it need to infer the type ? 2021-06-23 10:07:20 cehteh which is needed for the typesystem 2021-06-23 10:07:33 w0x12ef_ take this line of code as example 2021-06-23 10:07:35 cehteh yes ... reason is: rust :D 2021-06-23 10:07:57 w0x12ef_ probably not 2021-06-23 10:08:14 w0x12ef_ I guess 2021-06-23 10:08:27 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 10:08:28 cehteh because it has a very good and exact type system to ensure that everything is correct, any hole in that as in 'we have something here but dont know what it is' is forbidden 2021-06-23 10:10:26 cehteh it needs at least minimal info how things are typed, doesnt need to be the actual type, just a trait or even a dyn trait, just anything it can use 2021-06-23 10:11:52 --> brainfunnel (~quassel@254.11.99.195.dyn.plus.net) has joined ##rust 2021-06-23 10:12:30 w0x12ef_ well 2021-06-23 10:12:52 w0x12ef_ how can I tell cargo refresh the installed dep libs 2021-06-23 10:13:01 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 10:13:12 w0x12ef_ for example .after I update my dep lib's version 2021-06-23 10:14:02 w0x12ef_ vscode still conduct me to the older version types 2021-06-23 10:14:16 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 10:14:52 cehteh cargo update? 2021-06-23 10:15:31 cehteh could be vscode that dont get the new stuff? ... no idea i dont use vscode 2021-06-23 10:16:06 w0x12ef_ cehteh, you use vim? 2021-06-23 10:16:18 w0x12ef_ plus rust-analyzer? 2021-06-23 10:16:21 cehteh no 2021-06-23 10:16:28 cehteh the other one :D 2021-06-23 10:16:46 w0x12ef_ oh 2021-06-23 10:17:05 w0x12ef_ that's interesting 2021-06-23 10:17:31 cehteh i am new to rust too .. havent setup everything to my liking yet 2021-06-23 10:22:18 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 10:22:47 --> xnor (~xnor@97-120-127-196.ptld.qwest.net) has joined ##rust 2021-06-23 10:23:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 10:25:09 --> apoc (~apoc@user/apoc) has joined ##rust 2021-06-23 10:29:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Ping timeout: 250 seconds) 2021-06-23 10:30:11 --> rglu (~rglu@2603-8090-2006-7fc6-18f2-be0d-df67-d885.res6.spectrum.com) has joined ##rust 2021-06-23 10:37:35 w0x12ef_ get the answer 2021-06-23 10:37:46 w0x12ef_ cargo clean ;cargo build 2021-06-23 10:39:59 cehteh clean shouldnt be necessary 2021-06-23 10:40:15 w0x12ef_ let row = unwrap_or!(row.ok(), continue); 2021-06-23 10:40:33 w0x12ef_ ok() method not found in `&rusqlite::Row<'_>` 2021-06-23 10:42:06 cehteh first rule in programming: The compiler is always right 2021-06-23 10:42:38 nox Except when served on rocks 2021-06-23 10:43:26 cehteh looking at the docs ... nope Row has no .ok() 2021-06-23 10:43:42 Sobek Wut ? 2021-06-23 10:46:33 nox Sobek: Internal Compiler Error -> ICE -> on rocks 2021-06-23 10:46:55 Sobek Got the pun, very clever 2021-06-23 10:47:04 nox Thanks :) 2021-06-23 10:47:58 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 265 seconds) 2021-06-23 10:48:44 Sobek What percentage of rustc bugs are ICE vs output bad code vs error out incorrectly ? 2021-06-23 10:48:46 w0x12ef_ conflict mplementation for `types::to_sql::ToSqlOutput<'_>` 2021-06-23 10:49:04 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-23 10:50:30 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 10:50:55 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-23 10:54:32 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 258 seconds) 2021-06-23 10:56:16 --> dmathieu (~textual@2a01:e34:ecbd:4370:d9b3:2d29:ff46:63be) has joined ##rust 2021-06-23 10:58:10 --> ausserz (~ausserz@user/ausserz) has joined ##rust 2021-06-23 10:58:21 nox Sobek: No idea, I was just punning :D 2021-06-23 10:58:38 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 10:59:17 Sobek Someone should ask GitHub/Microsoft to do a survey (like their survey about security bulbs still being dominantly memory issues) 2021-06-23 10:59:23 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:00:51 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-23 11:01:45 --> austin_ (~ausserz@user/ausserz) has joined ##rust 2021-06-23 11:03:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:03:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:05:16 <-- ausserz (~ausserz@user/ausserz) has quit (Ping timeout: 258 seconds) 2021-06-23 11:06:25 <-- austin_ (~ausserz@user/ausserz) has quit (Ping timeout: 258 seconds) 2021-06-23 11:07:21 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:08:05 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:09:08 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-23 11:09:17 <-- que_ (~overlord@user/que/x-4349088) has quit (Quit: WeeChat 3.1) 2021-06-23 11:11:45 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:12:29 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:16:08 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:16:53 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:17:59 routeveg Regarding the fun I was having yesterday with find_or_create_session, I found a solution that doesn't use entry! 2021-06-23 11:18:08 routeveg https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=202eac84a1c58e930f49ce12b44b1fd9 2021-06-23 11:18:42 routeveg It's a little obvious perhaps. Looks like it was my insistence of using Option really, that was pushing me into a corner with the borrow checker 2021-06-23 11:20:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:21:16 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:22:31 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-23 11:22:43 Alexendoo What's wrong with entry? 2021-06-23 11:23:21 <-- w0x12ef_ (~w0x12ef@117.61.17.23) has quit (Remote host closed the connection) 2021-06-23 11:24:50 --> w0x12ef_ (~w0x12ef@117.61.17.23) has joined ##rust 2021-06-23 11:24:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:25:35 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:28:04 routeveg Alexendoo: nothing; I just wanted to figure out the simplest way to do it without entry. Using the Option returned from get_mut was causing issues and I really wanted to get to grips with why 2021-06-23 11:28:21 routeveg entry looks like the preferable thing to use from what i've seen.. 2021-06-23 11:29:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:29:52 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Ping timeout: 250 seconds) 2021-06-23 11:29:56 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:30:59 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 265 seconds) 2021-06-23 11:33:33 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-23 11:33:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:34:00 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-23 11:34:19 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:35:05 --> madninja_ (~madninja@44.sub-174-198-138.myvzw.com) has joined ##rust 2021-06-23 11:36:38 <-- madninja (~madninja@211.sub-174-198-156.myvzw.com) has quit (Ping timeout: 252 seconds) 2021-06-23 11:38:00 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:38:44 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:39:45 w0x12ef_ why Sized is empty 2021-06-23 11:39:53 w0x12ef_ is it nothing to be sued 2021-06-23 11:39:55 w0x12ef_ used 2021-06-23 11:40:33 <-- fredmorcos (~fredmorco@84-115-234-144.cable.dynamic.surfer.at) has quit (Quit: Leaving) 2021-06-23 11:42:25 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:43:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:43:25 Sobek It is kind of a marker thing to be used by things that care about things having a well defined size. There are stuff that cannot be done with unsized types. 2021-06-23 11:44:20 w0x12ef_ Sobek, size is used to allocating ? 2021-06-23 11:44:53 nox w0x12ef_: Yeah, and other things, you can't pass an unsized thing by value for example 2021-06-23 11:45:04 Sobek ^ 2021-06-23 11:45:19 w0x12ef_ nox, what is the default allocator for rust 2021-06-23 11:45:36 nox Used to be jemalloc, but now it's the system's 2021-06-23 11:45:46 Sobek Well defined size at compile time. (In opposition to things that have a dynamic size at run time) 2021-06-23 11:46:26 Sobek You can Box stuff with dynamic sizes, can’t you ? 2021-06-23 11:46:38 nox Yes 2021-06-23 11:46:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:47:04 nox Though from stable Rust, you can only coerce a sized thing to some unsized trait object, 2021-06-23 11:47:17 nox or use libstd functions to go from Vec to Box<[T]>, 2021-06-23 11:47:31 Sobek And in unstable what changes ? 2021-06-23 11:47:35 nox but you can't just make your own unsized box thing 2021-06-23 11:47:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:48:16 Sobek (Meanwhile, unsafe rust can do many shenanigans with pointers 😇) 2021-06-23 11:48:21 nox Sobek: With nightly features you can implement https://doc.rust-lang.org/std/ops/trait.CoerceUnsized.html for your own damn types 2021-06-23 11:48:52 w0x12ef_ what is the exactly meaning of coerce 2021-06-23 11:48:59 w0x12ef_ :D 2021-06-23 11:50:35 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Hay te huacho!) 2021-06-23 11:51:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:51:56 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:52:19 Sobek https://doc.rust-lang.org/nomicon/coercions.html 2021-06-23 11:52:54 Sobek Basically if I give you a reference with a static lifetime and you want to pass it to a function that just require a short lifetime the compiler isn’t going to make a fuss about it :) 2021-06-23 11:55:32 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 11:56:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 11:58:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Client Quit) 2021-06-23 12:02:23 w0x12ef_ Sobek, of course 2021-06-23 12:02:58 w0x12ef_ compiler feels relaxed 2021-06-23 12:03:14 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-06-23 12:03:15 nox Also, coercions are things like `Box as Box` 2021-06-23 12:05:02 w0x12ef_ telling about dyn and derive 2021-06-23 12:05:10 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-23 12:05:19 w0x12ef_ the deeper things 2021-06-23 12:06:16 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Ping timeout: 250 seconds) 2021-06-23 12:07:48 <-- arinov_ (~arinov@212.156.215.30) has quit (Ping timeout: 252 seconds) 2021-06-23 12:08:07 --> madninja (~madninja@2600:100e:b025:4f13:81a4:82d3:bd6b:472c) has joined ##rust 2021-06-23 12:08:57 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-23 12:09:17 <-- madninja_ (~madninja@44.sub-174-198-138.myvzw.com) has quit (Ping timeout: 258 seconds) 2021-06-23 12:09:18 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-23 12:15:31 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-23 12:19:10 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-23 12:27:09 w0x12ef_ impl !Sync for *const T {} 2021-06-23 12:27:16 w0x12ef_ what is the use of !sync 2021-06-23 12:30:16 jds that is saying the type explicitly does not/cannot implement Sync, so it's not save to share the reference between threads 2021-06-23 12:34:23 <-- mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has quit (Quit: .) 2021-06-23 12:34:32 --> mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has joined ##rust 2021-06-23 12:34:49 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-23 12:35:09 <-- neurocyte_ (~neurocyte@user/neurocyte) has left ##rust (WeeChat 3.2) 2021-06-23 12:40:44 w0x12ef_ can I take the ownership of a object on the heap 2021-06-23 12:40:55 <-- Semaphore (~bluee@user/semaphore) has quit (Quit: leaving) 2021-06-23 12:41:46 ChaiTRex w0x12ef_: Yes, that's generally done through Rc or Box or something like that. 2021-06-23 12:43:00 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 268 seconds) 2021-06-23 12:45:29 <-- dmathieu (~textual@2a01:e34:ecbd:4370:d9b3:2d29:ff46:63be) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 12:47:27 w0x12ef_ ChaiTRex, how can I take ownership of string literals 2021-06-23 12:47:49 ChaiTRex w0x12ef_: The best way is str.to_owned() 2021-06-23 12:48:04 --> confusedcharlot- (~confusedc@2600:1008:b154:2319:d712:a478:30e:810c) has joined ##rust 2021-06-23 12:48:18 w0x12ef_ here str is a reference ? 2021-06-23 12:48:21 <-- confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has quit (Read error: Connection reset by peer) 2021-06-23 12:48:25 ChaiTRex Yes, that's right. 2021-06-23 12:48:34 ChaiTRex "hello".to_owned() 2021-06-23 12:48:44 ChaiTRex That will give you a `String`. 2021-06-23 12:49:05 cehteh sometimes i wish that rust had owning references (that is when the reference is dropped then the value gets dropped with it) ... but i am not sure if thats just a brainfart 2021-06-23 12:49:26 cehteh or RefCell ... 2021-06-23 12:50:09 GreenJello sounds like either Rc or owning_ref 2021-06-23 12:51:41 GreenJello RefCell has owning_ref-like support for this with Ref::map 2021-06-23 12:53:00 w0x12ef_ Box return pointer of resource ,this could not be own it ? 2021-06-23 12:53:06 <-- confusedcharlot- (~confusedc@2600:1008:b154:2319:d712:a478:30e:810c) has quit (Ping timeout: 264 seconds) 2021-06-23 12:53:39 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 12:54:49 cehteh yeah most likely a brainfart 2021-06-23 12:56:35 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 12:57:32 cehteh mhm does cargo update give a notice when a newer version of a lib is available that doesnt fulfil the version constraint? like foo="0.1" is requested and foo "0.2" is released? 2021-06-23 12:57:52 cehteh how any tool that shows that? 2021-06-23 12:58:05 Arnavion I just have a shell script 2021-06-23 12:58:18 cehteh mind to share that? 2021-06-23 12:58:33 w0x12ef_ why does compiler take string literal as a &str 2021-06-23 12:58:48 cehteh because thats what they are 2021-06-23 12:58:56 cehteh pointer + length 2021-06-23 12:59:00 Arnavion cehteh: https://paste.rs/hMH.sh 2021-06-23 12:59:34 cehteh Arnavion: could be made into a cargo versioncheck or something like that .. tanks 2021-06-23 12:59:49 w0x12ef_ cehteh, so why Box return is not taken as a reference 2021-06-23 12:59:53 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-23 13:00:19 cehteh w0x12ef_: what? 2021-06-23 13:00:58 w0x12ef_ what is the type Box::new return 2021-06-23 13:01:23 cehteh Box ? ... 2021-06-23 13:01:40 cehteh https://doc.rust-lang.org/std/boxed/struct.Box.html 2021-06-23 13:03:31 w0x12ef_ return is also a Box ? 2021-06-23 13:03:56 ChaiTRex w0x12ef_: See the docs on the new function. 2021-06-23 13:04:29 ChaiTRex https://doc.rust-lang.org/std/boxed/struct.Box.html#method.new 2021-06-23 13:05:25 w0x12ef_ see that 2021-06-23 13:05:49 cehteh w0x12ef_: when you call Something::new() then you usually expect it to return a new of Something 2021-06-23 13:06:17 cehteh maybe Result 2021-06-23 13:06:54 <-- ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has quit (Ping timeout: 264 seconds) 2021-06-23 13:07:06 w0x12ef_ then how to use the returned value 2021-06-23 13:07:20 -- night_wulfe_ is now known as night_wulfe 2021-06-23 13:07:34 ChaiTRex w0x12ef_: It works a lot like the value you passed into Box::new. 2021-06-23 13:07:35 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-23 13:07:42 ChaiTRex w0x12ef_: So you can call methods on it, etc. 2021-06-23 13:07:56 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-23 13:09:01 w0x12ef_ who owns the returned value 2021-06-23 13:09:13 j`ey the caller 2021-06-23 13:09:27 cehteh Arnavion: put that under 'cargo-outdated' .. next step color the lines and/or put a note 'NEW!' in a 4th column 2021-06-23 13:09:40 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-23 13:09:46 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-23 13:09:49 cehteh w0x12ef_: Box implements Deref 2021-06-23 13:10:46 cehteh so a Box can be used as if it is a Foo 2021-06-23 13:10:48 Arnavion cehteh: I wanted to do that, but I couldn't be bothered to implement semver in bash 2021-06-23 13:11:37 cehteh Arnavion: haha maybe i give it a try, i dont know jq well, wondering if that could be already implemented in jq's query language 2021-06-23 13:11:47 Arnavion I don't think so 2021-06-23 13:12:03 cehteh Arnavion: i have some smething similar in my crontab to do kernel updates 2021-06-23 13:12:46 cehteh https://gist.github.com/cehteh/79a38638716a91e124d4d64aec5105b0 2021-06-23 13:12:58 <-- Liexei (Liexei@user/liexei) has quit (Ping timeout: 244 seconds) 2021-06-23 13:13:03 <-- ninjabanjo (~ninjabanj@107.150.45.163) has quit (Ping timeout: 272 seconds) 2021-06-23 13:13:19 cehteh not 100% semver just a hack, but works 2021-06-23 13:14:55 cehteh https://github.com/cloudflare/semver_bash 2021-06-23 13:16:21 <-- w0x12ef_ (~w0x12ef@117.61.17.23) has quit (Ping timeout: 265 seconds) 2021-06-23 13:17:30 --> Gottox (~Gottox@vm3.s01.de) has joined ##rust 2021-06-23 13:19:41 --> gtlsgamr (~gtlsgamr@103.247.4.163) has joined ##rust 2021-06-23 13:20:13 <-- gtlsgamr (~gtlsgamr@103.247.4.163) has quit (Quit: Lost terminal) 2021-06-23 13:20:38 --> gtlsgamr (~gtlsgamr@103.247.4.163) has joined ##rust 2021-06-23 13:20:44 <-- gtlsgamr (~gtlsgamr@103.247.4.163) has quit (Client Quit) 2021-06-23 13:21:04 dcz if anyone wants a crate tested/benched on risc-v (stable-riscv64gc-unknown-linux-gnu), I'm happy to help 2021-06-23 13:21:16 --> gtlsgamr (~gtlsgamr@103.247.4.163) has joined ##rust 2021-06-23 13:21:35 <-- gtlsgamr (~gtlsgamr@103.247.4.163) has quit (Client Quit) 2021-06-23 13:21:44 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 258 seconds) 2021-06-23 13:21:52 --> gtlsgamr (~gtlsgamr@103.247.4.163) has joined ##rust 2021-06-23 13:22:48 gtlsgamr I have been wanting to get into learning a lower level language since a long time. I had a choice between C and Rust. I went with Rust. I hope my choice was correct.] 2021-06-23 13:25:08 [code] either one will teach you more about how a computer works 2021-06-23 13:25:46 <-- madninja (~madninja@2600:100e:b025:4f13:81a4:82d3:bd6b:472c) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 13:26:07 <-- darkbit (~db@152.32.99.67) has quit (Quit: WeeChat 3.1) 2021-06-23 13:28:35 <-- gtlsgamr (~gtlsgamr@103.247.4.163) has quit (Remote host closed the connection) 2021-06-23 13:28:57 --> Liexei (Liexei@user/liexei) has joined ##rust 2021-06-23 13:29:06 Gottox Hey! A question about rust: Due to the fact that I cannot add foreign traits to foreign structs I'd like to implement my own struct which just has the same fields as the struct for a library. Is there a way to copy these data from one struct to another? 2021-06-23 13:29:32 j`ey and you cant use a newtype? 2021-06-23 13:30:51 --> HalfWord (~halfword@user/halfword) has joined ##rust 2021-06-23 13:31:25 Gottox j`ey: unfortunately no, as the type is later used to construct a http request within the library. 2021-06-23 13:31:58 Gottox I simple workaround would be to use serde to serialize the data to json and deserialize it to the new type, but that sounds awful. 2021-06-23 13:32:01 <-- HalfWord (~halfword@user/halfword) has quit (Remote host closed the connection) 2021-06-23 13:32:01 j`ey dunno why that matters? 2021-06-23 13:33:09 Gottox well, to give the real example: I want to use the kube crate to export resources from third party libraries as kubernetes resource. 2021-06-23 13:33:53 Gottox I cannot add the needed traits from the kube trait as the types are defined in the third party crate. 2021-06-23 13:34:04 Gottox -kube trait+kube-crate 2021-06-23 13:34:37 Arnavion And what prevents you from making a newtype? 2021-06-23 13:35:16 Gottox the issue is, that kube implements traits for the contained types too. 2021-06-23 13:35:25 Gottox At least it looks like it. 2021-06-23 13:35:48 Arnavion Give specifics 2021-06-23 13:36:24 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 13:37:02 dcz Gottox: if you want to copy the data, you have to implement From for YourStruct 2021-06-23 13:37:24 dcz you may be out of luck if some fields are hidden though 2021-06-23 13:38:07 dcz regardless, l too recommend trying to make newtype work 2021-06-23 13:38:44 Gottox newtype doesn't work unfortunately, let me setup a play for that. 2021-06-23 13:38:54 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-23 13:43:01 Gottox https://gist.github.com/Gottox/2b4784410625c2564b8c37a51abb46ef 2021-06-23 13:43:28 Gottox for now I just added 'static as a lifetime, FooSpec<'a> is not accepted here. 2021-06-23 13:44:28 dcz you need to implement the trait yourself, not derive it 2021-06-23 13:44:30 Arnavion struct RealmRepresentationWithSchema(RealmRepresentation<'static>); impl JsonSchema for RealmRepresentationWithSchema { ... } 2021-06-23 13:44:49 Gottox that's right... 🤔 2021-06-23 13:45:11 Gottox I assumed FooSpec was already my newtype... 2021-06-23 13:45:21 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-23 13:45:29 dcz it's effectively the same as newtype 2021-06-23 13:45:45 Arnavion You can impl JsonSchema for FooSpec, sure. The point is you have to impl it manually 2021-06-23 13:45:46 dcz the newtype syntax is just slightly different, what Arnavion wrote 2021-06-23 13:46:17 Gottox okay, thanks for unravel that for me! <3 2021-06-23 13:46:30 Gottox rust helpful as always, thank you! 2021-06-23 13:47:34 --> cecilgol (~cecilgol@user/cecilgol) has joined ##rust 2021-06-23 14:00:58 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-23 14:01:44 <-- antonym (uid432694@user/antonym) has quit (Quit: Connection closed for inactivity) 2021-06-23 14:03:07 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-06-23 14:06:52 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-23 14:08:55 --> Shell (~shell@user/shell) has joined ##rust 2021-06-23 14:09:54 <-- xkuru (~xkuru@user/xkuru) has quit (Ping timeout: 252 seconds) 2021-06-23 14:09:58 maurer Is there a way to get `./x.py` to build `std` with `panic=abort`? I can do it manually, but not in the compiler build context 2021-06-23 14:10:05 <-- SomeAwayAnon (~shwn@2a02:8109:abf:ffb4:6906:756f:b2f4:2084) has quit 2021-06-23 14:16:10 <-- justsomeguy (~justsomeg@user/justsomeguy) has quit (Ping timeout: 258 seconds) 2021-06-23 14:18:13 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-23 14:23:26 routeveg So far I am having a good time with rust! 2021-06-23 14:23:52 routeveg Though I think it is fair to say that one of the reasons for the safety of the resulting programs, is how much pain comes out of trying to reimplement basic data structures yourself. 2021-06-23 14:24:01 routeveg It's really a stick, as much as it is a carrot :P 2021-06-23 14:26:41 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 250 seconds) 2021-06-23 14:26:53 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: fabienwang) 2021-06-23 14:28:02 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-23 14:32:44 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Read error: Connection reset by peer) 2021-06-23 14:33:12 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 265 seconds) 2021-06-23 14:33:46 Arnavion maurer: It can be done with cargo build -Z build-std . For ./x.py I don't see anything in config.toml so I guess you'd have to set RUSTFLAGS 2021-06-23 14:36:56 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 14:36:58 maurer OK. I don't *think* -Z build-std works for this since I'm editing std, so I'll just set RUSTFLAGS 2021-06-23 14:37:44 dcz what is x.py? 2021-06-23 14:37:58 j`ey dcz: build system for rust 2021-06-23 14:38:00 j`ey *rustc 2021-06-23 14:38:27 dcz is it the canonical way to build libstd? I thought xargo used something else 2021-06-23 14:38:56 j`ey xargo doesnt use x.py no 2021-06-23 14:39:04 j`ey but xargo is unmaintained now anyway 2021-06-23 14:39:26 Arnavion maurer: -Z build-std uses whatever it finds for the rust-src component 2021-06-23 14:39:41 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 14:40:19 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 258 seconds) 2021-06-23 14:40:45 --> Mateon1 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-23 14:40:46 dcz is x.py also the way to build libcore for cross-compiling? 2021-06-23 14:40:59 j`ey no, -Z build-std is 2021-06-23 14:41:09 Arnavion maurer: So as a hack you can edit that and get your changes that way 2021-06-23 14:41:13 dcz thanks j`ey 2021-06-23 14:42:10 j`ey dcz: you only probably need x.py if you want to build rustc itself 2021-06-23 14:42:53 dcz probably not, last time I got stuck on getting a matching libcore for the rustc I had from the distro 2021-06-23 14:43:08 maurer Arnavion: Yeah, I think rustflags is probably better for now. (It turns out that panic-unwind and its dependencies use infallible allocation, so I can't figure out what parts of `std` do as long as I'm linking against it, since it will keep infallible alloc on) 2021-06-23 14:45:19 --> confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has joined ##rust 2021-06-23 14:45:40 maurer (Currently my rust-src component points to an immutable directory, so that would be painful to work around) 2021-06-23 14:45:53 <-- johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has quit (Read error: Connection reset by peer) 2021-06-23 14:47:19 --> johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has joined ##rust 2021-06-23 14:49:58 maurer Hrm. Adding `-C panic=abort` still ends up building `panic_unwind`, which flips the feature flags the way I don't want. 2021-06-23 14:50:13 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 14:50:24 maurer I guess I'll look into `-Z build-std` for testing this out 2021-06-23 14:50:53 Arnavion With -Z build-std you have to set a feature to make it use abort instead of unwind 2021-06-23 14:51:04 Arnavion Let me see if I had what I used in shell history somewhere... 2021-06-23 14:52:51 maurer I guess the other option is that since this is for dev, I can just... punch out panic_unwind and replace it with an immediate_abort equivalent 2021-06-23 14:56:00 --> r[]n|n (~r]n|n@131.228.48.86) has joined ##rust 2021-06-23 14:56:17 Arnavion I don't have it any more, but I think it was -Z build-std=panic_abort,std -Z build-std-features= 2021-06-23 14:56:22 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 14:56:42 --> trh (~trh@hera.debugco.de) has joined ##rust 2021-06-23 14:56:51 Arnavion Or possibly -Z build-std=panic_abort,std -Z build-std-features=panic_immediate_abort based on what web search tells me because it does sound familiar 2021-06-23 14:57:52 <-- r[]n|n (~r]n|n@131.228.48.86) has quit (Client Quit) 2021-06-23 14:57:57 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (Quit: WeeChat 3.2) 2021-06-23 14:58:01 --> r[]n|n (~r]n|n@131.228.48.86) has joined ##rust 2021-06-23 14:58:04 <-- r[]n|n (~r]n|n@131.228.48.86) has quit (Client Quit) 2021-06-23 14:58:13 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-23 14:58:31 maurer OK, I'll give it a shot. I'll need to learn about build-std eventually 2021-06-23 15:02:51 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-23 15:03:09 --> HalfWord_ (~halfword@user/halfword) has joined ##rust 2021-06-23 15:03:18 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-23 15:03:59 --> madninja (~madninja@2600:100e:b025:4f13:81a4:82d3:bd6b:472c) has joined ##rust 2021-06-23 15:05:51 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-23 15:06:12 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-23 15:07:40 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-23 15:10:02 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 15:11:43 <-- sco1 (~sco1@charon.whatbox.ca) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-23 15:13:33 --> seachdamh (~kvirc@user/seachdamh) has joined ##rust 2021-06-23 15:14:52 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-23 15:14:58 cehteh meh.. why do i step on on a stdlib bug :D 2021-06-23 15:17:13 <-- seachdamh (~kvirc@user/seachdamh) has quit (Read error: Connection reset by peer) 2021-06-23 15:20:18 <-- confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has quit (Read error: Connection reset by peer) 2021-06-23 15:20:25 --> confusedcharlot- (~confusedc@2600:1008:b154:2319:d712:a478:30e:810c) has joined ##rust 2021-06-23 15:20:27 tsdh Is there some crate dealing with custom format strings? I want to define something like foo_format = "{id} - {title}" in a toml file, load it, and then replace id, title, and other placeholders. 2021-06-23 15:24:24 Arnavion format!(include_str!("foo-format.txt", id = ..., title = ...)) 2021-06-23 15:24:44 Arnavion Downside is you'll have to maintain a separate file for every template 2021-06-23 15:24:45 <-- confusedcharlot- (~confusedc@2600:1008:b154:2319:d712:a478:30e:810c) has quit (Ping timeout: 250 seconds) 2021-06-23 15:24:55 j`ey and you cant load that at runtime 2021-06-23 15:25:00 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 15:25:19 --> confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has joined ##rust 2021-06-23 15:25:50 cehteh there are some things planned for that, moving target currently 2021-06-23 15:26:28 j`ey cehteh: runtime formatting? 2021-06-23 15:27:13 cehteh yeah 2021-06-23 15:28:02 j`ey i didnt know that 2021-06-23 15:28:06 tsdh Yeah, I need that at runtime. 2021-06-23 15:28:23 Arnavion Then the include_str! method won't help 2021-06-23 15:28:45 Arnavion I remember there was a strfmt crate but I see it hasn't been updated since 2018. Not sure what else is there 2021-06-23 15:28:54 Arnavion As a last resort there's always libc::printf 2021-06-23 15:29:58 cehteh lol 2021-06-23 15:30:22 cehteh actually you may define a serde thingy for fancy stuff too 2021-06-23 15:30:36 Lumpio- Or for simple case just like .replace("{id}", id) 2021-06-23 15:30:42 cehteh yes 2021-06-23 15:31:06 tsdh Lumpio-: Yeah, I think I'll use that for the time being. 2021-06-23 15:32:50 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 258 seconds) 2021-06-23 15:32:56 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-23 15:33:08 cehteh i made a string-substitution language for my doc processor in lua, eventually i want to port that to rust 2021-06-23 15:33:56 cehteh the ultimate macro language, but like liisp, but using {} and works on strings only 2021-06-23 15:38:49 cehteh https://rust-lang.github.io/rfcs/2795-format-args-implicit-identifiers.html 2021-06-23 15:39:37 cehteh and slightly related: https://blog.rust-lang.org/2021/05/11/edition-2021.html#reserving-syntax 2021-06-23 15:39:45 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-23 15:39:50 Arnavion tsdh: Just be careful that the replacements don't themselves contain strings that can be confused with templates. Eg don't repeat the mistake of XML unescaping that changes &lt; to < instead of < 2021-06-23 15:41:01 --> msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has joined ##rust 2021-06-23 15:41:15 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 15:42:56 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-23 15:44:13 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 246 seconds) 2021-06-23 15:44:29 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 252 seconds) 2021-06-23 15:44:53 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-23 15:47:06 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-23 15:47:20 --> orzophile (~orzophile@2605:a601:aab5:ae01:250:56ff:febd:85ef) has joined ##rust 2021-06-23 15:50:06 <-- snalty (~Shhh@user/snalty) has quit (Read error: Connection reset by peer) 2021-06-23 15:50:08 -- __jmcantrell__ is now known as jmcantrell 2021-06-23 15:51:53 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-23 15:51:59 <-- ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-23 15:52:07 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-23 15:55:56 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-23 15:57:45 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-23 16:00:42 <-- sapzk (~sapzk@user/sapzk) has quit (Quit: WeeChat 3.1) 2021-06-23 16:02:17 tsdh Arnavion: Yes, I'm formatting WM windows so I guess when replacing in the order id, app_name, title nothing bad can happen. But I'll add a "TODO: use proper format strings once landed" for my future me. ;-) 2021-06-23 16:05:48 <-- dcz (~dcz@dynamic-078-049-121-144.78.49.pool.telefonica.de) has quit (Ping timeout: 258 seconds) 2021-06-23 16:09:07 --> skyronic (~textual@cpe5c7d7dbb9a57-cm5c7d7dbb9a55.cpe.net.cable.rogers.com) has joined ##rust 2021-06-23 16:12:50 -- Rust is now known as cocaine 2021-06-23 16:12:50 <-- skyronic (~textual@cpe5c7d7dbb9a57-cm5c7d7dbb9a55.cpe.net.cable.rogers.com) has quit (Read error: Connection reset by peer) 2021-06-23 16:13:49 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-23 16:14:42 <-- cehteh (~ct@7-167-142-46.pool.kielnet.net) has quit (Ping timeout: 265 seconds) 2021-06-23 16:17:41 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-23 16:25:03 --> JanC_ (~janc@user/janc) has joined ##rust 2021-06-23 16:25:51 <-- JanC (~janc@user/janc) has quit (Killed (NickServ (GHOST command used by JanC_))) 2021-06-23 16:26:07 -- JanC_ is now known as JanC 2021-06-23 16:31:39 <-- WinterStar (~IceLight@user/icelight) has quit (Quit: WeeChat 3.2) 2021-06-23 16:33:32 --> euandreh (~euandreh@2804:14c:33:9fe5:a60:af0:9ad8:d1f7) has joined ##rust 2021-06-23 16:35:23 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 16:39:42 --> cehteh (~ct@i59F4B960.versanet.de) has joined ##rust 2021-06-23 16:43:42 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 265 seconds) 2021-06-23 16:44:00 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 16:48:29 --> Maker (~maker@70.18.215.45) has joined ##rust 2021-06-23 16:51:59 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-23 16:54:06 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-23 16:57:18 --> ssbr_ (~ssbr@2620:15c:10f:203:2ea0:cb8d:5536:3043) has joined ##rust 2021-06-23 16:58:24 <-- Moomoc (~Moomoc@84.38.65.228) has quit (Quit: ZNC - https://znc.in) 2021-06-23 16:58:42 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-23 17:03:14 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 268 seconds) 2021-06-23 17:04:15 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-23 17:04:33 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 268 seconds) 2021-06-23 17:04:49 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 17:05:09 --> Moomoc (~Moomoc@84.38.65.228) has joined ##rust 2021-06-23 17:07:47 --> Arnik (~arnik@5.125.145.250) has joined ##rust 2021-06-23 17:07:52 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 246 seconds) 2021-06-23 17:09:19 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-06-23 17:10:04 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-23 17:10:34 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 17:11:22 <-- msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-06-23 17:13:04 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 250 seconds) 2021-06-23 17:17:23 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:21:10 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 246 seconds) 2021-06-23 17:21:27 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-23 17:21:35 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-23 17:21:59 <-- tg (~tg@rockylinux/infra/tg) has quit (Quit: tg) 2021-06-23 17:25:10 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:25:22 <-- Arnik (~arnik@5.125.145.250) has quit (Ping timeout: 246 seconds) 2021-06-23 17:25:54 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:26:10 --> asvln_ (asvln@gateway/vpn/protonvpn/asvln) has joined ##rust 2021-06-23 17:26:51 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-23 17:27:31 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-23 17:27:41 <-- asvln (asvln@gateway/vpn/protonvpn/asvln) has quit (Ping timeout: 265 seconds) 2021-06-23 17:29:26 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:29:54 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-23 17:30:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:32:17 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 252 seconds) 2021-06-23 17:33:48 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:33:50 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 17:34:19 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-23 17:34:33 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:38:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:39:13 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:39:21 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-23 17:40:22 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 250 seconds) 2021-06-23 17:40:51 <-- hotcoffee (~hotcoffee@user/hotcoffee) has left ##rust (Leaving) 2021-06-23 17:42:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:43:41 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:47:08 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Ping timeout: 252 seconds) 2021-06-23 17:47:18 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 250 seconds) 2021-06-23 17:47:20 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-23 17:48:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-23 17:53:39 --> gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has joined ##rust 2021-06-23 17:55:28 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Ping timeout: 246 seconds) 2021-06-23 17:59:59 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-23 18:04:00 <-- goldfish (~goldfish@user/goldfish) has quit (Read error: Connection reset by peer) 2021-06-23 18:04:13 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-23 18:07:04 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Quit: Leaving) 2021-06-23 18:09:30 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 18:09:47 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: fabienwang) 2021-06-23 18:09:47 <-- rglu (~rglu@2603-8090-2006-7fc6-18f2-be0d-df67-d885.res6.spectrum.com) has quit (Quit: leaving) 2021-06-23 18:12:29 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-23 18:13:00 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-06-23 18:13:37 <-- gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has quit (Quit: gco) 2021-06-23 18:13:57 --> gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has joined ##rust 2021-06-23 18:14:47 <-- gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has quit (Remote host closed the connection) 2021-06-23 18:14:48 -- Gustavo6046_ is now known as Gustavo6046 2021-06-23 18:15:07 --> gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has joined ##rust 2021-06-23 18:17:39 <-- madninja (~madninja@2600:100e:b025:4f13:81a4:82d3:bd6b:472c) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-23 18:17:47 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-23 18:20:13 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-23 18:21:32 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-23 18:22:24 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 250 seconds) 2021-06-23 18:23:01 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-23 18:23:01 -- xse_ is now known as xse 2021-06-23 18:27:38 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-23 18:27:46 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has joined ##rust 2021-06-23 18:28:43 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-06-23 18:28:55 --> tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has joined ##rust 2021-06-23 18:32:12 <-- Celeo (~Celeo@user/celeo) has quit (Read error: Connection reset by peer) 2021-06-23 18:33:33 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-23 18:39:02 <-- confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has quit (Read error: Connection reset by peer) 2021-06-23 18:39:14 --> confusedcharlot (~confusedc@2600:1008:b15c:5f50:dd13:fd53:d0b4:74da) has joined ##rust 2021-06-23 18:40:01 --> cesarb (~cesarb@user/cesarb) has joined ##rust 2021-06-23 18:43:38 <-- confusedcharlot (~confusedc@2600:1008:b15c:5f50:dd13:fd53:d0b4:74da) has quit (Ping timeout: 250 seconds) 2021-06-23 18:46:53 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-23 18:50:42 kline hello, im trying to match a struct with a specific value and im not sure how to massage the value from a literal into whats expected: https://gist.github.com/AbstractBeliefs/bbb8a3eec13fc3040c0f5aaea0d348bb 2021-06-23 18:50:49 kline id love advice on how to correct this 2021-06-23 18:53:55 j`ey you could String::from("249"), but that allocates 2021-06-23 18:54:08 ChaiTRex kline: Command::Raw(x, params) if x == "249" => 2021-06-23 18:54:14 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-23 18:54:18 j`ey so you could try: Command::Raw(number_string, params) if number_string == "249" => {.. 2021-06-23 18:54:26 kline oh cool, you can do erlang style guards 2021-06-23 18:54:58 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Ping timeout: 244 seconds) 2021-06-23 18:55:08 ChaiTRex Though if raws are all numeric, you might switch to u16 or something. 2021-06-23 18:55:28 kline its unclear to me why upstream does this 2021-06-23 18:56:13 kline i imagine just because raws are already the crate saying "i dont know how to parse this, best of luck", and could conceivably include a new named command not otherwise recognised 2021-06-23 18:56:20 CodeSpelunker any familiar faces from the Rust discord? :O 2021-06-23 18:56:21 kline an example could be WEBIRC 2021-06-23 18:58:26 <-- tedwing (~anon@lfbn-idf3-1-1409-99.w109-221.abo.wanadoo.fr) has quit (Quit: leaving) 2021-06-23 18:58:49 <-- gco (~gco@2601:647:5a00:524:45dc:a42a:4ecf:70e7) has quit (Ping timeout: 246 seconds) 2021-06-23 18:59:14 <-- cesarb (~cesarb@user/cesarb) has quit (Quit: Leaving) 2021-06-23 19:01:41 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-23 19:02:04 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Quit: CodeSpelunker) 2021-06-23 19:03:31 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-23 19:08:01 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-23 19:08:52 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-23 19:11:37 <-- brainfunnel (~quassel@254.11.99.195.dyn.plus.net) has left ##rust (thanks, bye!) 2021-06-23 19:12:07 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 246 seconds) 2021-06-23 19:17:08 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-23 19:17:41 davros how many people here use the rust discord (i do ) 2021-06-23 19:18:01 maurer I've tried using it before, but nobody has ever answered one of my questions on there 2021-06-23 19:18:09 maurer it seems more focused on basic usage questions 2021-06-23 19:19:28 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 246 seconds) 2021-06-23 19:20:48 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-23 19:22:41 <-- Ivyy (~Ivyy@2001:a62:41d:fa01:f7e9:40d0:fdd9:49b3) has quit (Ping timeout: 268 seconds) 2021-06-23 19:23:38 cehteh which one? 2021-06-23 19:24:29 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-23 19:27:24 davros is it possible to express 'strided data' via the DST mechanism 2021-06-23 19:27:50 davros eg lets say you have an array x0,y0,z0, x1,y1,z1, ... 2021-06-23 19:28:30 davros "a strided array of x's " = &x , stride = sizeof_val(x0)*3 , length = .. 2021-06-23 19:29:32 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-23 19:29:33 <-- xsperry (~as@user/xsperry) has quit (Excess Flood) 2021-06-23 19:33:00 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Remote host closed the connection) 2021-06-23 19:33:24 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-23 19:34:24 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-23 19:39:14 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has quit (Quit: Leaving) 2021-06-23 19:46:01 SpaceManiac davros: not built-in, so it won't be named &T, but crates like ndarray do have such slice types 2021-06-23 19:53:46 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 246 seconds) 2021-06-23 20:00:00 <-- bertptrs (~quassel@user/bertptrs) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-23 20:00:33 --> bertptrs (~quassel@user/bertptrs) has joined ##rust 2021-06-23 20:01:38 <-- ssbr_ (~ssbr@2620:15c:10f:203:2ea0:cb8d:5536:3043) has quit (Ping timeout: 250 seconds) 2021-06-23 20:07:11 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-23 20:17:38 -- cocaine is now known as solarwinds123 2021-06-23 20:17:43 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-23 20:19:43 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-23 20:20:14 <-- yourfate (~yourfate@cabal.yourfate.org) has quit (Read error: Connection reset by peer) 2021-06-23 20:20:33 --> yourfate (~yourfate@cabal.yourfate.org) has joined ##rust 2021-06-23 20:21:20 <-- Nixx (~quassel@bulbasaur.sjorsgielen.nl) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-23 20:21:43 --> w0x12ef_ (~w0x12ef@117.61.31.20) has joined ##rust 2021-06-23 20:22:30 --> Nixx (~quassel@bulbasaur.sjorsgielen.nl) has joined ##rust 2021-06-23 20:22:47 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (Ping timeout: 252 seconds) 2021-06-23 20:23:32 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-23 20:32:37 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Ping timeout: 246 seconds) 2021-06-23 20:35:17 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 258 seconds) 2021-06-23 20:37:31 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-23 20:38:47 raekye Hi, with BTreeMap I'm trying to implement something like "get or insert" - I'm aware of .entry(...).or_insert(...) but .entry takes a key by value 2021-06-23 20:38:49 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-23 20:39:41 raekye I want to pass a key by reference and only clone it if an insert is actually needed (internally needing to do the lookup twice is fine - as far as I understand doing this with 1 lookup isn't possible with BTreeMap) 2021-06-23 20:40:12 raekye Here's a naive implementation: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8e56480c619be3a3c03083f25c4ed18e 2021-06-23 20:41:54 raekye I don't really understand why the borrow checker is unhappy 2021-06-23 20:41:59 Mutabah It's a borrow checker limitation, it doesn't know that the borrow ceases to exist in the `None` arm 2021-06-23 20:42:23 raekye I see, is there a way to rewrite it so it knows? 2021-06-23 20:43:06 Mutabah No :( - An early return is more likely to work, but that trips another borrow checker limitation 2021-06-23 20:43:27 --> confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has joined ##rust 2021-06-23 20:43:38 raekye ok, it is what it is :P Thank you! 2021-06-23 20:43:41 Mutabah However - This is a relatively easily checked bit of unsafe code 2021-06-23 20:44:18 Mutabah (A reborrow via `*const i32` will break the lifetime path) 2021-06-23 20:44:32 Mutabah https://gist.github.com/rust-play/6b7aa503716a0d993a23a2a6b6e89d75 2021-06-23 20:49:58 --> ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has joined ##rust 2021-06-23 20:50:48 <-- ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has quit (Remote host closed the connection) 2021-06-23 20:51:10 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-06-23 20:55:22 --> ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has joined ##rust 2021-06-23 20:56:48 --> moistphantom (~root@user/moistphantom) has joined ##rust 2021-06-23 21:01:58 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 268 seconds) 2021-06-23 21:02:24 --> starblue2 (~juergen@dslb-094-221-187-173.094.221.pools.vodafone-ip.de) has joined ##rust 2021-06-23 21:04:18 <-- euandreh (~euandreh@2804:14c:33:9fe5:a60:af0:9ad8:d1f7) has quit (Ping timeout: 240 seconds) 2021-06-23 21:05:22 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-23 21:05:28 --> euandreh (~euandreh@2804:14c:33:9fe5:8546:f5b9:7173:b24) has joined ##rust 2021-06-23 21:05:40 <-- starblue1 (~juergen@dslb-178-006-092-053.178.006.pools.vodafone-ip.de) has quit (Ping timeout: 265 seconds) 2021-06-23 21:05:47 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 250 seconds) 2021-06-23 21:09:15 w0x12ef_ what is the implicit meaning to write the type after name, a:int32 2021-06-23 21:09:26 w0x12ef_ int32 a 2021-06-23 21:09:43 ChaiTRex w0x12ef_: It means that a has type i32. 2021-06-23 21:09:49 ChaiTRex You're telling what the type is. 2021-06-23 21:10:14 --> cinix (~cinix__@c-73-60-53-69.hsd1.nh.comcast.net) has joined ##rust 2021-06-23 21:10:18 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:5796:3b40:5569:c90) has quit (Remote host closed the connection) 2021-06-23 21:10:26 w0x12ef_ I kwon 2021-06-23 21:13:08 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 250 seconds) 2021-06-23 21:25:48 danieldg w0x12ef_: the reason is to focus on the name, not the type 2021-06-23 21:28:14 --> aquijoule__ (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-23 21:28:57 w0x12ef_ danieldg, name is random,not important 2021-06-23 21:28:57 Mutabah w0x12ef_: Serously, read the book (read the online version, at least give it a skim) 2021-06-23 21:29:20 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 258 seconds) 2021-06-23 21:29:34 --> ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has joined ##rust 2021-06-23 21:29:37 * rk4 smiles 2021-06-23 21:29:44 w0x12ef_ I does no mean the syntax 2021-06-23 21:29:47 w0x12ef_ not 2021-06-23 21:29:52 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-23 21:30:48 <-- aquijoule_ (~richbridg@089144205017.atnat0014.highway.webapn.at) has quit (Ping timeout: 265 seconds) 2021-06-23 21:31:38 danieldg if you name all your variables randomly, people will think you are a javascript programmer 2021-06-23 21:32:55 discipulus w0x12ef_ I don't understand the question 2021-06-23 21:35:48 discipulus I think you might be asking why the language designers chose to use that syntax, is that right? 2021-06-23 21:43:17 <-- kron (~weechat@user/qaph) has quit (Remote host closed the connection) 2021-06-23 21:43:23 w0x12ef_ yep 2021-06-23 21:43:32 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-23 21:44:17 <-- HalfWord_ (~halfword@user/halfword) has quit (Ping timeout: 258 seconds) 2021-06-23 21:44:55 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-23 21:45:17 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-23 21:46:41 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-23 21:47:02 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-06-23 21:47:28 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-23 21:49:33 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-23 21:50:43 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-23 21:51:24 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-23 21:53:14 rk4 python devs, too 2021-06-23 21:53:20 discipulus I can only guess. I don't remember the book telling me the reason for the syntax. My guess is that it's related to notation in mathematics or logic. 2021-06-23 21:54:19 rk4 like, it's almost identical, python example: `def f(s: str) -> str' 2021-06-23 21:58:24 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-23 21:59:34 --> starblue3 (~juergen@dslb-088-078-101-107.088.078.pools.vodafone-ip.de) has joined ##rust 2021-06-23 21:59:35 discipulus One way to say `a: i32` is "a is an instance of i32". For generic type bounds `T: Display` "T is a subtype of Display". For lifetime parameters `'b: 'a` is "'b outlives 'a" 2021-06-23 22:01:46 discipulus My guess is that it is written in the same order as you would say it. 2021-06-23 22:02:32 <-- starblue2 (~juergen@dslb-094-221-187-173.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 250 seconds) 2021-06-23 22:04:21 meltyness i'm kinda coming in, in the middle of this, but those typing annotations are all metadata in my opinion 2021-06-23 22:04:34 meltyness But I mean colon, in english, usually means ":" defined as 2021-06-23 22:05:00 meltyness but so far you only have to annotate types if the compiler cannot infer it 2021-06-23 22:05:12 danieldg or in function parameters :D 2021-06-23 22:05:28 meltyness well of course it couldn't infer your own definition! 2021-06-23 22:06:02 discipulus There must be an RFC for this. How do I look it up? 2021-06-23 22:06:15 meltyness but like for a header like, fn barf(&str : s) -> str 2021-06-23 22:06:47 meltyness "We define a function, named barf, which accepts a reference to a string slice named s, and returns a string slice. 2021-06-23 22:07:03 meltyness ...or an owned string slice, idk rust is hard 2021-06-23 22:07:17 Mutabah I believe the reasoning is that it both simpifies the parser, and (slightly) simplifies reading 2021-06-23 22:07:38 Mutabah For reading, you get the variable name (the "key") first, then the type of it 2021-06-23 22:07:59 Mutabah and for parsing, the `:` acts as a unique separator between the pattern and type 2021-06-23 22:08:16 meltyness "I have three sisters: Daphne, Rose, and Suzanne." -- wikipedia 2021-06-23 22:09:28 rk4 meltyness: must is a strong word :P, a RFC process often emerges after the essence of a thing has already been created. after all, who wants step one in making their new language to be a long series of RFCs! 2021-06-23 22:10:08 rk4 [there might be one, i haven't looked] 2021-06-23 22:10:26 discipulus good catch 2021-06-23 22:10:55 meltyness and who wants a language that's stuffed with keywords representing every pissing type anyone would ever want 2021-06-23 22:11:16 meltyness good pissing luck -- sincerely godel 2021-06-23 22:18:31 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-23 22:19:53 w0x12ef_ the name is not important as its type 2021-06-23 22:28:48 <-- D-04 (~D-04@185.130.184.207) has quit (Ping timeout: 265 seconds) 2021-06-23 22:29:36 discipulus w0x12ef_ your saying the type should be written first because it has more importance, right? 2021-06-23 22:29:49 w0x12ef_ no 2021-06-23 22:30:00 discipulus oh 2021-06-23 22:30:18 danieldg w0x12ef_: the name is more important than the type 2021-06-23 22:30:26 w0x12ef_ oh 2021-06-23 22:30:40 --> D-04 (~D-04@185.130.184.207) has joined ##rust 2021-06-23 22:31:10 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-23 22:32:00 <-- emerent (~quassel@p200300cd5703bb02ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-06-23 22:32:03 --> emerent_ (~quassel@p200300cd5703bb5dba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-23 22:32:04 -- emerent_ is now known as emerent 2021-06-23 22:36:37 <-- glasspelican (~quassel@2607:5300:201:3100::325) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-23 22:36:41 w0x12ef_ compiler front:back 2021-06-23 22:37:38 --> glasspelican (~quassel@2607:5300:201:3100::325) has joined ##rust 2021-06-23 22:44:04 <-- w0x12ef_ (~w0x12ef@117.61.31.20) has quit (Read error: Connection reset by peer) 2021-06-23 22:44:20 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Quit: ec) 2021-06-23 22:46:58 --> w0x12ef_ (~w0x12ef@117.61.31.20) has joined ##rust 2021-06-23 22:49:18 discipulus TIL there's a rust language design forum https://internals.rust-lang.org/c/language-design/21 2021-06-23 22:58:19 --> madninja (~madninja@186.sub-174-198-138.myvzw.com) has joined ##rust 2021-06-23 22:59:37 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 246 seconds) 2021-06-23 23:01:32 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-23 23:14:02 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-06-23 23:15:22 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-23 23:26:52 <-- asvln_ (asvln@gateway/vpn/protonvpn/asvln) has quit (Ping timeout: 252 seconds) 2021-06-23 23:33:40 --> ur5us_ (~ur5us@122-56-196-253.mobile.spark.co.nz) has joined ##rust 2021-06-23 23:36:08 <-- ur5us (~ur5us@2406:e002:6af2:6001:3022:1d81:7790:256c) has quit (Ping timeout: 250 seconds) 2021-06-23 23:38:25 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-23 23:38:36 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 252 seconds) 2021-06-23 23:39:39 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-23 23:45:25 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-23 23:45:53 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-23 23:55:00 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-23 23:55:52 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-24 00:03:48 <-- madninja (~madninja@186.sub-174-198-138.myvzw.com) has quit (Remote host closed the connection) 2021-06-24 00:04:06 --> madninja (~madninja@186.sub-174-198-138.myvzw.com) has joined ##rust 2021-06-24 00:04:55 <-- Hafydd (~Hafydd@user/hafydd) has quit (Quit: WeeChat 3.1) 2021-06-24 00:17:06 <-- madninja (~madninja@186.sub-174-198-138.myvzw.com) has quit (Ping timeout: 252 seconds) 2021-06-24 00:18:26 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Quit: CodeSpelunker) 2021-06-24 00:18:44 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-24 00:21:12 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-24 00:21:39 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Quit: Leaving) 2021-06-24 00:21:59 --> madninja (~madninja@129.sub-174-198-129.myvzw.com) has joined ##rust 2021-06-24 00:22:50 --> djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has joined ##rust 2021-06-24 00:23:43 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-24 00:24:21 --> Hafydd (~Hafydd@user/hafydd) has joined ##rust 2021-06-24 00:24:32 <-- djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has quit (Quit: leaving) 2021-06-24 00:24:48 --> djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has joined ##rust 2021-06-24 00:25:31 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-24 00:34:45 <-- djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has quit (Quit: leaving) 2021-06-24 00:35:01 --> djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has joined ##rust 2021-06-24 00:39:58 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Quit: totenkoph) 2021-06-24 00:40:17 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-24 00:40:40 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Quit: CodeSpelunker) 2021-06-24 00:45:40 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-06-24 00:47:09 --> dcz (~dcz@dynamic-078-049-072-090.78.49.pool.telefonica.de) has joined ##rust 2021-06-24 00:47:36 <-- djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has quit (Quit: leaving) 2021-06-24 00:50:50 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-24 00:51:19 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-24 00:51:22 <-- madninja (~madninja@129.sub-174-198-129.myvzw.com) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 00:52:09 --> ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 00:54:34 <-- ur5us_ (~ur5us@122-56-196-253.mobile.spark.co.nz) has quit (Ping timeout: 250 seconds) 2021-06-24 00:55:32 <-- ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Remote host closed the connection) 2021-06-24 00:55:51 --> ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 00:57:50 --> home (~home@user/home) has joined ##rust 2021-06-24 00:58:26 <-- home (~home@user/home) has quit (Client Quit) 2021-06-24 00:59:24 --> zmt01 (~zmt00@user/zmt00) has joined ##rust 2021-06-24 00:59:36 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Lost terminal) 2021-06-24 01:00:05 --> lainon_ (lainon@gateway/vpn/protonvpn/lainon) has joined ##rust 2021-06-24 01:03:17 <-- zmt00 (~zmt00@user/zmt00) has quit (Ping timeout: 252 seconds) 2021-06-24 01:04:20 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-24 01:06:41 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-24 01:08:46 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-24 01:09:44 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 250 seconds) 2021-06-24 01:11:57 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-24 01:12:49 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-24 01:13:05 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-24 01:13:12 <-- lainon_ (lainon@gateway/vpn/protonvpn/lainon) has quit (Ping timeout: 252 seconds) 2021-06-24 01:16:37 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-24 01:17:26 --> jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-24 01:21:15 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-24 01:26:59 --> trev (~trev@user/trev) has joined ##rust 2021-06-24 01:28:50 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-24 01:31:47 <-- jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-24 01:39:15 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-24 01:42:51 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-24 01:47:10 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 02:01:55 --> ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has joined ##rust 2021-06-24 02:06:37 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-24 02:08:28 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-24 02:08:32 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-24 02:12:46 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-24 02:16:39 -- w0x12ef_ is now known as w0x12ef 2021-06-24 02:18:51 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-24 02:24:01 <-- ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has quit (Ping timeout: 246 seconds) 2021-06-24 02:24:43 --> db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-24 02:25:57 --> ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has joined ##rust 2021-06-24 02:29:07 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-24 02:30:39 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-24 02:30:40 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-24 02:30:46 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Ping timeout: 250 seconds) 2021-06-24 02:31:08 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-24 02:31:55 <-- dcz (~dcz@dynamic-078-049-072-090.78.49.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-06-24 02:32:56 <-- ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 250 seconds) 2021-06-24 02:34:48 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-24 02:38:06 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-24 02:41:47 <-- dmathieu (~textual@78.203.212.55) has quit (Client Quit) 2021-06-24 02:43:11 --> bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has joined ##rust 2021-06-24 02:45:51 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-06-24 02:46:05 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-24 02:47:09 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 02:52:43 --> gtlsgamr (~gtlsgamr@103.247.4.134) has joined ##rust 2021-06-24 02:53:25 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 246 seconds) 2021-06-24 02:55:25 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-06-24 02:55:34 <-- nerdypepper (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-06-24 02:55:53 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-24 02:56:20 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 250 seconds) 2021-06-24 02:58:29 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-24 03:00:05 --> mcoffin (~mcoffin@2602:3f:e74c:4800:aa5e:45ff:fed0:7395) has joined ##rust 2021-06-24 03:01:33 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 250 seconds) 2021-06-24 03:03:55 <-- ryzenda (~ryzenda@84.sub-174-242-36.myvzw.com) has quit (Ping timeout: 246 seconds) 2021-06-24 03:05:24 <-- db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 252 seconds) 2021-06-24 03:05:58 --> ryzenda (~ryzenda@21.sub-174-203-99.myvzw.com) has joined ##rust 2021-06-24 03:10:29 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-24 03:15:32 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 03:17:21 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 265 seconds) 2021-06-24 03:19:03 <-- jazz (~jazz@user/jazz) has quit (Quit: Ping timeout (120 seconds)) 2021-06-24 03:19:22 --> jazz (~jazz@user/jazz) has joined ##rust 2021-06-24 03:20:09 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Remote host closed the connection) 2021-06-24 03:22:28 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 246 seconds) 2021-06-24 03:22:58 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-24 03:24:58 <-- jazz (~jazz@user/jazz) has quit (Quit: Ping timeout (120 seconds)) 2021-06-24 03:29:17 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 258 seconds) 2021-06-24 03:32:10 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-24 03:32:22 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-24 03:34:54 --> jazz (~jazz@user/jazz) has joined ##rust 2021-06-24 03:38:21 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 03:39:39 --> msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has joined ##rust 2021-06-24 03:43:07 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 246 seconds) 2021-06-24 03:43:27 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 03:45:44 <-- euandreh (~euandreh@2804:14c:33:9fe5:8546:f5b9:7173:b24) has quit (Ping timeout: 250 seconds) 2021-06-24 03:46:49 --> euandreh (~euandreh@2804:14c:33:9fe5:c1e6:8279:92e9:57ec) has joined ##rust 2021-06-24 03:48:53 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 268 seconds) 2021-06-24 03:49:37 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 03:54:59 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-24 03:57:59 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-24 04:06:58 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-24 04:09:21 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-24 04:15:15 <-- gtlsgamr (~gtlsgamr@103.247.4.134) has quit (Quit: Lost terminal) 2021-06-24 04:20:04 w0x12ef ping 2021-06-24 04:22:33 --> hegstal (~hegstal@2a02:c7f:7604:8a00:bbfc:1ba1:ffb3:62a) has joined ##rust 2021-06-24 04:24:09 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-24 04:26:01 <-- htd (~htd@095129203062.t4.akis.net) has quit (Ping timeout: 258 seconds) 2021-06-24 04:26:20 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Quit: WeeChat 3.2) 2021-06-24 04:29:24 --> tha (uid505791@id-505791.highgate.irccloud.com) has joined ##rust 2021-06-24 04:30:36 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-24 04:32:15 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-24 04:32:48 trev pong 2021-06-24 04:37:54 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-06-24 04:44:38 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 04:48:51 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 04:49:36 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 04:53:24 sensille i just had a very nasty battle with the borrow checker. the borrow was coupled to a reference to my own struct. i tried to solve it with a clone(), but that didn't change the error message a single bit 2021-06-24 04:53:51 sensille turned out that i hadn't derived Clone for my struct. after deriving it everything was fine 2021-06-24 04:54:34 sensille i would have at least expected the compiler to complain that i haven't implemented clone for my struct 2021-06-24 04:54:50 j`ey but you were probably calling it on &T 2021-06-24 04:54:51 sensille but apparantly it just cloned the reference instead? 2021-06-24 04:54:53 j`ey and &T impls clone 2021-06-24 04:54:54 j`ey yeah 2021-06-24 04:55:17 sensille but implementing clone on the struct changes that? 2021-06-24 04:55:35 j`ey yeah because then it picks the T: Clone 2021-06-24 04:55:44 sensille that's ... nasty 2021-06-24 04:55:46 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-24 04:56:50 sensille it took me quite long to figure that out, but i don't know how the compiler could have helped me more here 2021-06-24 05:11:46 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-24 05:12:27 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-24 05:19:22 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-24 05:25:47 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-24 05:28:21 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-24 05:29:18 trev i wish there was something to convert an entire crate from async to sync 2021-06-24 05:31:16 w0x12ef Internal references as a separate type,is ok? 2021-06-24 05:31:55 j`ey i dont understand the question 2021-06-24 05:36:17 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-24 05:37:16 w0x12ef reference as a type 2021-06-24 05:37:25 --> ubert1 (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-24 05:37:34 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Ping timeout: 246 seconds) 2021-06-24 05:37:34 -- ubert1 is now known as ubert 2021-06-24 05:38:00 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 05:38:11 w0x12ef which can be inspected 2021-06-24 05:40:19 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-24 05:41:41 <-- arinov_ (~arinov@213.194.126.155) has quit (Read error: Connection reset by peer) 2021-06-24 05:42:02 --> arinov_ (~arinov@213.194.126.155) has joined ##rust 2021-06-24 05:42:22 <-- arinov_ (~arinov@213.194.126.155) has quit (Client Quit) 2021-06-24 05:43:10 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-06-24 05:45:16 jbg trev: it's quite easy to write sync wrappers for async crates (e.g see reqwest) and I imagine you could probably generate that code 2021-06-24 05:45:30 jbg w0x12ef: what do you mean by "inspected"? 2021-06-24 05:45:35 jbg T and &T are indeed different types 2021-06-24 05:46:01 w0x12ef jbg, reflect 2021-06-24 05:46:09 j`ey rust doesnt have reflection 2021-06-24 05:46:19 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 05:46:37 w0x12ef why not 2021-06-24 05:47:01 bertptrs it's not been implemented. there's no fundamental reason it couldn't exist in the future 2021-06-24 05:47:44 jbg if there was reflection, naturally it would reflect the reality that T and &T are not the same type 2021-06-24 05:47:59 bertptrs reflection isn't as useful in languages like C++ and Rust as it is in Java or Python, for example 2021-06-24 05:48:02 jbg thankfully you can mostly do your reasoning about types at compile time though 2021-06-24 05:48:09 jbg so yeah ^ 2021-06-24 05:51:37 -- __jmcantrell__ is now known as jmcantrell 2021-06-24 05:54:24 trev jbg i can't compile any async crates on the target i'm using :[ 2021-06-24 05:54:37 jbg aw 2021-06-24 05:55:17 trev it's killing me 2021-06-24 05:55:30 jbg which target? 2021-06-24 05:55:54 trev intel sgx 2021-06-24 05:58:03 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-24 06:02:15 w0x12ef the book , where can I find a type have impl what traits 2021-06-24 06:02:58 j`ey w0x12ef: in the documentation 2021-06-24 06:03:01 bertptrs not in the book, but in the documentation 2021-06-24 06:03:10 bertptrs that list would be way too long and impractical for the book 2021-06-24 06:03:13 j`ey for example https://doc.rust-lang.org/std/vec/struct.Vec.html#trait-implementations 2021-06-24 06:03:36 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-06-24 06:05:26 w0x12ef oh,I see it 2021-06-24 06:07:27 <-- mcoffin (~mcoffin@2602:3f:e74c:4800:aa5e:45ff:fed0:7395) has quit (Ping timeout: 250 seconds) 2021-06-24 06:08:13 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-06-24 06:08:27 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 06:10:06 w0x12ef what is Auto Trait Implementations and Blanket Implementations 2021-06-24 06:11:51 j`ey Auto traits, are ones the compiler has generated 2021-06-24 06:12:14 Lumpio- And blanked implementations are when you implement a trait for a generic argument 2021-06-24 06:12:16 Lumpio- blanket* 2021-06-24 06:12:22 Lumpio- Like "impl Trait for T" and such 2021-06-24 06:12:36 Lumpio- You can't add new auto traits yourself and they're mostly markers like Send and Sync etc that the compiler can autodeduce. 2021-06-24 06:13:48 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 268 seconds) 2021-06-24 06:15:41 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 06:17:53 <-- kron (~weechat@user/qaph) has quit (Quit: kron) 2021-06-24 06:20:37 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 246 seconds) 2021-06-24 06:23:23 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-24 06:23:35 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-24 06:24:53 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 06:25:30 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 06:26:20 discipulus https://doc.rust-lang.org/std/primitive.reference.html#trait-implementations-1 2021-06-24 06:26:47 discipulus for references: "Clone (Note that this will not defer to T’s Clone implementation if it exists!)" 2021-06-24 06:27:00 --> ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 06:28:02 --> tglman (~tglman@62.60.61.234) has joined ##rust 2021-06-24 06:29:43 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 246 seconds) 2021-06-24 06:29:57 discipulus what does it mean? 2021-06-24 06:31:24 bertptrs That means that if you call &t.clone(), you'll get an &t, and not a new t 2021-06-24 06:31:31 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-24 06:31:32 jbg (&t).clone() 2021-06-24 06:32:47 discipulus (&t as Clone)::clone(&&t) ?? 2021-06-24 06:33:42 jbg basically yes 2021-06-24 06:34:15 jbg in other words, if you clone a reference, you get another reference 2021-06-24 06:35:05 jbg but generally you call T's clone() instead so it doesn't come up that much 2021-06-24 06:36:30 <-- llorllale1 (~llorllale@2607:9880:3a18:69:cd00:7e66:2790:8be6) has quit (Quit: WeeChat 3.2) 2021-06-24 06:36:42 discipulus I think TRPL meantioned &T implements Copy. I don't remember it mentioning it implementing Clone. Glad I caught this discussion :) 2021-06-24 06:37:17 j`ey discipulus: Copy: Clone 2021-06-24 06:37:26 jbg everything that impls Copy impls Clone 2021-06-24 06:37:29 j`ey everything that is Copy, is also Clone 2021-06-24 06:37:55 jbg also, copying references is very common, deliberately cloning them not so much 2021-06-24 06:38:20 discipulus Yes, it makes sense to think of them being copy 2021-06-24 06:38:27 jbg it mostly comes up with things like Option<&T> where cloning the option gives you another Option<&T> which can be a surprise the first time you encounter it 2021-06-24 06:38:41 j`ey sensille had this exact issue a few hours ago 2021-06-24 06:38:43 jbg but really makes perfect sense 2021-06-24 06:38:56 discipulus Yes, I that's the discussion I read 2021-06-24 06:39:02 --> llorllale (~llorllale@2607:9880:3a18:69:597:b5cf:3629:f483) has joined ##rust 2021-06-24 06:39:07 jbg and Option has .cloned() for Option<&T> -> Option 2021-06-24 06:39:08 j`ey ah 2021-06-24 06:40:16 discipulus I hadn't committed Copy: Clone to memory. I don't think I'll forget again. thank you 2021-06-24 06:43:11 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 06:44:52 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 06:46:48 w0x12ef defer 2021-06-24 06:46:51 w0x12ef pub trait Copy: Clone { } 2021-06-24 06:47:09 bertptrs yes? 2021-06-24 06:50:01 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 265 seconds) 2021-06-24 06:51:18 discipulus Does "will not defer" mean that (&t).clone() implementation will not "call" T.clone()? Or that the compiler's method call lookup will not resolve to (t).clone()? 2021-06-24 06:51:38 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-24 06:52:00 j`ey latter 2021-06-24 06:52:04 <-- ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 250 seconds) 2021-06-24 06:52:05 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 06:52:16 w0x12ef A simple bitwise copy of String values would merely copy the pointer, leading to a double free down the line. For this reason, String is Clone but not Copy. 2021-06-24 06:52:32 w0x12ef from the book 2021-06-24 06:52:39 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 06:52:49 j`ey yep 2021-06-24 06:53:08 j`ey since a String is a pointer to heap allocated memory 2021-06-24 06:53:20 j`ey that drops/frees the memory automatically 2021-06-24 06:53:27 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (Quit: Brb, going to the moon) 2021-06-24 06:55:09 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-24 06:55:42 w0x12ef Is there a trait of Drop ,which describe how the resource should be freed 2021-06-24 06:55:46 j`ey yes 2021-06-24 06:56:22 w0x12ef I cannot find this in the book :( 2021-06-24 06:56:23 Sobek That’s the very name if the trait actually :D 2021-06-24 06:56:41 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-06-24 06:56:55 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 06:56:55 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-24 06:57:06 j`ey w0x12ef: https://doc.rust-lang.org/book/ch15-03-drop.html 2021-06-24 06:57:26 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-24 06:57:41 bertptrs Drop is a bit magical 2021-06-24 06:58:14 --> a6a45081-2b83 (~aditya@122.163.197.78) has joined ##rust 2021-06-24 06:59:30 w0x12ef where is the drop impl for String 2021-06-24 07:00:08 bertptrs It doesn't implement it directly, String wraps Vec, which does 2021-06-24 07:00:46 mrmonday bertptrs: hey, mind if I PM you? 2021-06-24 07:01:11 bertptrs mrmonday: not at all 2021-06-24 07:02:36 w0x12ef oh,yep 2021-06-24 07:02:54 w0x12ef rust is clever 2021-06-24 07:07:18 <-- a6a45081-2b83 (~aditya@122.163.197.78) has quit (Quit: Konversation terminated!) 2021-06-24 07:13:19 <-- kevr (~kevr@user/kevr) has quit (Ping timeout: 272 seconds) 2021-06-24 07:14:57 -- solarwinds123 is now known as Stella 2021-06-24 07:15:07 -- Stella is now known as aoei 2021-06-24 07:21:18 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-24 07:27:05 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-24 07:27:28 <-- w0x12ef (~w0x12ef@117.61.31.20) has quit (Ping timeout: 246 seconds) 2021-06-24 07:29:47 <-- fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has quit (Quit: WeeChat 3.2) 2021-06-24 07:33:39 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Quit: leaving) 2021-06-24 07:33:45 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-06-24 07:33:58 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-24 07:34:29 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 265 seconds) 2021-06-24 07:36:47 --> kevr (~kevr@user/kevr) has joined ##rust 2021-06-24 07:39:25 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-24 07:40:27 --> gtlsgamr (~gtlsgamr@103.247.4.134) has joined ##rust 2021-06-24 07:41:07 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Ping timeout: 246 seconds) 2021-06-24 07:41:21 --> w0x12ef_ (~w0x12ef@117.61.21.204) has joined ##rust 2021-06-24 07:41:33 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-24 07:42:26 gtlsgamr Rusteaceans :( 2021-06-24 07:45:52 --> x_kuru (~xkuru@user/xkuru) has joined ##rust 2021-06-24 07:49:57 <-- xkuru (~xkuru@user/xkuru) has quit (Ping timeout: 258 seconds) 2021-06-24 07:50:26 <-- ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-24 07:55:38 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-24 07:56:06 --> arinov (~arinov@212.156.215.30) has joined ##rust 2021-06-24 07:56:43 --> dcz (~dcz@dynamic-078-049-072-090.78.49.pool.telefonica.de) has joined ##rust 2021-06-24 08:02:55 <-- Elladan (~elladan@user/elladan) has quit (Ping timeout: 244 seconds) 2021-06-24 08:04:28 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-24 08:06:31 --> Elladan (~elladan@user/elladan) has joined ##rust 2021-06-24 08:09:39 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 250 seconds) 2021-06-24 08:11:08 <-- w0x12ef_ (~w0x12ef@117.61.21.204) has quit (Read error: Connection reset by peer) 2021-06-24 08:11:21 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-24 08:12:57 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-24 08:13:11 --> w0x12ef (~w0x12ef@117.61.21.204) has joined ##rust 2021-06-24 08:13:22 <-- gtlsgamr (~gtlsgamr@103.247.4.134) has quit (Quit: Lost terminal) 2021-06-24 08:14:27 <-- w0x12ef (~w0x12ef@117.61.21.204) has quit (Read error: Connection reset by peer) 2021-06-24 08:14:44 --> w0x12ef (~w0x12ef@117.61.21.204) has joined ##rust 2021-06-24 08:17:04 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-24 08:17:33 <-- tglman (~tglman@62.60.61.234) has quit (Ping timeout: 258 seconds) 2021-06-24 08:18:37 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 08:19:35 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-24 08:19:41 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-24 08:38:00 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-24 08:44:42 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 264 seconds) 2021-06-24 08:47:06 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-24 08:47:23 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Remote host closed the connection) 2021-06-24 08:48:11 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-24 08:52:51 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-24 08:53:44 <-- |7| (~seachdamh@user/seachdamh) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-06-24 08:53:44 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 08:56:22 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-24 08:59:41 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-06-24 09:00:31 --> madninja (~madninja@176.sub-174-198-133.myvzw.com) has joined ##rust 2021-06-24 09:01:37 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-24 09:01:58 <-- dataangel (~user@c-73-45-99-66.hsd1.il.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-24 09:03:23 <-- thing (~thing@user/thing) has quit (Quit: WeeChat 3.2) 2021-06-24 09:04:02 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 09:04:39 <-- jai (~darkapex@user/darkapex) has quit (Quit: Client limit exceeded: 15000) 2021-06-24 09:05:38 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 09:05:43 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-24 09:06:09 --> thing (~thing@user/thing) has joined ##rust 2021-06-24 09:07:40 <-- arinov (~arinov@212.156.215.30) has quit (Ping timeout: 252 seconds) 2021-06-24 09:08:58 <-- kevr (~kevr@user/kevr) has quit (Ping timeout: 246 seconds) 2021-06-24 09:09:08 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-24 09:09:29 peterandre hi, i have written the following -> https://gist.github.com/rust-play/335c3e1f62a8e21ba0acc147237ccb45 I get -> expected `str`, found `&[u8; 440]` How can i bypass this ? 2021-06-24 09:09:30 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-24 09:11:37 j`ey peterandre: this doesnt look.. right 2021-06-24 09:11:43 nitrix include_bytes! gives you the content of a file, which you're passing to PathBuf which wants a path. 2021-06-24 09:11:44 Lumpio- peterandre: include_bytes reads and includes the actual bytes of the file into your program 2021-06-24 09:11:49 Lumpio- Therefore trying to get a path for it makes no sense 2021-06-24 09:12:20 peterandre i see 2021-06-24 09:12:53 j`ey (we've already told you that include_bytes!() is including the file directly, it doesnt include it like a 'File' that you can use) 2021-06-24 09:12:57 Lumpio- So I guess the question is do you want to include the zip file inside your executable or open a separate file via a path 2021-06-24 09:13:20 peterandre the first lumpio 2021-06-24 09:13:46 j`ey if zip_extract_file_to_memory needs to take a path, you cant do it with include_bytes!() 2021-06-24 09:13:53 j`ey unless you write it out to a temporary file 2021-06-24 09:14:06 peterandre ill try that 2021-06-24 09:14:07 peterandre thanks 2021-06-24 09:14:08 <-- nekron (~nekron@noordsee.de) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-24 09:15:07 --> nekron (~nekron@noordsee.de) has joined ##rust 2021-06-24 09:15:12 kee peterandre: alternatively https://crates.io/crates/vfs-zip might be useful 2021-06-24 09:15:34 Lumpio- I think you'll want to skip that zip-extensions crate or whatever it was that provices zip_extract_file_to_memory 2021-06-24 09:15:48 Lumpio- I don't think you should need a temporary file for this tbh 2021-06-24 09:16:13 Alexendoo The regular zip crate can take any old reader as an input 2021-06-24 09:16:23 peterandre ok thanks guys 2021-06-24 09:25:47 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-24 09:28:40 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-24 09:28:41 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: Client limit exceeded: 15000) 2021-06-24 09:31:36 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 09:34:50 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 268 seconds) 2021-06-24 09:46:27 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-24 09:48:40 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 09:50:04 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 09:51:42 --> kevr (~kevr@user/kevr) has joined ##rust 2021-06-24 09:53:28 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-24 09:54:33 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Client Quit) 2021-06-24 09:54:39 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Ping timeout: 265 seconds) 2021-06-24 09:56:19 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-24 09:59:31 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-24 09:59:41 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 10:03:46 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-06-24 10:09:09 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 265 seconds) 2021-06-24 10:10:14 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-24 10:14:18 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-24 10:18:17 <-- fanf (~fanf@90.251.71.42) has quit (Ping timeout: 244 seconds) 2021-06-24 10:27:44 <-- ryzenda (~ryzenda@21.sub-174-203-99.myvzw.com) has quit (Remote host closed the connection) 2021-06-24 10:29:57 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 10:30:15 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: WeeChat 3.2) 2021-06-24 10:32:28 --> ryzenda (~ryzenda@21.sub-174-203-99.myvzw.com) has joined ##rust 2021-06-24 10:35:53 <-- madninja (~madninja@176.sub-174-198-133.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-06-24 10:38:12 --> madninja (~madninja@63.sub-174-198-156.myvzw.com) has joined ##rust 2021-06-24 10:38:14 --> sjaustirni (~sjaustirn@user/sjaustirni) has joined ##rust 2021-06-24 10:38:18 w0x12ef what is the channel talking on blockchain and ethereum 2021-06-24 10:38:19 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-24 10:38:24 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-24 10:38:31 cehteh mhm how bad/malpractice is it to have default implementations in a trait {unimplemented!()} ... aka have some methods optional 2021-06-24 10:39:08 j`ey cehteh: another option is to make them not-default, but provide some helper functions that the people implementing the trait can call 2021-06-24 10:39:55 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-24 10:40:05 <-- whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has quit (Ping timeout: 265 seconds) 2021-06-24 10:41:44 <-- chronon (~chronon@user/chronon) has left ##rust 2021-06-24 10:41:57 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-24 10:42:01 cehteh its a bit corner case here, i am using TempDir which will clean the dir when going out of scope 2021-06-24 10:42:45 cehteh but this is in a testsuite for a fuse filesystem, so i need to hook some extra drop implementaition in that would unmount the fuse filesystem there 2021-06-24 10:43:47 j`ey can you add those methods to the trait, under a feature/cfg(test)? 2021-06-24 10:43:59 cehteh thinking about trait TestDir ... and for the the test where no mounting is done one can just implement it for TempDir, while when unmounting is needed a wrapper that implements an extra drop will be used 2021-06-24 10:44:00 --> dmathieu (~textual@91-168-59-67.subs.proxad.net) has joined ##rust 2021-06-24 10:44:25 cehteh nah eventually i want ot factor this out into its own test lib 2021-06-24 10:45:31 cehteh so more generic dyn TestDir .. where one can hook in all kinds of stuff, fixture creation, copying things from templates, just be generic 2021-06-24 10:45:38 --> lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has joined ##rust 2021-06-24 10:45:53 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 265 seconds) 2021-06-24 10:45:54 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-24 10:46:11 cehteh methinks panicing on a unimplemented in a test suite isnt considered harmful 2021-06-24 10:46:13 <-- lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has quit (Client Quit) 2021-06-24 10:46:23 <-- tha (uid505791@id-505791.highgate.irccloud.com) has quit 2021-06-24 10:47:17 trev w0x12ef blockchain sux 2021-06-24 10:47:36 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-24 10:47:47 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-24 10:47:57 cehteh w0x12ef: do *not* try ##crypto :D 2021-06-24 10:48:10 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-24 10:48:25 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 10:50:27 --> fanf (~fanf@90.251.70.141) has joined ##rust 2021-06-24 10:52:37 --> msi (~msi@186.224.210.190) has joined ##rust 2021-06-24 10:52:37 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (Ping timeout: 268 seconds) 2021-06-24 10:55:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 11:01:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-06-24 11:01:10 raekye If I have an Option<&mut Foo>, (how) can I convert it to Option<&Foo>? 2021-06-24 11:02:44 j`ey b.map(|b|&*b).. seems kinda weird 2021-06-24 11:04:15 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 268 seconds) 2021-06-24 11:06:31 raekye mmm not the most elegant but it works, thanks! 2021-06-24 11:07:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:08:28 --> kuber (~kuber@97-113-139-245.tukw.qwest.net) has joined ##rust 2021-06-24 11:08:40 <-- kuber (~kuber@97-113-139-245.tukw.qwest.net) has quit (Client Quit) 2021-06-24 11:08:48 --> kuber (~kuber@97-113-139-245.tukw.qwest.net) has joined ##rust 2021-06-24 11:11:11 --> ryzendar (~ryzenda@2600:1016:b02b:b342:3550:c6dc:a8d7:26c7) has joined ##rust 2021-06-24 11:12:16 <-- ryzenda (~ryzenda@21.sub-174-203-99.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-06-24 11:12:49 -- night_wulfe_ is now known as night_wulfe 2021-06-24 11:13:18 --> Reventlov (~remy@user/reventlov) has joined ##rust 2021-06-24 11:13:20 Reventlov Hey 2021-06-24 11:13:40 Reventlov I'm trying to parse a date to a naive datetime, e.g. 2021-06-03 13:11:41.251156 2021-06-24 11:14:09 Reventlov Right now I do a let mut timestamp = NaiveDateTime::parse_from_str(splitted[0], "%Y-%m-%d %H:%M:%S.%f");, but I get some shift in the results 2021-06-24 11:14:34 Reventlov e.g. Ok(2021-06-03T13:11:41.000251156) (note the three 000 on the subsecond part) 2021-06-24 11:14:44 Reventlov Am I doing something wrong ? 2021-06-24 11:15:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:16:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:17:47 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 265 seconds) 2021-06-24 11:19:21 Reventlov https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=7a3370f4e2dde5c651a024734ce453ed 2021-06-24 11:19:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:19:52 osse Reventlov: try %.6f instead of %f 2021-06-24 11:19:54 Alexendoo Reventlov: %f will zero pad to 9 digits https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html#fn6 2021-06-24 11:20:05 bertptrs small typo, it should be %.f, not .%f 2021-06-24 11:20:26 jbg .%f because it's literally preceded by a dot (period) 2021-06-24 11:20:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:20:39 jbg IOW %f is parsing nanoseconds but you have microseconds 2021-06-24 11:20:42 bertptrs jbg: this is literally from the documentation 2021-06-24 11:21:13 jbg you're right that he wants %.f, but it's not a typo, he also needs the dot beforehand 2021-06-24 11:21:24 bertptrs not according to the docs 2021-06-24 11:21:25 jbg otherwise it won't parse because there is a dot in the input 2021-06-24 11:21:29 bertptrs https://docs.rs/chrono/0.4.19/chrono/naive/struct.NaiveDateTime.html#method.parse_from_str 2021-06-24 11:21:58 jbg oh interesting, the format includes the dot? 2021-06-24 11:22:03 jbg how is it parsing at all right now then? 2021-06-24 11:23:10 bertptrs incorrectly, clearly 2021-06-24 11:23:35 jbg I meant why is it not tripping up on the `.` in the format string which would have already chomped the . from the input 2021-06-24 11:23:41 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-24 11:23:42 jbg and then %.f expects a dot apparently 2021-06-24 11:23:49 jbg but actually it looks like %f does not include the dot 2021-06-24 11:23:55 jbg and %.f, %.6f and so on do 2021-06-24 11:23:56 bertptrs https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html. If you don't specify the dot, it's a different pattern and the number is taken as nanoseconds 2021-06-24 11:24:09 jbg so that answers that 2021-06-24 11:24:09 Reventlov damn 2021-06-24 11:24:11 Reventlov thanks 2021-06-24 11:24:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:24:42 jbg I guess this stuff is weird because of weird historical glibc stuff or something 2021-06-24 11:24:52 jbg and a desire to maintain compatibility with existing format strings 2021-06-24 11:24:57 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:25:13 bertptrs people have memorized those weird strings already, no need to make them memorize something else 2021-06-24 11:26:17 Reventlov bertptrs: well on python, it actually works :p 2021-06-24 11:26:45 bertptrs python is a magical world where things work without a good reason for them to 2021-06-24 11:26:49 <-- w0x12ef (~w0x12ef@117.61.21.204) has quit (Read error: Connection reset by peer) 2021-06-24 11:27:08 Reventlov which is why I got bitten 2021-06-24 11:27:20 --> w0x12ef (~w0x12ef@117.61.21.204) has joined ##rust 2021-06-24 11:28:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:28:35 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-24 11:29:12 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-24 11:29:17 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:32:17 <-- w0x12ef (~w0x12ef@117.61.21.204) has quit (Ping timeout: 265 seconds) 2021-06-24 11:32:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:33:14 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 252 seconds) 2021-06-24 11:33:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:34:36 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-06-24 11:35:09 <-- tomboy64 (~tomboy64@user/tomboy64) has quit (Remote host closed the connection) 2021-06-24 11:35:22 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-24 11:35:28 <-- vila (~vila@2a01:e0a:176:40d0:20d2:eb86:14a6:adc8) has quit (*.net *.split) 2021-06-24 11:35:28 <-- farmstatejake (~farmstate@user/farmstatejake) has quit (*.net *.split) 2021-06-24 11:35:28 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (*.net *.split) 2021-06-24 11:35:28 <-- alip (~alip@exherbo/developer/alip) has quit (*.net *.split) 2021-06-24 11:35:28 <-- Raito_Bezarius (~Raito@wireguard/tunneler/raito-bezarius) has quit (*.net *.split) 2021-06-24 11:35:28 <-- aaronm04 (~user@user/aaronm04) has quit (*.net *.split) 2021-06-24 11:35:28 <-- ColdKeyboard (~ColdKeybo@user/coldkeyboard) has quit (*.net *.split) 2021-06-24 11:35:28 <-- PotatoGim (sid99505@id-99505.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:28 <-- asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has quit (*.net *.split) 2021-06-24 11:35:28 <-- dreamcat4 (uid157427@id-157427.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:28 <-- ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has quit (*.net *.split) 2021-06-24 11:35:29 <-- ibigbug (~thelounge@115.130.24.49) has quit (*.net *.split) 2021-06-24 11:35:29 <-- cods (~fred@82-65-232-44.subs.proxad.net) has quit (*.net *.split) 2021-06-24 11:35:29 <-- fbernier (~fbernier@149.248.62.56) has quit (*.net *.split) 2021-06-24 11:35:29 <-- IanWizard (~ianwizard@user/ianwizard) has quit (*.net *.split) 2021-06-24 11:35:29 <-- kungp (~kungp@h-46-59-2-200.A230.priv.bahnhof.se) has quit (*.net *.split) 2021-06-24 11:35:29 <-- simao (simao@tilde.team) has quit (*.net *.split) 2021-06-24 11:35:29 <-- sfackler (sid243132@id-243132.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:29 <-- visl (sid453966@user/visl) has quit (*.net *.split) 2021-06-24 11:35:29 <-- Rain (~Rain@li958-238.members.linode.com) has quit (*.net *.split) 2021-06-24 11:35:29 <-- ski (~ski@ed-3358-10.studat.chalmers.se) has quit (*.net *.split) 2021-06-24 11:35:29 <-- ivan (~ivan@user/ivan) has quit (*.net *.split) 2021-06-24 11:35:29 <-- pie_ (~pie_bnc@user/pie/x-2818909) has quit (*.net *.split) 2021-06-24 11:35:29 <-- wrycode (~wrycode@168.235.110.39) has quit (*.net *.split) 2021-06-24 11:35:29 <-- LtHummus (~lthummus@174-21-28-50.tukw.qwest.net) has quit (*.net *.split) 2021-06-24 11:35:29 <-- hquirinosmith (~hquirinos@hqs.rocks) has quit (*.net *.split) 2021-06-24 11:35:29 <-- gbear605 (~gbear605@user/gbear605) has quit (*.net *.split) 2021-06-24 11:35:29 <-- psftw (sid440508@id-440508.highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:30 <-- w1gz (~do@159.89.11.133) has quit (*.net *.split) 2021-06-24 11:35:30 <-- LogicAside (~LogicAsid@user/logicaside) has quit (*.net *.split) 2021-06-24 11:35:30 <-- ropes (~ropes@133.77.127.34.bc.googleusercontent.com) has quit (*.net *.split) 2021-06-24 11:35:30 <-- nrr (sid20938@id-20938.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:30 <-- LawnGnome (~LawnGnome@user/lawngnome) has quit (*.net *.split) 2021-06-24 11:35:30 <-- dav1d (~dav1d@80-109-93-56.cable.dynamic.surfer.at) has quit (*.net *.split) 2021-06-24 11:35:30 <-- dece (~dece@dece.space) has quit (*.net *.split) 2021-06-24 11:35:30 <-- vbarrielle (~vincent@2001:41d0:a:fcd6::1) has quit (*.net *.split) 2021-06-24 11:35:30 <-- seds (sid492514@user/seds) has quit (*.net *.split) 2021-06-24 11:35:30 <-- bjs (sid190364@user/bjs) has quit (*.net *.split) 2021-06-24 11:35:30 <-- mht (~mht@2a03:b0c0:3:e0::1e2:c001) has quit (*.net *.split) 2021-06-24 11:35:30 <-- iamparadox (~richard@46.128.185.162) has quit (*.net *.split) 2021-06-24 11:35:30 <-- kaizen (uid501599@id-501599.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 11:35:31 <-- kidel (~kidel@kidel.wtf) has quit (*.net *.split) 2021-06-24 11:35:31 <-- vancz (~vancz@user/vancz) has quit (*.net *.split) 2021-06-24 11:35:31 <-- kai (~kai@x50d24799.cust.hiper.dk) has quit (*.net *.split) 2021-06-24 11:35:31 <-- kline (~freedom0@libera/staff/kline) has quit (*.net *.split) 2021-06-24 11:35:31 <-- dirbaio2 (~dirbaio@nsmbhd.net) has quit (*.net *.split) 2021-06-24 11:35:31 <-- spirit (~spirit@user/spirit) has quit (*.net *.split) 2021-06-24 11:35:31 <-- st (~ts@46.101.20.9) has quit (*.net *.split) 2021-06-24 11:35:31 <-- mrkajetanp_ (~mrkajetan@88.98.245.28) has quit (*.net *.split) 2021-06-24 11:35:31 <-- sweater2 (~sweater@206.81.18.26) has quit (*.net *.split) 2021-06-24 11:35:31 <-- flynn (~mcbloch@user/flynn) has quit (*.net *.split) 2021-06-24 11:35:31 <-- vito (sid1962@user/vito) has quit (*.net *.split) 2021-06-24 11:35:31 <-- lander (~lander@251.28.230.35.bc.googleusercontent.com) has quit (*.net *.split) 2021-06-24 11:35:31 <-- damien2 (~damien@248.ip-149-56-13.net) has quit (*.net *.split) 2021-06-24 11:35:31 <-- willcl_ark (~quassel@user/willcl-ark/x-8282106) has quit (*.net *.split) 2021-06-24 11:35:31 <-- samuelbernardo (~samuelber@nata01.lip.pt) has quit (Ping timeout: 272 seconds) 2021-06-24 11:35:48 <-- sjaustirni (~sjaustirn@user/sjaustirni) has quit (Ping timeout: 252 seconds) 2021-06-24 11:35:52 --> PotatoGim_ (sid99505@id-99505.tooting.irccloud.com) has joined ##rust 2021-06-24 11:35:53 --> ColdKeyboard (~ColdKeybo@user/coldkeyboard) has joined ##rust 2021-06-24 11:35:59 --> flynn (~mcbloch@user/flynn) has joined ##rust 2021-06-24 11:36:20 --> pie_bnc (~pie_bnc@user/pie/x-2818909) has joined ##rust 2021-06-24 11:36:20 --> vancz (~vancz@user/vancz) has joined ##rust 2021-06-24 11:36:55 --> sfackler (sid243132@id-243132.brockwell.irccloud.com) has joined ##rust 2021-06-24 11:37:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:37:16 --> farmstatejake (~farmstate@user/farmstatejake) has joined ##rust 2021-06-24 11:37:26 --> kungp (~kungp@h-46-59-2-200.a230.priv.bahnhof.se) has joined ##rust 2021-06-24 11:37:30 --> kline (~freedom0@libera/staff/kline) has joined ##rust 2021-06-24 11:37:30 --> aaronm04 (~user@user/aaronm04) has joined ##rust 2021-06-24 11:37:32 --> LawnGnome (~LawnGnome@user/lawngnome) has joined ##rust 2021-06-24 11:37:32 --> dece (~dece@dece.space) has joined ##rust 2021-06-24 11:37:33 --> mht (~mht@mht.wtf) has joined ##rust 2021-06-24 11:37:39 --> willcl_ark (~quassel@user/willcl-ark/x-8282106) has joined ##rust 2021-06-24 11:37:47 --> dirbaio2 (~dirbaio@nsmbhd.net) has joined ##rust 2021-06-24 11:37:48 --> gbear605 (~gbear605@user/gbear605) has joined ##rust 2021-06-24 11:37:48 bertptrs btw if you use the standard iso format like you do, the FromStr implementation does that so you could just use str.parse() 2021-06-24 11:37:48 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:37:51 --> LogicAside (~LogicAsid@user/logicaside) has joined ##rust 2021-06-24 11:37:58 --> mrkajetanp (~mrkajetan@2a01:4b00:ea36:6c00:7994:941c:3f5d:2b88) has joined ##rust 2021-06-24 11:38:09 --> IanWizard (~ianwizard@user/ianwizard) has joined ##rust 2021-06-24 11:38:38 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-24 11:38:51 --> sweater2 (~sweater@206.81.18.26) has joined ##rust 2021-06-24 11:38:51 --> w1gz (~do@159.89.11.133) has joined ##rust 2021-06-24 11:38:52 --> st (~ts@46.101.20.9) has joined ##rust 2021-06-24 11:40:04 --> tomboy64 (~tomboy64@user/tomboy64) has joined ##rust 2021-06-24 11:41:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:42:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:43:38 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-24 11:44:25 --> samuelbernardo (~samuelber@nata01.lip.pt) has joined ##rust 2021-06-24 11:44:53 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-24 11:46:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:46:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:50:17 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:50:39 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-06-24 11:51:02 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:51:56 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 11:52:36 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 258 seconds) 2021-06-24 11:52:50 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-06-24 11:52:50 mrmonday looks like we lost a whole bunch of folk to ##rust-unidentified after that netsplit 2021-06-24 11:52:52 mrmonday oopsie 2021-06-24 11:54:15 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-24 11:54:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:54:48 cehteh this redirection sux, just remove the +r and add the mode that prevents anyone unidentified from speakin is enough and much more friendly to legitimate users 2021-06-24 11:55:25 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 11:58:09 --> seds (sid492514@user/seds) has joined ##rust 2021-06-24 11:59:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 11:59:25 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Ping timeout: 246 seconds) 2021-06-24 11:59:51 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:00:36 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-24 12:01:58 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-24 12:03:38 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:04:23 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:06:08 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-24 12:07:42 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-24 12:07:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:08:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:11:30 mrmonday it was added because of spam, not sure whether it's the best idea to keep it or not 2021-06-24 12:11:52 mrmonday and it's easy to miss that you're quietted if you're in the channel 2021-06-24 12:12:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:13:14 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:14:07 cehteh spam can be prevented with the 'only identified users can talk' flag already 2021-06-24 12:14:24 --> whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has joined ##rust 2021-06-24 12:14:30 mrmonday yes, but if you're a legitimate user and not identified it's not always obvious that your message hasn't got through 2021-06-24 12:14:32 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-24 12:14:36 nCrazed does the redirect happen if you split when using SASL? 2021-06-24 12:14:58 cehteh you get a message that you cant talk 2021-06-24 12:15:20 cehteh we are doing that in other channels 2021-06-24 12:15:52 mrmonday highly client dependent whether you see that or not, a bunch of them put that message somewhere other than the channel 2021-06-24 12:16:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:17:01 mrmonday the unidentified channel has a bot which periodically sends notices about it 2021-06-24 12:17:21 mrmonday nCrazed: if you're identified you don't get redirected 2021-06-24 12:17:30 <-- kuber (~kuber@97-113-139-245.tukw.qwest.net) has quit (Quit: leaving) 2021-06-24 12:17:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:18:01 demize cehteh: Not all spam happens in-channel however, there are plenty of spam bots that join channels to get targets for PM spam. 2021-06-24 12:18:52 cehteh but thats unrelated to the channel .. people are responsible for themself (and usually ircops will kill those spamers) 2021-06-24 12:19:05 mrmonday also you can set usermode +Q I believe if you don't want to be forwarded... though if you're savvy enough to know that you probably also have an account so it won't affect you :P 2021-06-24 12:19:22 cehteh you are just overblocking here, in other channels it just works without the -r flag 2021-06-24 12:19:52 --> kuber (~kuber@97-113-139-245.tukw.qwest.net) has joined ##rust 2021-06-24 12:19:59 cehteh i havnt properly configured my bouncer yet, so i regulary fall of and notice this inconvinience 2021-06-24 12:20:08 <-- whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has quit (Ping timeout: 265 seconds) 2021-06-24 12:20:39 cehteh and i am just think its really user unfriendly 2021-06-24 12:20:45 -- Mode ##rust [+o mrmonday] by ChanServ 2021-06-24 12:20:48 -- Mode ##rust [-r] by mrmonday 2021-06-24 12:20:51 -- Mode ##rust [-o mrmonday] by mrmonday 2021-06-24 12:21:16 <-- samuelbernardo (~samuelber@nata01.lip.pt) has quit (Ping timeout: 252 seconds) 2021-06-24 12:21:18 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:21:20 cehteh thanks 2021-06-24 12:21:20 mrmonday might add it back, will see how it goes without 2021-06-24 12:21:25 --> twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has joined ##rust 2021-06-24 12:21:32 twiclo You guys seeing this? 2021-06-24 12:21:37 timemage twiclo, nope. 2021-06-24 12:21:40 mrmonday yep 2021-06-24 12:21:40 twiclo Shit 2021-06-24 12:21:41 nCrazed mrmonday: so that sounds like "just use SASL" 2021-06-24 12:21:53 cehteh well you may need to add the (forgot which one) flag about unidentified people are muted 2021-06-24 12:21:58 lambda just use CERTFP, honestly 2021-06-24 12:21:59 mrmonday nCrazed: honestly, just use SASL :3 2021-06-24 12:21:59 twiclo I got kicked out for not having sasl but reconnecting put me back in here so I guess I'm good 2021-06-24 12:22:03 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:22:19 bertptrs get SASL :P 2021-06-24 12:22:30 cehteh also betelgeuse should eventually fix his connection .. or maybe its just some bot :D 2021-06-24 12:22:32 mrmonday cehteh: will try without for now, see how it goes 2021-06-24 12:22:49 nCrazed twiclo: yeah, if you're running the client on some of the commong VPS provider instances, you might be required to use SASL by the network 2021-06-24 12:22:59 cehteh dont blame me when spam happens now, i mean with no protection at all it may be 2021-06-24 12:22:59 nCrazed I got hit by that 2021-06-24 12:23:14 twiclo Nope this is just weechat on my local machine 2021-06-24 12:23:17 mrmonday twiclo: you don't "need" SASL, but if you have a NickServ account you should be using it rather than sending an identify command 2021-06-24 12:23:28 <-- bkircher (~bkircher@2001:a61:25d9:8601:d869:9f9a:1e41:261d) has quit (Quit: WeeChat 3.0.1) 2021-06-24 12:23:47 mrmonday it means you're identified from the start of the connection, rather than at some point after 2021-06-24 12:23:48 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-24 12:24:38 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 12:24:53 bertptrs the flag is +M btw in case something happens 2021-06-24 12:25:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:26:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:26:48 mrmonday it's actually `+q $~a` 2021-06-24 12:27:13 mrmonday +M doesn't exist, +m means no one can speak without voice 2021-06-24 12:27:14 bertptrs non standard options will be the death of me, youre right 2021-06-24 12:27:31 mrmonday I suppose we could auto voice registered users and set +m 2021-06-24 12:27:58 cehteh sounds right, i rememebr, i set it for ##posix but forgotten which flag it was 2021-06-24 12:29:20 --> bjs (sid190364@user/bjs) has joined ##rust 2021-06-24 12:29:30 mrmonday if we're using quiets, I'm rather have +z so ops can still see the messages... but then we have to have people opped, and I'd rather not have that 2021-06-24 12:29:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:30:12 mrmonday if spam gets bad I suggest we talk to staff about having ozone in here permanently 2021-06-24 12:30:17 --> Alex[m]123456715 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-24 12:30:34 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:31:24 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-24 12:31:30 cehteh the spam problem got a lot better recently 2021-06-24 12:32:20 mrmonday afaik we have had 2 spam attacks here since the move to libera - one was what triggered the initial +r, in the other the spammers ended up in ##rust-unidentified so only I saw it ;) 2021-06-24 12:33:22 mrmonday the real problem with spam is that we might not always have an op here to deal with it 2021-06-24 12:34:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:34:56 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:36:40 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-24 12:37:22 <-- nvmd (~nvmd@user/nvmd) has quit (Quit: Later, nerds.) 2021-06-24 12:38:23 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:39:08 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:40:42 --> nrr (sid20938@id-20938.tooting.irccloud.com) has joined ##rust 2021-06-24 12:42:02 <-- dmathieu (~textual@91-168-59-67.subs.proxad.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 12:42:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:42:47 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-06-24 12:43:20 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Ping timeout: 265 seconds) 2021-06-24 12:43:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:46:59 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:47:12 <-- kuber (~kuber@97-113-139-245.tukw.qwest.net) has quit (Quit: leaving) 2021-06-24 12:47:45 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:49:19 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-24 12:51:11 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-24 12:51:24 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:51:36 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-24 12:52:07 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-24 12:52:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:53:45 <-- cdown (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-06-24 12:53:59 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-24 12:55:46 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 12:56:31 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 12:56:59 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-06-24 12:57:05 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 12:57:31 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-24 13:00:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:00:48 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:02:22 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-24 13:03:54 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 258 seconds) 2021-06-24 13:04:18 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:05:05 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:05:44 --> tglman (~tglman@92.40.176.224.threembb.co.uk) has joined ##rust 2021-06-24 13:07:45 <-- tglman (~tglman@92.40.176.224.threembb.co.uk) has quit (Read error: Connection reset by peer) 2021-06-24 13:08:26 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 13:08:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:09:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:10:18 --> sgift (~madison@2001:a61:3461:4a01:b5b7:3dc8:5da3:891) has joined ##rust 2021-06-24 13:12:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:13:45 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:17:25 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:17:46 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 256 seconds) 2021-06-24 13:18:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:18:43 --> wrycode (~wrycode@168.235.110.39) has joined ##rust 2021-06-24 13:19:46 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 13:20:40 <-- tristero (~nobody@user/tristero) has quit (Ping timeout: 252 seconds) 2021-06-24 13:21:56 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:22:41 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:26:00 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 13:26:11 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:26:36 --> debsan (~debsan@2800:810:471:2ee::1001) has joined ##rust 2021-06-24 13:26:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:29:25 <-- hendursa1 (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-24 13:30:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:31:14 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:34:35 --> nl3dee (~nl3dee@ns388898.ip-176-31-255.eu) has joined ##rust 2021-06-24 13:34:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:35:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 13:39:09 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 13:39:37 --> sjaustirni (~sjaustirn@user/sjaustirni) has joined ##rust 2021-06-24 13:41:20 <-- mIGu (~mig21@user/naur) has quit (Ping timeout: 265 seconds) 2021-06-24 13:42:23 --> visl (sid453966@user/visl) has joined ##rust 2021-06-24 13:43:21 --> confusedcharlot- (~confusedc@2600:1008:b126:2158:d6f9:5ffc:6657:aceb) has joined ##rust 2021-06-24 13:44:53 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-24 13:45:12 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-24 13:45:18 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 258 seconds) 2021-06-24 13:45:46 --> tristero (~nobody@user/tristero) has joined ##rust 2021-06-24 13:45:51 --> mIGu (~mig21@user/naur) has joined ##rust 2021-06-24 13:46:27 <-- confusedcharlot (~confusedc@024-183-126-093.res.spectrum.com) has quit (Ping timeout: 258 seconds) 2021-06-24 13:49:31 --> ropes (~ropes@133.77.127.34.bc.googleusercontent.com) has joined ##rust 2021-06-24 13:52:02 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-24 13:54:15 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-24 13:57:22 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-24 13:59:10 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 252 seconds) 2021-06-24 14:00:15 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-06-24 14:03:16 --> rcbaus (~rcbaus@35.142.158.114) has joined ##rust 2021-06-24 14:05:43 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Hay te huacho!) 2021-06-24 14:05:43 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 14:06:20 --> nvmd (~nvmd@user/nvmd) has joined ##rust 2021-06-24 14:06:28 --> lidenbrock (~lidenbroc@2804:14c:32:8120:b5ea:17c2:30ba:3c57) has joined ##rust 2021-06-24 14:08:37 --> CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has joined ##rust 2021-06-24 14:11:40 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-24 14:14:56 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-24 14:17:39 --> rglu (~rglu@2603-8090-2006-7fc6-1dc5-49ba-3f3d-8c95.res6.spectrum.com) has joined ##rust 2021-06-24 14:18:06 --> ubert (~Thunderbi@p200300ecdf259dc21d074ed27adb7f01.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 14:19:16 --> doublesaiko (~saiko@crispy.dblsaiko.net) has joined ##rust 2021-06-24 14:20:55 <-- dblsaiko (~saiko@crispy.dblsaiko.net) has quit (Ping timeout: 244 seconds) 2021-06-24 14:21:50 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-24 14:22:06 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-24 14:22:10 --> ryzendapgh (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has joined ##rust 2021-06-24 14:24:28 <-- ryzendar (~ryzenda@2600:1016:b02b:b342:3550:c6dc:a8d7:26c7) has quit (Ping timeout: 250 seconds) 2021-06-24 14:34:44 --> Longor (~Longor@2a02:8070:e188:5700:a52b:6cdb:4b26:60a5) has joined ##rust 2021-06-24 14:40:10 habnabit_ mrmonday, have you seen #libera-bots ? 2021-06-24 14:40:32 habnabit_ one of the bots you can get for the channel has flood controls on it 2021-06-24 14:41:25 mrmonday yes 2021-06-24 14:41:48 mrmonday thanks :) 2021-06-24 14:46:59 <-- sjaustirni (~sjaustirn@user/sjaustirni) has quit 2021-06-24 14:48:09 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-24 14:52:08 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-24 14:53:07 <-- rglu (~rglu@2603-8090-2006-7fc6-1dc5-49ba-3f3d-8c95.res6.spectrum.com) has quit (Quit: leaving) 2021-06-24 14:53:12 --> DNH (~DNH@8.43.122.6) has joined ##rust 2021-06-24 14:55:56 <-- lidenbrock (~lidenbroc@2804:14c:32:8120:b5ea:17c2:30ba:3c57) has quit (Quit: Client closed) 2021-06-24 14:56:41 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-24 14:58:05 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 14:58:12 --> meeg_leeto (~miguelmur@user/miguelmurca) has joined ##rust 2021-06-24 14:59:42 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-24 15:00:25 <-- kwilczynski (sid379192@user/kwilczynski) has quit 2021-06-24 15:03:09 meeg_leeto hey hey 2021-06-24 15:03:10 meeg_leeto https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0eb4edcd9f5a9f8346d8cae6770957a7 2021-06-24 15:03:25 meeg_leeto someone help: is the compiler not being smart enough or am i missing something 2021-06-24 15:03:31 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-06-24 15:03:36 meeg_leeto also: please don't tell me to just |x| x + 1 haha 2021-06-24 15:03:54 meeg_leeto *someone please help, that sounded rude, sorry 2021-06-24 15:04:40 meeg_leeto like, it seems correct to me that if the iterator is required to live for 'this, then the closure in (iterator).map() should also only have to live for 'this 2021-06-24 15:04:43 meeg_leeto and not 'static 2021-06-24 15:07:53 bihtori I don't know much what it's supposed to do but the when you try to compile it the compiler suggests a .map(move |x| ... suggest you try that 2021-06-24 15:07:58 Arnavion Not sure where you got 'static from. Your reasoning about the closure only needing to live as long as 'this is correct, and the error tells you what to do to fix it 2021-06-24 15:08:04 mrmonday meeg_leeto: the compiler is correct, since you're returning an Iterator with 'static lifetime 2021-06-24 15:08:20 mrmonday and that iterator includes the closure 2021-06-24 15:08:25 mrmonday so the closure needs to live that long 2021-06-24 15:08:29 Arnavion mrmonday: No they're not, and the compiler doesn't say anything about 'static 2021-06-24 15:08:33 meeg_leeto ? am I not returning an iterator with a 'this lifetime? 2021-06-24 15:08:39 <-- CodeSpelunker (~CodeSpelu@pool-74-96-79-123.washdc.fios.verizon.net) has quit (Changing host) 2021-06-24 15:08:39 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-24 15:08:43 meeg_leeto I don't want to move, as I can't move `self` 2021-06-24 15:08:47 Arnavion Yes you can 2021-06-24 15:08:50 meeg_leeto since I return impl Iterator + 'this 2021-06-24 15:09:13 Arnavion Why do you think you can't move self 2021-06-24 15:09:47 meeg_leeto I mean, because it's a map over an iterator, moving self would make the closure FnOnce 2021-06-24 15:09:55 mrmonday I completely misread the error, ignore me :< 2021-06-24 15:09:55 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-24 15:09:56 mrmonday sorry 2021-06-24 15:10:00 meeg_leeto and destroy the struct, or am I wrong on this 2021-06-24 15:10:09 meeg_leeto mrmonday npnp 2021-06-24 15:10:42 --> ub (~Thunderbi@p200300ecdf259dee1d074ed27adb7f01.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 15:10:52 Arnavion Why do you think that 2021-06-24 15:10:52 Arnavion Or better yet, what you think the type of `self` is in the body of fn slice? 2021-06-24 15:11:10 meeg_leeto `&Self`? 2021-06-24 15:11:11 Arnavion Put your hypothesis to the test. If adding `move` makes the closure a `FnOnce`, then the code shouldn't compile since `Iterator::map` requires an FnMut. Yet it compiles. Why? 2021-06-24 15:11:22 meeg_leeto will move move the reference rather than the *reference? 2021-06-24 15:11:28 Arnavion It moves `self` 2021-06-24 15:11:36 Arnavion The type of `self` is &'this Self 2021-06-24 15:11:39 <-- ubert (~Thunderbi@p200300ecdf259dc21d074ed27adb7f01.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-06-24 15:11:40 -- ub is now known as ubert 2021-06-24 15:11:46 <-- Longor (~Longor@2a02:8070:e188:5700:a52b:6cdb:4b26:60a5) has quit (Quit: Leaving) 2021-06-24 15:12:00 Arnavion What's wrong with moving &'this Self into a closure? Why would it make the closure an FnOnce? 2021-06-24 15:12:01 meeg_leeto ah so it moves just the reference; is &'this Self copiable/clonable? 2021-06-24 15:12:19 meeg_leeto Arnavion none at all, just hadn't thought that it could be the reference itself moved 2021-06-24 15:12:21 Arnavion That has nothing to do with making a closure FnOnce 2021-06-24 15:12:40 Arnavion let s = String::new(); move || s.len() < This closure is FnOnce, FnMut and Fn 2021-06-24 15:13:21 meeg_leeto yep, I see now 2021-06-24 15:13:22 meeg_leeto thanks! 2021-06-24 15:13:41 <-- meeg_leeto (~miguelmur@user/miguelmurca) has left ##rust (thanks all) 2021-06-24 15:20:21 lambda ...did they just not even try doing the exact thing the compiler told them to do? 2021-06-24 15:20:46 lambda rustc error messages are extremely helpful, but apparently people still don't appreciate them enough :( 2021-06-24 15:20:48 <-- johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has quit (Ping timeout: 250 seconds) 2021-06-24 15:20:57 <-- DNH (~DNH@8.43.122.6) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 15:22:14 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-24 15:22:56 mrmonday they came here to understand, that's a good thing 2021-06-24 15:22:59 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 256 seconds) 2021-06-24 15:23:12 mrmonday just because the compiler tells you how to fix something doesn't mean you should just do it 2021-06-24 15:23:15 <-- madninja (~madninja@63.sub-174-198-156.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-06-24 15:23:28 Geekingfrog tbf, I would've followed the advice but still wouldn't quite understand the why of all of that. I found the explanation helpful. 2021-06-24 15:24:20 --> DNH (~DNH@8.43.122.6) has joined ##rust 2021-06-24 15:24:36 --> johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has joined ##rust 2021-06-24 15:24:49 mrmonday I wonder if the error codes linked from the compiler errors could benefit from more examples/explanations in different contexts 2021-06-24 15:25:48 --> madninja (~madninja@48.sub-174-198-142.myvzw.com) has joined ##rust 2021-06-24 15:26:02 mrmonday the code sample for the error explanation (https://doc.rust-lang.org/stable/error-index.html#E0373) looks nothing like the code that was linked 2021-06-24 15:26:30 mrmonday while it might be the same from the compilers perspective, it's not necessarily so obvious as the person writing the code 2021-06-24 15:27:43 bihtori Figuring out what makes a closure just FnOnce, FnMut or Fn is strictly above my level of comprehension so I do what the compiler suggests lol. If move doesn't help it I maybe try to .clone() something but if that doesn't work that's a dead end. Been there. 2021-06-24 15:29:36 -- aoei is now known as solarwinds123 2021-06-24 15:32:08 GreenJello bihtori, try FnOnce (least restrictive for the caller, most restrictive for you), then FnMut (middle for both), then Fn (restrictive for caller) 2021-06-24 15:32:41 GreenJello that will work out 95% of the time; 2021-06-24 15:33:48 <-- johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has quit (Ping timeout: 250 seconds) 2021-06-24 15:36:36 -- solarwinds123 is now known as aoei 2021-06-24 15:40:04 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-24 15:40:16 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-24 15:50:23 <-- dcz (~dcz@dynamic-078-049-072-090.78.49.pool.telefonica.de) has quit (Ping timeout: 268 seconds) 2021-06-24 15:58:56 <-- neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has quit (Quit: bye) 2021-06-24 16:02:16 --> neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has joined ##rust 2021-06-24 16:06:51 --> lf (~quassel@p200300d21f009d00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 16:07:13 -- Magician is now known as deepy 2021-06-24 16:11:05 --> kwilczynski (sid379192@user/kwilczynski) has joined ##rust 2021-06-24 16:12:34 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-24 16:14:32 <-- cehteh (~ct@i59F4B960.versanet.de) has quit (Ping timeout: 250 seconds) 2021-06-24 16:15:26 --> johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has joined ##rust 2021-06-24 16:17:58 <-- confusedcharlot- (~confusedc@2600:1008:b126:2158:d6f9:5ffc:6657:aceb) has quit (Ping timeout: 256 seconds) 2021-06-24 16:18:09 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 16:23:03 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-06-24 16:23:09 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-24 16:25:05 <-- DNH (~DNH@8.43.122.6) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-24 16:25:48 <-- madninja (~madninja@48.sub-174-198-142.myvzw.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-24 16:26:45 --> whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has joined ##rust 2021-06-24 16:27:36 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 265 seconds) 2021-06-24 16:27:43 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-24 16:31:39 --> cehteh (~ct@i59F4B960.versanet.de) has joined ##rust 2021-06-24 16:33:57 --> samuelbernardo (~samuelber@194.210.119.252) has joined ##rust 2021-06-24 16:37:02 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-06-24 16:40:56 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-24 16:46:26 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-24 16:47:06 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 252 seconds) 2021-06-24 16:48:02 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-24 16:49:31 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-24 16:54:01 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-24 16:56:43 --> cloudbender (~cloudbend@24.244.29.125) has joined ##rust 2021-06-24 16:57:25 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-24 16:58:51 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 17:03:52 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-24 17:09:23 <-- cloudbender (~cloudbend@24.244.29.125) has quit (Quit: Connection closed) 2021-06-24 17:14:54 <-- sgift (~madison@2001:a61:3461:4a01:b5b7:3dc8:5da3:891) has quit (Quit: Leaving) 2021-06-24 17:19:29 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-24 17:21:52 <-- msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-06-24 17:22:23 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-24 17:28:56 --> jinie (~jimmy@188.114.173.37) has joined ##rust 2021-06-24 17:29:16 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-24 17:31:08 --> moerf (~moerf@p200300f1df16d90038be1df7ec29d5a5.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 17:31:15 <-- nohit (sid334887@id-334887.tinside.irccloud.com) has quit 2021-06-24 17:31:26 kee I'm no longer looking for an elegant solution; I'm just looking for something that works. 2021-06-24 17:31:27 --> nohit (sid334887@id-334887.tinside.irccloud.com) has joined ##rust 2021-06-24 17:31:32 kee How can I get a picture on the screen? 2021-06-24 17:31:47 kee (Dynamically-generated video, like for a computer game.) 2021-06-24 17:34:11 <-- moerf (~moerf@p200300f1df16d90038be1df7ec29d5a5.dip0.t-ipconnect.de) has quit (Client Quit) 2021-06-24 17:34:24 kee Polystrip with vulkan doesn't work; the .next_frame() family just hangs. 2021-06-24 17:35:15 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-24 17:37:38 GreenJello kee, it would be overkill, but piston should be fairly straight forward and cross compatible 2021-06-24 17:37:53 <-- msi (~msi@186.224.210.190) has quit (Quit: leaving) 2021-06-24 17:38:01 GreenJello they have an image example 2021-06-24 17:38:59 kee GreenJello: Yeah, piston works… 2021-06-24 17:39:13 kee I kinda lied when I said about an elegant solution. 2021-06-24 17:39:18 kee I want something that fits on my hard drive. 2021-06-24 17:39:32 kee And uses less than half my RAM to compile. 2021-06-24 17:39:37 <-- ziper (~deamon@212.237.171.46) has quit (Ping timeout: 265 seconds) 2021-06-24 17:42:21 mrmonday dump an image file to disk, launch whatever image viewer is already on the OS? 2021-06-24 17:42:39 mrmonday not elegant, but does put an image on the screen 2021-06-24 17:43:00 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-24 17:43:11 kee mrmonday: I'm almost at that point. 2021-06-24 17:43:41 kee rgx has no inline documentation (so the generated docs are empty) but looks just about usable. 2021-06-24 17:43:53 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-24 17:44:02 kee Any reason I should give up on it early? 2021-06-24 17:44:11 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 17:46:18 --> ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 17:46:54 kee Found one: it's a mid-level abstraction over GPU pipelines, with no documentation (or comments), so I don't know how to use it. 2021-06-24 17:47:18 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-24 17:47:56 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-24 17:48:42 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 252 seconds) 2021-06-24 17:48:48 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-24 17:49:52 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-24 17:52:28 --> sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has joined ##rust 2021-06-24 17:55:03 --> ekathva (~ekathva@88-114-118-108.elisa-laajakaista.fi) has joined ##rust 2021-06-24 17:56:18 --> mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has joined ##rust 2021-06-24 17:58:35 <-- ur5us__ (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Quit: Leaving) 2021-06-24 18:02:16 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-24 18:09:04 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 18:09:58 <-- mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-24 18:10:33 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 265 seconds) 2021-06-24 18:12:33 --> mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has joined ##rust 2021-06-24 18:13:27 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 265 seconds) 2021-06-24 18:14:48 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-24 18:15:45 --> groknull (~groknull@98.sub-174-242-81.myvzw.com) has joined ##rust 2021-06-24 18:16:16 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-24 18:16:54 <-- groknull (~groknull@98.sub-174-242-81.myvzw.com) has quit (Remote host closed the connection) 2021-06-24 18:17:48 <-- mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-24 18:18:03 --> mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has joined ##rust 2021-06-24 18:19:08 <-- mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:08 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (*.net *.split) 2021-06-24 18:19:08 <-- nohit (sid334887@id-334887.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:08 <-- Celeo (~Celeo@user/celeo) has quit (*.net *.split) 2021-06-24 18:19:08 <-- lf (~quassel@p200300d21f009d00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (*.net *.split) 2021-06-24 18:19:08 <-- carla (~carla@facebook/engineering/carla) has quit (*.net *.split) 2021-06-24 18:19:08 <-- nvmd (~nvmd@user/nvmd) has quit (*.net *.split) 2021-06-24 18:19:08 <-- mIGu (~mig21@user/naur) has quit (*.net *.split) 2021-06-24 18:19:08 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (*.net *.split) 2021-06-24 18:19:09 <-- alip (~alip@exherbo/developer/alip) has quit (*.net *.split) 2021-06-24 18:19:09 <-- sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has quit (*.net *.split) 2021-06-24 18:19:09 <-- johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has quit (*.net *.split) 2021-06-24 18:19:09 <-- kwilczynski (sid379192@user/kwilczynski) has quit (*.net *.split) 2021-06-24 18:19:09 <-- ubert (~Thunderbi@p200300ecdf259dee1d074ed27adb7f01.dip0.t-ipconnect.de) has quit (*.net *.split) 2021-06-24 18:19:09 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (*.net *.split) 2021-06-24 18:19:09 <-- farmstatejake (~farmstate@user/farmstatejake) has quit (*.net *.split) 2021-06-24 18:19:09 <-- bjs (sid190364@user/bjs) has quit (*.net *.split) 2021-06-24 18:19:09 <-- visl (sid453966@user/visl) has quit (*.net *.split) 2021-06-24 18:19:09 <-- PotatoGim_ (sid99505@id-99505.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:10 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (*.net *.split) 2021-06-24 18:19:10 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (*.net *.split) 2021-06-24 18:19:10 <-- MrElendig (~Urist@archlinux/op/MrElendig) has quit (*.net *.split) 2021-06-24 18:19:10 <-- euandreh (~euandreh@2804:14c:33:9fe5:c1e6:8279:92e9:57ec) has quit (*.net *.split) 2021-06-24 18:19:10 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (*.net *.split) 2021-06-24 18:19:10 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (*.net *.split) 2021-06-24 18:19:10 <-- zmt01 (~zmt00@user/zmt00) has quit (*.net *.split) 2021-06-24 18:19:10 <-- Hafydd (~Hafydd@user/hafydd) has quit (*.net *.split) 2021-06-24 18:19:10 <-- frost (~frost@59.71.242.236) has quit (*.net *.split) 2021-06-24 18:19:10 <-- glasspelican (~quassel@2607:5300:201:3100::325) has quit (*.net *.split) 2021-06-24 18:19:10 <-- emerent (~quassel@p200300cd5703bb5dba27ebfffed28a59.dip0.t-ipconnect.de) has quit (*.net *.split) 2021-06-24 18:19:10 <-- starblue3 (~juergen@dslb-088-078-101-107.088.078.pools.vodafone-ip.de) has quit (*.net *.split) 2021-06-24 18:19:10 <-- tsal (~tsal@user/tsal) has quit (*.net *.split) 2021-06-24 18:19:10 <-- yourfate (~yourfate@cabal.yourfate.org) has quit (*.net *.split) 2021-06-24 18:19:10 <-- Maker (~maker@70.18.215.45) has quit (*.net *.split) 2021-06-24 18:19:10 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (*.net *.split) 2021-06-24 18:19:11 <-- cecilgol (~cecilgol@user/cecilgol) has quit (*.net *.split) 2021-06-24 18:19:11 <-- Liexei (Liexei@user/liexei) has quit (*.net *.split) 2021-06-24 18:19:11 <-- mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has quit (*.net *.split) 2021-06-24 18:19:11 <-- PonzoSporrigan (~ghost64@user/ghost64) has quit (*.net *.split) 2021-06-24 18:19:11 <-- ljoonal (~ljoonal@user/ljoonal) has quit (*.net *.split) 2021-06-24 18:19:11 <-- cation (cation@user/cation) has quit (*.net *.split) 2021-06-24 18:19:11 <-- tsdh (~user@j289989.servers.jiffybox.net) has quit (*.net *.split) 2021-06-24 18:19:11 <-- ChanServ (ChanServ@services.libera.chat) has quit (*.net *.split) 2021-06-24 18:19:11 <-- penguino (~mrpenguin@user/mrpenguin) has quit (*.net *.split) 2021-06-24 18:19:11 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (*.net *.split) 2021-06-24 18:19:11 <-- hendursaga (~weechat@user/hendursaga) has quit (*.net *.split) 2021-06-24 18:19:11 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (*.net *.split) 2021-06-24 18:19:11 <-- thing (~thing@user/thing) has quit (*.net *.split) 2021-06-24 18:19:11 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (*.net *.split) 2021-06-24 18:19:12 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (*.net *.split) 2021-06-24 18:19:12 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (*.net *.split) 2021-06-24 18:19:12 <-- est31 (~est31@user/est31) has quit (*.net *.split) 2021-06-24 18:19:12 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (*.net *.split) 2021-06-24 18:19:12 <-- Erutuon (~Erutuon@user/erutuon) has quit (*.net *.split) 2021-06-24 18:19:12 <-- SiegeLord (~sl@user/siegelord) has quit (*.net *.split) 2021-06-24 18:19:12 <-- vicfred (~vicfred@user/vicfred) has quit (*.net *.split) 2021-06-24 18:19:12 <-- IanWizard (~ianwizard@user/ianwizard) has quit (*.net *.split) 2021-06-24 18:19:12 <-- LogicAside (~LogicAsid@user/logicaside) has quit (*.net *.split) 2021-06-24 18:19:12 <-- dirbaio2 (~dirbaio@nsmbhd.net) has quit (*.net *.split) 2021-06-24 18:19:12 <-- willcl_ark (~quassel@user/willcl-ark/x-8282106) has quit (*.net *.split) 2021-06-24 18:19:12 <-- LawnGnome (~LawnGnome@user/lawngnome) has quit (*.net *.split) 2021-06-24 18:19:12 <-- kungp (~kungp@h-46-59-2-200.a230.priv.bahnhof.se) has quit (*.net *.split) 2021-06-24 18:19:13 <-- flynn (~mcbloch@user/flynn) has quit (*.net *.split) 2021-06-24 18:19:13 <-- ColdKeyboard (~ColdKeybo@user/coldkeyboard) has quit (*.net *.split) 2021-06-24 18:19:13 <-- neurocyte (~neurocyte@user/neurocyte) has quit (*.net *.split) 2021-06-24 18:19:13 <-- kevr (~kevr@user/kevr) has quit (*.net *.split) 2021-06-24 18:19:13 <-- zeden (~zeden@user/zeden) has quit (*.net *.split) 2021-06-24 18:19:13 <-- htd (~htd@095129203062.t4.akis.net) has quit (*.net *.split) 2021-06-24 18:19:13 <-- discipulus (~discipulu@user/discipulus) has quit (*.net *.split) 2021-06-24 18:19:13 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (*.net *.split) 2021-06-24 18:19:14 <-- xse (~xse@user/xse) has quit (*.net *.split) 2021-06-24 18:19:14 <-- SoF (~skius@user/skius) has quit (*.net *.split) 2021-06-24 18:19:14 <-- Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has quit (*.net *.split) 2021-06-24 18:19:14 <-- justK (~justache@user/justache) has quit (*.net *.split) 2021-06-24 18:19:14 <-- bahamat (~bahamat@64.30.129.150) has quit (*.net *.split) 2021-06-24 18:19:14 <-- mattgirv (quassel@apps.fossgalaxy.com) has quit (*.net *.split) 2021-06-24 18:19:14 <-- trh (~trh@hera.debugco.de) has quit (*.net *.split) 2021-06-24 18:19:14 <-- HappyMan (~HappyMan@user/happyman) has quit (*.net *.split) 2021-06-24 18:19:15 <-- jngbsn (~jngbsn@user/jngbsn) has quit (*.net *.split) 2021-06-24 18:19:15 <-- RayS (~raysl@sdf1.xen.prgmr.com) has quit (*.net *.split) 2021-06-24 18:19:15 <-- feldim2425 (~feldim242@178-191-253-8.adsl.highway.telekom.at) has quit (*.net *.split) 2021-06-24 18:19:15 <-- talin (~unknown@hydra.org) has quit (*.net *.split) 2021-06-24 18:19:15 <-- sm2n (~sm2n@user/sm2n) has quit (*.net *.split) 2021-06-24 18:19:15 <-- synthmeat (~synthmeat@user/synthmeat) has quit (*.net *.split) 2021-06-24 18:19:15 <-- jermz (~jermz@user/jermz) has quit (*.net *.split) 2021-06-24 18:19:15 <-- Evergreen (~me@user/evergreen) has quit (*.net *.split) 2021-06-24 18:19:15 <-- zyeri (~zyeri@tilde.team) has quit (*.net *.split) 2021-06-24 18:19:15 <-- samuelbernardo (~samuelber@194.210.119.252) has quit (*.net *.split) 2021-06-24 18:19:15 <-- cehteh (~ct@i59F4B960.versanet.de) has quit (*.net *.split) 2021-06-24 18:19:15 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (*.net *.split) 2021-06-24 18:19:16 <-- cdown (~cdown@163.114.131.1) has quit (*.net *.split) 2021-06-24 18:19:16 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (*.net *.split) 2021-06-24 18:19:16 <-- st (~ts@46.101.20.9) has quit (*.net *.split) 2021-06-24 18:19:16 <-- w1gz (~do@159.89.11.133) has quit (*.net *.split) 2021-06-24 18:19:16 <-- dece (~dece@dece.space) has quit (*.net *.split) 2021-06-24 18:19:16 <-- imm_ (~imm_@user/imm/x-3405860) has quit (*.net *.split) 2021-06-24 18:19:16 <-- tg (~tg@rockylinux/infra/tg) has quit (*.net *.split) 2021-06-24 18:19:16 <-- Elladan (~elladan@user/elladan) has quit (*.net *.split) 2021-06-24 18:19:16 <-- x_kuru (~xkuru@user/xkuru) has quit (*.net *.split) 2021-06-24 18:19:17 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (*.net *.split) 2021-06-24 18:19:17 <-- aquijoule__ (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (*.net *.split) 2021-06-24 18:19:17 <-- snalty (~Shhh@user/snalty) has quit (*.net *.split) 2021-06-24 18:19:17 <-- smarton (~smarton@121407.xyz) has quit (*.net *.split) 2021-06-24 18:19:17 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (*.net *.split) 2021-06-24 18:19:17 <-- death916 (~death916@user/death916) has quit (*.net *.split) 2021-06-24 18:19:17 <-- maurer (~maurer@user/maurer) has quit (*.net *.split) 2021-06-24 18:19:17 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (*.net *.split) 2021-06-24 18:19:17 <-- mteo (francis@user/francis) has quit (*.net *.split) 2021-06-24 18:19:17 <-- ozarker (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has quit (*.net *.split) 2021-06-24 18:19:17 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:17 <-- francis (francis@user/francis) has quit (*.net *.split) 2021-06-24 18:19:18 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (*.net *.split) 2021-06-24 18:19:18 <-- lorimer (~lorimer@user/lorimer) has quit (*.net *.split) 2021-06-24 18:19:18 <-- ninjin (~ninjin@user/ninjin) has quit (*.net *.split) 2021-06-24 18:19:18 <-- ac5tin (~ac5tin@user/ac5tin) has quit (*.net *.split) 2021-06-24 18:19:18 <-- davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has quit (*.net *.split) 2021-06-24 18:19:18 <-- RemiYuko (~licht@user/akechishiro) has quit (*.net *.split) 2021-06-24 18:19:18 <-- Disconsented (~quassel@107.170.227.20) has quit (*.net *.split) 2021-06-24 18:19:18 <-- rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has quit (*.net *.split) 2021-06-24 18:19:18 <-- jinsun (~quassel@user/jinsun) has quit (*.net *.split) 2021-06-24 18:19:18 <-- Trieste (T@user/pilgrim) has quit (*.net *.split) 2021-06-24 18:19:18 <-- javivf (~javivf@79.108.212.152.dyn.user.ono.com) has quit (*.net *.split) 2021-06-24 18:19:18 <-- Maxdamantus (~Maxdamant@user/maxdamantus) has quit (*.net *.split) 2021-06-24 18:19:18 <-- luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has quit (*.net *.split) 2021-06-24 18:19:18 <-- Mutabah (~tpg@124.189.161.194) has quit (*.net *.split) 2021-06-24 18:19:18 <-- schmillin (~schmillin@user/schmillin) has quit (*.net *.split) 2021-06-24 18:19:19 <-- doublesaiko (~saiko@crispy.dblsaiko.net) has quit (*.net *.split) 2021-06-24 18:19:19 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (*.net *.split) 2021-06-24 18:19:19 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:19 <-- nrr (sid20938@id-20938.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:19 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (*.net *.split) 2021-06-24 18:19:19 <-- tomboy64 (~tomboy64@user/tomboy64) has quit (*.net *.split) 2021-06-24 18:19:19 <-- mrkajetanp (~mrkajetan@2a01:4b00:ea36:6c00:7994:941c:3f5d:2b88) has quit (*.net *.split) 2021-06-24 18:19:19 <-- gbear605 (~gbear605@user/gbear605) has quit (*.net *.split) 2021-06-24 18:19:19 <-- sfackler (sid243132@id-243132.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:19 <-- seds (sid492514@user/seds) has quit (*.net *.split) 2021-06-24 18:19:19 <-- kron (~weechat@user/qaph) has quit (*.net *.split) 2021-06-24 18:19:19 <-- jai (~darkapex@user/darkapex) has quit (*.net *.split) 2021-06-24 18:19:19 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (*.net *.split) 2021-06-24 18:19:19 <-- debsan (~debsan@2800:810:471:2ee::1001) has quit (*.net *.split) 2021-06-24 18:19:20 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (*.net *.split) 2021-06-24 18:19:20 <-- llorllale (~llorllale@2607:9880:3a18:69:597:b5cf:3629:f483) has quit (*.net *.split) 2021-06-24 18:19:20 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (*.net *.split) 2021-06-24 18:19:20 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (*.net *.split) 2021-06-24 18:19:20 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:bbfc:1ba1:ffb3:62a) has quit (*.net *.split) 2021-06-24 18:19:20 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (*.net *.split) 2021-06-24 18:19:20 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (*.net *.split) 2021-06-24 18:19:20 <-- osa1 (~osa1@178.233.26.94) has quit (*.net *.split) 2021-06-24 18:19:20 <-- WinterStar (~IceLight@user/icelight) has quit (*.net *.split) 2021-06-24 18:19:20 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (*.net *.split) 2021-06-24 18:19:20 <-- xsperry (~as@user/xsperry) has quit (*.net *.split) 2021-06-24 18:19:20 <-- cinix (~cinix__@c-73-60-53-69.hsd1.nh.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:20 <-- moistphantom (~root@user/moistphantom) has quit (*.net *.split) 2021-06-24 18:19:20 <-- Nixx (~quassel@bulbasaur.sjorsgielen.nl) has quit (*.net *.split) 2021-06-24 18:19:20 <-- bertptrs (~quassel@user/bertptrs) has quit (*.net *.split) 2021-06-24 18:19:21 <-- Moomoc (~Moomoc@84.38.65.228) has quit (*.net *.split) 2021-06-24 18:19:21 <-- JanC (~janc@user/janc) has quit (*.net *.split) 2021-06-24 18:19:21 <-- mht (~mht@mht.wtf) has quit (*.net *.split) 2021-06-24 18:19:21 <-- aaronm04 (~user@user/aaronm04) has quit (*.net *.split) 2021-06-24 18:19:21 <-- ropes (~ropes@133.77.127.34.bc.googleusercontent.com) has quit (*.net *.split) 2021-06-24 18:19:21 <-- pie_bnc (~pie_bnc@user/pie/x-2818909) has quit (*.net *.split) 2021-06-24 18:19:21 <-- vancz (~vancz@user/vancz) has quit (*.net *.split) 2021-06-24 18:19:21 <-- wrycode (~wrycode@168.235.110.39) has quit (*.net *.split) 2021-06-24 18:19:21 <-- fanf (~fanf@90.251.70.141) has quit (*.net *.split) 2021-06-24 18:19:21 <-- Roughy (~mdaw45ns@user/roughy) has quit (*.net *.split) 2021-06-24 18:19:22 <-- Shell (~shell@user/shell) has quit (*.net *.split) 2021-06-24 18:19:22 <-- fritschy (~fritschy@b2b-109-90-32-97.unitymedia.biz) has quit (*.net *.split) 2021-06-24 18:19:22 <-- Allegretto (~allegrett@fibhost-67-230-113.fibernet.hu) has quit (*.net *.split) 2021-06-24 18:19:22 <-- Arnavion (arnavion@user/arnavion) has quit (*.net *.split) 2021-06-24 18:19:22 <-- smitop (~smitop@user/smitop) has quit (*.net *.split) 2021-06-24 18:19:22 <-- evalr2 (arnavion@user/arnavion) has quit (*.net *.split) 2021-06-24 18:19:22 <-- bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:23 <-- dfdx (~F@user/dfdx) has quit (*.net *.split) 2021-06-24 18:19:23 <-- adium (adium@user/adium) has quit (*.net *.split) 2021-06-24 18:19:23 <-- feliix42 (~felix@gibbs.uberspace.de) has quit (*.net *.split) 2021-06-24 18:19:23 <-- BlackDex (~blackdex@ori.vyus.nl) has quit (*.net *.split) 2021-06-24 18:19:23 <-- ckie (~ckie@user/cookie) has quit (*.net *.split) 2021-06-24 18:19:23 <-- biberu (~biberu@user/biberu) has quit (*.net *.split) 2021-06-24 18:19:23 <-- acowley (~acowley@c-68-83-22-43.hsd1.nj.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:23 <-- icebattle (~wayne@S010600fc8ddfd2b3.vc.shawcable.net) has quit (*.net *.split) 2021-06-24 18:19:23 <-- acro (~acro@user/acro) has quit (*.net *.split) 2021-06-24 18:19:23 <-- bihtori (harjuo@kapsi.fi) has quit (*.net *.split) 2021-06-24 18:19:23 <-- Alexendoo (~Alexendoo@macleod.io) has quit (*.net *.split) 2021-06-24 18:19:23 <-- eagleflo (~aku@eagleflow.fi) has quit (*.net *.split) 2021-06-24 18:19:24 <-- orzophile (~orzophile@2605:a601:aab5:ae01:250:56ff:febd:85ef) has quit (*.net *.split) 2021-06-24 18:19:24 <-- leah2 (~leah@vuxu.org) has quit (*.net *.split) 2021-06-24 18:19:24 <-- ThinkT510 (~auronanda@user/thinkt510) has quit (*.net *.split) 2021-06-24 18:19:24 <-- qoelet (~kumo@139.180.144.166) has quit (*.net *.split) 2021-06-24 18:19:24 <-- amk (~amk@176.61.106.150) has quit (*.net *.split) 2021-06-24 18:19:24 <-- az_ (~az0@user/az0) has quit (*.net *.split) 2021-06-24 18:19:24 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (*.net *.split) 2021-06-24 18:19:24 <-- waldo323__ (~waldo323@d149-67-45-83.clv.wideopenwest.com) has quit (*.net *.split) 2021-06-24 18:19:24 <-- jbit (~jbit@jbit.net) has quit (*.net *.split) 2021-06-24 18:19:24 <-- terrorjack (~terrorjac@ec2-54-95-39-30.ap-northeast-1.compute.amazonaws.com) has quit (*.net *.split) 2021-06-24 18:19:25 <-- Forkk (forkk@2600:3c00::f03c:91ff:fe84:de4d) has quit (*.net *.split) 2021-06-24 18:19:25 <-- rypervenche (~rypervenc@user/rypervenche) has quit (*.net *.split) 2021-06-24 18:19:25 <-- mandeep (uid394387@id-394387.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:25 <-- flipchan (~yumman@user/flipchan) has quit (*.net *.split) 2021-06-24 18:19:25 <-- voker57_ (~quassel@2a06:1700:0:24::) has quit (*.net *.split) 2021-06-24 18:19:25 <-- kline (~freedom0@libera/staff/kline) has quit (*.net *.split) 2021-06-24 18:19:25 <-- habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (*.net *.split) 2021-06-24 18:19:25 <-- mjsir911 (~bnc@user/mjsir911) has quit (*.net *.split) 2021-06-24 18:19:25 <-- Xe (~cadey@tailscale/xe) has quit (*.net *.split) 2021-06-24 18:19:25 <-- cmagina (uid286142@user/cmagina) has quit (*.net *.split) 2021-06-24 18:19:25 <-- greizgh (~quassel@2001:41d0:8:5025::1) has quit (*.net *.split) 2021-06-24 18:19:25 <-- faxlore (sid505520@id-505520.highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:25 <-- phryk (~totallyno@user/phryk) has quit (*.net *.split) 2021-06-24 18:19:25 <-- swinnenb (~swinnenb@user/swinnenb) has quit (*.net *.split) 2021-06-24 18:19:26 <-- bradfier (~bradfier@user/bradfier) has quit (*.net *.split) 2021-06-24 18:19:26 <-- MichaelLong (~ml@user/michaellong) has quit (*.net *.split) 2021-06-24 18:19:26 <-- img (~img@user/img) has quit (*.net *.split) 2021-06-24 18:19:26 <-- Fairy97 (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has quit (*.net *.split) 2021-06-24 18:19:26 <-- canton7 (canton7@about/csharp/canton7) has quit (*.net *.split) 2021-06-24 18:19:26 <-- lopsided98 (~quassel@2601:18a:0:85e0:3a6f:1d2a:eb10:63b1) has quit (*.net *.split) 2021-06-24 18:19:26 <-- s1b1 (~s1b1@user/s1b1) has quit (*.net *.split) 2021-06-24 18:19:26 <-- skipwich (~skipwich@user/skipwich) has quit (*.net *.split) 2021-06-24 18:19:26 <-- cultpony (~cultpony@user/cultpony) has quit (*.net *.split) 2021-06-24 18:19:26 <-- darxun (sid504814@id-504814.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:26 <-- Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has quit (*.net *.split) 2021-06-24 18:19:26 <-- ding (~ding@2001:19f0:5:14c2:5400:2ff:fee0:a42c) has quit (*.net *.split) 2021-06-24 18:19:26 <-- chiastre (~chiastre@user/chiastre) has quit (*.net *.split) 2021-06-24 18:19:26 <-- jwardy (sid454028@id-454028.highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:26 <-- ME (~thement@user/me) has quit (*.net *.split) 2021-06-24 18:19:26 <-- explorier (~explorier@user/explorier) has quit (*.net *.split) 2021-06-24 18:19:26 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (*.net *.split) 2021-06-24 18:19:26 <-- t^ (~thomas@2001:41d0:2:a84:1::6) has quit (*.net *.split) 2021-06-24 18:19:26 <-- krjst (~krjst@2604:a880:800:c1::16b:8001) has quit (*.net *.split) 2021-06-24 18:19:26 <-- phundrak (~phundrak@82-65-91-105.subs.proxad.net) has quit (*.net *.split) 2021-06-24 18:19:26 <-- cross (~cross@spitfire.i.gajendra.net) has quit (*.net *.split) 2021-06-24 18:19:26 <-- UndeadLeech (~UndeadLee@165.227.76.134) has quit (*.net *.split) 2021-06-24 18:19:27 <-- paradaux (~quassel@2a01:4f8:c2c:be8b::1) has quit (*.net *.split) 2021-06-24 18:19:27 <-- timemage (timemage@user/timemage) has quit (*.net *.split) 2021-06-24 18:19:27 <-- redj (~quassel@bras-base-bchmpq5707w-grc-24-76-69-197-62.dsl.bell.ca) has quit (*.net *.split) 2021-06-24 18:19:27 <-- bluss (~bluss@user/bluss) has quit (*.net *.split) 2021-06-24 18:19:27 <-- jds (rpc@2600:3c00::f03c:91ff:fed5:10aa) has quit (*.net *.split) 2021-06-24 18:19:27 <-- binkers (~binkers@user/binkers) has quit (*.net *.split) 2021-06-24 18:19:27 <-- plluksie (~plluksie@89-75-127-15.dynamic.chello.pl) has quit (*.net *.split) 2021-06-24 18:19:27 <-- elichai2 (sid212594@id-212594.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:27 <-- integral (sid296274@user/integral) has quit (*.net *.split) 2021-06-24 18:19:27 <-- kkd (~kkd@2400:8902::f03c:92ff:feac:6d1) has quit (*.net *.split) 2021-06-24 18:19:27 <-- totoro (~totoro@user/totoro) has quit (*.net *.split) 2021-06-24 18:19:27 <-- tj (~tj@user/tj) has quit (*.net *.split) 2021-06-24 18:19:27 <-- mdf (mdf@hilla.kapsi.fi) has quit (*.net *.split) 2021-06-24 18:19:27 <-- DoubleAW (~DoubleAW@user/doubleaw) has quit (*.net *.split) 2021-06-24 18:19:28 <-- osse (~osse@zsh/user/osse) has quit (*.net *.split) 2021-06-24 18:19:28 <-- [code] (~Trey@www.td.wtf) has quit (*.net *.split) 2021-06-24 18:19:28 <-- manifolds_ (~manifolds@157.245.231.152) has quit (*.net *.split) 2021-06-24 18:19:28 <-- andytoshi (~apoelstra@s66-183-0-205.bc.hsia.telus.net) has quit (*.net *.split) 2021-06-24 18:19:28 <-- dvu (~danielvu@168.235.66.22) has quit (*.net *.split) 2021-06-24 18:19:28 <-- habnabit_ (habnabit@python/site-packages/habnabit) has quit (*.net *.split) 2021-06-24 18:19:28 <-- Polochon_street (~polochon@2001:41d0:a:64a5::1) has quit (*.net *.split) 2021-06-24 18:19:28 <-- maerwald (~maerwald@user/maerwald) has quit (*.net *.split) 2021-06-24 18:19:28 <-- Trollmann (~Trollmann@user/trollmann) has quit (*.net *.split) 2021-06-24 18:19:28 <-- marcel (~marcel@user/marcel) has quit (*.net *.split) 2021-06-24 18:19:28 <-- landerblom (~landerblo@45.77.66.162) has quit (*.net *.split) 2021-06-24 18:19:28 <-- eau (~chat@user/eau) has quit (*.net *.split) 2021-06-24 18:19:28 <-- rodd (~zrod@user/rodd) has quit (*.net *.split) 2021-06-24 18:19:28 <-- Zulikath (~zi@vmi584737.contaboserver.net) has quit (*.net *.split) 2021-06-24 18:19:28 <-- brb (~brb@user/brb) has quit (*.net *.split) 2021-06-24 18:19:29 <-- Blub\0 (~wry@eperm.errno.eu) has quit (*.net *.split) 2021-06-24 18:19:29 <-- lhx (~lhx@45.76.230.247) has quit (*.net *.split) 2021-06-24 18:19:29 <-- _________ (~nobody@user//x-7881368) has quit (*.net *.split) 2021-06-24 18:19:29 <-- haliucinas (~haliucina@5.20.153.21) has quit (*.net *.split) 2021-06-24 18:19:29 <-- koolazer (~koo@user/koolazer) has quit (*.net *.split) 2021-06-24 18:19:29 <-- rk4 (~r@user/rk4) has quit (*.net *.split) 2021-06-24 18:19:29 <-- tribaal (~tribaal@ubuntu/member/tribaal) has quit (*.net *.split) 2021-06-24 18:19:29 <-- mebus (~mebus@2a00:8a60:e019:10de::ac22) has quit (*.net *.split) 2021-06-24 18:19:29 <-- kchibisov (~kchibisov@li2157-210.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:29 <-- mstruebing (~maex@2001:41d0:8:93c7::1) has quit (*.net *.split) 2021-06-24 18:19:29 <-- make (~mark@shell.off.net) has quit (*.net *.split) 2021-06-24 18:19:29 <-- ap5 (~inf@2a01:4f9:c010:bd02::1) has quit (*.net *.split) 2021-06-24 18:19:29 <-- Lumpio- (~matti@dsl-lhtbng12-54fa7c-206.dhcp.inet.fi) has quit (*.net *.split) 2021-06-24 18:19:29 <-- cbreaker (~zenmaster@53.ip-51-38-71.eu) has quit (*.net *.split) 2021-06-24 18:19:29 <-- mcint (mcint@user/mcint) has quit (*.net *.split) 2021-06-24 18:19:29 <-- capitol (~capitol@login.hackeriet.no) has quit (*.net *.split) 2021-06-24 18:19:30 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (*.net *.split) 2021-06-24 18:19:30 <-- thecatster_ (~thecatste@user/thecatster) has quit (*.net *.split) 2021-06-24 18:19:30 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (*.net *.split) 2021-06-24 18:19:30 <-- psydroid (~psydroidm@user/psydroid) has quit (*.net *.split) 2021-06-24 18:19:30 <-- kadoban (~kadoban@user/kadoban) has quit (*.net *.split) 2021-06-24 18:19:30 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (*.net *.split) 2021-06-24 18:19:30 <-- siraben (~siraben@user/siraben) has quit (*.net *.split) 2021-06-24 18:19:30 <-- natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (*.net *.split) 2021-06-24 18:19:31 <-- themaxdavitt (sid433050@user/themaxdavitt) has quit (*.net *.split) 2021-06-24 18:19:31 <-- anthraxx (~anthraxx@archlinux/developer/anthraxx) has quit (*.net *.split) 2021-06-24 18:19:31 <-- lumgwada (~lumgwada@101.181.126.104) has quit (*.net *.split) 2021-06-24 18:19:31 <-- nl3dee (~nl3dee@ns388898.ip-176-31-255.eu) has quit (*.net *.split) 2021-06-24 18:19:31 <-- danieldg (~me@user/danieldg) has quit (*.net *.split) 2021-06-24 18:19:31 <-- kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has quit (*.net *.split) 2021-06-24 18:19:31 <-- [fspy] (~fspy@user/fspy) has quit (*.net *.split) 2021-06-24 18:19:31 <-- kehvo (~kehvo@user/kehvo) has quit (*.net *.split) 2021-06-24 18:19:31 <-- mwehner (~mwehner@li910-8.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:31 <-- beneth (~beneth@ip208.ip-54-36-198.eu) has quit (*.net *.split) 2021-06-24 18:19:31 <-- sauce (~sauce@omae.wa.mou.shindei.ru) has quit (*.net *.split) 2021-06-24 18:19:32 <-- daex (~daex@user/daex) has quit (*.net *.split) 2021-06-24 18:19:32 <-- ^[ (~user@user//x-8473491) has quit (*.net *.split) 2021-06-24 18:19:32 <-- aweinstock (~aweinstoc@cpe-67-248-65-250.nycap.res.rr.com) has quit (*.net *.split) 2021-06-24 18:19:32 <-- dos (~dos@dosowisko.net) has quit (*.net *.split) 2021-06-24 18:19:32 <-- pounce (~pounce@facebook/engineering/pounce) has quit (*.net *.split) 2021-06-24 18:19:32 <-- amling (~amling@98.45.168.51) has quit (*.net *.split) 2021-06-24 18:19:32 <-- ario_ (~ario@159.65.220.102) has quit (*.net *.split) 2021-06-24 18:19:32 <-- syntaxman (~wade@li227-215.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:32 <-- de-vri-es (~de-vri-es@voyager.de-vri.es) has quit (*.net *.split) 2021-06-24 18:19:32 <-- sujeet (sujeet@freeboson.org) has quit (*.net *.split) 2021-06-24 18:19:32 <-- cole (~cole@user/cole) has quit (*.net *.split) 2021-06-24 18:19:32 <-- zipper (~luv_panda@user/jellie) has quit (*.net *.split) 2021-06-24 18:19:32 <-- fitzsim (~user@69-165-165-189.dsl.teksavvy.com) has quit (*.net *.split) 2021-06-24 18:19:32 <-- koishi (uid160860@wikimedia/Stang) has quit (*.net *.split) 2021-06-24 18:19:32 <-- nickster (~nickster@67.207.91.6) has quit (*.net *.split) 2021-06-24 18:19:32 <-- routeveg (~lee@197.ip-51-195-136.eu) has quit (*.net *.split) 2021-06-24 18:19:32 <-- kilobyte22 (~kilobyte@banana-new.kilobyte22.de) has quit (*.net *.split) 2021-06-24 18:19:32 <-- V (~v@anomalous.eu) has quit (*.net *.split) 2021-06-24 18:19:32 <-- acid (~acid@user/acid) has quit (*.net *.split) 2021-06-24 18:19:32 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (*.net *.split) 2021-06-24 18:19:33 <-- haritz (~hrtz@user/haritz) has quit (*.net *.split) 2021-06-24 18:19:33 <-- fjmorazan (~quassel@user/fjmorazan) has quit (*.net *.split) 2021-06-24 18:19:33 <-- andreas303 (andreas303@ip227.orange.bnc4free.com) has quit (*.net *.split) 2021-06-24 18:19:33 <-- nickmass (~nickmass@nickmass.com) has quit (*.net *.split) 2021-06-24 18:19:33 <-- noonien (~noonien@user/noonien) has quit (*.net *.split) 2021-06-24 18:19:33 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (*.net *.split) 2021-06-24 18:19:33 <-- georgemp (~georgemp@aemon.roguemonkeys.com) has quit (*.net *.split) 2021-06-24 18:19:33 <-- yupyup (sid228030@id-228030.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:33 <-- aelien27 (~cdolan@024-205-153-145.res.spectrum.com) has quit (*.net *.split) 2021-06-24 18:19:33 <-- cbmuser (~glaubitz@zlogin2.physik.fu-berlin.de) has quit (*.net *.split) 2021-06-24 18:19:33 <-- transistor (~trans@S01060011329d4e55.vc.shawcable.net) has quit (*.net *.split) 2021-06-24 18:19:33 <-- naur (naur@user/naur) has quit (*.net *.split) 2021-06-24 18:19:33 <-- webstrand (~webstrand@user/webstrand) has quit (*.net *.split) 2021-06-24 18:19:33 <-- hirish (~hirish@ip85.ip-137-74-20.eu) has quit (*.net *.split) 2021-06-24 18:19:34 <-- Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has quit (*.net *.split) 2021-06-24 18:19:34 <-- Ekho (~Ekho@user/ekho) has quit (*.net *.split) 2021-06-24 18:19:34 <-- s0ph0s (~s0ph0s@user/s0ph0s) has quit (*.net *.split) 2021-06-24 18:19:34 <-- zhamm_ (~zhamm@unbutte.red) has quit (*.net *.split) 2021-06-24 18:19:34 <-- Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has quit (*.net *.split) 2021-06-24 18:19:34 <-- fsg (fsg@2600:3c00::f03c:92ff:fec6:da18) has quit (*.net *.split) 2021-06-24 18:19:34 <-- dhedberg (david@sugi.qzx.se) has quit (*.net *.split) 2021-06-24 18:19:34 <-- mike-burns (~mike-burn@safeword.mike-burns.com) has quit (*.net *.split) 2021-06-24 18:19:34 <-- n1000 (~n1000@user/n1000) has quit (*.net *.split) 2021-06-24 18:19:35 <-- saikub (saikub@saikub.fig.ircnow.org) has quit (*.net *.split) 2021-06-24 18:19:35 <-- saintdev (sid25343@id-25343.charlton.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:35 <-- obviyus (sid415299@user/obviyus) has quit (*.net *.split) 2021-06-24 18:19:35 <-- etch (~etch@user/etch) has quit (*.net *.split) 2021-06-24 18:19:35 <-- Jokler (~Jokler@jokler.xyz) has quit (*.net *.split) 2021-06-24 18:19:35 <-- mmk2410 (~mmk2410@user/mmk2410) has quit (*.net *.split) 2021-06-24 18:19:35 <-- vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has quit (*.net *.split) 2021-06-24 18:19:35 <-- ebb (ebb@user/ebb) has quit (*.net *.split) 2021-06-24 18:19:35 <-- nyanotech (~kitty@meow.catgirl.solutions) has quit (*.net *.split) 2021-06-24 18:19:35 <-- histrio (~histrio@109.234.34.168) has quit (*.net *.split) 2021-06-24 18:19:35 <-- zeroed (~zeroed@user/zeroed) has quit (*.net *.split) 2021-06-24 18:19:36 <-- necronian (~necronian@niflheim.prpl.space) has quit (*.net *.split) 2021-06-24 18:19:36 <-- neptunepink (~neptune@mail.digitalkingdom.org) has quit (*.net *.split) 2021-06-24 18:19:36 <-- troido (~troido@tilde.town) has quit (*.net *.split) 2021-06-24 18:19:37 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (*.net *.split) 2021-06-24 18:19:37 <-- DeeEff_ (~deeeff@user/deeeff) has quit (*.net *.split) 2021-06-24 18:19:37 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (*.net *.split) 2021-06-24 18:19:37 <-- paperManu (~paperManu@138.197.128.151) has quit (*.net *.split) 2021-06-24 18:19:37 <-- haakon (~haakonn@82.196.8.209) has quit (*.net *.split) 2021-06-24 18:19:37 <-- andi_ (~andi@user/andi/x-3467420) has quit (*.net *.split) 2021-06-24 18:19:37 <-- tempest (~ashe@2607:5501:3000:1d3f::2) has quit (*.net *.split) 2021-06-24 18:19:37 <-- robertm (robertm@rojoma.com) has quit (*.net *.split) 2021-06-24 18:19:37 <-- relrod (~relrod@redhat/ansible.staff.relrod) has quit (*.net *.split) 2021-06-24 18:19:37 <-- tcole_ (~tcole@user/tcole) has quit (*.net *.split) 2021-06-24 18:19:37 <-- demize (kyrias@archlinux/developer/demize) has quit (*.net *.split) 2021-06-24 18:19:37 <-- Ryozuki (~Ryozuki@user/ryozuki) has quit (*.net *.split) 2021-06-24 18:19:37 <-- PorkrollPosadist (~PorkrollP@matapacos.dog) has quit (*.net *.split) 2021-06-24 18:19:37 <-- pyfisch (thelounge@user/pyfisch) has quit (*.net *.split) 2021-06-24 18:19:38 <-- la_mettrie (~rimrunner@2a01:4f9:c010:3051::1) has quit (*.net *.split) 2021-06-24 18:19:38 <-- Kirjava (~cake@user/kirjava) has quit (*.net *.split) 2021-06-24 18:19:38 <-- kori (kori@user/kori) has quit (*.net *.split) 2021-06-24 18:19:38 <-- dkeohane (~dkeohane@ec2-18-189-29-140.us-east-2.compute.amazonaws.com) has quit (*.net *.split) 2021-06-24 18:19:38 <-- acnebs (~acnebs@2604:a880:400:d0::1a64:c001) has quit (*.net *.split) 2021-06-24 18:19:38 <-- hwrd (sid64402@id-64402.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:38 <-- edm (sid147314@id-147314.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:38 <-- mindfreeze (sid250931@user/mindfreeze) has quit (*.net *.split) 2021-06-24 18:19:38 <-- clinth (sid17558@user/clinth) has quit (*.net *.split) 2021-06-24 18:19:38 <-- stchris (~chris@2001:19f0:6c01:fd4:5400:2ff:feb9:c0b0) has quit (*.net *.split) 2021-06-24 18:19:38 <-- CuriousErnestBro (~CuriousEr@user/curiousernestbro) has quit (*.net *.split) 2021-06-24 18:19:38 <-- r0bby (r0bby@user/r0bby) has quit (*.net *.split) 2021-06-24 18:19:38 <-- eriol (~eriol@user/eriol) has quit (*.net *.split) 2021-06-24 18:19:38 <-- Geekingfrog (~geekingfr@li2156-64.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:38 <-- marienz (~marienz@libera/staff/marienz) has quit (*.net *.split) 2021-06-24 18:19:38 <-- NightMonkey (~NightMonk@user/nightmonkey) has quit (*.net *.split) 2021-06-24 18:19:38 <-- vup (~~~~@46.101.193.235) has quit (*.net *.split) 2021-06-24 18:19:38 <-- decartes (uid240036@id-240036.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:38 <-- Walther (walther@kapsi.fi) has quit (*.net *.split) 2021-06-24 18:19:38 <-- Tv_ (uid62079@user/tv/x-3144562) has quit (*.net *.split) 2021-06-24 18:19:38 <-- Windfisch (~Windfisch@user/windfisch) has quit (*.net *.split) 2021-06-24 18:19:39 <-- ecobos (sid133554@user/ecobos) has quit (*.net *.split) 2021-06-24 18:19:39 <-- aoei (aoei@nethackscoreboard/aoei) has quit (*.net *.split) 2021-06-24 18:19:39 <-- pedrocr (~pedrocr@user/pedrocr) has quit (*.net *.split) 2021-06-24 18:19:39 <-- tux3 (~tux3@user/tux3) has quit (*.net *.split) 2021-06-24 18:19:39 <-- lithammer (~lithammer@2a02:2770::21a:4aff:fe88:c18d) has quit (*.net *.split) 2021-06-24 18:19:39 <-- Freaky (~freaky@user/freaky) has quit (*.net *.split) 2021-06-24 18:19:39 <-- jtdowney (~jtdowney@user/jtdowney) has quit (*.net *.split) 2021-06-24 18:19:39 <-- oranges (~oranges@jumphost.oranges.net.nz) has quit (*.net *.split) 2021-06-24 18:19:39 <-- gemelen (~gemelen@zooey.gemelen.net) has quit (*.net *.split) 2021-06-24 18:19:39 <-- TallonRain (sid214799@user/tallonrain) has quit (*.net *.split) 2021-06-24 18:19:39 <-- hendi (sid489601@id-489601.tooting.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:39 <-- Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has quit (*.net *.split) 2021-06-24 18:19:40 <-- nemo (nemo@hedgewars/dev/nemo) has quit (*.net *.split) 2021-06-24 18:19:40 <-- Gaelan (~gaelan@user/gaelan) has quit (*.net *.split) 2021-06-24 18:19:40 <-- pragma- (~chaos@user/pragmatic-chaos) has quit (*.net *.split) 2021-06-24 18:19:40 <-- crest (~quassel@user/crest) has quit (*.net *.split) 2021-06-24 18:19:40 <-- WeaselSoup (~bigorneau@user/weaselsoup) has quit (*.net *.split) 2021-06-24 18:19:40 <-- fkrauthan (~fkrauthan@user/fkrauthan) has quit (*.net *.split) 2021-06-24 18:19:40 <-- hays (rootvegeta@fsf/member/hays) has quit (*.net *.split) 2021-06-24 18:19:40 <-- hiccupmaster (~edvinbasi@edvinbasil.com) has quit (*.net *.split) 2021-06-24 18:19:40 <-- edr (~edr@user/edr) has quit (*.net *.split) 2021-06-24 18:19:40 <-- CommunistWolf (~gulag@user/communistwolf) has quit (*.net *.split) 2021-06-24 18:19:41 <-- croax (9593c976ee@ghost.pepta.net) has quit (*.net *.split) 2021-06-24 18:19:41 <-- Kabouik (~Kabouik@user/kabouik) has quit (*.net *.split) 2021-06-24 18:19:41 <-- rtpg (sid443069@id-443069.charlton.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:41 <-- avu (~jan@user/avu) has quit (*.net *.split) 2021-06-24 18:19:41 <-- hubvu (sid495858@id-495858.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:41 <-- extmind (~lars@quasar.extmind.de) has quit (*.net *.split) 2021-06-24 18:19:41 <-- asynkron (sid433195@id-433195.charlton.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:41 <-- beanzilla (beanzilla@user/beanzilla) has quit (*.net *.split) 2021-06-24 18:19:41 <-- peng0in (~peng0in@skyoasis.de) has quit (*.net *.split) 2021-06-24 18:19:41 <-- _0x1d3 (sid43116@id-43116.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:41 <-- thican (~thican@megaman.thican.net) has quit (*.net *.split) 2021-06-24 18:19:41 <-- koon (johan@slash24.se) has quit (*.net *.split) 2021-06-24 18:19:42 <-- hoistbypetard (hoistbypet@user/hoistbypetard) has quit (*.net *.split) 2021-06-24 18:19:42 <-- bronsen (~bronsen@2a04:d480:0:1::3) has quit (*.net *.split) 2021-06-24 18:19:42 <-- Alex[m]123456715 (~randomstr@2001:470:69fc:105::47f6) has quit (*.net *.split) 2021-06-24 18:19:42 <-- RedCrab (~Red_Crab@user/redcrab) has quit (*.net *.split) 2021-06-24 18:19:42 <-- lisq (~quassel@lis.moe) has quit (*.net *.split) 2021-06-24 18:19:42 <-- farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has quit (*.net *.split) 2021-06-24 18:19:43 <-- fooker (~fooker@2001:638:301:11a3::6) has quit (*.net *.split) 2021-06-24 18:19:43 <-- darkapex (uid360049@user/darkapex) has quit (*.net *.split) 2021-06-24 18:19:43 <-- cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:43 <-- dmc (~dmc@archlinux/trusteduser/polyzen) has quit (*.net *.split) 2021-06-24 18:19:43 <-- DTE (~DTE@nat-pool-fab-t.redhat.com) has quit (*.net *.split) 2021-06-24 18:19:43 <-- zaszi (~zaszi@user/zaszi) has quit (*.net *.split) 2021-06-24 18:19:43 <-- roguelazer (~jbrown@sietchtabr.roguelazer.net) has quit (*.net *.split) 2021-06-24 18:19:43 <-- winter (~quassel@user/winter) has quit (*.net *.split) 2021-06-24 18:19:44 <-- dalcde (dec41@pip.srcf.societies.cam.ac.uk) has quit (*.net *.split) 2021-06-24 18:19:44 <-- dwt_ (~dwt_@c-98-200-58-177.hsd1.tx.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:44 <-- ruru4143 (~quassel@vmi444754.contaboserver.net) has quit (*.net *.split) 2021-06-24 18:19:44 <-- lohn2 (~Lohn@144.76.18.70) has quit (*.net *.split) 2021-06-24 18:19:44 <-- kev009 (~quassel@69.160.37.57) has quit (*.net *.split) 2021-06-24 18:19:44 <-- asm (~alexander@user/asm) has quit (*.net *.split) 2021-06-24 18:19:44 <-- p2-mate (~p2@emantra.psychaos.be) has quit (*.net *.split) 2021-06-24 18:19:44 <-- Timelord (~TL@64-252-202-134.lightspeed.jcsnms.sbcglobal.net) has quit (*.net *.split) 2021-06-24 18:19:45 <-- j`ey (~joey@user/jey/x-2681904) has quit (*.net *.split) 2021-06-24 18:19:45 <-- bsdbandit (~bwell@users.757.org) has quit (*.net *.split) 2021-06-24 18:19:45 <-- magik (~green@ec2-35-163-132-133.us-west-2.compute.amazonaws.com) has quit (*.net *.split) 2021-06-24 18:19:45 <-- chlvr (~chlvr@li1384-148.members.linode.com) has quit (*.net *.split) 2021-06-24 18:19:45 <-- upb (~cmpxchg@intrusion.software) has quit (*.net *.split) 2021-06-24 18:19:45 <-- Gottox (~Gottox@vm3.s01.de) has quit (*.net *.split) 2021-06-24 18:19:45 <-- mwbrown (~mwbrown@user/mwbrown) has quit (*.net *.split) 2021-06-24 18:19:45 <-- vivia (~vivia@coaxion.net) has quit (*.net *.split) 2021-06-24 18:19:45 <-- lifeless (~robertc@168.92-220-19.customer.lyse.net) has quit (*.net *.split) 2021-06-24 18:19:45 <-- sensille (~arne@dsnsi.rzone.de) has quit (*.net *.split) 2021-06-24 18:19:45 <-- audron (~audron@jupiter.cocaine.farm) has quit (*.net *.split) 2021-06-24 18:19:45 <-- SIben (~SIben@ns3106586.ip-5-135-191.eu) has quit (*.net *.split) 2021-06-24 18:19:45 <-- mrus (~mrus@149.28.61.155) has quit (*.net *.split) 2021-06-24 18:19:45 <-- luca0N (~luca0N@nautilus.luca0n.com) has quit (*.net *.split) 2021-06-24 18:19:45 <-- nitrix (~nitrix@user/nitrix) has quit (*.net *.split) 2021-06-24 18:19:46 <-- llinguini (sid257922@id-257922.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:46 <-- jsb (~jsb@jakob.dev) has quit (*.net *.split) 2021-06-24 18:19:46 <-- mattyb (~matt@user/mattyb) has quit (*.net *.split) 2021-06-24 18:19:46 <-- res0nat0r (~Fletch@dia.whatbox.ca) has quit (*.net *.split) 2021-06-24 18:19:46 <-- remedan (~remedan@balak.me) has quit (*.net *.split) 2021-06-24 18:19:46 <-- dozn (uid249292@user/dozn) has quit (*.net *.split) 2021-06-24 18:19:46 <-- bwolf (sid464866@stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:46 <-- barometz (~dvanb@i117058.upc-i.chello.nl) has quit (*.net *.split) 2021-06-24 18:19:46 <-- webmind (~webmind@user/webmind) has quit (*.net *.split) 2021-06-24 18:19:46 <-- alxbl (~alex@cortex.segfault.me) has quit (*.net *.split) 2021-06-24 18:19:46 <-- murr4y (ali@user/murr4y) has quit (*.net *.split) 2021-06-24 18:19:46 <-- mgocobachi (~m@ancrae.com) has quit (*.net *.split) 2021-06-24 18:19:46 <-- nCrazed (~nCrazed@edvin.io) has quit (*.net *.split) 2021-06-24 18:19:46 <-- Aorimn (tc@giboulees.net) has quit (*.net *.split) 2021-06-24 18:19:46 <-- mauli (~mauli@maulware.com) has quit (*.net *.split) 2021-06-24 18:19:46 <-- parazyd (~parazyd@devuan/developer/parazyd) has quit (*.net *.split) 2021-06-24 18:19:46 <-- towel_ (~towel@user/towel) has quit (*.net *.split) 2021-06-24 18:19:46 <-- dmvrtx (~dmvrtx@znc.dmvrtx.me) has quit (*.net *.split) 2021-06-24 18:19:46 <-- pingiun (~jelle@user/pingiun) has quit (*.net *.split) 2021-06-24 18:19:46 <-- gbmor (ben@gbmor.dev) has quit (*.net *.split) 2021-06-24 18:19:46 <-- SergioB (~Sergio@2001:19f0:ac01:371:5400:ff:fe5b:d2b1) has quit (*.net *.split) 2021-06-24 18:19:47 <-- r3v2d0g (sid478327@highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:47 <-- Momentum (momentum@tilde.team) has quit (*.net *.split) 2021-06-24 18:19:47 <-- glowcoil (sid3405@id-3405.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:47 <-- taktoa[c] (sid282096@id-282096.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:47 <-- Byteflux (~byte@byteflux.net) has quit (*.net *.split) 2021-06-24 18:19:47 <-- Jazzah (~jazz@user/jazzah) has quit (*.net *.split) 2021-06-24 18:19:47 <-- nox (sid3872@highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:47 <-- substack (~substack@104.131.0.235) has quit (*.net *.split) 2021-06-24 18:19:47 <-- pupskuchen (~pupskuche@user/pupskuchen) has quit (*.net *.split) 2021-06-24 18:19:48 <-- penguwin (~penguwin@fribbledom.com) has quit (*.net *.split) 2021-06-24 18:19:48 <-- coffeejunk (~coffeejun@static.200.0.21.65.clients.your-server.de) has quit (*.net *.split) 2021-06-24 18:19:48 <-- ystreet01 (~ystreet00@user/ystreet00) has quit (*.net *.split) 2021-06-24 18:19:48 <-- quite (~quite@user/quite) has quit (*.net *.split) 2021-06-24 18:19:48 <-- saati (~s@BC06D11E.dsl.pool.telekom.hu) has quit (*.net *.split) 2021-06-24 18:19:48 <-- faern (~faern@h-98-128-172-186.A785.priv.bahnhof.se) has quit (*.net *.split) 2021-06-24 18:19:48 <-- rascul (~rascul@user/rascul) has quit (*.net *.split) 2021-06-24 18:19:48 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (*.net *.split) 2021-06-24 18:19:48 <-- hogarius (hogarius@id-222644.highgate.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:48 <-- scav (sid309693@id-309693.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:48 <-- edk (edk@libera/staff/edk) has quit (*.net *.split) 2021-06-24 18:19:48 <-- lambda (~weechat@cyka.blyat.vodka) has quit (*.net *.split) 2021-06-24 18:19:48 <-- snild (~snild@user/snild) has quit (*.net *.split) 2021-06-24 18:19:49 <-- fullermd (~fullermd@c-174-50-4-214.hsd1.ms.comcast.net) has quit (*.net *.split) 2021-06-24 18:19:49 <-- chowmeined (~chowmeine@user/chowmeined) has quit (*.net *.split) 2021-06-24 18:19:49 <-- jdt (~jdt@38.77.195.50) has quit (*.net *.split) 2021-06-24 18:19:49 <-- Luker (~Luker@2a01:4f8:150:3211:17::17) has quit (*.net *.split) 2021-06-24 18:19:49 <-- jthistle (~jthistle@user/jthistle) has quit (*.net *.split) 2021-06-24 18:19:49 <-- majors (~majors@user/majors) has quit (*.net *.split) 2021-06-24 18:19:49 <-- daemon (znc@about/web/TheBeardedBSDer) has quit (*.net *.split) 2021-06-24 18:19:49 <-- stigz (sid371747@id-371747.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:49 <-- raekye (~raekye@creatifcubed.com) has quit (*.net *.split) 2021-06-24 18:19:49 <-- seanBE_ (~seanBE@ec2-34-243-193-160.eu-west-1.compute.amazonaws.com) has quit (*.net *.split) 2021-06-24 18:19:50 <-- Techcable (~Techcable@168.235.93.147) has quit (*.net *.split) 2021-06-24 18:19:50 <-- wess (~wess@188.166.99.85) has quit (*.net *.split) 2021-06-24 18:19:50 <-- monke (~monke@user/monke) has quit (*.net *.split) 2021-06-24 18:19:50 <-- pinpox (~pinpox@v2202101107577140883.nicesrv.de) has quit (*.net *.split) 2021-06-24 18:19:50 <-- Dijky (~Dijky@user/dijky) has quit (*.net *.split) 2021-06-24 18:19:50 <-- Silver_Golden (~Silver_Go@static.34.165.202.116.clients.your-server.de) has quit (*.net *.split) 2021-06-24 18:19:50 <-- avakand (~root@static.164.226.201.195.clients.your-server.de) has quit (*.net *.split) 2021-06-24 18:19:50 <-- jkhsjdhjs (jkhsjdhjs@totally.rip) has quit (*.net *.split) 2021-06-24 18:19:50 <-- averell (~averell@user/averell) has quit (*.net *.split) 2021-06-24 18:19:50 <-- GreenJello (~GreenJell@user/greenjello) has quit (*.net *.split) 2021-06-24 18:19:50 <-- mort (~mort@188.166.114.29) has quit (*.net *.split) 2021-06-24 18:19:51 <-- tdeo (~tdeo@user/tdeo) has quit (*.net *.split) 2021-06-24 18:19:51 <-- chromis (sid150893@id-150893.tinside.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:51 <-- uovobw (~uovobw@user/uovobw) has quit (*.net *.split) 2021-06-24 18:19:51 <-- el_kevino (~mote@2604:a880:400:d1::901:5001) has quit (*.net *.split) 2021-06-24 18:19:51 <-- peterandre (peterandre@2605:6400:c847:1524::4251) has quit (*.net *.split) 2021-06-24 18:19:51 <-- bendemctl (~bendem@irc.bendem.be) has quit (*.net *.split) 2021-06-24 18:19:51 <-- SanchayanMaity (sid478177@id-478177.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:51 <-- ebel (sid431803@id-431803.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:51 <-- dwt (sid69719@id-69719.stonehaven.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:51 <-- bwidawsk (caa3a604@zangief.bwidawsk.net) has quit (*.net *.split) 2021-06-24 18:19:51 <-- bw (sid2730@user/betawaffle) has quit (*.net *.split) 2021-06-24 18:19:51 <-- seed0 (~seed0@user/seed0) has quit (*.net *.split) 2021-06-24 18:19:51 <-- TimWolla (~timwolla@2a01:4f8:150:6153:beef::6667) has quit (*.net *.split) 2021-06-24 18:19:51 <-- termos (sid18647@id-18647.brockwell.irccloud.com) has quit (*.net *.split) 2021-06-24 18:19:52 <-- vinky (~vinky@2a03:b0c0:2:d0::9a0:8001) has quit (*.net *.split) 2021-06-24 18:19:52 <-- allan_ (allan@3dfx.se) has quit (*.net *.split) 2021-06-24 18:19:52 <-- povilas (~povilas@2a03:b0c0:2:d0::517:7001) has quit (*.net *.split) 2021-06-24 18:19:52 <-- nerdopoly (~nerdopoly@dianahacksoc.york.ac.uk) has quit (*.net *.split) 2021-06-24 18:19:52 <-- tgy (~choucaval@user/choucavalier) has quit (*.net *.split) 2021-06-24 18:19:52 <-- kpcyrd (~kpcyrd@archlinux/trusteduser/kpcyrd) has quit (*.net *.split) 2021-06-24 18:19:52 <-- yongxiang (sid437863@user/yongxiang) has quit (*.net *.split) 2021-06-24 18:19:52 <-- jbg (sid494673@user/jbg) has quit (*.net *.split) 2021-06-24 18:19:52 <-- pulec (~pulec@user/pulec) has quit (*.net *.split) 2021-06-24 18:19:52 <-- aismallard (~quassel@about/werewolf/aismallard) has quit (*.net *.split) 2021-06-24 18:19:52 <-- mnem (sid316106@sourcehut/user/mnem) has quit (*.net *.split) 2021-06-24 18:19:52 <-- EliDupree (~quassel@2604:a880:400:d0::9bb:2001) has quit (*.net *.split) 2021-06-24 18:19:52 <-- xfz (~xperi0@185.21.217.78) has quit (*.net *.split) 2021-06-24 18:19:52 <-- gchristensen (~grahamc@user/gchristensen) has quit (*.net *.split) 2021-06-24 18:19:52 <-- arch3y (~arch3y@user/arch3y) has quit (*.net *.split) 2021-06-24 18:19:52 <-- fingercomp (~fingercom@fomalhaut.me) has quit (*.net *.split) 2021-06-24 18:19:52 <-- x56 (0x56@user/x56) has quit (*.net *.split) 2021-06-24 18:19:53 <-- bkhl (~bkhl@user/bkhl) has quit (*.net *.split) 2021-06-24 18:19:53 <-- oz (~oz@crystal/user/oz) has quit (*.net *.split) 2021-06-24 18:19:53 <-- cnsvc (cnsvc@2600:3c01::f03c:92ff:fedc:1df9) has quit (*.net *.split) 2021-06-24 18:21:11 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-24 18:21:48 --> Vonter (~Vonter@124.123.104.41) has joined ##rust 2021-06-24 18:22:17 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-24 18:22:17 --> est31 (~est31@user/est31) has joined ##rust 2021-06-24 18:22:17 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-24 18:22:17 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-24 18:22:17 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-24 18:22:17 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-24 18:22:17 --> thing (~thing@user/thing) has joined ##rust 2021-06-24 18:22:17 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-24 18:22:17 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-24 18:22:17 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-24 18:22:17 --> zyeri (~zyeri@tilde.team) has joined ##rust 2021-06-24 18:22:17 --> Mutabah (~tpg@124.189.161.194) has joined ##rust 2021-06-24 18:22:17 --> Evergreen (~me@user/evergreen) has joined ##rust 2021-06-24 18:22:17 --> luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has joined ##rust 2021-06-24 18:22:17 --> Maxdamantus (~Maxdamant@user/maxdamantus) has joined ##rust 2021-06-24 18:22:17 --> jermz (~jermz@user/jermz) has joined ##rust 2021-06-24 18:22:17 --> javivf (~javivf@79.108.212.152.dyn.user.ono.com) has joined ##rust 2021-06-24 18:22:17 --> synthmeat (~synthmeat@user/synthmeat) has joined ##rust 2021-06-24 18:22:17 --> sm2n (~sm2n@user/sm2n) has joined ##rust 2021-06-24 18:22:17 --> Trieste (T@user/pilgrim) has joined ##rust 2021-06-24 18:22:17 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-24 18:22:17 --> rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 18:22:17 --> Disconsented (~quassel@107.170.227.20) has joined ##rust 2021-06-24 18:22:17 --> RemiYuko (~licht@user/akechishiro) has joined ##rust 2021-06-24 18:22:17 --> ac5tin (~ac5tin@user/ac5tin) has joined ##rust 2021-06-24 18:22:17 --> ninjin (~ninjin@user/ninjin) has joined ##rust 2021-06-24 18:22:17 --> davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has joined ##rust 2021-06-24 18:22:17 --> feldim2425 (~feldim242@178-191-253-8.adsl.highway.telekom.at) has joined ##rust 2021-06-24 18:22:17 --> RayS (~raysl@sdf1.xen.prgmr.com) has joined ##rust 2021-06-24 18:22:17 --> jngbsn (~jngbsn@user/jngbsn) has joined ##rust 2021-06-24 18:22:17 --> lorimer (~lorimer@user/lorimer) has joined ##rust 2021-06-24 18:22:17 --> HappyMan (~HappyMan@user/happyman) has joined ##rust 2021-06-24 18:22:17 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-24 18:22:17 --> francis (francis@user/francis) has joined ##rust 2021-06-24 18:22:17 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-06-24 18:22:17 --> ozarker (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has joined ##rust 2021-06-24 18:22:17 --> mteo (francis@user/francis) has joined ##rust 2021-06-24 18:22:17 --> mattgirv (quassel@apps.fossgalaxy.com) has joined ##rust 2021-06-24 18:22:17 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-24 18:22:17 --> bahamat (~bahamat@64.30.129.150) has joined ##rust 2021-06-24 18:22:17 --> maurer (~maurer@user/maurer) has joined ##rust 2021-06-24 18:22:17 --> talin (~unknown@hydra.org) has joined ##rust 2021-06-24 18:22:17 --> Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has joined ##rust 2021-06-24 18:22:17 --> SoF (~skius@user/skius) has joined ##rust 2021-06-24 18:22:17 --> death916 (~death916@user/death916) has joined ##rust 2021-06-24 18:22:17 --> xse (~xse@user/xse) has joined ##rust 2021-06-24 18:22:17 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-24 18:22:17 --> smarton (~smarton@121407.xyz) has joined ##rust 2021-06-24 18:22:17 --> trh (~trh@hera.debugco.de) has joined ##rust 2021-06-24 18:22:17 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-24 18:22:17 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-24 18:22:17 --> aquijoule__ (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-24 18:22:17 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-24 18:22:17 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-24 18:22:17 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-24 18:22:17 --> x_kuru (~xkuru@user/xkuru) has joined ##rust 2021-06-24 18:22:17 --> Elladan (~elladan@user/elladan) has joined ##rust 2021-06-24 18:22:17 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-24 18:22:17 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-24 18:22:17 --> kevr (~kevr@user/kevr) has joined ##rust 2021-06-24 18:22:17 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-24 18:22:17 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-24 18:22:17 --> ColdKeyboard (~ColdKeybo@user/coldkeyboard) has joined ##rust 2021-06-24 18:22:17 --> flynn (~mcbloch@user/flynn) has joined ##rust 2021-06-24 18:22:17 --> kungp (~kungp@h-46-59-2-200.a230.priv.bahnhof.se) has joined ##rust 2021-06-24 18:22:17 --> LawnGnome (~LawnGnome@user/lawngnome) has joined ##rust 2021-06-24 18:22:17 --> dece (~dece@dece.space) has joined ##rust 2021-06-24 18:22:17 --> willcl_ark (~quassel@user/willcl-ark/x-8282106) has joined ##rust 2021-06-24 18:22:17 --> dirbaio2 (~dirbaio@nsmbhd.net) has joined ##rust 2021-06-24 18:22:17 --> LogicAside (~LogicAsid@user/logicaside) has joined ##rust 2021-06-24 18:22:17 --> IanWizard (~ianwizard@user/ianwizard) has joined ##rust 2021-06-24 18:22:17 --> w1gz (~do@159.89.11.133) has joined ##rust 2021-06-24 18:22:17 --> st (~ts@46.101.20.9) has joined ##rust 2021-06-24 18:22:17 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-24 18:22:17 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-24 18:22:17 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-24 18:22:17 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-24 18:22:17 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-24 18:22:17 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-24 18:22:17 --> cehteh (~ct@i59F4B960.versanet.de) has joined ##rust 2021-06-24 18:22:17 --> samuelbernardo (~samuelber@194.210.119.252) has joined ##rust 2021-06-24 18:22:17 --> ystreet01 (~ystreet00@user/ystreet00) has joined ##rust 2021-06-24 18:22:17 --> coffeejunk (~coffeejun@static.200.0.21.65.clients.your-server.de) has joined ##rust 2021-06-24 18:22:17 --> pupskuchen (~pupskuche@user/pupskuchen) has joined ##rust 2021-06-24 18:22:17 --> substack (~substack@104.131.0.235) has joined ##rust 2021-06-24 18:22:17 --> nox (sid3872@highgate.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> Jazzah (~jazz@user/jazzah) has joined ##rust 2021-06-24 18:22:17 --> Byteflux (~byte@byteflux.net) has joined ##rust 2021-06-24 18:22:17 --> taktoa[c] (sid282096@id-282096.tinside.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> glowcoil (sid3405@id-3405.tinside.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> penguwin (~penguwin@fribbledom.com) has joined ##rust 2021-06-24 18:22:17 --> r3v2d0g (sid478327@highgate.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> gbmor (ben@gbmor.dev) has joined ##rust 2021-06-24 18:22:17 --> pingiun (~jelle@user/pingiun) has joined ##rust 2021-06-24 18:22:17 --> dmvrtx (~dmvrtx@znc.dmvrtx.me) has joined ##rust 2021-06-24 18:22:17 --> towel_ (~towel@user/towel) has joined ##rust 2021-06-24 18:22:17 --> parazyd (~parazyd@devuan/developer/parazyd) has joined ##rust 2021-06-24 18:22:17 --> mauli (~mauli@maulware.com) has joined ##rust 2021-06-24 18:22:17 --> Aorimn (tc@giboulees.net) has joined ##rust 2021-06-24 18:22:17 --> nCrazed (~nCrazed@edvin.io) has joined ##rust 2021-06-24 18:22:17 --> mgocobachi (~m@ancrae.com) has joined ##rust 2021-06-24 18:22:17 --> murr4y (ali@user/murr4y) has joined ##rust 2021-06-24 18:22:17 --> alxbl (~alex@cortex.segfault.me) has joined ##rust 2021-06-24 18:22:17 --> webmind (~webmind@user/webmind) has joined ##rust 2021-06-24 18:22:17 --> barometz (~dvanb@i117058.upc-i.chello.nl) has joined ##rust 2021-06-24 18:22:17 --> bwolf (sid464866@stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> dozn (uid249292@user/dozn) has joined ##rust 2021-06-24 18:22:17 --> res0nat0r (~Fletch@dia.whatbox.ca) has joined ##rust 2021-06-24 18:22:17 --> mattyb (~matt@user/mattyb) has joined ##rust 2021-06-24 18:22:17 --> jsb (~jsb@jakob.dev) has joined ##rust 2021-06-24 18:22:17 --> luca0N (~luca0N@nautilus.luca0n.com) has joined ##rust 2021-06-24 18:22:17 --> mrus (~mrus@149.28.61.155) has joined ##rust 2021-06-24 18:22:17 --> SIben (~SIben@ns3106586.ip-5-135-191.eu) has joined ##rust 2021-06-24 18:22:17 --> audron (~audron@jupiter.cocaine.farm) has joined ##rust 2021-06-24 18:22:17 --> lifeless (~robertc@168.92-220-19.customer.lyse.net) has joined ##rust 2021-06-24 18:22:17 --> sensille (~arne@dsnsi.rzone.de) has joined ##rust 2021-06-24 18:22:17 --> vivia (~vivia@coaxion.net) has joined ##rust 2021-06-24 18:22:17 --> SergioB (~Sergio@2001:19f0:ac01:371:5400:ff:fe5b:d2b1) has joined ##rust 2021-06-24 18:22:17 --> magik (~green@ec2-35-163-132-133.us-west-2.compute.amazonaws.com) has joined ##rust 2021-06-24 18:22:17 --> j`ey (~joey@user/jey/x-2681904) has joined ##rust 2021-06-24 18:22:17 --> remedan (~remedan@balak.me) has joined ##rust 2021-06-24 18:22:17 --> Timelord (~TL@64-252-202-134.lightspeed.jcsnms.sbcglobal.net) has joined ##rust 2021-06-24 18:22:17 --> kev009 (~quassel@69.160.37.57) has joined ##rust 2021-06-24 18:22:17 --> lohn2 (~Lohn@144.76.18.70) has joined ##rust 2021-06-24 18:22:17 --> llinguini (sid257922@id-257922.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> asm (~alexander@user/asm) has joined ##rust 2021-06-24 18:22:17 --> upb (~cmpxchg@intrusion.software) has joined ##rust 2021-06-24 18:22:17 --> mwbrown (~mwbrown@user/mwbrown) has joined ##rust 2021-06-24 18:22:17 --> ruru4143 (~quassel@vmi444754.contaboserver.net) has joined ##rust 2021-06-24 18:22:17 --> dwt_ (~dwt_@c-98-200-58-177.hsd1.tx.comcast.net) has joined ##rust 2021-06-24 18:22:17 --> dalcde (dec41@pip.srcf.societies.cam.ac.uk) has joined ##rust 2021-06-24 18:22:17 --> winter (~quassel@user/winter) has joined ##rust 2021-06-24 18:22:17 --> roguelazer (~jbrown@sietchtabr.roguelazer.net) has joined ##rust 2021-06-24 18:22:17 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-06-24 18:22:17 --> DTE (~DTE@nat-pool-fab-t.redhat.com) has joined ##rust 2021-06-24 18:22:17 --> Momentum (momentum@tilde.team) has joined ##rust 2021-06-24 18:22:17 --> chlvr (~chlvr@li1384-148.members.linode.com) has joined ##rust 2021-06-24 18:22:17 --> dmc (~dmc@archlinux/trusteduser/polyzen) has joined ##rust 2021-06-24 18:22:17 --> bsdbandit (~bwell@users.757.org) has joined ##rust 2021-06-24 18:22:17 --> cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-06-24 18:22:17 --> nitrix (~nitrix@user/nitrix) has joined ##rust 2021-06-24 18:22:17 --> fooker (~fooker@2001:638:301:11a3::6) has joined ##rust 2021-06-24 18:22:17 --> farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has joined ##rust 2021-06-24 18:22:17 --> lisq (~quassel@lis.moe) has joined ##rust 2021-06-24 18:22:17 --> p2-mate (~p2@emantra.psychaos.be) has joined ##rust 2021-06-24 18:22:17 --> RedCrab (~Red_Crab@user/redcrab) has joined ##rust 2021-06-24 18:22:17 --> Gottox (~Gottox@vm3.s01.de) has joined ##rust 2021-06-24 18:22:17 --> Alex[m]123456715 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-24 18:22:17 --> voker57_ (~quassel@2a06:1700:0:24::) has joined ##rust 2021-06-24 18:22:17 --> mandeep (uid394387@id-394387.tooting.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> rypervenche (~rypervenc@user/rypervenche) has joined ##rust 2021-06-24 18:22:17 --> Forkk (forkk@2600:3c00::f03c:91ff:fe84:de4d) has joined ##rust 2021-06-24 18:22:17 --> terrorjack (~terrorjac@ec2-54-95-39-30.ap-northeast-1.compute.amazonaws.com) has joined ##rust 2021-06-24 18:22:17 --> jbit (~jbit@jbit.net) has joined ##rust 2021-06-24 18:22:17 --> waldo323__ (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined ##rust 2021-06-24 18:22:17 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-06-24 18:22:17 --> az_ (~az0@user/az0) has joined ##rust 2021-06-24 18:22:17 --> amk (~amk@176.61.106.150) has joined ##rust 2021-06-24 18:22:17 --> flipchan (~yumman@user/flipchan) has joined ##rust 2021-06-24 18:22:17 --> qoelet (~kumo@139.180.144.166) has joined ##rust 2021-06-24 18:22:17 --> ThinkT510 (~auronanda@user/thinkt510) has joined ##rust 2021-06-24 18:22:17 --> leah2 (~leah@vuxu.org) has joined ##rust 2021-06-24 18:22:17 --> orzophile (~orzophile@2605:a601:aab5:ae01:250:56ff:febd:85ef) has joined ##rust 2021-06-24 18:22:17 --> eau (~chat@user/eau) has joined ##rust 2021-06-24 18:22:17 --> landerblom (~landerblo@45.77.66.162) has joined ##rust 2021-06-24 18:22:17 --> marcel (~marcel@user/marcel) has joined ##rust 2021-06-24 18:22:17 --> maerwald (~maerwald@user/maerwald) has joined ##rust 2021-06-24 18:22:17 --> habnabit_ (habnabit@python/site-packages/habnabit) has joined ##rust 2021-06-24 18:22:17 --> dvu (~danielvu@168.235.66.22) has joined ##rust 2021-06-24 18:22:17 --> andytoshi (~apoelstra@s66-183-0-205.bc.hsia.telus.net) has joined ##rust 2021-06-24 18:22:17 --> manifolds_ (~manifolds@157.245.231.152) has joined ##rust 2021-06-24 18:22:17 --> [code] (~Trey@www.td.wtf) has joined ##rust 2021-06-24 18:22:17 --> osse (~osse@zsh/user/osse) has joined ##rust 2021-06-24 18:22:17 --> mdf (mdf@hilla.kapsi.fi) has joined ##rust 2021-06-24 18:22:17 --> tj (~tj@user/tj) has joined ##rust 2021-06-24 18:22:17 --> totoro (~totoro@user/totoro) has joined ##rust 2021-06-24 18:22:17 --> elichai2 (sid212594@id-212594.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> plluksie (~plluksie@89-75-127-15.dynamic.chello.pl) has joined ##rust 2021-06-24 18:22:17 --> jds (rpc@2600:3c00::f03c:91ff:fed5:10aa) has joined ##rust 2021-06-24 18:22:17 --> bluss (~bluss@user/bluss) has joined ##rust 2021-06-24 18:22:17 --> redj (~quassel@bras-base-bchmpq5707w-grc-24-76-69-197-62.dsl.bell.ca) has joined ##rust 2021-06-24 18:22:17 --> DoubleAW (~DoubleAW@user/doubleaw) has joined ##rust 2021-06-24 18:22:17 --> paradaux (~quassel@2a01:4f8:c2c:be8b::1) has joined ##rust 2021-06-24 18:22:17 --> UndeadLeech (~UndeadLee@165.227.76.134) has joined ##rust 2021-06-24 18:22:17 --> kkd (~kkd@2400:8902::f03c:92ff:feac:6d1) has joined ##rust 2021-06-24 18:22:17 --> timemage (timemage@user/timemage) has joined ##rust 2021-06-24 18:22:17 --> cross (~cross@spitfire.i.gajendra.net) has joined ##rust 2021-06-24 18:22:17 --> phundrak (~phundrak@82-65-91-105.subs.proxad.net) has joined ##rust 2021-06-24 18:22:17 --> krjst (~krjst@2604:a880:800:c1::16b:8001) has joined ##rust 2021-06-24 18:22:17 --> t^ (~thomas@2001:41d0:2:a84:1::6) has joined ##rust 2021-06-24 18:22:17 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-06-24 18:22:17 --> explorier (~explorier@user/explorier) has joined ##rust 2021-06-24 18:22:17 --> ME (~thement@user/me) has joined ##rust 2021-06-24 18:22:17 --> binkers (~binkers@user/binkers) has joined ##rust 2021-06-24 18:22:17 --> jwardy (sid454028@id-454028.highgate.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> chiastre (~chiastre@user/chiastre) has joined ##rust 2021-06-24 18:22:17 --> ding (~ding@2001:19f0:5:14c2:5400:2ff:fee0:a42c) has joined ##rust 2021-06-24 18:22:17 --> Polochon_street (~polochon@2001:41d0:a:64a5::1) has joined ##rust 2021-06-24 18:22:17 --> Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has joined ##rust 2021-06-24 18:22:17 --> darxun (sid504814@id-504814.tinside.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> cultpony (~cultpony@user/cultpony) has joined ##rust 2021-06-24 18:22:17 --> skipwich (~skipwich@user/skipwich) has joined ##rust 2021-06-24 18:22:17 --> s1b1 (~s1b1@user/s1b1) has joined ##rust 2021-06-24 18:22:17 --> lopsided98 (~quassel@2601:18a:0:85e0:3a6f:1d2a:eb10:63b1) has joined ##rust 2021-06-24 18:22:17 --> canton7 (canton7@about/csharp/canton7) has joined ##rust 2021-06-24 18:22:17 --> Fairy97 (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has joined ##rust 2021-06-24 18:22:17 --> img (~img@user/img) has joined ##rust 2021-06-24 18:22:17 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-24 18:22:17 --> bradfier (~bradfier@user/bradfier) has joined ##rust 2021-06-24 18:22:17 --> swinnenb (~swinnenb@user/swinnenb) has joined ##rust 2021-06-24 18:22:17 --> Trollmann (~Trollmann@user/trollmann) has joined ##rust 2021-06-24 18:22:17 --> faxlore (sid505520@id-505520.highgate.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> greizgh (~quassel@2001:41d0:8:5025::1) has joined ##rust 2021-06-24 18:22:17 --> cmagina (uid286142@user/cmagina) has joined ##rust 2021-06-24 18:22:17 --> Xe (~cadey@tailscale/xe) has joined ##rust 2021-06-24 18:22:17 --> phryk (~totallyno@user/phryk) has joined ##rust 2021-06-24 18:22:17 --> mjsir911 (~bnc@user/mjsir911) has joined ##rust 2021-06-24 18:22:17 --> habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has joined ##rust 2021-06-24 18:22:17 --> kline (~freedom0@libera/staff/kline) has joined ##rust 2021-06-24 18:22:17 --> ChanServ (ChanServ@services.libera.chat) has joined ##rust 2021-06-24 18:22:17 --> oz (~oz@crystal/user/oz) has joined ##rust 2021-06-24 18:22:17 --> bkhl (~bkhl@user/bkhl) has joined ##rust 2021-06-24 18:22:17 --> fingercomp (~fingercom@fomalhaut.me) has joined ##rust 2021-06-24 18:22:17 --> xfz (~xperi0@185.21.217.78) has joined ##rust 2021-06-24 18:22:17 -- Mode ##rust [+o ChanServ] by copper.libera.chat 2021-06-24 18:22:17 --> EliDupree (~quassel@2604:a880:400:d0::9bb:2001) has joined ##rust 2021-06-24 18:22:17 --> mnem (sid316106@sourcehut/user/mnem) has joined ##rust 2021-06-24 18:22:17 --> aismallard (~quassel@about/werewolf/aismallard) has joined ##rust 2021-06-24 18:22:17 --> jbg (sid494673@user/jbg) has joined ##rust 2021-06-24 18:22:17 --> kpcyrd (~kpcyrd@archlinux/trusteduser/kpcyrd) has joined ##rust 2021-06-24 18:22:17 --> pulec (~pulec@user/pulec) has joined ##rust 2021-06-24 18:22:17 --> x56 (0x56@user/x56) has joined ##rust 2021-06-24 18:22:17 --> tgy (~choucaval@user/choucavalier) has joined ##rust 2021-06-24 18:22:17 --> nerdopoly (~nerdopoly@dianahacksoc.york.ac.uk) has joined ##rust 2021-06-24 18:22:17 --> yongxiang (sid437863@user/yongxiang) has joined ##rust 2021-06-24 18:22:17 --> arch3y (~arch3y@user/arch3y) has joined ##rust 2021-06-24 18:22:17 --> povilas (~povilas@2a03:b0c0:2:d0::517:7001) has joined ##rust 2021-06-24 18:22:17 --> cnsvc (cnsvc@2600:3c01::f03c:92ff:fedc:1df9) has joined ##rust 2021-06-24 18:22:17 --> allan_ (allan@3dfx.se) has joined ##rust 2021-06-24 18:22:17 --> vinky (~vinky@2a03:b0c0:2:d0::9a0:8001) has joined ##rust 2021-06-24 18:22:17 --> TimWolla (~timwolla@2a01:4f8:150:6153:beef::6667) has joined ##rust 2021-06-24 18:22:17 --> seed0 (~seed0@user/seed0) has joined ##rust 2021-06-24 18:22:17 --> bw (sid2730@user/betawaffle) has joined ##rust 2021-06-24 18:22:17 --> bwidawsk (caa3a604@zangief.bwidawsk.net) has joined ##rust 2021-06-24 18:22:17 --> dwt (sid69719@id-69719.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> ebel (sid431803@id-431803.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> SanchayanMaity (sid478177@id-478177.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> bendemctl (~bendem@irc.bendem.be) has joined ##rust 2021-06-24 18:22:17 --> peterandre (peterandre@2605:6400:c847:1524::4251) has joined ##rust 2021-06-24 18:22:17 --> el_kevino (~mote@2604:a880:400:d1::901:5001) has joined ##rust 2021-06-24 18:22:17 --> uovobw (~uovobw@user/uovobw) has joined ##rust 2021-06-24 18:22:17 --> gchristensen (~grahamc@user/gchristensen) has joined ##rust 2021-06-24 18:22:17 --> chromis (sid150893@id-150893.tinside.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> tdeo (~tdeo@user/tdeo) has joined ##rust 2021-06-24 18:22:17 --> mort (~mort@188.166.114.29) has joined ##rust 2021-06-24 18:22:17 --> GreenJello (~GreenJell@user/greenjello) has joined ##rust 2021-06-24 18:22:17 --> termos (sid18647@id-18647.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> averell (~averell@user/averell) has joined ##rust 2021-06-24 18:22:17 --> jkhsjdhjs (jkhsjdhjs@totally.rip) has joined ##rust 2021-06-24 18:22:17 --> avakand (~root@static.164.226.201.195.clients.your-server.de) has joined ##rust 2021-06-24 18:22:17 --> Silver_Golden (~Silver_Go@static.34.165.202.116.clients.your-server.de) has joined ##rust 2021-06-24 18:22:17 --> Dijky (~Dijky@user/dijky) has joined ##rust 2021-06-24 18:22:17 --> pinpox (~pinpox@v2202101107577140883.nicesrv.de) has joined ##rust 2021-06-24 18:22:17 --> monke (~monke@user/monke) has joined ##rust 2021-06-24 18:22:17 --> wess (~wess@188.166.99.85) has joined ##rust 2021-06-24 18:22:17 --> Techcable (~Techcable@168.235.93.147) has joined ##rust 2021-06-24 18:22:17 --> seanBE_ (~seanBE@ec2-34-243-193-160.eu-west-1.compute.amazonaws.com) has joined ##rust 2021-06-24 18:22:17 --> raekye (~raekye@creatifcubed.com) has joined ##rust 2021-06-24 18:22:17 --> stigz (sid371747@id-371747.tinside.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> daemon (znc@about/web/TheBeardedBSDer) has joined ##rust 2021-06-24 18:22:17 --> Luker (~Luker@2a01:4f8:150:3211:17::17) has joined ##rust 2021-06-24 18:22:17 --> majors (~majors@user/majors) has joined ##rust 2021-06-24 18:22:17 --> jdt (~jdt@38.77.195.50) has joined ##rust 2021-06-24 18:22:17 --> chowmeined (~chowmeine@user/chowmeined) has joined ##rust 2021-06-24 18:22:17 --> fullermd (~fullermd@c-174-50-4-214.hsd1.ms.comcast.net) has joined ##rust 2021-06-24 18:22:17 --> lambda (~weechat@cyka.blyat.vodka) has joined ##rust 2021-06-24 18:22:17 --> edk (edk@libera/staff/edk) has joined ##rust 2021-06-24 18:22:17 --> scav (sid309693@id-309693.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> hogarius (hogarius@id-222644.highgate.irccloud.com) has joined ##rust 2021-06-24 18:22:17 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-06-24 18:22:17 --> rascul (~rascul@user/rascul) has joined ##rust 2021-06-24 18:22:17 --> jthistle (~jthistle@user/jthistle) has joined ##rust 2021-06-24 18:22:17 --> faern (~faern@h-98-128-172-186.A785.priv.bahnhof.se) has joined ##rust 2021-06-24 18:22:17 --> saati (~s@BC06D11E.dsl.pool.telekom.hu) has joined ##rust 2021-06-24 18:22:17 --> snild (~snild@user/snild) has joined ##rust 2021-06-24 18:22:17 --> quite (~quite@user/quite) has joined ##rust 2021-06-24 18:22:26 --> sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has joined ##rust 2021-06-24 18:22:26 --> johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has joined ##rust 2021-06-24 18:22:26 --> kwilczynski (sid379192@user/kwilczynski) has joined ##rust 2021-06-24 18:22:26 --> ubert (~Thunderbi@p200300ecdf259dee1d074ed27adb7f01.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 18:22:26 --> visl (sid453966@user/visl) has joined ##rust 2021-06-24 18:22:26 --> bjs (sid190364@user/bjs) has joined ##rust 2021-06-24 18:22:26 --> twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has joined ##rust 2021-06-24 18:22:26 --> farmstatejake (~farmstate@user/farmstatejake) has joined ##rust 2021-06-24 18:22:26 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-24 18:22:26 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-24 18:22:26 --> MrElendig (~Urist@archlinux/op/MrElendig) has joined ##rust 2021-06-24 18:22:26 --> euandreh (~euandreh@2804:14c:33:9fe5:c1e6:8279:92e9:57ec) has joined ##rust 2021-06-24 18:22:26 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-24 18:22:26 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-24 18:22:26 --> zmt01 (~zmt00@user/zmt00) has joined ##rust 2021-06-24 18:22:26 --> Hafydd (~Hafydd@user/hafydd) has joined ##rust 2021-06-24 18:22:26 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-24 18:22:26 --> glasspelican (~quassel@2607:5300:201:3100::325) has joined ##rust 2021-06-24 18:22:26 --> emerent (~quassel@p200300cd5703bb5dba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 18:22:26 --> starblue3 (~juergen@dslb-088-078-101-107.088.078.pools.vodafone-ip.de) has joined ##rust 2021-06-24 18:22:26 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-24 18:22:26 --> yourfate (~yourfate@cabal.yourfate.org) has joined ##rust 2021-06-24 18:22:26 --> Maker (~maker@70.18.215.45) has joined ##rust 2021-06-24 18:22:26 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-24 18:22:26 --> cecilgol (~cecilgol@user/cecilgol) has joined ##rust 2021-06-24 18:22:26 --> Liexei (Liexei@user/liexei) has joined ##rust 2021-06-24 18:22:26 --> mrmonday (~robert@what.i.hope.is.not.a.tabernaevagant.es) has joined ##rust 2021-06-24 18:22:26 --> PonzoSporrigan (~ghost64@user/ghost64) has joined ##rust 2021-06-24 18:22:26 --> ljoonal (~ljoonal@user/ljoonal) has joined ##rust 2021-06-24 18:22:26 --> cation (cation@user/cation) has joined ##rust 2021-06-24 18:22:26 --> tsdh (~user@j289989.servers.jiffybox.net) has joined ##rust 2021-06-24 18:22:28 <-- dozn (uid249292@user/dozn) has quit (Ping timeout: 252 seconds) 2021-06-24 18:22:35 --> kilobyte22 (~kilobyte@banana-new.kilobyte22.de) has joined ##rust 2021-06-24 18:22:35 --> V (~v@anomalous.eu) has joined ##rust 2021-06-24 18:22:35 --> acid (~acid@user/acid) has joined ##rust 2021-06-24 18:22:35 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-06-24 18:22:35 --> haritz (~hrtz@user/haritz) has joined ##rust 2021-06-24 18:22:35 --> fjmorazan (~quassel@user/fjmorazan) has joined ##rust 2021-06-24 18:22:35 --> andreas303 (andreas303@ip227.orange.bnc4free.com) has joined ##rust 2021-06-24 18:22:35 --> nickmass (~nickmass@nickmass.com) has joined ##rust 2021-06-24 18:22:35 --> noonien (~noonien@user/noonien) has joined ##rust 2021-06-24 18:22:35 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-06-24 18:22:35 --> fsg (fsg@2600:3c00::f03c:92ff:fec6:da18) has joined ##rust 2021-06-24 18:22:35 --> georgemp (~georgemp@aemon.roguemonkeys.com) has joined ##rust 2021-06-24 18:22:35 --> yupyup (sid228030@id-228030.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:22:35 --> aelien27 (~cdolan@024-205-153-145.res.spectrum.com) has joined ##rust 2021-06-24 18:22:35 --> cbmuser (~glaubitz@zlogin2.physik.fu-berlin.de) has joined ##rust 2021-06-24 18:22:35 --> transistor (~trans@S01060011329d4e55.vc.shawcable.net) has joined ##rust 2021-06-24 18:22:35 --> naur (naur@user/naur) has joined ##rust 2021-06-24 18:22:35 --> webstrand (~webstrand@user/webstrand) has joined ##rust 2021-06-24 18:22:35 --> hirish (~hirish@ip85.ip-137-74-20.eu) has joined ##rust 2021-06-24 18:22:35 --> Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has joined ##rust 2021-06-24 18:22:35 --> Ekho (~Ekho@user/ekho) has joined ##rust 2021-06-24 18:22:35 --> s0ph0s (~s0ph0s@user/s0ph0s) has joined ##rust 2021-06-24 18:22:35 --> zhamm_ (~zhamm@unbutte.red) has joined ##rust 2021-06-24 18:22:35 --> Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has joined ##rust 2021-06-24 18:22:35 --> dhedberg (david@sugi.qzx.se) has joined ##rust 2021-06-24 18:22:35 --> saikub (saikub@saikub.fig.ircnow.org) has joined ##rust 2021-06-24 18:22:35 --> mike-burns (~mike-burn@safeword.mike-burns.com) has joined ##rust 2021-06-24 18:22:35 --> n1000 (~n1000@user/n1000) has joined ##rust 2021-06-24 18:22:35 --> saintdev (sid25343@id-25343.charlton.irccloud.com) has joined ##rust 2021-06-24 18:22:35 --> obviyus (sid415299@user/obviyus) has joined ##rust 2021-06-24 18:22:35 --> etch (~etch@user/etch) has joined ##rust 2021-06-24 18:22:35 --> Jokler (~Jokler@jokler.xyz) has joined ##rust 2021-06-24 18:22:35 --> mmk2410 (~mmk2410@user/mmk2410) has joined ##rust 2021-06-24 18:22:35 --> vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has joined ##rust 2021-06-24 18:22:35 --> ebb (ebb@user/ebb) has joined ##rust 2021-06-24 18:22:35 --> histrio (~histrio@109.234.34.168) has joined ##rust 2021-06-24 18:22:35 --> nyanotech (~kitty@meow.catgirl.solutions) has joined ##rust 2021-06-24 18:22:35 --> zeroed (~zeroed@user/zeroed) has joined ##rust 2021-06-24 18:22:35 --> necronian (~necronian@niflheim.prpl.space) has joined ##rust 2021-06-24 18:22:35 --> neptunepink (~neptune@mail.digitalkingdom.org) has joined ##rust 2021-06-24 18:22:35 --> troido (~troido@tilde.town) has joined ##rust 2021-06-24 18:22:42 --> hendi (sid489601@id-489601.tooting.irccloud.com) has joined ##rust 2021-06-24 18:22:42 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-24 18:22:42 --> doublesaiko (~saiko@crispy.dblsaiko.net) has joined ##rust 2021-06-24 18:22:42 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-24 18:22:42 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:22:42 --> debsan (~debsan@2800:810:471:2ee::1001) has joined ##rust 2021-06-24 18:22:42 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-24 18:22:42 --> nrr (sid20938@id-20938.tooting.irccloud.com) has joined ##rust 2021-06-24 18:22:42 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-06-24 18:22:42 --> tomboy64 (~tomboy64@user/tomboy64) has joined ##rust 2021-06-24 18:22:42 --> mrkajetanp (~mrkajetan@2a01:4b00:ea36:6c00:7994:941c:3f5d:2b88) has joined ##rust 2021-06-24 18:22:42 --> gbear605 (~gbear605@user/gbear605) has joined ##rust 2021-06-24 18:22:42 --> sfackler (sid243132@id-243132.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:22:42 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-24 18:22:42 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-24 18:22:42 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-24 18:22:42 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-24 18:22:42 --> llorllale (~llorllale@2607:9880:3a18:69:597:b5cf:3629:f483) has joined ##rust 2021-06-24 18:22:42 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-24 18:22:42 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-24 18:22:42 --> hegstal (~hegstal@2a02:c7f:7604:8a00:bbfc:1ba1:ffb3:62a) has joined ##rust 2021-06-24 18:22:42 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-24 18:22:42 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-24 18:22:42 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-24 18:22:42 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-24 18:22:42 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-24 18:22:43 --> cinix (~cinix__@c-73-60-53-69.hsd1.nh.comcast.net) has joined ##rust 2021-06-24 18:22:43 --> moistphantom (~root@user/moistphantom) has joined ##rust 2021-06-24 18:22:43 --> Nixx (~quassel@bulbasaur.sjorsgielen.nl) has joined ##rust 2021-06-24 18:22:43 --> bertptrs (~quassel@user/bertptrs) has joined ##rust 2021-06-24 18:22:43 --> Moomoc (~Moomoc@84.38.65.228) has joined ##rust 2021-06-24 18:22:43 --> JanC (~janc@user/janc) has joined ##rust 2021-06-24 18:23:28 --> jaix (~jaix@97e757bf.skybroadband.com) has joined ##rust 2021-06-24 18:23:28 --> ropes (~ropes@133.77.127.34.bc.googleusercontent.com) has joined ##rust 2021-06-24 18:23:28 --> wrycode (~wrycode@168.235.110.39) has joined ##rust 2021-06-24 18:23:28 --> mht (~mht@mht.wtf) has joined ##rust 2021-06-24 18:23:28 --> aaronm04 (~user@user/aaronm04) has joined ##rust 2021-06-24 18:23:28 --> vancz (~vancz@user/vancz) has joined ##rust 2021-06-24 18:23:28 --> pie_bnc (~pie_bnc@user/pie/x-2818909) has joined ##rust 2021-06-24 18:23:28 --> fanf (~fanf@90.251.70.141) has joined ##rust 2021-06-24 18:23:28 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-24 18:23:28 --> Shell (~shell@user/shell) has joined ##rust 2021-06-24 18:23:28 --> fritschy (~fritschy@b2b-109-90-32-97.unitymedia.biz) has joined ##rust 2021-06-24 18:23:28 --> Allegretto (~allegrett@fibhost-67-230-113.fibernet.hu) has joined ##rust 2021-06-24 18:23:28 --> smitop (~smitop@user/smitop) has joined ##rust 2021-06-24 18:23:28 --> evalr2 (arnavion@user/arnavion) has joined ##rust 2021-06-24 18:23:28 --> bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-06-24 18:23:28 --> dfdx (~F@user/dfdx) has joined ##rust 2021-06-24 18:23:28 --> bihtori (harjuo@kapsi.fi) has joined ##rust 2021-06-24 18:23:28 --> adium (adium@user/adium) has joined ##rust 2021-06-24 18:23:28 --> feliix42 (~felix@gibbs.uberspace.de) has joined ##rust 2021-06-24 18:23:28 --> BlackDex (~blackdex@ori.vyus.nl) has joined ##rust 2021-06-24 18:23:28 --> ckie (~ckie@user/cookie) has joined ##rust 2021-06-24 18:23:28 --> biberu (~biberu@user/biberu) has joined ##rust 2021-06-24 18:23:28 --> icebattle (~wayne@S010600fc8ddfd2b3.vc.shawcable.net) has joined ##rust 2021-06-24 18:23:28 --> acowley (~acowley@c-68-83-22-43.hsd1.nj.comcast.net) has joined ##rust 2021-06-24 18:23:28 --> acro (~acro@user/acro) has joined ##rust 2021-06-24 18:23:28 --> eagleflo (~aku@eagleflow.fi) has joined ##rust 2021-06-24 18:23:28 --> Alexendoo (~Alexendoo@macleod.io) has joined ##rust 2021-06-24 18:23:31 --> nl3dee (~nl3dee@ns388898.ip-176-31-255.eu) has joined ##rust 2021-06-24 18:23:31 --> routeveg (~lee@197.ip-51-195-136.eu) has joined ##rust 2021-06-24 18:23:31 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-06-24 18:23:31 --> siraben (~siraben@user/siraben) has joined ##rust 2021-06-24 18:23:31 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-06-24 18:23:31 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-06-24 18:23:31 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-06-24 18:23:31 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-06-24 18:23:31 --> natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 18:23:31 --> themaxdavitt (sid433050@user/themaxdavitt) has joined ##rust 2021-06-24 18:23:31 --> anthraxx (~anthraxx@archlinux/developer/anthraxx) has joined ##rust 2021-06-24 18:23:31 --> lumgwada (~lumgwada@101.181.126.104) has joined ##rust 2021-06-24 18:23:31 --> kehvo (~kehvo@user/kehvo) has joined ##rust 2021-06-24 18:23:31 --> danieldg (~me@user/danieldg) has joined ##rust 2021-06-24 18:23:31 --> kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has joined ##rust 2021-06-24 18:23:31 --> [fspy] (~fspy@user/fspy) has joined ##rust 2021-06-24 18:23:31 --> ^[ (~user@user//x-8473491) has joined ##rust 2021-06-24 18:23:31 --> mwehner (~mwehner@li910-8.members.linode.com) has joined ##rust 2021-06-24 18:23:31 --> beneth (~beneth@ip208.ip-54-36-198.eu) has joined ##rust 2021-06-24 18:23:31 --> sauce (~sauce@omae.wa.mou.shindei.ru) has joined ##rust 2021-06-24 18:23:31 --> daex (~daex@user/daex) has joined ##rust 2021-06-24 18:23:31 --> aweinstock (~aweinstoc@cpe-67-248-65-250.nycap.res.rr.com) has joined ##rust 2021-06-24 18:23:31 --> dos (~dos@dosowisko.net) has joined ##rust 2021-06-24 18:23:31 --> pounce (~pounce@facebook/engineering/pounce) has joined ##rust 2021-06-24 18:23:31 --> amling (~amling@98.45.168.51) has joined ##rust 2021-06-24 18:23:31 --> ario_ (~ario@159.65.220.102) has joined ##rust 2021-06-24 18:23:31 --> syntaxman (~wade@li227-215.members.linode.com) has joined ##rust 2021-06-24 18:23:31 --> de-vri-es (~de-vri-es@voyager.de-vri.es) has joined ##rust 2021-06-24 18:23:31 --> sujeet (sujeet@freeboson.org) has joined ##rust 2021-06-24 18:23:31 --> cole (~cole@user/cole) has joined ##rust 2021-06-24 18:23:31 --> zipper (~luv_panda@user/jellie) has joined ##rust 2021-06-24 18:23:31 --> fitzsim (~user@69-165-165-189.dsl.teksavvy.com) has joined ##rust 2021-06-24 18:23:31 --> koishi (uid160860@wikimedia/Stang) has joined ##rust 2021-06-24 18:23:31 --> nickster (~nickster@67.207.91.6) has joined ##rust 2021-06-24 18:23:34 <-- thecatster_ (~thecatste@user/thecatster) has quit (Ping timeout: 272 seconds) 2021-06-24 18:23:34 <-- kadoban (~kadoban@user/kadoban) has quit (Ping timeout: 272 seconds) 2021-06-24 18:23:36 <-- ubert (~Thunderbi@p200300ecdf259dee1d074ed27adb7f01.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-24 18:23:36 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Ping timeout: 250 seconds) 2021-06-24 18:23:36 --> integral (sid296274@id-296274.tooting.irccloud.com) has joined ##rust 2021-06-24 18:23:36 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Ping timeout: 244 seconds) 2021-06-24 18:23:37 --> pragma- (~chaos@user/pragmatic-chaos) has joined ##rust 2021-06-24 18:23:37 --> Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has joined ##rust 2021-06-24 18:23:37 --> nemo (nemo@hedgewars/dev/nemo) has joined ##rust 2021-06-24 18:23:37 --> edr (~edr@user/edr) has joined ##rust 2021-06-24 18:23:37 --> Gaelan (~gaelan@user/gaelan) has joined ##rust 2021-06-24 18:23:37 --> crest (~quassel@user/crest) has joined ##rust 2021-06-24 18:23:37 --> peng0in (~peng0in@skyoasis.de) has joined ##rust 2021-06-24 18:23:37 --> hays (rootvegeta@fsf/member/hays) has joined ##rust 2021-06-24 18:23:37 --> WeaselSoup (~bigorneau@user/weaselsoup) has joined ##rust 2021-06-24 18:23:37 --> fkrauthan (~fkrauthan@user/fkrauthan) has joined ##rust 2021-06-24 18:23:37 --> hiccupmaster (~edvinbasi@edvinbasil.com) has joined ##rust 2021-06-24 18:23:37 --> croax (9593c976ee@ghost.pepta.net) has joined ##rust 2021-06-24 18:23:37 --> Kabouik (~Kabouik@user/kabouik) has joined ##rust 2021-06-24 18:23:37 --> rtpg (sid443069@id-443069.charlton.irccloud.com) has joined ##rust 2021-06-24 18:23:37 --> avu (~jan@user/avu) has joined ##rust 2021-06-24 18:23:37 --> hubvu (sid495858@id-495858.tinside.irccloud.com) has joined ##rust 2021-06-24 18:23:38 --> extmind (~lars@quasar.extmind.de) has joined ##rust 2021-06-24 18:23:38 --> asynkron (sid433195@id-433195.charlton.irccloud.com) has joined ##rust 2021-06-24 18:23:38 --> beanzilla (beanzilla@user/beanzilla) has joined ##rust 2021-06-24 18:23:38 --> _0x1d3 (sid43116@id-43116.tinside.irccloud.com) has joined ##rust 2021-06-24 18:23:38 --> thican (~thican@megaman.thican.net) has joined ##rust 2021-06-24 18:23:38 --> koon (johan@slash24.se) has joined ##rust 2021-06-24 18:23:38 --> hoistbypetard (hoistbypet@user/hoistbypetard) has joined ##rust 2021-06-24 18:23:38 --> bronsen (~bronsen@2a04:d480:0:1::3) has joined ##rust 2021-06-24 18:23:41 --> Walther (walther@kapsi.fi) has joined ##rust 2021-06-24 18:23:41 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-06-24 18:23:41 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-06-24 18:23:41 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-06-24 18:23:41 --> paperManu (~paperManu@138.197.128.151) has joined ##rust 2021-06-24 18:23:41 --> haakon (~haakonn@82.196.8.209) has joined ##rust 2021-06-24 18:23:41 --> eriol (~eriol@user/eriol) has joined ##rust 2021-06-24 18:23:41 --> NightMonkey (~NightMonk@user/nightmonkey) has joined ##rust 2021-06-24 18:23:41 --> pyfisch (thelounge@user/pyfisch) has joined ##rust 2021-06-24 18:23:41 --> andi_ (~andi@user/andi/x-3467420) has joined ##rust 2021-06-24 18:23:41 --> tempest (~ashe@2607:5501:3000:1d3f::2) has joined ##rust 2021-06-24 18:23:41 --> robertm (robertm@rojoma.com) has joined ##rust 2021-06-24 18:23:41 --> relrod (~relrod@redhat/ansible.staff.relrod) has joined ##rust 2021-06-24 18:23:41 --> Tv_ (uid62079@user/tv/x-3144562) has joined ##rust 2021-06-24 18:23:41 --> kori (kori@user/kori) has joined ##rust 2021-06-24 18:23:41 --> Kirjava (~cake@user/kirjava) has joined ##rust 2021-06-24 18:23:41 --> tcole_ (~tcole@user/tcole) has joined ##rust 2021-06-24 18:23:41 --> demize (kyrias@archlinux/developer/demize) has joined ##rust 2021-06-24 18:23:41 --> Ryozuki (~Ryozuki@user/ryozuki) has joined ##rust 2021-06-24 18:23:41 --> PorkrollPosadist (~PorkrollP@matapacos.dog) has joined ##rust 2021-06-24 18:23:41 --> la_mettrie (~rimrunner@2a01:4f9:c010:3051::1) has joined ##rust 2021-06-24 18:23:41 --> dkeohane (~dkeohane@ec2-18-189-29-140.us-east-2.compute.amazonaws.com) has joined ##rust 2021-06-24 18:23:41 --> marienz (~marienz@libera/staff/marienz) has joined ##rust 2021-06-24 18:23:41 --> acnebs (~acnebs@2604:a880:400:d0::1a64:c001) has joined ##rust 2021-06-24 18:23:41 --> r0bby (r0bby@user/r0bby) has joined ##rust 2021-06-24 18:23:41 --> mindfreeze (sid250931@user/mindfreeze) has joined ##rust 2021-06-24 18:23:41 --> edm (sid147314@id-147314.stonehaven.irccloud.com) has joined ##rust 2021-06-24 18:23:41 --> clinth (sid17558@user/clinth) has joined ##rust 2021-06-24 18:23:41 --> stchris (~chris@2001:19f0:6c01:fd4:5400:2ff:feb9:c0b0) has joined ##rust 2021-06-24 18:23:41 --> CuriousErnestBro (~CuriousEr@user/curiousernestbro) has joined ##rust 2021-06-24 18:23:41 --> Geekingfrog (~geekingfr@li2156-64.members.linode.com) has joined ##rust 2021-06-24 18:23:41 --> vup (~~~~@46.101.193.235) has joined ##rust 2021-06-24 18:23:41 --> decartes (uid240036@id-240036.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:23:41 --> oranges (~oranges@jumphost.oranges.net.nz) has joined ##rust 2021-06-24 18:23:41 --> Windfisch (~Windfisch@user/windfisch) has joined ##rust 2021-06-24 18:23:41 --> ecobos (sid133554@user/ecobos) has joined ##rust 2021-06-24 18:23:41 --> aoei (aoei@nethackscoreboard/aoei) has joined ##rust 2021-06-24 18:23:41 --> pedrocr (~pedrocr@user/pedrocr) has joined ##rust 2021-06-24 18:23:41 --> tux3 (~tux3@user/tux3) has joined ##rust 2021-06-24 18:23:41 --> lithammer (~lithammer@2a02:2770::21a:4aff:fe88:c18d) has joined ##rust 2021-06-24 18:23:41 --> Freaky (~freaky@user/freaky) has joined ##rust 2021-06-24 18:23:41 --> jtdowney (~jtdowney@user/jtdowney) has joined ##rust 2021-06-24 18:23:41 --> gemelen (~gemelen@zooey.gemelen.net) has joined ##rust 2021-06-24 18:23:41 --> TallonRain (sid214799@user/tallonrain) has joined ##rust 2021-06-24 18:23:48 <-- siraben (~siraben@user/siraben) has quit (Max SendQ exceeded) 2021-06-24 18:24:03 <-- ckie (~ckie@user/cookie) has quit (Max SendQ exceeded) 2021-06-24 18:24:03 <-- smitop (~smitop@user/smitop) has quit (Max SendQ exceeded) 2021-06-24 18:24:19 <-- JanC (~janc@user/janc) has quit (Max SendQ exceeded) 2021-06-24 18:24:19 <-- schmillin (~schmillin@user/schmillin) has quit (Max SendQ exceeded) 2021-06-24 18:24:21 <-- kron (~weechat@user/qaph) has quit (Remote host closed the connection) 2021-06-24 18:24:21 --> rodd (~zrod@user/rodd) has joined ##rust 2021-06-24 18:24:21 --> Zulikath (~zi@vmi584737.contaboserver.net) has joined ##rust 2021-06-24 18:24:21 --> brb (~brb@user/brb) has joined ##rust 2021-06-24 18:24:21 --> Blub\0 (~wry@eperm.errno.eu) has joined ##rust 2021-06-24 18:24:21 --> lhx (~lhx@45.76.230.247) has joined ##rust 2021-06-24 18:24:21 --> _________ (~nobody@user//x-7881368) has joined ##rust 2021-06-24 18:24:21 --> haliucinas (~haliucina@5.20.153.21) has joined ##rust 2021-06-24 18:24:21 --> koolazer (~koo@user/koolazer) has joined ##rust 2021-06-24 18:24:21 --> rk4 (~r@user/rk4) has joined ##rust 2021-06-24 18:24:21 --> tribaal (~tribaal@ubuntu/member/tribaal) has joined ##rust 2021-06-24 18:24:24 --> mebus (~mebus@2a00:8a60:e019:10de::ac22) has joined ##rust 2021-06-24 18:24:24 --> make (~mark@shell.off.net) has joined ##rust 2021-06-24 18:24:24 --> kchibisov (~kchibisov@li2157-210.members.linode.com) has joined ##rust 2021-06-24 18:24:24 --> mstruebing (~maex@2001:41d0:8:93c7::1) has joined ##rust 2021-06-24 18:24:24 --> ap5 (~inf@2a01:4f9:c010:bd02::1) has joined ##rust 2021-06-24 18:24:24 --> Lumpio- (~matti@dsl-lhtbng12-54fa7c-206.dhcp.inet.fi) has joined ##rust 2021-06-24 18:24:24 --> cbreaker (~zenmaster@53.ip-51-38-71.eu) has joined ##rust 2021-06-24 18:24:24 --> mcint (mcint@user/mcint) has joined ##rust 2021-06-24 18:24:24 --> capitol (~capitol@login.hackeriet.no) has joined ##rust 2021-06-24 18:24:52 <-- koolazer (~koo@user/koolazer) has quit (Max SendQ exceeded) 2021-06-24 18:25:04 --> ckie (~ckie@bokkusu.ckie.dev) has joined ##rust 2021-06-24 18:25:04 --> seds (sid492514@id-492514.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:25:04 --> PotatoGim_ (sid99505@id-99505.tooting.irccloud.com) has joined ##rust 2021-06-24 18:25:04 --> hwrd (sid64402@id-64402.tooting.irccloud.com) has joined ##rust 2021-06-24 18:25:04 --> ssbr_ (~ssbr@2620:15c:10f:203:4a38:f9fe:3fbe:790c) has joined ##rust 2021-06-24 18:25:04 --> mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has joined ##rust 2021-06-24 18:25:04 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 18:25:04 --> nohit (sid334887@id-334887.tinside.irccloud.com) has joined ##rust 2021-06-24 18:25:04 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-24 18:25:04 --> lf (~quassel@p200300d21f009d00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 18:25:04 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-24 18:25:04 --> nvmd (~nvmd@user/nvmd) has joined ##rust 2021-06-24 18:25:04 --> mIGu (~mig21@user/naur) has joined ##rust 2021-06-24 18:25:04 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-24 18:25:04 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-06-24 18:25:19 --> koolazer (~koo@212.47.237.37) has joined ##rust 2021-06-24 18:25:36 --> dozn (uid249292@id-249292.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:26:52 <-- nrr (sid20938@id-20938.tooting.irccloud.com) has quit (Ping timeout: 246 seconds) 2021-06-24 18:27:24 <-- evalr2 (arnavion@user/arnavion) has quit (Remote host closed the connection) 2021-06-24 18:27:34 <-- jai (~darkapex@user/darkapex) has quit (Ping timeout: 246 seconds) 2021-06-24 18:27:44 <-- Alex[m]123456715 (~randomstr@2001:470:69fc:105::47f6) has quit (Ping timeout: 252 seconds) 2021-06-24 18:27:46 <-- koishi (uid160860@wikimedia/Stang) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:03 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:03 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:03 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:16 --> nrr (sid20938@id-20938.tooting.irccloud.com) has joined ##rust 2021-06-24 18:28:24 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:26 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:26 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Ping timeout: 272 seconds) 2021-06-24 18:28:26 --> koishi (uid160860@id-160860.brockwell.irccloud.com) has joined ##rust 2021-06-24 18:28:27 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Ping timeout: 272 seconds) 2021-06-24 18:29:39 <-- xsperry (~as@user/xsperry) has quit 2021-06-24 18:31:19 <-- ChanServ (ChanServ@services.libera.chat) has quit (*.net *.split) 2021-06-24 18:31:57 --> ChanServ (ChanServ@services.libera.chat) has joined ##rust 2021-06-24 18:31:57 -- Mode ##rust [+o ChanServ] by copper.libera.chat 2021-06-24 18:32:08 <-- integral (sid296274@id-296274.tooting.irccloud.com) has quit (Changing host) 2021-06-24 18:32:08 --> integral (sid296274@user/integral) has joined ##rust 2021-06-24 18:32:08 <-- seds (sid492514@id-492514.brockwell.irccloud.com) has quit (Changing host) 2021-06-24 18:32:08 --> seds (sid492514@user/seds) has joined ##rust 2021-06-24 18:32:08 <-- koishi (uid160860@id-160860.brockwell.irccloud.com) has quit (Changing host) 2021-06-24 18:32:08 --> koishi (uid160860@wikimedia/Stang) has joined ##rust 2021-06-24 18:32:08 <-- dozn (uid249292@id-249292.brockwell.irccloud.com) has quit (Changing host) 2021-06-24 18:32:08 --> dozn (uid249292@user/dozn) has joined ##rust 2021-06-24 18:32:37 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-24 18:32:43 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-24 18:32:47 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 265 seconds) 2021-06-24 18:32:48 --> evalr2 (arnavion@user/arnavion) has joined ##rust 2021-06-24 18:32:52 --> CommunistWolf (~gulag@user/communistwolf) has joined ##rust 2021-06-24 18:33:00 --> JanC (~janc@user/janc) has joined ##rust 2021-06-24 18:33:23 <-- ekathva (~ekathva@88-114-118-108.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-06-24 18:35:12 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-24 18:36:40 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 246 seconds) 2021-06-24 18:38:00 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-24 18:38:23 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-06-24 18:38:23 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-06-24 18:38:54 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Ping timeout: 244 seconds) 2021-06-24 18:39:27 <-- MichaelLong (~ml@user/michaellong) has quit (Ping timeout: 244 seconds) 2021-06-24 18:39:39 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-24 18:40:16 --> MichaelLong (~ml@2a00:6020:21fb:6300:db34:b52c:61d7:f2c7) has joined ##rust 2021-06-24 18:40:16 <-- MichaelLong (~ml@2a00:6020:21fb:6300:db34:b52c:61d7:f2c7) has quit (Changing host) 2021-06-24 18:40:16 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-24 18:41:52 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-24 18:43:19 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-24 18:43:42 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-24 18:44:02 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 250 seconds) 2021-06-24 18:45:56 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-24 18:46:46 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-24 18:51:03 --> justache (~justache@user/justache) has joined ##rust 2021-06-24 18:52:05 <-- x_kuru (~xkuru@user/xkuru) has quit (Quit: Unvirtualizing) 2021-06-24 18:52:21 -- night_wulfe_ is now known as night_wulfe 2021-06-24 18:52:34 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-24 18:59:34 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 18:59:53 <-- jaix (~jaix@97e757bf.skybroadband.com) has quit (Changing host) 2021-06-24 18:59:53 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-24 19:01:43 <-- nvmd (~nvmd@user/nvmd) has quit (Ping timeout: 256 seconds) 2021-06-24 19:03:28 <-- xkuru (~xkuru@user/xkuru) has quit (Quit: Unvirtualizing) 2021-06-24 19:03:37 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 246 seconds) 2021-06-24 19:03:37 --> nvmd (~nvmd@user/nvmd) has joined ##rust 2021-06-24 19:03:47 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-24 19:03:58 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 250 seconds) 2021-06-24 19:04:33 <-- cdown (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-06-24 19:04:42 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-06-24 19:04:47 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-24 19:07:26 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-24 19:10:30 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-24 19:12:49 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-06-24 19:15:30 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 240 seconds) 2021-06-24 19:19:11 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:bbfc:1ba1:ffb3:62a) has quit (Remote host closed the connection) 2021-06-24 19:22:00 <-- ssbr_ (~ssbr@2620:15c:10f:203:4a38:f9fe:3fbe:790c) has quit (Remote host closed the connection) 2021-06-24 19:22:19 --> ssbr_ (~ssbr@2620:15c:10f:203:222b:48fb:ba53:5eb8) has joined ##rust 2021-06-24 19:23:51 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-24 19:30:22 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-24 19:31:11 <-- lf (~quassel@p200300d21f009d00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-06-24 19:31:45 --> lf (~quassel@p200300d21f006a00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 19:32:24 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-24 19:42:25 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-24 19:43:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 19:43:40 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-06-24 19:44:59 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 19:47:16 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 19:48:01 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 19:49:00 <-- ckie (~ckie@bokkusu.ckie.dev) has quit (Quit: off I go~) 2021-06-24 19:49:27 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-24 19:49:53 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-06-24 19:51:28 --> ckie (~ckie@user/cookie) has joined ##rust 2021-06-24 19:51:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 19:52:19 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 19:54:28 davros anyone know off hand if the underlying thread model allows something like.. spawning threads with a maximum timeslice limit (eg. "this thread and its children can never consume more than 10% of CPU time") 2021-06-24 19:55:23 davros ^ i realise that '% of cpu time' will also be complicated by cores. ("no more than 10% of any core" vs "no more than 10% of the systems total execution resources" 2021-06-24 19:55:37 ssbr_ davros: your OS might support that, Rust doesn't do anything special here. 2021-06-24 19:55:47 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 19:56:32 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 19:57:35 ssbr_ I think linux only does it at the granularity of a process (e.g. https://manpages.ubuntu.com/manpages/xenial/man1/cpulimit.1.html ) 2021-06-24 20:00:10 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:00:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:04:28 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:05:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:07:20 <-- lohn2 (~Lohn@144.76.18.70) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-24 20:07:39 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-06-24 20:08:16 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-24 20:08:49 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:09:08 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-24 20:09:35 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:12:25 --> cco (uid173181@id-173181.tinside.irccloud.com) has joined ##rust 2021-06-24 20:13:13 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:13:57 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:17:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:18:16 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:18:26 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-24 20:19:12 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-06-24 20:19:22 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 256 seconds) 2021-06-24 20:20:50 -- Gustavo6046_ is now known as Gustavo6046 2021-06-24 20:21:38 danieldg davros: on linux, look at clock_gettime CLOCK_THREAD_CPUTIME_ID, but stopping a thread after an 'expriy' of time left has all the same issues as thread cancelling, so you can't really do that nicely 2021-06-24 20:21:38 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-24 20:21:38 davros ssbr 'process' .. rather than thread . so for what i have in mind , on "most OS's", it would be a case of spawning a process and doing inter-process-communication, i guess. 2021-06-24 20:21:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:22:36 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:22:45 danieldg davros: or look at timer_create, but note that signal handlers are just as unsafe 2021-06-24 20:25:02 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 256 seconds) 2021-06-24 20:26:15 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:26:22 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-24 20:27:01 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:29:15 davros danieldg ssbr_ .. "seperate process" might be what i need for this scenario ... i will explain the notion 2021-06-24 20:29:57 davros i wanted to provide an environment uising my game to train/test some other peoples AI engines . those themselves are written in C/C++ anyway 2021-06-24 20:30:40 <-- jsb (~jsb@jakob.dev) has quit (Quit: .) 2021-06-24 20:30:40 danieldg yeah, you want this in another process, probably with sandboxing 2021-06-24 20:30:43 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:30:44 davros i could spawn a process running one of their engines, give it a timeslice (like "10% of the cpu can be spent on AI"), and feed it abstract info 2021-06-24 20:30:57 davros and yeah.. i'd want to give them a memory limit aswell.. 2021-06-24 20:31:10 --> jsb (~jsb@jakob.dev) has joined ##rust 2021-06-24 20:31:22 danieldg this is really what the original seccomp is for, if you want to go that far 2021-06-24 20:31:27 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:31:45 ssbr_ davros: this is *definitely* something that's best done with process boundaries, yes. You can even set memory limits. 2021-06-24 20:31:49 davros i've never used processes this way.... i'm vaguely aware of their existence 2021-06-24 20:32:11 davros the fact these guys AI engines are really designed as standalone things.. 2021-06-24 20:32:29 danieldg create a proceses (std::process), have it launch a wrapper program you write 2021-06-24 20:32:44 davros "ok you think you can create AGI someday.. may in the meantime you can give me an interesting controller for a shooter game enemy.." 2021-06-24 20:32:57 danieldg have the wrapper program load the AI engine (but not start it), set up sandbox & limits, then run 2021-06-24 20:33:31 Tv_ what's a nice way to have an executable that can be used by tests, but not bother regular users with that in e.g. cargo install 2021-06-24 20:33:57 danieldg Tv_: have it built only with a test feature, maybe 2021-06-24 20:34:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:35:43 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:36:39 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-24 20:39:22 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:40:06 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:43:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:44:24 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:48:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:48:50 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:49:24 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-24 20:51:15 Tv_ danieldg: that seems to have an unfortunate side effect of building another copy of the lib, even with `cargo build --features=foo --bin=foo`. still, very workable 2021-06-24 20:53:28 Tv_ added to Cargo.toml [features] foo = [] [[bin]] name="foo" required-features=["foo"] 2021-06-24 20:53:28 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:53:28 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 20:53:56 Tv_ i wonder if there's a way to do #[cfg(test)] on a binary 2021-06-24 20:55:07 Tv_ like how [target.'cfg(windows)'.dependencies] does 2021-06-24 20:56:44 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 20:56:45 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 256 seconds) 2021-06-24 20:57:30 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:01:16 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 21:01:16 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:02:00 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:04:44 <-- sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has quit (Read error: Permission denied) 2021-06-24 21:05:01 --> sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has joined ##rust 2021-06-24 21:05:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:06:21 --> fbernier (~fbernier@149.248.62.56) has joined ##rust 2021-06-24 21:06:28 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:06:41 Tv_ i guess i should just use a tests/foo.rs that does nothing when run by `cargo test` 2021-06-24 21:06:57 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-24 21:08:12 --> neurocyte5 (~neurocyte@45.128.180.93) has joined ##rust 2021-06-24 21:08:12 <-- neurocyte5 (~neurocyte@45.128.180.93) has quit (Changing host) 2021-06-24 21:08:12 --> neurocyte5 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-24 21:09:56 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:10:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:11:50 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Ping timeout: 252 seconds) 2021-06-24 21:12:57 --> tiny_user (~tiny_user@2409:8a55:4f13:1650:3dde:8b18:3967:32cd) has joined ##rust 2021-06-24 21:13:41 Tv_ yeah nothing else but tests/foo.rs, [[test]] name = "foo" harness = false and a fn main that requires a special tickle to do anything 2021-06-24 21:14:14 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:14:59 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:18:28 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:19:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:19:35 <-- tiny_user (~tiny_user@2409:8a55:4f13:1650:3dde:8b18:3967:32cd) has quit (Quit: tiny_user) 2021-06-24 21:20:39 --> tiny_user (~tiny_user@2409:8a55:4f13:1650:3dde:8b18:3967:32cd) has joined ##rust 2021-06-24 21:22:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:23:36 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:25:10 <-- xsperry (~as@user/xsperry) has quit 2021-06-24 21:26:17 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-24 21:26:32 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 250 seconds) 2021-06-24 21:26:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:27:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:28:26 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-24 21:31:08 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:31:53 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-24 21:31:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:34:11 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-24 21:34:18 <-- ssbr_ (~ssbr@2620:15c:10f:203:222b:48fb:ba53:5eb8) has quit (Ping timeout: 240 seconds) 2021-06-24 21:35:37 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:36:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:37:37 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 246 seconds) 2021-06-24 21:39:54 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:40:39 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:41:54 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 21:44:13 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:44:55 routeveg Hi all 2021-06-24 21:44:59 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:45:32 routeveg Is there a reasonable way to achieve Option> -> Option ? 2021-06-24 21:45:47 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 21:45:54 --> djapo (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has joined ##rust 2021-06-24 21:46:15 danieldg routeveg: look at the docs, there's a function for it 2021-06-24 21:46:25 routeveg I want to get exit status of a potentially running process. Currently got: Child::try_wait().ok().and_then(|o| o) 2021-06-24 21:46:34 routeveg The end part is making me sad 2021-06-24 21:46:57 GreenJello .flatten() 2021-06-24 21:47:01 routeveg I looked at the Option page and couldn't find anything that looked right 2021-06-24 21:47:14 danieldg searchig for Option djapo (~archangel@user/djapo) has joined ##rust 2021-06-24 21:47:56 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-24 21:48:39 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:49:25 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:50:18 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 240 seconds) 2021-06-24 21:51:29 <-- tiny_user (~tiny_user@2409:8a55:4f13:1650:3dde:8b18:3967:32cd) has quit (Quit: tiny_user) 2021-06-24 21:51:49 --> spirit (~spirit@user/spirit) has joined ##rust 2021-06-24 21:52:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:53:45 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:56:39 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-24 21:57:14 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 21:57:58 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 21:58:52 --> starblue (~juergen@dslb-088-078-109-108.088.078.pools.vodafone-ip.de) has joined ##rust 2021-06-24 21:59:18 --> lainon (lainon@gateway/vpn/protonvpn/lainon) has joined ##rust 2021-06-24 22:01:38 <-- starblue3 (~juergen@dslb-088-078-101-107.088.078.pools.vodafone-ip.de) has quit (Ping timeout: 250 seconds) 2021-06-24 22:01:44 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:02:30 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:03:50 <-- xkuru (~xkuru@user/xkuru) has quit (Read error: Connection reset by peer) 2021-06-24 22:05:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:06:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:07:12 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-24 22:08:15 nitrix If there's also a T -> Option, we've got ourselves Monads! 2021-06-24 22:10:02 danieldg nitrix: Into does that 2021-06-24 22:10:19 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:11:04 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:13:16 --> MadBeiDrache (~madison@2001:a61:35b8:2401:d8a3:a59:1e4f:74d6) has joined ##rust 2021-06-24 22:14:20 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:14:31 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-24 22:15:06 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:15:31 <-- sgift (~madison@2001:a61:3461:4a01:9160:bdf2:2cbe:b634) has quit (Ping timeout: 256 seconds) 2021-06-24 22:18:42 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:19:27 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:21:31 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-24 22:23:07 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 246 seconds) 2021-06-24 22:23:15 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:24:00 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:27:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:28:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:28:18 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-06-24 22:28:21 routeveg nitrix: Some() is just that 2021-06-24 22:28:23 <-- djapo (~archangel@user/djapo) has quit (Remote host closed the connection) 2021-06-24 22:29:09 routeveg I do like how rust is sneaking monadic features into a space occupied by engineers doing 'real work' 2021-06-24 22:29:20 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-24 22:29:21 routeveg Though C# kinda beat them to that 2021-06-24 22:31:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:32:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:36:05 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:36:51 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:37:18 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-24 22:39:43 --> beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has joined ##rust 2021-06-24 22:40:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:41:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:42:02 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 252 seconds) 2021-06-24 22:44:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:45:44 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:47:01 <-- beatleboy07 (~beatleboy@c-24-17-50-149.hsd1.wa.comcast.net) has quit (Quit: Leaving) 2021-06-24 22:48:12 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-24 22:49:20 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:50:06 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:50:09 --> ckdCreations (~ckdCreati@c-24-17-50-149.hsd1.wa.comcast.net) has joined ##rust 2021-06-24 22:52:03 --> habys_ (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has joined ##rust 2021-06-24 22:52:06 <-- habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (Ping timeout: 244 seconds) 2021-06-24 22:52:20 <-- emerent (~quassel@p200300cd5703bb5dba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-24 22:53:41 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:53:49 --> emerent (~quassel@p200300cd5703bbd0ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-24 22:54:27 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 22:58:05 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 22:58:12 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 272 seconds) 2021-06-24 22:58:51 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:02:30 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:03:14 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:06:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:07:39 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:09:01 <-- lainon (lainon@gateway/vpn/protonvpn/lainon) has quit (Remote host closed the connection) 2021-06-24 23:09:18 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-24 23:09:26 --> lainon (~lainon@146.229.79.56) has joined ##rust 2021-06-24 23:11:09 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:11:54 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:15:23 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:16:08 --> redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has joined ##rust 2021-06-24 23:16:08 <-- redir (~redir@157-131-92-184.fiber.dynamic.sonic.net) has quit (Client Quit) 2021-06-24 23:16:08 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:17:51 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-24 23:17:52 <-- mIGu (~mig21@user/naur) has quit (Ping timeout: 256 seconds) 2021-06-24 23:18:12 --> aquijoule_ (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-24 23:19:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:20:27 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:20:41 <-- aquijoule__ (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (Ping timeout: 258 seconds) 2021-06-24 23:22:54 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-24 23:22:58 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-24 23:24:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:24:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:25:47 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 256 seconds) 2021-06-24 23:28:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Remote host closed the connection) 2021-06-24 23:28:50 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-24 23:29:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:33:07 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:33:53 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:34:57 <-- Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-06-24 23:37:03 <-- Vonter (~Vonter@124.123.104.41) has quit (Quit: WeeChat 3.1) 2021-06-24 23:37:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:38:22 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:38:33 --> Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has joined ##rust 2021-06-24 23:39:20 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-24 23:39:25 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-24 23:39:46 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 246 seconds) 2021-06-24 23:40:36 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-24 23:42:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:42:50 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:43:58 <-- debsan (~debsan@2800:810:471:2ee::1001) has quit (Ping timeout: 246 seconds) 2021-06-24 23:45:11 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-24 23:46:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:46:36 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-24 23:47:17 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:50:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:51:17 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-06-24 23:51:36 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:55:09 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-24 23:55:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-24 23:56:12 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-24 23:59:32 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:00:17 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-25 00:00:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:03:39 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:03:56 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-25 00:04:24 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:05:50 <-- justache (~justache@user/justache) has quit (Read error: Connection reset by peer) 2021-06-25 00:06:13 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-25 00:06:33 --> justache (~justache@user/justache) has joined ##rust 2021-06-25 00:07:33 <-- lainon (~lainon@146.229.79.56) has quit (Quit: Leaving) 2021-06-25 00:08:10 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:08:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:12:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:13:20 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:13:26 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-25 00:15:59 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Ping timeout: 250 seconds) 2021-06-25 00:16:50 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:17:35 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:21:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:21:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:25:31 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:26:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:27:19 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-06-25 00:30:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:30:49 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:33:02 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-25 00:34:33 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:35:18 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:37:38 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-25 00:38:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:39:43 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:43:13 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:43:58 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:47:39 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:48:06 --> trev (~trev@user/trev) has joined ##rust 2021-06-25 00:48:26 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:51:39 <-- fkrauthan (~fkrauthan@user/fkrauthan) has quit (Quit: ZNC - https://znc.in) 2021-06-25 00:52:02 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:52:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:53:28 --> fkrauthan (~fkrauthan@user/fkrauthan) has joined ##rust 2021-06-25 00:56:23 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 00:57:07 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 00:58:59 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-25 01:00:01 <-- emerent (~quassel@p200300cd5703bbd0ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-25 01:00:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:01:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:01:49 --> emerent (~quassel@p200300cd5703bbd0ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-25 01:05:10 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:05:55 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:07:46 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-25 01:09:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:10:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:13:43 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:14:29 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:14:44 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-25 01:18:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:18:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:20:18 --> dcz (~dcz@dynamic-093-132-128-195.93.132.pool.telefonica.de) has joined ##rust 2021-06-25 01:22:27 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:23:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:26:52 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:27:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:28:20 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 01:30:42 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 240 seconds) 2021-06-25 01:31:19 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:32:04 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:32:32 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-06-25 01:34:26 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-25 01:35:47 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:36:32 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:40:15 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:40:59 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:42:12 <-- johnw (~johnw@2607:f6f0:3004:1:c8b4:50ff:fef8:6bf0) has quit (Ping timeout: 250 seconds) 2021-06-25 01:42:13 --> johnw_ (~johnw@2600:1700:cf00:db0:445f:c73e:90ff:5975) has joined ##rust 2021-06-25 01:44:34 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:45:19 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:45:49 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-25 01:47:41 --> ekathva (~ekathva@88-114-118-108.elisa-laajakaista.fi) has joined ##rust 2021-06-25 01:48:51 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:49:26 <-- zmt01 (~zmt00@user/zmt00) has quit (Quit: Gone.) 2021-06-25 01:49:38 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:52:35 <-- ekathva (~ekathva@88-114-118-108.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-06-25 01:53:04 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:53:49 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:57:22 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 01:58:07 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 01:58:58 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-25 01:59:37 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-25 02:01:46 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:02:31 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:03:14 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-25 02:06:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:06:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:08:47 --> wezm (~wezm@14-200-155-66.tpgi.com.au) has joined ##rust 2021-06-25 02:10:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:11:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:14:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:15:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:18:27 --> ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has joined ##rust 2021-06-25 02:18:58 <-- wezm (~wezm@14-200-155-66.tpgi.com.au) has quit (Remote host closed the connection) 2021-06-25 02:19:03 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:19:35 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-25 02:19:50 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:21:51 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-25 02:23:27 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:24:13 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:24:58 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 246 seconds) 2021-06-25 02:27:51 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 02:27:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:27:55 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-25 02:28:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:30:06 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-25 02:31:51 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-25 02:32:14 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:33:01 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:33:16 --> gtlsgamr (~gtlsgamr@103.247.4.16) has joined ##rust 2021-06-25 02:33:35 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-25 02:34:26 --> mreznik (~mreznik@213.175.37.12) has joined ##rust 2021-06-25 02:35:21 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 02:35:32 <-- gtlsgamr (~gtlsgamr@103.247.4.16) has quit (Client Quit) 2021-06-25 02:36:35 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:37:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:41:08 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:41:54 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:44:42 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-25 02:45:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:46:15 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:48:10 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-25 02:50:00 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:50:47 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:52:39 --> a6a45081-2b83 (~aditya@106.214.225.112) has joined ##rust 2021-06-25 02:54:29 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:55:16 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 02:56:16 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-25 02:59:05 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 02:59:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 03:00:17 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-25 03:03:21 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 03:04:08 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 03:05:03 <-- MadBeiDrache (~madison@2001:a61:35b8:2401:d8a3:a59:1e4f:74d6) has quit (Quit: Leaving) 2021-06-25 03:07:44 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 03:08:30 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 03:12:12 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 03:12:15 --> gtlsgamr (~gtlsgamr@103.247.4.16) has joined ##rust 2021-06-25 03:12:15 <-- gtlsgamr (~gtlsgamr@103.247.4.16) has quit (Client Quit) 2021-06-25 03:12:58 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 03:13:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (K-Lined) 2021-06-25 03:16:55 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-25 03:21:06 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 240 seconds) 2021-06-25 03:21:41 --> msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has joined ##rust 2021-06-25 03:23:31 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-25 03:27:25 <-- a6a45081-2b83 (~aditya@106.214.225.112) has quit (Quit: Konversation terminated!) 2021-06-25 03:29:37 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 03:39:45 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-25 03:41:24 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-25 03:41:58 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-25 03:46:16 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-25 03:46:42 <-- SiegeLord (~sl@user/siegelord) has quit (Client Quit) 2021-06-25 03:49:32 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 272 seconds) 2021-06-25 03:50:13 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-25 03:54:55 --> kai (~kai@x50d24799.cust.hiper.dk) has joined ##rust 2021-06-25 04:04:34 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 265 seconds) 2021-06-25 04:07:46 --> ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has joined ##rust 2021-06-25 04:10:27 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 04:10:33 <-- aquijoule_ (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (Quit: Leaving) 2021-06-25 04:10:48 --> aquijoule_ (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-25 04:11:53 <-- doublesaiko (~saiko@crispy.dblsaiko.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-25 04:12:20 --> mIGu (~mig21@user/naur) has joined ##rust 2021-06-25 04:12:24 <-- snalty (~Shhh@user/snalty) has quit (Ping timeout: 258 seconds) 2021-06-25 04:12:56 --> trusch (~trusch@87.123.3.75) has joined ##rust 2021-06-25 04:14:23 --> asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has joined ##rust 2021-06-25 04:14:56 --> dblsaiko (~saiko@crispy.dblsaiko.net) has joined ##rust 2021-06-25 04:19:55 --> BobbyKennedy (~textual@194.62.169.65.ipv4.parknet.dk) has joined ##rust 2021-06-25 04:21:39 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-25 04:27:46 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (Quit: ZNC - http://znc.in) 2021-06-25 04:27:47 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 04:28:15 <-- chrizz (~chrizz@user/chrizz) has quit (Ping timeout: 265 seconds) 2021-06-25 04:28:25 --> hegstal (~hegstal@2a02:c7f:7604:8a00:2b2e:62ff:bd4a:55cb) has joined ##rust 2021-06-25 04:28:35 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-06-25 04:31:11 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-25 04:33:32 --> maxyz (~maxy@80.254.172.91) has joined ##rust 2021-06-25 04:34:14 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-25 04:35:22 capitol I just saw: https://github.com/MakotoE/clippy-output 2021-06-25 04:35:30 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 240 seconds) 2021-06-25 04:37:12 --> Midjak1 (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has joined ##rust 2021-06-25 04:38:58 <-- BobbyKennedy (~textual@194.62.169.65.ipv4.parknet.dk) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-25 04:39:06 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-25 04:44:15 <-- anchorite (~anchorite@95.111.56.99) has quit (Remote host closed the connection) 2021-06-25 04:44:29 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-25 04:50:20 rk4 what are these 'monadic features' rust is sneaking in, in terms of some one who knows rust but not haskell 2021-06-25 04:51:57 RedCrab I have a trait with a function that I want to have a return type of Result. Unfortunately Self is not Sized. How can I work around this? 2021-06-25 04:52:21 * rk4 waits to say box it but tbh has nfi 2021-06-25 04:52:22 Mutabah I assume you want the trait to be object safe? 2021-06-25 04:52:22 j`ey RedCrab: you could add a: where Self: Sized, bound? 2021-06-25 04:53:25 <-- lopsided98 (~quassel@2601:18a:0:85e0:3a6f:1d2a:eb10:63b1) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-25 04:53:59 RedCrab Yes, I want it to be object safe. And j`ey So the signature would be "fn do_thing(self) -> Result". Where should the Sized part go in here? 2021-06-25 04:54:52 --> lopsided98 (~quassel@2601:18a:0:85e0:a678:8e8c:16fd:4ff5) has joined ##rust 2021-06-25 04:56:20 RedCrab Ah, I think I see. Result where Self: std::marker::Sized 2021-06-25 04:56:31 j`ey ye 2021-06-25 04:56:52 j`ey btw Sized is in the prelude, if you didnt want to qualify it fully 2021-06-25 04:57:48 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-25 04:58:28 RedCrab I see, thanks 2021-06-25 05:00:20 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-06-25 05:01:58 Gottox z 2021-06-25 05:02:01 Gottox whoops 2021-06-25 05:03:31 --> meandi (~meandi4@dyndsl-178-142-250-112.ewe-ip-backbone.de) has joined ##rust 2021-06-25 05:04:44 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-25 05:08:09 <-- Midjak1 (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has quit (Quit: Leaving.) 2021-06-25 05:08:29 --> Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has joined ##rust 2021-06-25 05:09:08 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 258 seconds) 2021-06-25 05:09:50 <-- dblsaiko (~saiko@crispy.dblsaiko.net) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-25 05:11:17 --> dblsaiko (~saiko@crispy.dblsaiko.net) has joined ##rust 2021-06-25 05:11:27 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 05:14:10 <-- ziper (~deamon@212.237.171.46) has quit (Quit: ziper) 2021-06-25 05:18:28 --> independent56_ (~independe@2.26.38.198) has joined ##rust 2021-06-25 05:19:31 <-- kwilczynski (sid379192@user/kwilczynski) has quit 2021-06-25 05:19:50 <-- independent56_ (~independe@2.26.38.198) has left ##rust (Leaving) 2021-06-25 05:26:51 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-25 05:34:44 <-- flipchan (~yumman@user/flipchan) has quit (Read error: Connection reset by peer) 2021-06-25 05:35:13 --> flipchan (~yumman@88.131.87.132) has joined ##rust 2021-06-25 05:36:21 bluss does anyone know a crate for compile-time integer parsing? To use from option_env!() and generating const's from parsing build time env vars. I already have my own PoC, so I know it's possible 2021-06-25 05:38:07 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-25 05:40:19 j`ey bluss: https://docs.rs/konst/0.2.4/konst/primitive/fn.parse_i64.html 2021-06-25 05:40:51 j`ey (not an endorsement :P) 2021-06-25 05:46:01 --> mpt (~tom@2a02:908:1862:49e0::6) has joined ##rust 2021-06-25 05:52:05 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-25 05:53:10 <-- kron (~weechat@user/qaph) has quit (Quit: kron) 2021-06-25 05:54:37 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-25 05:55:19 <-- mpt (~tom@2a02:908:1862:49e0::6) has quit (Ping timeout: 246 seconds) 2021-06-25 05:55:21 --> chrizz (~chrizz@user/chrizz) has joined ##rust 2021-06-25 05:55:26 --> bkircher (~bkircher@2001:a61:243a:7801:7c4e:35ba:8de7:8827) has joined ##rust 2021-06-25 05:55:47 --> tglman (~tglman@46.233.83.107) has joined ##rust 2021-06-25 05:56:00 ssbr_ rk4: whenever says "monadic composition", I mentally translate as "the ? operator", and 40% of the time I'm right. 2021-06-25 05:56:12 ssbr_ which actually is not very good, I need a better shortcut. 2021-06-25 05:57:52 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 250 seconds) 2021-06-25 06:02:03 <-- maxyz (~maxy@80.254.172.91) has quit (Quit: maxyz) 2021-06-25 06:02:44 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-25 06:03:17 bihtori How does '?' operator relate to monads? 2021-06-25 06:04:09 <-- kron (~weechat@user/qaph) has quit (Remote host closed the connection) 2021-06-25 06:05:10 --> mason0 (~bc817c21@199.204.85.195) has joined ##rust 2021-06-25 06:05:17 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-25 06:05:43 --> Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has joined ##rust 2021-06-25 06:10:14 <-- whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has quit (Ping timeout: 265 seconds) 2021-06-25 06:10:21 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-25 06:10:32 --> whoami (~whoami@d118-75-122-76.col.wideopenwest.com) has joined ##rust 2021-06-25 06:16:18 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-25 06:22:42 <-- bkircher (~bkircher@2001:a61:243a:7801:7c4e:35ba:8de7:8827) has quit (Ping timeout: 240 seconds) 2021-06-25 06:22:50 Arnavion monad?; rest is essentially sugar for monad.and_then(rest) but is easier to write than manually thunking, esp when dealing with branches and loops. It's similar to Haskell's `do` and F#'s `!` computation expressions, but constrained to only work for Result and Option (atm) 2021-06-25 06:22:59 --> w0x12ef_ (~w0x12ef@124.126.15.211) has joined ##rust 2021-06-25 06:24:16 Arnavion Well, s/essentially/conceptually/ perhaps. It actually does compile to early returns and not .and_then() after all 2021-06-25 06:25:55 mason0 it relates to, and has about as much (or as little) to do with monads as flat_map does. 2021-06-25 06:26:11 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-25 06:26:51 Arnavion and_then is flatMap, yes 2021-06-25 06:28:57 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-25 06:30:22 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-06-25 06:35:37 --> bkircher (~bkircher@2001:a61:243a:7801:7c4e:35ba:8de7:8827) has joined ##rust 2021-06-25 06:36:39 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-06-25 06:36:39 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-25 06:36:39 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-06-25 06:36:39 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-25 06:36:39 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-06-25 06:36:39 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-06-25 06:36:39 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-06-25 06:36:39 --> siraben (~siraben@user/siraben) has joined ##rust 2021-06-25 06:36:39 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-06-25 06:36:39 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-06-25 06:36:40 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-06-25 06:36:40 --> Alex[m]123456 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-25 06:36:40 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-06-25 06:36:53 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-06-25 06:47:35 --> vasilakisfil (~vasilakis@c213-89-149-11.bredband.tele2.se) has joined ##rust 2021-06-25 06:49:02 vasilakisfil I have a type Foo, and I want to get from Foo another type Bar, it's easy to do the convertion and I can implement a From for Bar. Thing is that I still want to create Bar from Foo, but I don't want ownership, Bar can very well behave itself with lifetimes. Is there a standard trait for getting Bar<'a> from Foo or should I just define my own method ? 2021-06-25 06:49:28 jbg generally you'd make an as_bar() method 2021-06-25 06:49:30 --> w0x12ef__ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-25 06:49:35 jbg like String::as_str() 2021-06-25 06:50:09 vasilakisfil ok I see 2021-06-25 06:50:49 vasilakisfil thanks! 2021-06-25 06:51:12 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-25 06:51:32 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-25 06:51:44 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-25 06:52:35 <-- w0x12ef_ (~w0x12ef@124.126.15.211) has quit (Ping timeout: 268 seconds) 2021-06-25 06:54:10 <-- w0x12ef__ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-25 06:59:43 --> Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-06-25 07:00:04 <-- Elladan (~elladan@user/elladan) has quit (Quit: ZNC - http://znc.in) 2021-06-25 07:01:20 --> Elladan (~elladan@user/elladan) has joined ##rust 2021-06-25 07:02:28 ssbr_ bihtori: people that refer to "monadic composition" often mean one specific monad -- in the ? case, Maybe 2021-06-25 07:02:45 ssbr_ idk, it's often very disconnected in non-haskell discourse IME 2021-06-25 07:02:56 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 07:06:03 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-25 07:10:48 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 07:11:44 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-25 07:16:05 --> cods (~fred@82-65-232-44.subs.proxad.net) has joined ##rust 2021-06-25 07:18:53 --> gtlsgamr (~gtlsgamr@103.247.4.16) has joined ##rust 2021-06-25 07:19:29 <-- gtlsgamr (~gtlsgamr@103.247.4.16) has left ##rust 2021-06-25 07:20:58 <-- croax (9593c976ee@ghost.pepta.net) has quit (Quit: Gateway shutdown) 2021-06-25 07:22:49 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 07:32:07 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-06-25 07:34:57 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-25 07:35:53 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-25 07:37:05 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 256 seconds) 2021-06-25 07:41:39 --> Ellipsis753 (~shanee@45.83.220.192) has joined ##rust 2021-06-25 07:43:24 Ellipsis753 Hi. Can I cast a: `extern "C" fn(size: c_ulong) -> *mut c_void` into a: `unsafe extern "C" fn(sz: usize) -> *mut c_void`? (c_ulong and usize should be the same size for me.) 2021-06-25 07:46:38 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-25 07:49:28 bluss j`ey: nice 2021-06-25 07:55:03 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-25 07:57:21 --> w0x12ef_ (~w0x12ef@60.10.23.171) has joined ##rust 2021-06-25 08:00:07 <-- vasilakisfil (~vasilakis@c213-89-149-11.bredband.tele2.se) has quit (Quit: Konversation terminated!) 2021-06-25 08:00:20 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-25 08:02:12 kee Ellipsis753: Why do you need to cast it to an unsafe function? 2021-06-25 08:02:16 kee But transmute should do that. 2021-06-25 08:02:46 Ellipsis753 kee: Sorry. It's mostly the argument of c_ulong that needs to change to usize. 2021-06-25 08:03:09 kee In which case core::mem:transmute (or std::mem::transmute) should work. 2021-06-25 08:03:20 Ellipsis753 Ok. Thank you. :) 2021-06-25 08:03:43 j`ey and you can add an assert / static asser that c_ulong == usize if you wanted 2021-06-25 08:04:25 --> arinov (~arinov@212.156.215.30) has joined ##rust 2021-06-25 08:07:57 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-25 08:09:23 <-- zeden (~zeden@user/zeden) has quit (Client Quit) 2021-06-25 08:09:59 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-25 08:10:57 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-25 08:11:47 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 08:12:52 --> w0x12ef__ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-25 08:15:19 Ellipsis753 The static assert is a good idea. I've added one now. Thanks. 2021-06-25 08:15:19 <-- w0x12ef_ (~w0x12ef@60.10.23.171) has quit (Ping timeout: 246 seconds) 2021-06-25 08:15:38 kee The rafx-api functions are only marked unsafe if they can cause UB on the CPU. 2021-06-25 08:15:57 kee They can all cause UB by interacting with the GPU, but those aren't marked unsafe. 2021-06-25 08:16:07 kee Is that technically allowed? 2021-06-25 08:17:31 mason0 do you need to use unsafe to call a C function? what about to call a rust function that calls a C function? 2021-06-25 08:17:54 j`ey mason0: a C function needs unsafe 2021-06-25 08:18:00 j`ey mason0: a rust function that calls a C one doesnt 2021-06-25 08:18:52 bertptrs kee: UB from a Rust perspective or UB from a "this is an invalid state for the GPU" perspective? 2021-06-25 08:19:07 kee bertptrs: Not sure, but that sounds like the right question to ask, thanks. 2021-06-25 08:19:29 kee I think "invalid state for the GPU which then violates the assumptions that make the rest of the API safe". 2021-06-25 08:19:43 danieldg kee: there's no UB police that enforces this, but if it could cause memory corruption in the rust process it should be unsafe 2021-06-25 08:20:41 --> w0x12ef (~w0x12ef@60.10.23.171) has joined ##rust 2021-06-25 08:21:52 <-- w0x12ef__ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-25 08:22:13 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 08:23:22 --> uakci (~uakci@user/uakci) has joined ##rust 2021-06-25 08:27:14 <-- tglman (~tglman@46.233.83.107) has quit (Ping timeout: 252 seconds) 2021-06-25 08:35:21 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:2b2e:62ff:bd4a:55cb) has quit (Remote host closed the connection) 2021-06-25 08:36:32 --> hegstal (~hegstal@2a02:c7f:7604:8a00:b401:1d9:cf08:e9d0) has joined ##rust 2021-06-25 08:39:20 <-- Vonter (~Vonter@user/vonter) has quit (Read error: Connection reset by peer) 2021-06-25 08:45:44 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-06-25 08:51:38 <-- arinov (~arinov@212.156.215.30) has quit (Ping timeout: 272 seconds) 2021-06-25 08:53:05 --> debsan (~debsan@2800:810:471:2ee::1001) has joined ##rust 2021-06-25 08:53:16 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 08:57:53 kee Is kernel panicking unsafe? 2021-06-25 08:59:30 bertptrs causing a panic from userspace is usually a bug, what happens? 2021-06-25 09:00:19 kee Getting the GPU into a very invalid state. 2021-06-25 09:00:35 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Remote host closed the connection) 2021-06-25 09:00:36 bertptrs impressive 2021-06-25 09:00:49 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-25 09:00:49 gchristensen neat 2021-06-25 09:01:17 kee Technically it violates Safe Rust's intrinsics, but no Rust code runs after that, so I think it's okay. 2021-06-25 09:01:37 bertptrs safe rust is allowed to panic :P 2021-06-25 09:01:48 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-25 09:01:54 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-25 09:01:57 gchristensen the great big panic in the sky 2021-06-25 09:02:31 capitol sounds like it might be a nice testcase to submit upstream :) 2021-06-25 09:04:30 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Quit: Leaving) 2021-06-25 09:05:57 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 09:12:00 trev is it possible to have an impl like impl<_, B> for Foo<_, B>, where you want to ignore a generic? 2021-06-25 09:12:21 bertptrs to avoid monomorphization, you mean? 2021-06-25 09:14:47 <-- Ellipsis753 (~shanee@45.83.220.192) has quit (Quit: Leaving) 2021-06-25 09:15:15 trev bertptrs not smart enough for that word :\ i just want to be able to initialize a struct with access to limited methods, then have another impl where there are type bounds 2021-06-25 09:16:16 j`ey trev: cant you just say T instead of _? 2021-06-25 09:16:35 bertptrs you can impl for Foo and then just not place bounds on A and B. That does require also leaving those bounds on the generics of Foo, as no impl can have weaker bounds than the original definition 2021-06-25 09:18:30 trev yeah this might work. thanks friends bertptrs j`ey...i didn't realize the bounds were still on the struct definition 2021-06-25 09:21:29 <-- upb (~cmpxchg@intrusion.software) has quit (Ping timeout: 252 seconds) 2021-06-25 09:22:26 <-- maerwald (~maerwald@user/maerwald) has quit (Ping timeout: 244 seconds) 2021-06-25 09:23:51 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-25 09:28:49 --> croax (9593c976ee@ghost.pepta.net) has joined ##rust 2021-06-25 09:31:48 raekye is it correct to say that Cell and RefCell are not strictly more flexible than normal references because the compiler can do non lexical lifetimes with normal references? 2021-06-25 09:32:40 bertptrs I wouldn't phrase it like that. NLL only works in local scope. You can have an Rc and use it in ways impossible with NLL 2021-06-25 09:34:04 --> smitop (~smitop@user/smitop) has joined ##rust 2021-06-25 09:34:26 raekye the case I'm working with right now is I have an immutable reference/borrow and later I need a mutable borrow (won't touch the immutable reference anymore) 2021-06-25 09:35:13 raekye I'm not 100% sure but I think if I write it naively it would cause a panic because the Ref only gets dropped at the end of the lexical scope 2021-06-25 09:36:03 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-25 09:36:11 raekye But the rust compiler does let you take an immutable reference followed by a mutable reference as long as you don't touch the immutable reference once you make the mutable one right? 2021-06-25 09:36:27 raekye even if they're in the same scope 2021-06-25 09:36:41 j`ey yes 2021-06-25 09:37:05 bertptrs Especially if they're in the same scope. If not, the compiler has a harder time proving that it's safe to doso 2021-06-25 09:37:27 <-- msavoritias (~msavoriti@91-158-103-66.elisa-laajakaista.fi) has quit (Remote host closed the connection) 2021-06-25 09:40:23 raekye So if I'm using Cell/RefCell I need to explicitly constrain the lifetime/scope of Cell/RefCell to ensure the borrow ends, otherwise it will last to the end of whatever the original scope was, even if I stopped needing it partway, correct? 2021-06-25 09:40:49 raekye (in case there's a mutable borrow later) 2021-06-25 09:40:53 bertptrs yes. although manually dropping the borrow should work 2021-06-25 09:41:03 raekye ah true, that helps a lot 2021-06-25 09:42:21 raekye thank you, it's more clear to me now 2021-06-25 09:44:50 --> thulium (~thulium@c-73-155-255-96.hsd1.tx.comcast.net) has joined ##rust 2021-06-25 09:45:23 <-- thulium (~thulium@c-73-155-255-96.hsd1.tx.comcast.net) has quit (Remote host closed the connection) 2021-06-25 09:48:15 <-- w0x12ef (~w0x12ef@60.10.23.171) has quit (Ping timeout: 272 seconds) 2021-06-25 09:48:52 raekye Hmmm just thinking, in general Rust must run drop at the end of the lexical scope because of possible side effects correct? E.g. if some drop implementation calls print, the programmer would expect it to execute at the end of the lexical scope 2021-06-25 09:50:06 raekye But since Cell/RefCell are part of the language/standard library and the compiler knows what its drop does, hypothetically couldn't the rust compiler apply NLL to Cell and RefCell as well? 2021-06-25 09:50:32 raekye I.e. drop them after their last use 2021-06-25 09:50:52 --> upb (~cmpxchg@intrusion.software) has joined ##rust 2021-06-25 09:50:57 raekye Not saying it's practical - having this special behaviour for Cell/RefCell (don't know how you would generalize it) 2021-06-25 09:51:11 bertptrs It could, but it doesn't right now. Whether that's a good thing is debatable. The problem is that while NLL failures result in a compiler error, RefCell NLL would result in a compile-time error 2021-06-25 09:51:19 bertptrs the last one should be runtime of course 2021-06-25 09:51:25 bertptrs And that would be very painful to debug 2021-06-25 09:52:55 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 09:53:24 --> snikulov (~snikulov@109-252-86-189.nat.spd-mgts.ru) has joined ##rust 2021-06-25 09:55:06 raekye Hmmm not sure I understood your second point. Wouldn't "RefCell NLL" be strictly more flexible without losing correctness? Ending a RefCell's lifetime after it's last use should not "hide" any accesses to the data inside (if the inner data is used, it must be through another borrow) 2021-06-25 09:55:30 --> winircuser-318 (~winircuse@170.250.221.149) has joined ##rust 2021-06-25 09:55:41 kee raekye: How would the compiler infer that it should do that? 2021-06-25 09:55:58 kee For normal references, there's no valid behaviour when you alias. 2021-06-25 09:56:04 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 09:56:13 kee For RefCell, there's valid behaviour (which happens to be panicking). 2021-06-25 09:56:30 <-- winircuser-318 (~winircuse@170.250.221.149) has quit (Client Quit) 2021-06-25 09:56:44 kee So how should the compiler know to make an exception to the ordinary drop rules? 2021-06-25 09:59:58 raekye To correct myself by "without losing correctness" I meant that code that was correct (didn't panic) before would not panic or have a compile time error, and code that compiles still panics if mutable xor multiple references is violated at runtime 2021-06-25 10:00:14 raekye Again I'm not saying it's a good idea (because it would be an exception to the ordinary drop rules) 2021-06-25 10:00:26 <-- jinsun (~quassel@user/jinsun) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-25 10:00:55 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 272 seconds) 2021-06-25 10:01:15 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-25 10:02:39 raekye And to be clear I'm not stating what I said as true, I'm asking if it's true 2021-06-25 10:03:52 raekye Indeed if NLL was applied to Cell and RefCell some programs that did panic would nolonger panic, in the same way some programs that didn't compile before NLL can compile (and are still correct) with NLL 2021-06-25 10:04:51 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-06-25 10:07:12 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 10:09:22 <-- acid (~acid@user/acid) has quit (Ping timeout: 268 seconds) 2021-06-25 10:10:17 --> acid (~acid@user/acid) has joined ##rust 2021-06-25 10:20:25 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-25 10:21:20 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 250 seconds) 2021-06-25 10:22:31 <-- Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has quit (Quit: Leaving) 2021-06-25 10:23:54 cehteh i can use a Rc in multithreaded program when only one thread accesses the data ever? 2021-06-25 10:24:05 [code] yes 2021-06-25 10:28:07 cehteh arrg self referential structs are crap :D 2021-06-25 10:28:42 cehteh not going to work this way 2021-06-25 10:30:03 cehteh i have a TempDir and want to hook up some drop/destructor before that gets dropped, that drop funnction needs a &tempdir to it 2021-06-25 10:36:44 Geekingfrog would something like with_tempdir(|tempdir| {...}) work? 2021-06-25 10:39:35 cehteh when i have struct Foo { bar: Bar, baz: Baz}; each implementing Drop, then let foo = Foo{...}; drop(foo); in what order are the drops called? Foo, Bar, Baz or reverse? 2021-06-25 10:42:13 --> maerwald (~maerwald@mail.hasufell.de) has joined ##rust 2021-06-25 10:43:34 Sobek I'd expect Foo to come first, I think (but that could be easily checked with a short program) 2021-06-25 10:45:18 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 10:45:37 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-25 10:45:37 Geekingfrog https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b1fb4d52e18060f61de72640715391e8 > cehteh 2021-06-25 10:46:47 cehteh Yeah .. thanks, i didnt want you do that for me, just thoguht if someone knows he could answer 2021-06-25 10:53:09 --> winircuser-318 (~winircuse@170.250.221.149) has joined ##rust 2021-06-25 10:54:03 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Quit: WeeChat 3.2) 2021-06-25 10:55:46 Geekingfrog Well, I didn't know the answer and wanted to know :D 2021-06-25 10:59:57 cehteh anyway the thing work, simpler than expected 2021-06-25 11:00:56 <-- mreznik (~mreznik@213.175.37.12) has quit (Quit: Leaving) 2021-06-25 11:03:04 --> Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has joined ##rust 2021-06-25 11:05:22 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-25 11:07:22 --> zmt00 (~zmt00@user/zmt00) has joined ##rust 2021-06-25 11:11:10 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-25 11:15:04 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-06-25 11:16:55 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-25 11:18:22 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-25 11:18:24 georgemp Hi..i'm trying to wrap my head around writing a swift package that wraps a rust library. anybody has experience with this, have pointers on how to write a single package that can produce a wrapper for both iOS and macOS? 2021-06-25 11:20:03 Sobek (I have no clue, but I am interested) 2021-06-25 11:25:36 --> w0x12ef_ (~w0x12ef@60.10.23.171) has joined ##rust 2021-06-25 11:25:42 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:28:04 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 250 seconds) 2021-06-25 11:28:42 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 272 seconds) 2021-06-25 11:29:15 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:30:00 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:32:17 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:38d2:141e:ecd6:356b) has joined ##rust 2021-06-25 11:33:18 <-- w0x12ef_ (~w0x12ef@60.10.23.171) has quit (Read error: Connection reset by peer) 2021-06-25 11:33:36 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:34:21 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:35:32 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 244 seconds) 2021-06-25 11:38:06 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:38:52 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:42:23 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:43:08 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:46:53 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:47:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:51:26 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:51:28 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-25 11:52:09 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 11:52:13 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:55:55 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 11:55:59 [code] georgemp: i'd imagine you'd have to to through the C abi. so it'd be just like a typical C integration. 2021-06-25 11:56:15 [code] georgemp: swift has some sort of C ffi right? 2021-06-25 11:56:40 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 11:58:02 georgemp [code]: yeah..i've got the C ffi part done for the rust lib. I *think* i can wrap this up in some package that targets a single platform (ios/macOS). But, am trying to wrap my head around with trying to target multipl platforms (with mutiple architectures - ios has arm64 and ios_sim is x86_64 - macOS has arm64 and x86_64); 2021-06-25 11:58:47 georgemp i believe i should work towards creating some kind of xcframework that will be part of the swift package..and each framework will have a lipo'ed library for each arc 2021-06-25 11:58:56 georgemp reading up/trying that out now 2021-06-25 11:59:03 [code] yeah i'd try macos first. x86 unless you've got an M1 mac. 2021-06-25 11:59:19 * [code] knows nothying about swift ffi stuff 2021-06-25 12:00:03 georgemp i only have x86, but, eventually will have to include M1..just wondering if anyone had worked through this before :) 2021-06-25 12:00:25 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 12:01:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-25 12:04:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-25 12:04:59 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Ping timeout: 244 seconds) 2021-06-25 12:05:56 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-25 12:07:00 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-25 12:12:54 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-25 12:16:04 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-25 12:17:05 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-25 12:21:54 <-- zeden (~zeden@user/zeden) has quit (Ping timeout: 272 seconds) 2021-06-25 12:23:25 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Remote host closed the connection) 2021-06-25 12:24:03 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-25 12:25:42 --> vfer (~AdminUser@176.88.30.30) has joined ##rust 2021-06-25 12:26:21 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-25 12:26:25 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-25 12:26:28 <-- vfer (~AdminUser@176.88.30.30) has quit (Client Quit) 2021-06-25 12:27:49 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-25 12:30:25 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-25 12:30:35 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-25 12:39:40 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 12:41:06 kee How can I drop things that were moved into a closure? 2021-06-25 12:41:12 kee I know that it's the last time the closure will ever run. 2021-06-25 12:41:41 GreenJello drop the closure 2021-06-25 12:42:52 --> Guest53__ (~textual@170.250.221.149) has joined ##rust 2021-06-25 12:43:27 <-- Guest53__ (~textual@170.250.221.149) has quit (Remote host closed the connection) 2021-06-25 12:44:41 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 12:46:13 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Lost terminal) 2021-06-25 12:48:18 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-25 12:48:48 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-25 12:49:49 <-- winircuser-318 (~winircuse@170.250.221.149) has quit (Read error: Connection reset by peer) 2021-06-25 12:50:51 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 12:51:35 <-- kev009 (~quassel@69.160.37.57) has quit (Ping timeout: 252 seconds) 2021-06-25 12:54:40 --> kev009 (~quassel@69.160.37.57) has joined ##rust 2021-06-25 12:58:33 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-25 12:58:49 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 12:59:44 <-- zmt00 (~zmt00@user/zmt00) has quit (Quit: Gone.) 2021-06-25 13:02:16 --> HalfWord_ (~halfword@user/halfword) has joined ##rust 2021-06-25 13:08:05 SoF hi! https://github.com/prove-rs/z3.rs/blob/8b77fc554def507162a3860bea659247f2939859/z3/src/func_decl.rs#L13 this function takes a slice of references, how do I create such a slice dynamically? 2021-06-25 13:08:40 SoF the Sorts seem to be new owned values that you create with e.g. Sort::int(&ctx), so I cant return a slice of references of those from a function 2021-06-25 13:09:40 --> ibigbug (~thelounge@115.130.21.65) has joined ##rust 2021-06-25 13:10:18 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-25 13:11:01 --> barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has joined ##rust 2021-06-25 13:11:10 <-- skipwich (~skipwich@user/skipwich) has quit (Quit: DISCONNECT) 2021-06-25 13:11:51 kee GreenJello: How do I affect the drop order within the closure? 2021-06-25 13:14:23 Arnavion SoF: Assuming you started with a Vec, make a new Vec<&Sort> with vec_of_owned.iter().collect() 2021-06-25 13:14:28 GreenJello kee, I'm not sure if how that's determined 2021-06-25 13:15:16 Arnavion kee: Make a newtype that contains what you want captured, capture the newtype instead, and do whatever you want in its Drop 2021-06-25 13:16:49 SoF Arnavion: thank you! 2021-06-25 13:17:37 <-- mason0 (~bc817c21@199.204.85.195) has quit (Quit: CGI:IRC (Session timeout)) 2021-06-25 13:18:10 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 13:19:23 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-25 13:29:23 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 258 seconds) 2021-06-25 13:30:08 <-- tg (~tg@rockylinux/infra/tg) has quit (Quit: tg) 2021-06-25 13:30:59 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-25 13:31:37 --> wololoer (~zeden@user/zeden) has joined ##rust 2021-06-25 13:32:27 cehteh can a macro infer what type the the caller expects? 2021-06-25 13:33:02 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-25 13:33:32 GreenJello cehteh, in some ways, sure, e.g. you could have the macro produce Default::default() and inference would figure out what's expected 2021-06-25 13:34:06 <-- zeden (~zeden@user/zeden) has quit (Ping timeout: 272 seconds) 2021-06-25 13:34:38 GreenJello you can also use the ? operator, or x.into(), etc. 2021-06-25 13:35:37 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 272 seconds) 2021-06-25 13:35:55 cehteh yeah, but thats not what i mean, just some brainfart, imagine rust had a 'new' keyword, protoyping that with a macro, as sytactic sugar 2021-06-25 13:38:48 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-25 13:38:57 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-25 13:39:21 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-25 13:41:08 --> kmh (~kmh@p200300df5f145f004144ecc119e5a184.dip0.t-ipconnect.de) has joined ##rust 2021-06-25 13:46:00 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 13:51:04 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Ping timeout: 250 seconds) 2021-06-25 13:54:35 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-25 13:55:06 --> zmt00 (~zmt00@user/zmt00) has joined ##rust 2021-06-25 13:55:39 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 13:56:41 --> printf (~printf@user/printf) has joined ##rust 2021-06-25 13:59:15 --> thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has joined ##rust 2021-06-25 14:03:07 --> oaken-source (~oaken-sou@user/oaken-source) has joined ##rust 2021-06-25 14:03:17 oaken-source Hey, is it still possible to cross-compile the rust compiler? 2021-06-25 14:10:54 Arnavion Building stage 2 requires running stage 1, and building stage 1 requires running stage 0. I don't think there's anyway to say stage 2 should be cross-compiled and 0 and 1 shouldn't 2021-06-25 14:11:16 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-25 14:11:49 Arnavion You can of course compile a host compiler will support for additional targets, but I assume you really do want a target compiler 2021-06-25 14:12:10 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 14:13:01 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 14:15:16 oaken-source I want to bootstrap riscv for a distribution without relying on external binaries 2021-06-25 14:15:24 oaken-source *bootstrap rust 2021-06-25 14:15:33 oaken-source I have working rust binaries on x86 2021-06-25 14:16:02 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 256 seconds) 2021-06-25 14:16:12 oaken-source I considered bootstrapping from mrustc, but that doesn't support riscv, as far as I can see 2021-06-25 14:16:52 oaken-source the goal would be to have a native rust compiler that I can package :) 2021-06-25 14:17:11 cehteh guix? 2021-06-25 14:17:24 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-25 14:17:24 oaken-source parabola. 2021-06-25 14:17:34 oaken-source closely related :) 2021-06-25 14:17:49 kee oaken-source: x86 emulator 2021-06-25 14:17:54 Arnavion I think the only option is compiling on the target, ie making it the host. You can use mrustc to start off from a more recent point that 1.0.0 2021-06-25 14:18:27 oaken-source kee: I could run an x86_64 rustc on riscv using qemu user-mode emulation. but wouldn't that confuse the compiler? 2021-06-25 14:18:29 <-- farmstatejake (~farmstate@user/farmstatejake) has quit (Read error: Connection reset by peer) 2021-06-25 14:19:42 cehteh somehow it would be cool when one could bootstrap a very fat compiler that can generate code for most (or even all) supported archs 2021-06-25 14:20:21 cehteh forget about all this toolchin hazzle just say --target and call it a day 2021-06-25 14:22:23 kee cehteh: Even better: a small compiler that can generate a version of itself using only a handful of instructions. 2021-06-25 14:22:42 kee Then, on the target arch, it explores opcode space and works out more efficient instruction combinations. 2021-06-25 14:23:22 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-25 14:23:38 kee Feed it random binaries to go faster. 2021-06-25 14:23:51 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Read error: Connection reset by peer) 2021-06-25 14:24:07 --> farmstatejake (~farmstate@user/farmstatejake) has joined ##rust 2021-06-25 14:24:47 cehteh kee: gnu mes? 2021-06-25 14:25:10 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-25 14:25:35 kee cehteh: In theory oaken-source you could use GNU Mes, but that's a long bootstrap chain. 2021-06-25 14:26:14 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-25 14:27:05 cehteh yeah 2021-06-25 14:27:37 <-- Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has quit (Quit: Leaving...) 2021-06-25 14:27:49 kee rfx doesn't work; it's trying to load some `create_debug_utils_messenger_ext` that my Vulkan doesn't have. 2021-06-25 14:27:58 kee Any non-Piston graphics crates I haven't tried yet? 2021-06-25 14:29:12 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 272 seconds) 2021-06-25 14:29:38 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 14:29:49 oaken-source how would I bootstrap rust from mes 2021-06-25 14:30:11 kee oaken-source: mes → g++ → mrustc → rustc → rustc → rustc 2021-06-25 14:30:17 cehteh " but that's a long bootstrap chain." :) 2021-06-25 14:30:29 oaken-source I have a working g++ on the platform, but the problem is that mrustc is only supported on x86 2021-06-25 14:30:40 j`ey add support for riscv :P 2021-06-25 14:30:50 kee oaken-source: Rust was bootstrapped, once 2021-06-25 14:30:50 Arnavion Oh right, I forgot about that 2021-06-25 14:30:57 oaken-source I'm afraid that could be slightly out of scrope x_x 2021-06-25 14:31:08 cehteh how are do other riscv distros bootstrap it? 2021-06-25 14:31:10 j`ey i mean, that really feels like it's in scope to me! 2021-06-25 14:31:52 oaken-source I could go ask in #fedora I guess 2021-06-25 14:32:09 kee oaken-source: https://github.com/rust-lang/rust/tree/00c856c0b1feac74df8b404fad94d74a0cf1624a 2021-06-25 14:32:14 Arnavion riscv distros compile on riscv instead of cross-compiling? 2021-06-25 14:32:18 --> ashafq (~ashafq_@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-25 14:32:22 kee This version of Rust compiles from g++ (and later versions do too) 2021-06-25 14:32:39 kee Start with the latest g++-supported version of Rust and work your way up. 2021-06-25 14:33:05 kee Also you'll need clang. 2021-06-25 14:33:13 oaken-source I have clang 2021-06-25 14:33:43 Alexendoo would said old rustcs run on riscv? 2021-06-25 14:33:53 cehteh is there some official support for this? or does one need to figure that out on his own? (as little support as proper git tags) 2021-06-25 14:34:02 oaken-source I'm more concerned with llvm compatibility 2021-06-25 14:34:05 kee Alexendoo: I think they've used LLVM for ages. 2021-06-25 14:34:31 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 272 seconds) 2021-06-25 14:34:47 j`ey kee: that git link, still requires downloading a rustc 2021-06-25 14:35:35 kee Oops. Didn't go far enough back. 2021-06-25 14:35:53 j`ey you need to go back to the ocaml version 2021-06-25 14:36:42 oaken-source I think I should provision a dedicated VM for this 2021-06-25 14:37:07 <-- Erutuon (~Erutuon@user/erutuon) has quit (Quit: WeeChat 2.8) 2021-06-25 14:39:31 kee oaken-source: https://github.com/rust-lang/rust/tree/f038f4d533f897a29f9422510d1b3f0caac97388 2021-06-25 14:40:17 oaken-source you can't be serious 2021-06-25 14:40:25 kee Well a later version should work. 2021-06-25 14:40:28 oaken-source that's the third commit in the history of rust :x 2021-06-25 14:40:28 kee But not much later. 2021-06-25 14:40:33 j`ey just 11 years of bootstrapping 2021-06-25 14:40:38 kee I don't know how to go forwards on GitHub. 2021-06-25 14:41:22 <-- ashafq (~ashafq_@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Quit: Leaving) 2021-06-25 14:41:32 <-- johnw_ (~johnw@2600:1700:cf00:db0:445f:c73e:90ff:5975) has quit (Ping timeout: 244 seconds) 2021-06-25 14:41:34 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-25 14:42:03 --> johnw (~johnw@76-234-69-149.lightspeed.frokca.sbcglobal.net) has joined ##rust 2021-06-25 14:42:14 oaken-source what about this one https://github.com/rust-lang/rust/tree/ef75860a0a72f79f97216f8aaa5b388d98da6480 2021-06-25 14:42:37 kee oaken-source: Yup. 2021-06-25 14:42:43 kee Anything with a boot/ directory should work. 2021-06-25 14:43:04 kee And that looks like the last one. 2021-06-25 14:43:06 kee Well done! 2021-06-25 14:43:12 oaken-source thanks :) 2021-06-25 14:43:26 oaken-source allright, I'll try building that and see how far this takes me. thanks for the help! 2021-06-25 14:44:23 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-25 14:44:31 kee https://guix.gnu.org/blog/2018/bootstrapping-rust/ suggests you're not going to have fun. 2021-06-25 14:45:10 kee Unless you can write a script to go through every minor version… and that's once you've got to 1.0 2021-06-25 14:46:03 oaken-source au contraire -- this is actually a lot of fun :) 2021-06-25 14:46:11 kee It might be easier just to add mrustc support for RISC-V. 2021-06-25 14:46:33 j`ey yeah, it might be worth talking to Mutabah, and figuring out how hard that would be 2021-06-25 14:46:45 j`ey I mean, it's generating C after all, so hopefully most of it is generic 2021-06-25 14:47:13 <-- fritschy (~fritschy@b2b-109-90-32-97.unitymedia.biz) has left ##rust (Leaving) 2021-06-25 14:49:35 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-25 14:51:34 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-25 14:57:30 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-06-25 14:59:04 oaken-source j`ey: I guess I could try that too. you're right, it's worth a shot 2021-06-25 14:59:48 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-25 15:00:11 ap5 rust-script is nice :D 2021-06-25 15:00:44 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 15:01:28 <-- Zulikath (~zi@vmi584737.contaboserver.net) has quit (Quit: ZNC - https://znc.in) 2021-06-25 15:01:58 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-25 15:04:23 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-25 15:09:21 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 272 seconds) 2021-06-25 15:10:12 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-25 15:12:06 --> skipwich (~skipwich@user/skipwich) has joined ##rust 2021-06-25 15:14:32 --> ysgard (~ysgard@user/ysgard) has joined ##rust 2021-06-25 15:18:18 --> staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has joined ##rust 2021-06-25 15:21:06 <-- MichaelLong (~ml@user/michaellong) has quit (Ping timeout: 240 seconds) 2021-06-25 15:23:01 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-25 15:24:46 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-25 15:28:55 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-25 15:34:00 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-25 15:34:55 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 15:35:03 --> MichaelLong (~ml@94.31.80.139) has joined ##rust 2021-06-25 15:35:03 <-- MichaelLong (~ml@94.31.80.139) has quit (Changing host) 2021-06-25 15:35:03 --> MichaelLong (~ml@user/michaellong) has joined ##rust 2021-06-25 15:40:30 <-- ysgard (~ysgard@user/ysgard) has quit (Remote host closed the connection) 2021-06-25 15:47:10 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 15:48:40 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-25 15:52:14 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-06-25 16:00:42 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Remote host closed the connection) 2021-06-25 16:01:27 <-- Guest53 (~textual@170.250.221.149) has quit (Remote host closed the connection) 2021-06-25 16:01:32 --> Guest53__ (~textual@170.250.221.149) has joined ##rust 2021-06-25 16:06:53 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-25 16:10:24 <-- bkircher (~bkircher@2001:a61:243a:7801:7c4e:35ba:8de7:8827) has quit (Quit: WeeChat 3.0.1) 2021-06-25 16:11:28 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 250 seconds) 2021-06-25 16:13:47 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 16:14:36 <-- cehteh (~ct@i59F4B960.versanet.de) has quit (Ping timeout: 258 seconds) 2021-06-25 16:18:26 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-25 16:19:09 --> _anne (~anne@PPPoE-216-183-139-206.bmts.com) has joined ##rust 2021-06-25 16:20:18 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-25 16:20:31 <-- staticvoidmaine (~staticvoi@cpe-184-153-179-95.maine.res.rr.com) has quit (Quit: staticvoidmaine) 2021-06-25 16:22:14 <-- _anne (~anne@PPPoE-216-183-139-206.bmts.com) has quit (Quit: Leaving) 2021-06-25 16:23:02 <-- Guest53__ (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 16:23:46 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Read error: Connection reset by peer) 2021-06-25 16:24:25 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-25 16:24:45 --> kuber (~kuber@97-113-139-245.tukw.qwest.net) has joined ##rust 2021-06-25 16:27:43 --> sadg (~odd@193.32.249.162) has joined ##rust 2021-06-25 16:30:29 --> cehteh (~ct@i59F72C79.versanet.de) has joined ##rust 2021-06-25 16:31:25 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 250 seconds) 2021-06-25 16:31:49 <-- aquijoule_ (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (Quit: Leaving) 2021-06-25 16:32:04 --> aquijoule_ (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-25 16:32:11 -- aquijoule_ is now known as richbridger 2021-06-25 16:33:19 --> bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has joined ##rust 2021-06-25 16:35:13 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-06-25 16:35:55 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-25 16:35:58 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-25 16:36:08 <-- richbridger (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (Remote host closed the connection) 2021-06-25 16:37:28 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-25 16:37:29 --> richbridger (~richbridg@213-225-12-210.nat.highway.a1.net) has joined ##rust 2021-06-25 16:40:40 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-25 16:42:54 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-25 16:46:12 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-25 16:51:11 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-25 16:52:18 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 16:56:08 <-- dcz (~dcz@dynamic-093-132-128-195.93.132.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-06-25 17:04:49 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-25 17:06:34 --> oirad (~oirad@205.251.233.53) has joined ##rust 2021-06-25 17:06:46 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 17:09:53 <-- Guest53 (~textual@170.250.221.149) has quit (Client Quit) 2021-06-25 17:09:55 * neshpion changes his interactive shell to rust-script 2021-06-25 17:13:02 tsdh Is there a concise way to ignore a Result must_use warning? I'm spawning a command greeting new users with a command that will surely exist. Even if it didn't, that would be unfortunate but no big deal... 2021-06-25 17:13:46 j`ey let _ = ..; 2021-06-25 17:14:21 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-25 17:14:38 j`ey or command.ok(); 2021-06-25 17:16:10 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-25 17:16:38 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-25 17:16:53 tsdh j`ey: Ah, ok() is as concise as it gets. ;-) 2021-06-25 17:17:25 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-25 17:17:51 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-06-25 17:17:58 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 17:21:00 <-- snikulov (~snikulov@109-252-86-189.nat.spd-mgts.ru) has quit (Quit: Konversation terminated!) 2021-06-25 17:21:56 <-- Guest53 (~textual@170.250.221.149) has quit (Remote host closed the connection) 2021-06-25 17:22:01 --> Guest53__ (~textual@170.250.221.149) has joined ##rust 2021-06-25 17:26:32 <-- kuber (~kuber@97-113-139-245.tukw.qwest.net) has quit (Quit: leaving) 2021-06-25 17:28:19 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-06-25 17:28:55 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-25 17:29:47 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-25 17:32:34 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-25 17:36:25 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 250 seconds) 2021-06-25 17:36:37 tsdh IIUC, "cargo update" will only update dependencies to the most current micro version but never change major and minor version from what I have declared in Cargo.toml. Is there some cargo command which would also list new major/minor versions of the dependencies I have declared? 2021-06-25 17:38:04 cehteh it depends on how you declared the dependencies foo = "1" will use any 1.x.y (with some constraints, see manual) 2021-06-25 17:38:30 danieldg tsdh: not built-in, there are crates that do this though 2021-06-25 17:38:39 <-- thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has quit (Quit: thijsr) 2021-06-25 17:38:40 danieldg cargo-outdated or whatever 2021-06-25 17:38:59 cehteh btw i yesterday learned about cargo-audit 2021-06-25 17:39:47 <-- Timelord (~TL@64-252-202-134.lightspeed.jcsnms.sbcglobal.net) has quit (Quit: Bloop.) 2021-06-25 17:41:43 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-25 17:43:21 <-- Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-06-25 17:45:13 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 17:45:17 <-- Guest53__ (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 17:47:29 --> Timelord (~TL@64-252-202-134.lightspeed.jcsnms.sbcglobal.net) has joined ##rust 2021-06-25 17:54:15 tsdh Thanks. 2021-06-25 17:54:56 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-25 17:56:22 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-25 18:01:24 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-25 18:05:28 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Quit: Leaving) 2021-06-25 18:13:35 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-25 18:15:23 <-- cecilgol (~cecilgol@user/cecilgol) has quit (Quit: WeeChat 3.2) 2021-06-25 18:27:38 <-- debsan (~debsan@2800:810:471:2ee::1001) has quit (Remote host closed the connection) 2021-06-25 18:30:24 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 252 seconds) 2021-06-25 18:32:04 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 18:37:05 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Ping timeout: 250 seconds) 2021-06-25 18:37:12 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 258 seconds) 2021-06-25 18:41:26 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-25 18:45:08 Arnavion tsdh: https://paste.rs/hMH.sh 2021-06-25 18:55:45 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Read error: Connection reset by peer) 2021-06-25 18:55:47 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Read error: Connection reset by peer) 2021-06-25 19:01:07 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-06-25 19:13:11 <-- oirad (~oirad@205.251.233.53) has quit (Quit: Client closed) 2021-06-25 19:19:16 <-- Arnavion (arnavion@user/arnavion) has quit (Ping timeout: 272 seconds) 2021-06-25 19:19:54 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 272 seconds) 2021-06-25 19:21:10 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-25 19:23:26 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 250 seconds) 2021-06-25 19:24:17 --> Guest6143 (~Guest61@79.114.33.159) has joined ##rust 2021-06-25 19:24:54 <-- Guest6143 (~Guest61@79.114.33.159) has quit (Client Quit) 2021-06-25 19:26:01 <-- bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has quit (Quit: WeeChat 3.2) 2021-06-25 19:27:25 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has left ##rust 2021-06-25 19:29:51 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-25 19:29:57 <-- lf (~quassel@p200300d21f006a00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-06-25 19:30:09 --> SandorClegane (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-25 19:30:24 --> lf (~quassel@p200300d21f409100022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-25 19:32:45 <-- SandorClegane (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Client Quit) 2021-06-25 19:33:33 <-- HalfWord_ (~halfword@user/halfword) has quit (Ping timeout: 268 seconds) 2021-06-25 19:36:59 --> Pent (sid313808@id-313808.tooting.irccloud.com) has joined ##rust 2021-06-25 19:37:22 --> Zulikath (~zi@vmi584737.contaboserver.net) has joined ##rust 2021-06-25 19:38:24 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-25 19:49:32 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:38d2:141e:ecd6:356b) has quit 2021-06-25 19:50:56 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 19:51:44 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-25 19:53:52 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-25 19:54:20 <-- barnaby (~barnabywa@213-225-4-159.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-25 19:55:46 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-25 19:56:52 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-25 19:58:15 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Lost terminal) 2021-06-25 19:59:35 --> bitstalker (~bitstalke@user/bitstalker) has joined ##rust 2021-06-25 20:02:03 <-- ckdCreations (~ckdCreati@c-24-17-50-149.hsd1.wa.comcast.net) has quit (Read error: Connection reset by peer) 2021-06-25 20:04:47 --> trusch_ (~trusch@i577B0A3A.versanet.de) has joined ##rust 2021-06-25 20:08:03 <-- trusch (~trusch@87.123.3.75) has quit (Ping timeout: 258 seconds) 2021-06-25 20:17:22 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 244 seconds) 2021-06-25 20:19:22 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-25 20:30:36 Silver_Golden o/ 2021-06-25 20:33:59 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-06-25 20:35:08 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-25 20:52:21 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-25 20:53:38 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 272 seconds) 2021-06-25 20:55:31 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-25 20:56:39 --> HalfWord (~halfword@user/halfword) has joined ##rust 2021-06-25 20:57:36 <-- HalfWord (~halfword@user/halfword) has quit (Remote host closed the connection) 2021-06-25 21:00:30 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-25 21:04:50 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 250 seconds) 2021-06-25 21:07:35 --> neurocyte57 (~neurocyte@45.136.170.248) has joined ##rust 2021-06-25 21:07:35 <-- neurocyte57 (~neurocyte@45.136.170.248) has quit (Changing host) 2021-06-25 21:07:35 --> neurocyte57 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-25 21:11:16 <-- neurocyte5 (~neurocyte@user/neurocyte) has quit (Ping timeout: 246 seconds) 2021-06-25 21:13:11 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-25 21:16:11 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:b401:1d9:cf08:e9d0) has quit (Remote host closed the connection) 2021-06-25 21:16:22 cehteh https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=48c277a5670d0b597dd945d4eca02e94 2021-06-25 21:16:35 cehteh could that mad idea work? :D ... 2021-06-25 21:17:58 danieldg cehteh: not as is 2021-06-25 21:18:22 cehteh i know that much, just a brainfart, i wonder if even posisble 2021-06-25 21:18:26 danieldg cehteh: this looks a lot like the Into trait, which actually works 2021-06-25 21:18:54 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 265 seconds) 2021-06-25 21:19:17 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Quit: Leaving) 2021-06-25 21:20:52 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-25 21:20:56 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-25 21:22:05 cehteh idea is often you have function calls with nested ctors foo(Arc::new(Mutex::new(Something::new))), experiment is could this be resovled by a generic new() functions 2021-06-25 21:22:31 cehteh just a thought experiment so far, but i dont know rust well enough 2021-06-25 21:22:32 danieldg cehteh: Default::default() can do that 2021-06-25 21:22:53 cehteh for ctors with parameters 2021-06-25 21:23:01 cehteh foo(Arc::new(Mutex::new(Something::new(parameter)))) 2021-06-25 21:23:33 cehteh uberallfs.current_dir(Box::new(TempDir::new().expect("created tempdir"))); 2021-06-25 21:23:42 cehteh is what i have here, i was just thinking: 2021-06-25 21:24:11 cehteh uberallfs.current_dir(new TempDir::new().expect("created tempdir")); woudl look nicer (well i dont like C++ but :)) 2021-06-25 21:24:45 cehteh then one iteration farer, this could be wraped in a new(P) -> R function 2021-06-25 21:24:58 cehteh maybe/maybe not 2021-06-25 21:28:10 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-25 21:30:13 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-25 21:30:44 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-25 21:32:48 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-25 21:33:52 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 250 seconds) 2021-06-25 21:37:52 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-25 21:38:48 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-25 21:39:52 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 272 seconds) 2021-06-25 21:47:51 Mutabah oaken-source: Let me know how you go with adding riscv support 2021-06-25 21:51:43 --> aquijoule_ (~richbridg@213-225-5-235.nat.highway.a1.net) has joined ##rust 2021-06-25 21:51:44 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 21:52:39 oaken-source Mutabah: if I come across any issues, I'll let you know. 2021-06-25 21:54:12 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-25 21:54:40 <-- richbridger (~richbridg@213-225-12-210.nat.highway.a1.net) has quit (Ping timeout: 265 seconds) 2021-06-25 21:56:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-25 22:03:16 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-25 22:04:33 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-25 22:21:15 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-25 22:22:45 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-25 22:23:52 <-- Guest53 (~textual@170.250.221.149) has quit (Read error: Connection reset by peer) 2021-06-25 22:35:19 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 244 seconds) 2021-06-25 22:35:50 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 250 seconds) 2021-06-25 22:37:30 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-25 22:39:01 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 272 seconds) 2021-06-25 22:43:38 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 250 seconds) 2021-06-25 22:43:46 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-25 22:45:38 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-25 22:53:09 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-25 23:05:34 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-25 23:05:51 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-25 23:23:30 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 250 seconds) 2021-06-25 23:25:05 <-- death916 (~death916@user/death916) has quit (Ping timeout: 258 seconds) 2021-06-25 23:25:40 <-- Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has quit (Ping timeout: 250 seconds) 2021-06-25 23:31:20 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 272 seconds) 2021-06-25 23:38:16 jbg does anyone know of an existing way to format a rust_decimal::Decimal for a particular locale? 2021-06-25 23:38:46 <-- orzophile (~orzophile@2605:a601:aab5:ae01:250:56ff:febd:85ef) has quit (Quit: Leaving) 2021-06-25 23:39:07 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 250 seconds) 2021-06-25 23:40:03 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-25 23:40:18 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-06-25 23:46:10 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-25 23:46:10 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-25 23:46:10 --> death916 (~death916@user/death916) has joined ##rust 2021-06-25 23:50:33 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-25 23:52:26 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-25 23:52:32 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-25 23:54:13 --> meandi2 (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has joined ##rust 2021-06-25 23:57:06 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-25 23:57:30 <-- meandi (~meandi4@dyndsl-178-142-250-112.ewe-ip-backbone.de) has quit (Ping timeout: 240 seconds) 2021-06-26 00:02:22 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-26 00:05:10 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-26 00:05:39 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-26 00:13:57 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-26 00:15:08 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 00:16:33 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 272 seconds) 2021-06-26 00:18:08 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 244 seconds) 2021-06-26 00:19:24 <-- emerent (~quassel@p200300cd5703bbd0ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-26 00:20:00 --> emerent (~quassel@p200300cd5703bbc1ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 00:20:42 <-- wololoer (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-26 00:23:21 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-26 00:23:35 --> dcz (~dcz@78.48.94.213) has joined ##rust 2021-06-26 00:25:30 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 00:37:51 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 00:38:32 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 252 seconds) 2021-06-26 00:45:58 --> dcz_ (~dcz@dynamic-002-243-154-128.2.243.pool.telefonica.de) has joined ##rust 2021-06-26 00:49:10 <-- dcz (~dcz@78.48.94.213) has quit (Ping timeout: 252 seconds) 2021-06-26 00:50:25 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-26 00:54:02 --> metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has joined ##rust 2021-06-26 00:57:03 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-26 01:04:10 -- night_wulfe_ is now known as night_wulfe 2021-06-26 01:11:08 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-26 01:16:04 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-26 01:22:08 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-06-26 01:24:37 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-26 01:26:11 --> jkl (~jkl@45-19-26-123.lightspeed.cicril.sbcglobal.net) has joined ##rust 2021-06-26 01:27:10 <-- Celeo (~Celeo@user/celeo) has quit (Read error: Connection reset by peer) 2021-06-26 01:29:05 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-26 01:33:53 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-26 01:34:31 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-26 01:35:48 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Ping timeout: 258 seconds) 2021-06-26 01:37:41 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-26 01:40:27 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-26 01:41:45 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 01:52:23 <-- Vonter (~Vonter@user/vonter) has quit (Read error: Connection reset by peer) 2021-06-26 01:53:19 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 01:54:46 <-- Moomoc (~Moomoc@84.38.65.228) has quit (Ping timeout: 246 seconds) 2021-06-26 01:54:47 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 01:58:16 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-26 02:07:36 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-26 02:07:48 --> felinae (~felinae@user/felinae) has joined ##rust 2021-06-26 02:08:44 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-26 02:10:38 --> trev (~trev@user/trev) has joined ##rust 2021-06-26 02:13:44 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 02:27:48 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-26 02:29:45 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 02:33:04 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-26 02:34:53 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-26 02:35:19 --> Arahael (~arahael@120.88.166.123) has joined ##rust 2021-06-26 02:43:50 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-06-26 02:45:09 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-26 02:47:07 <-- ThinkT510 (~auronanda@user/thinkt510) has quit (Quit: WeeChat 3.2) 2021-06-26 02:50:33 --> ThinkT510 (~auronanda@user/thinkt510) has joined ##rust 2021-06-26 02:53:35 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-26 02:54:49 --> bonestormii (~root@210.ip-158-69-200.net) has joined ##rust 2021-06-26 02:55:30 <-- bonestormii (~root@210.ip-158-69-200.net) has quit (Quit: WeeChat 2.8) 2021-06-26 02:57:08 <-- death916 (~death916@user/death916) has quit (Ping timeout: 250 seconds) 2021-06-26 02:59:17 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-26 03:00:36 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-26 03:00:37 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-26 03:00:37 --> death916 (~death916@user/death916) has joined ##rust 2021-06-26 03:01:58 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Client Quit) 2021-06-26 03:02:19 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-26 03:05:09 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-06-26 03:06:35 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Remote host closed the connection) 2021-06-26 03:06:53 tsdh I use the toml crate together with serde and a custom struct for defining a config file format. Is there a way that the struct's docstrings would go as comments in the config file? Or some other way to add comments to the toml file? 2021-06-26 03:10:15 <-- ME (~thement@user/me) has quit (Quit: eof) 2021-06-26 03:12:29 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-26 03:13:00 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 03:15:18 tsdh jbg: Maybe the num_format crate will do? At least when you convert rust_decimal::Decimal to f64 before printing? 2021-06-26 03:15:44 --> nerdypepper (~nerdypepp@152.67.162.71) has joined ##rust 2021-06-26 03:15:50 jbg oh, I know how to format an f64, but converting the Decimal to f64 is out of the question 2021-06-26 03:16:13 jbg since I'm using Decimal in the first place to make sure the value is represented precisely 2021-06-26 03:16:48 jbg it doesn't look like there is any way to do this currently, so I might look at making a crate / adding support to rust_decimal 2021-06-26 03:23:14 tsdh Ah, I think https://github.com/alexcrichton/toml-rs/issues/274 answers my question. Obviously, I hoped the answer would be positive. :-( 2021-06-26 03:26:12 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-06-26 03:28:52 jbg yeah I've tried to do vaguely similar things before, and few if any of the file format serialisation/deserialisation libraries expose comments 2021-06-26 03:32:53 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-06-26 03:40:09 <-- kmh (~kmh@p200300df5f145f004144ecc119e5a184.dip0.t-ipconnect.de) has quit (Ping timeout: 244 seconds) 2021-06-26 03:40:50 <-- metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has quit (Quit: Konversation terminated!) 2021-06-26 03:40:53 --> kmh (~kmh@p200300df5f3e6100ecc68ffbff104c01.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 03:42:29 tsdh jbg: Too bad, that would be very handy. 2021-06-26 03:42:49 rk4 i presume the way to implement a function generic over structs with attribute X is to define an trait with a getter method for attribute X, and defer to the compiler to probably inline foo.get_x() into just foo.x [?] 2021-06-26 03:43:20 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-26 03:43:55 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 03:45:35 bertptrs That should work, yes. Especialy if you annotate the method with #[inline(always)] 2021-06-26 03:49:19 * rk4 nods 2021-06-26 03:52:33 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Ping timeout: 244 seconds) 2021-06-26 04:00:00 --> imm__ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-26 04:01:46 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 272 seconds) 2021-06-26 04:09:46 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-26 04:13:48 -- imm__ is now known as imm_ 2021-06-26 04:23:26 --> Moomoc (~Moomoc@84.38.65.228) has joined ##rust 2021-06-26 04:27:23 ap5 Has anyone here tried https://rust-script.org/ with emacs and LSP? I want code completion, but for a single file 2021-06-26 04:28:25 <-- sadg (~odd@193.32.249.162) has quit (Quit: WeeChat 3.0.1) 2021-06-26 04:29:21 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-26 04:30:58 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-26 04:33:43 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-26 04:37:35 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-26 04:40:17 --> MTecknology (~Mike@user/mtecknology) has joined ##rust 2021-06-26 04:45:28 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 250 seconds) 2021-06-26 04:45:50 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-26 04:49:10 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-26 04:51:39 --> fef (~thedawn@user/thedawn) has joined ##rust 2021-06-26 04:54:18 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-26 04:57:43 --> chancee (~chancee@host86-177-90-101.range86-177.btcentralplus.com) has joined ##rust 2021-06-26 05:02:22 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 246 seconds) 2021-06-26 05:03:31 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-26 05:03:40 <-- maerwald (~maerwald@mail.hasufell.de) has quit (Changing host) 2021-06-26 05:03:40 --> maerwald (~maerwald@user/maerwald) has joined ##rust 2021-06-26 05:10:19 --> somebody (~ninjin@momey.cs.ucl.ac.uk) has joined ##rust 2021-06-26 05:12:23 <-- ninjin (~ninjin@user/ninjin) has quit (Ping timeout: 258 seconds) 2021-06-26 05:12:41 <-- barometz (~dvanb@i117058.upc-i.chello.nl) has quit (Quit: you can't fire me!) 2021-06-26 05:13:24 --> hflug (~hflug@77-58-96-171.dclient.hispeed.ch) has joined ##rust 2021-06-26 05:16:00 hflug A silly question about captures: why does 2021-06-26 05:16:00 hflug fn f(delimiter: &str) -> ... { 2021-06-26 05:16:01 hflug move s: &str| match &s[..4] { 2021-06-26 05:16:01 hflug delimiter => Ok(...), 2021-06-26 05:16:02 hflug ... 2021-06-26 05:16:02 hflug } 2021-06-26 05:16:03 hflug complain that delimiter is unused, and that the match always matches the first pattern? I would have expected a capture of the argument into the closure. 2021-06-26 05:16:58 <-- MTecknology (~Mike@user/mtecknology) has left ##rust (You saw me, but now you don't.) 2021-06-26 05:18:40 Lumpio- Because the "delimiter" in the map just creates a new variable doesn't it 2021-06-26 05:18:44 Lumpio- While matching everything 2021-06-26 05:18:48 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-26 05:18:59 Lumpio- err not map, match 2021-06-26 05:20:37 hflug Hm, and how do I make it match against an existing variable? 2021-06-26 05:21:54 j`ey foo if foo == delimiter 2021-06-26 05:22:07 j`ey foo if foo == delimiter => Ok(...), 2021-06-26 05:23:39 hflug Brilliant, thanks 2021-06-26 05:24:01 discipulus hflug: j`ey showed you how to use a "match guard"/"pattern guard" 2021-06-26 05:24:44 --> barometz (~dvanb@i117058.upc-i.chello.nl) has joined ##rust 2021-06-26 05:24:44 --> wojciech (~wojciech@user-5-173-12-65.play-internet.pl) has joined ##rust 2021-06-26 05:25:20 <-- wojciech (~wojciech@user-5-173-12-65.play-internet.pl) has left ##rust 2021-06-26 05:25:48 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-26 05:27:15 <-- meandi2 (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-06-26 05:27:24 --> meandi (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has joined ##rust 2021-06-26 05:28:03 --> bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has joined ##rust 2021-06-26 05:28:34 <-- bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has quit (Client Quit) 2021-06-26 05:31:24 <-- barometz (~dvanb@i117058.upc-i.chello.nl) has quit (Quit: you can't fire me!) 2021-06-26 05:35:57 --> bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has joined ##rust 2021-06-26 05:37:45 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-26 05:38:03 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-26 05:38:11 <-- chancee (~chancee@host86-177-90-101.range86-177.btcentralplus.com) has quit (Ping timeout: 265 seconds) 2021-06-26 05:39:53 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 05:42:51 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-26 05:47:09 --> barometz (~dvanb@i117058.upc-i.chello.nl) has joined ##rust 2021-06-26 05:51:49 <-- hflug (~hflug@77-58-96-171.dclient.hispeed.ch) has quit (Ping timeout: 246 seconds) 2021-06-26 05:52:49 --> wojciech (~dolor_avi@user-5-173-12-65.play-internet.pl) has joined ##rust 2021-06-26 05:53:26 <-- wojciech (~dolor_avi@user-5-173-12-65.play-internet.pl) has quit (Remote host closed the connection) 2021-06-26 05:53:55 --> dolor_avis (~dolor_avi@user-5-173-12-65.play-internet.pl) has joined ##rust 2021-06-26 05:54:59 --> fabienwang_ (~fabienwan@user/fabienwang) has joined ##rust 2021-06-26 05:56:06 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-26 05:57:32 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Ping timeout: 252 seconds) 2021-06-26 05:59:15 --> shan (shan@user/shan) has joined ##rust 2021-06-26 05:59:20 shan how do i free a String 2021-06-26 05:59:24 shan can i even free a String 2021-06-26 05:59:33 bertptrs A string frees itself when it goes out of scope 2021-06-26 05:59:51 ChaiTRex shan: If you want to do it manually, drop(string) 2021-06-26 06:00:01 shan bertptrs: it's in main 2021-06-26 06:00:13 bertptrs then drop, like ChaiTRex said 2021-06-26 06:00:26 shan okay 2021-06-26 06:03:05 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-06-26 06:03:36 <-- dolor_avis (~dolor_avi@user-5-173-12-65.play-internet.pl) has quit (Quit: dolor_avis) 2021-06-26 06:03:55 --> dolor_avis (~dolor_avi@user-5-173-12-65.play-internet.pl) has joined ##rust 2021-06-26 06:12:32 <-- fabienwang_ (~fabienwan@user/fabienwang) has quit (Quit: fabienwang_) 2021-06-26 06:15:30 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Ping timeout: 268 seconds) 2021-06-26 06:16:06 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-26 06:16:22 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 06:19:33 --> spooky_d (sid268013@id-268013.charlton.irccloud.com) has joined ##rust 2021-06-26 06:22:22 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 06:23:24 <-- feliix42 (~felix@gibbs.uberspace.de) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-26 06:23:36 --> feliix42 (~felix@gibbs.uberspace.de) has joined ##rust 2021-06-26 06:28:56 shan how do i get the length of a vec? 2021-06-26 06:29:44 j`ey .len() 2021-06-26 06:29:46 shan oh len() is a thing nice 2021-06-26 06:29:49 shan j`ey: thanks 2021-06-26 06:29:51 j`ey https://doc.rust-lang.org/std/vec/struct.Vec.html 2021-06-26 06:33:23 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 268 seconds) 2021-06-26 06:41:36 jbg shan: even if it's in main(), it will free at the end of main(), you don't need to drop manually unless you want to drop it earlier 2021-06-26 06:41:51 shan right 2021-06-26 06:42:20 jbg and if you want it to drop earlier, you can also make a new scope for it (even an anonymous one, just using braces) which can be tidier than littering drop() calls around 2021-06-26 06:43:53 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 06:45:52 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-26 06:48:13 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 244 seconds) 2021-06-26 06:49:49 --> tglman (~tglman@78-33-90-50.static.enta.net) has joined ##rust 2021-06-26 06:50:47 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 06:51:38 <-- tglman (~tglman@78-33-90-50.static.enta.net) has quit (Client Quit) 2021-06-26 06:51:40 --> unmanbearpig (~unmanbear@45.76.95.141) has joined ##rust 2021-06-26 06:54:34 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-26 06:58:28 <-- Vonter (~Vonter@user/vonter) has quit (Read error: Connection reset by peer) 2021-06-26 07:01:03 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 07:01:04 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 07:03:22 <-- fef (~thedawn@user/thedawn) has quit (Ping timeout: 244 seconds) 2021-06-26 07:08:28 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-26 07:10:31 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 07:11:22 --> frost (~frost@59.71.242.236) has joined ##rust 2021-06-26 07:15:57 --> fef (~thedawn@user/thedawn) has joined ##rust 2021-06-26 07:17:05 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 07:25:24 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 07:25:37 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 07:30:04 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 244 seconds) 2021-06-26 07:30:19 --> cdown (~cdown@89.32.122.5) has joined ##rust 2021-06-26 07:37:58 <-- croax (9593c976ee@ghost.pepta.net) has quit (Quit: Gateway shutdown) 2021-06-26 07:44:57 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-06-26 07:46:09 --> croax (9593c976ee@ghost.pepta.net) has joined ##rust 2021-06-26 07:48:20 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-26 07:52:03 --> gourlaysama (~gourlaysa@user/gourlaysama) has joined ##rust 2021-06-26 07:55:59 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-26 07:56:08 <-- euandreh (~euandreh@2804:14c:33:9fe5:c1e6:8279:92e9:57ec) has quit (Ping timeout: 250 seconds) 2021-06-26 08:04:18 <-- fef (~thedawn@user/thedawn) has quit (Quit: Leaving) 2021-06-26 08:11:44 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 252 seconds) 2021-06-26 08:12:12 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-26 08:20:27 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-26 08:20:55 shan ok ##rust, roast me https://github.com/shantaram3013/rust_learning/blob/main/todo/src/main.rs 2021-06-26 08:21:23 bertptrs I recommend you ask clippy to roast you first 2021-06-26 08:22:42 shan what's clippy :0 2021-06-26 08:22:51 shan the MS word assistant thing? 2021-06-26 08:22:56 jbg run `cargo clippy` 2021-06-26 08:23:00 bertptrs that's what it's named for, yes 2021-06-26 08:23:12 jbg it will tell you all the basic mistakes, saving the time of your human roasters 2021-06-26 08:23:33 ChaiTRex I see you're writing a Rust program. Would you like help with that? 2021-06-26 08:33:29 --> Guest4 (~Guest4@46.11.3.35) has joined ##rust 2021-06-26 08:33:34 --> Arnik (~arnik@167.172.99.247) has joined ##rust 2021-06-26 08:37:24 shan jbg: OH 2021-06-26 08:37:26 shan thanks 2021-06-26 08:37:29 rk4 shan: i don't like the white background 2021-06-26 08:38:17 cehteh lol 2021-06-26 08:40:06 <-- Guest4 (~Guest4@46.11.3.35) has quit (Quit: Client closed) 2021-06-26 08:41:45 --> ubuntourist (~kjcole@pool-108-51-151-26.washdc.fios.verizon.net) has joined ##rust 2021-06-26 08:42:10 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-26 08:45:11 shan Okay! I listened to clippy 2021-06-26 08:48:50 bertptrs What's the most efficient way to create a boxed slice of runtime-known length? I'm over-optimizing a programming challenge 2021-06-26 08:49:15 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-06-26 08:49:23 j`ey bertptrs: vec![0; N].into_boxed_slice() 2021-06-26 08:49:23 cehteh why would one box a slice? 2021-06-26 08:49:38 bertptrs it's smaller than a Vec 2021-06-26 08:49:43 jbg cehteh: basically an array on the heap 2021-06-26 08:49:50 bertptrs 3 pointers vs 2 pointers 2021-06-26 08:49:59 cehteh ah 2021-06-26 08:51:33 --> cdown_ (~cdown@89.32.122.5) has joined ##rust 2021-06-26 08:51:48 <-- kmh (~kmh@p200300df5f3e6100ecc68ffbff104c01.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-06-26 08:53:32 <-- Arnik (~arnik@167.172.99.247) has quit (Ping timeout: 252 seconds) 2021-06-26 08:54:26 --> kmh (~kmh@p200300df5f3e6100dd8abf4c678f29f0.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 08:55:30 <-- feliix42 (~felix@gibbs.uberspace.de) has quit (Ping timeout: 250 seconds) 2021-06-26 08:59:23 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-26 09:03:10 <-- bradfier (~bradfier@user/bradfier) has quit (Quit: Leaving...) 2021-06-26 09:04:41 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 258 seconds) 2021-06-26 09:04:55 --> bradfier (~bradfier@user/bradfier) has joined ##rust 2021-06-26 09:10:00 shan if let Err(why) = writeln!(file, "{}", line) { panic!("Error writing to temp file: {}", why) }; 2021-06-26 09:10:09 shan can someone explain to me how this works 2021-06-26 09:10:22 jbg writeln! is a macro, and the code that it expands to returns a Result 2021-06-26 09:10:34 jbg Result is an enum with two variants, Result::Ok and Result::Err 2021-06-26 09:10:44 shan okay 2021-06-26 09:11:04 jbg the `if let ...` checks if the value matches a pattern, in this case Err(why) 2021-06-26 09:11:12 jbg so if it's an Err variant, the value inside the variant gets bound to `why` 2021-06-26 09:11:37 jbg I'm guessing you haven't read the rust book yet -- this is all covered early on 2021-06-26 09:11:45 jbg https://doc.rust-lang.org/book/ 2021-06-26 09:12:10 shan how can if have `let` when `let xyz` is a statement 2021-06-26 09:12:18 rk4 reading the book might seem like more work, but it's a lot less work than not reading it 2021-06-26 09:12:31 jbg `if let` is a thing on its own 2021-06-26 09:12:37 * shan goes off to read the book 2021-06-26 09:12:42 shan thanks jbg + rk4 2021-06-26 09:12:46 bluss if let is like a mini version of match 2021-06-26 09:14:08 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 250 seconds) 2021-06-26 09:14:22 --> sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has joined ##rust 2021-06-26 09:20:16 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-26 09:22:20 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-26 09:23:58 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-26 09:25:21 talin hello. hello. i am working on a rust tutorial, and i don't understand why i had to add "pub" in front of the innermost modules but not the outermost one? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=0477648afbb273e07073bf61d546afb2 2021-06-26 09:26:10 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 09:27:19 cehteh talin: because thats in the same scope 2021-06-26 09:27:45 cehteh when you want to use that cross-crate then you need to put pub there as well 2021-06-26 09:28:14 talin aah, that makes sense. thank you 2021-06-26 09:28:50 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-26 09:29:57 cehteh and i feel like 'pub mod' should be used rather sparingly, better reexport things 2021-06-26 09:30:33 talin how do you re-export? 2021-06-26 09:30:50 nox `pub use` 2021-06-26 09:31:04 cehteh pub use path::to::thing; 2021-06-26 09:31:06 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 09:31:21 talin huh, okay. this packages chapter didn't mention that 2021-06-26 09:31:36 cehteh its somewhere mentioned 2021-06-26 09:31:59 cehteh but i agree .. grasping the module system at first gave me some trouble as well 2021-06-26 09:32:41 cehteh also i prefer to put modules in files, then reexports from lib.rs looking nicer too 2021-06-26 09:33:02 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 244 seconds) 2021-06-26 09:34:10 talin i see. do you have an example of this? 2021-06-26 09:34:59 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 09:35:16 cehteh yes but dunno if thats well done, i am beginner too :D 2021-06-26 09:35:28 cehteh https://github.com/cehteh/uberallfs/blob/master/objectstore/src/lib.rs 2021-06-26 09:36:13 cehteh just noticing some fuckup that can be cleaned up, but thats all WIP 2021-06-26 09:36:37 talin that seems like a cool project 2021-06-26 09:38:00 cehteh yes but very much to do 2021-06-26 09:38:20 cehteh had ideas about that like 15 years ago 2021-06-26 09:38:43 cehteh just started implementing it earlier this year for learning rust 2021-06-26 09:39:13 talin nice. i am planning to start with something much simpler than that 2021-06-26 09:39:37 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-06-26 09:40:03 <-- gourlaysama (~gourlaysa@user/gourlaysama) has quit (Quit: gourlaysama) 2021-06-26 09:40:08 cehteh hehe .. in the meantime i did a few smaller/supplmentary things 2021-06-26 09:40:20 talin my plan is to get sort of "muscle memory" for the simpler parts of rust, such that when i tackle the harder parts i won't be struggling with so many things at the same time 2021-06-26 09:42:05 <-- death916 (~death916@user/death916) has quit (Ping timeout: 268 seconds) 2021-06-26 09:42:10 cehteh yeah i am not there yet either, trying to learn things piece by piece as needed 2021-06-26 09:42:30 <-- neurocyte57 (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-26 09:42:55 cehteh small thing i did yesterday: https://github.com/cehteh/testcall 2021-06-26 09:43:24 cehteh that'll grow as needed as well 2021-06-26 09:46:58 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-26 09:47:06 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 265 seconds) 2021-06-26 09:49:03 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 244 seconds) 2021-06-26 09:49:44 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-26 09:49:47 --> hegstal_ (~hegstal@2a02:c7f:7604:8a00:1f42:2755:1fbb:af5c) has joined ##rust 2021-06-26 09:50:49 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 09:53:21 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-26 09:53:22 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-26 09:53:22 --> death916 (~death916@user/death916) has joined ##rust 2021-06-26 09:53:28 -- hegstal_ is now known as hegstal 2021-06-26 09:55:23 --> Mateon1 (~Thunderbi@user/mateon1) has joined ##rust 2021-06-26 09:55:48 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 09:58:19 --> Ioupek (~mlin@ip-5-172-238-54.multi.internet.cyfrowypolsat.pl) has joined ##rust 2021-06-26 10:01:21 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-26 10:03:26 bertptrs ooh that looks nice 2021-06-26 10:05:18 cehteh thanks, i really was missing such 2021-06-26 10:08:47 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 10:11:53 talin nice cehteh 2021-06-26 10:16:25 cehteh my brainfart from yesterday: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a8ec5723c5b9cc83e25598cfcf522736 2021-06-26 10:16:44 cehteh works somewhat but i dont know how to implement it for Box and other generics 2021-06-26 10:17:12 <-- cdown_ (~cdown@89.32.122.5) has quit (Quit: https://chrisdown.name) 2021-06-26 10:17:21 cehteh aka can we have a generic new function for 1-parameter constructors 2021-06-26 10:17:59 --> feliix42 (~felix@gibbs.uberspace.de) has joined ##rust 2021-06-26 10:18:16 j`ey cehteh: impl

New

for Box

{ 2021-06-26 10:18:24 cehteh .. eventually even recursive? maybe not 2021-06-26 10:19:16 j`ey cehteh: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=efce479f1801a96b0c4ca998e4e71a66 dunno what the issue with Box is? 2021-06-26 10:19:22 j`ey unless it was the T vs P thing 2021-06-26 10:19:31 cehteh j`ey: looks wrong because P is the parameter type? 2021-06-26 10:19:58 j`ey cehteh: and? 2021-06-26 10:20:05 j`ey that's the type of Box you want, Box

2021-06-26 10:20:24 cehteh mmh 2021-06-26 10:20:29 j`ey you want to create a Box from a parameter P, so the Box will be Box

2021-06-26 10:20:30 cehteh looks too simple lemme try :D 2021-06-26 10:21:04 cehteh oops :D 2021-06-26 10:21:08 cehteh works 2021-06-26 10:21:19 j`ey yeah i linked it working above! :P 2021-06-26 10:21:19 cehteh did i say brainfart :) 2021-06-26 10:21:32 cehteh well now can we do that recursively 2021-06-26 10:21:46 j`ey recursively in what sense? 2021-06-26 10:22:22 cehteh like (stupid example) let foo: Rc> = new("foo"); 2021-06-26 10:22:48 cehteh mean impl New for New? :) 2021-06-26 10:23:55 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 10:24:54 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 10:25:33 <-- llorllale (~llorllale@2607:9880:3a18:69:597:b5cf:3629:f483) has quit (Quit: WeeChat 3.2) 2021-06-26 10:26:27 cehteh my thought experiment here is to make code nicer readable when you call functions, like sometimes you have fn foo(Arc>>) ...... and then you need to call foo(Arg::new(Mutex::new(Box::new(Something::new())))) ...which is a bit over-verbose 2021-06-26 10:26:48 danieldg cehteh: I think you need to use it like "trait New { type SingleArgument; fn new(a : Self::SingleArgument) -> Self } 2021-06-26 10:27:03 danieldg cehteh: that will let the compiler infer down the chain properly 2021-06-26 10:27:10 cehteh ah 2021-06-26 10:27:38 danieldg otherwise you have the issue with Into that x.into().into() is ambiguous about what the middle type should be 2021-06-26 10:27:43 cehteh yes 2021-06-26 10:28:00 cehteh i am not good with this stuff yet, just fooling around 2021-06-26 10:29:11 jbg cehteh: another thing to consider is that if the foo() in your example is going to store the thing passed to it, it might be able to wrap it in an Arc llorllale (~llorllale@2607:9880:3a18:69:ec8a:a593:8c39:c940) has joined ##rust 2021-06-26 10:32:53 cehteh which should been easier .. .and current_dir(trait_here: Box) 2021-06-26 10:33:02 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-26 10:33:03 cehteh yes its a trait 2021-06-26 10:33:05 jbg ah right 2021-06-26 10:33:38 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-26 10:33:59 cehteh well as saying its just a thought experiment, i mean it would be somewhat cool if a really useable New trait falls out of this experiment, but i have doubts by myself :) 2021-06-26 10:34:39 cehteh actually if thats doable i wonder why the stdlib doesnt have such 2021-06-26 10:35:43 -- night_wulfe_ is now known as night_wulfe 2021-06-26 10:35:57 jbg there's a lot of doable stuff that std doesn't contain 2021-06-26 10:36:08 j`ey I cant see how you can make it handle multiple types in a single new :/ 2021-06-26 10:36:39 cehteh j`ey: it should not 2021-06-26 10:36:47 danieldg you can't, not if you also want it to chain 2021-06-26 10:37:07 danieldg but a chaining one would still be useful 2021-06-26 10:37:19 danieldg Into already handles the multiple-types path 2021-06-26 10:37:20 j`ey cehteh: well you said you wanted: foo: Rc> = new("foo"), to work 2021-06-26 10:37:25 j`ey danieldg: it does? 2021-06-26 10:37:36 cehteh i dont want tro introduce anything magic, this should only safe some typing when the types are unambiugously defined 2021-06-26 10:37:41 j`ey you cant do: let a: A = C.into(); which goes via B 2021-06-26 10:37:43 danieldg the multiple-types but no-chaining path, I should say 2021-06-26 10:38:28 cehteh when theres some ambiguity then i really hope the compiler complains rather than picking something on its own 2021-06-26 10:38:39 jbg of course 2021-06-26 10:38:41 danieldg you could do let foo: Arc>> = New::new(7); 2021-06-26 10:39:03 j`ey danieldg: how? 2021-06-26 10:39:14 j`ey unless you impl that directly 2021-06-26 10:39:22 <-- ubuntourist (~kjcole@pool-108-51-151-26.washdc.fios.verizon.net) has quit (Quit: Leaving) 2021-06-26 10:39:27 <-- frost (~frost@59.71.242.236) has quit (Quit: Connection closed) 2021-06-26 10:39:29 danieldg j`ey: trait New { type SingleArgument; fn new(a : Self::SingleArgument) -> Self } 2021-06-26 10:39:40 j`ey you cant just impl New for Arc, Mutex, Wrapping, and have that work 2021-06-26 10:39:43 cehteh well i have to go now, back later and otherwise i play next week with that, no urge 2021-06-26 10:39:45 danieldg j`ey: with an impl for each of Arc,Mutex,Wrapping that 2021-06-26 10:39:48 danieldg j`ey: why not? 2021-06-26 10:40:06 cehteh yes if couse everything needs a impl 2021-06-26 10:40:21 Alexendoo You would need GAT at the very least surely 2021-06-26 10:40:24 danieldg hmm 2021-06-26 10:40:48 danieldg oh, I think you need to specify how many levels down to walk 2021-06-26 10:41:00 danieldg yeah, ok, not as nice as I thought 2021-06-26 10:41:01 Alexendoo Otherwise you can't even impl that for e.g. Arc 2021-06-26 10:41:44 danieldg well, I was thinking: impl New for Arc { type SingleAgument=T; } 2021-06-26 10:42:03 Alexendoo huh I didn't think you could do that 2021-06-26 10:42:25 danieldg you would need to use it like: let foo: Arc>> = New::new3(7); 2021-06-26 10:42:47 danieldg which is less nice 2021-06-26 10:43:46 danieldg trait New { type SingleArgument; fn new(a : Self::SingleArgument) -> Self; fn new2(a : ::SingleArgument) -> Self where Self::SingleArgument : New { ... } } 2021-06-26 10:43:53 danieldg and so on for new3,4,etc 2021-06-26 10:45:42 danieldg because otherwise you can't rule out something like impl New for Foo { type SingleArgument = Bar; } impl New for Bar { type SingleArgument = Foo; } 2021-06-26 10:47:44 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-06-26 10:48:41 j`ey you're not selling it very well :P 2021-06-26 10:49:00 --> neurocyte57 (~neurocyte@45.136.170.248) has joined ##rust 2021-06-26 10:49:00 <-- neurocyte57 (~neurocyte@45.136.170.248) has quit (Changing host) 2021-06-26 10:49:00 --> neurocyte57 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-26 10:49:15 danieldg well yeah, I thought that I could do it without the newN form 2021-06-26 10:50:15 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-06-26 10:50:32 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-26 11:00:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-26 11:02:54 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-26 11:05:32 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-26 11:07:33 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-06-26 11:07:53 <-- dolor_avis (~dolor_avi@user-5-173-12-65.play-internet.pl) has quit (Quit: dolor_avis) 2021-06-26 11:08:12 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-26 11:10:08 --> xkr47 (xkr47@91-150-59-18.customer.karistelefon.fi) has joined ##rust 2021-06-26 11:14:16 cehteh mhm 2021-06-26 11:15:15 cehteh the N can perhaps be a const generic? .. no idea, just peeking in here ... and there should be a impl New for T: Into to use that if available 2021-06-26 11:17:02 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-26 11:20:40 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-26 11:32:54 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 244 seconds) 2021-06-26 11:39:37 <-- sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has quit (Read error: Permission denied) 2021-06-26 11:39:54 --> sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has joined ##rust 2021-06-26 11:43:20 nemo https://old.reddit.com/r/rust/comments/o1yy1p/announcing_rust_1530/h2488f5/ 2021-06-26 11:47:25 cehteh old news :D 2021-06-26 11:48:23 cehteh still no emojis allowed 2021-06-26 11:48:59 cehteh Err(💩) 2021-06-26 11:57:03 --> psj (~user@172.83.162.165) has joined ##rust 2021-06-26 11:57:28 <-- schmillin (~schmillin@user/schmillin) has quit (Ping timeout: 246 seconds) 2021-06-26 12:00:02 --> schmillin (~schmillin@user/schmillin) has joined ##rust 2021-06-26 12:06:01 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Read error: Connection reset by peer) 2021-06-26 12:06:09 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-26 12:07:46 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-26 12:09:25 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-26 12:09:29 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 12:09:29 <-- chromis (sid150893@id-150893.tinside.irccloud.com) has quit (Ping timeout: 272 seconds) 2021-06-26 12:11:00 --> chromis (sid150893@id-150893.tinside.irccloud.com) has joined ##rust 2021-06-26 12:12:32 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-26 12:12:35 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-26 12:15:56 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-26 12:16:03 <-- psj (~user@172.83.162.165) has quit (Quit: ERC (IRC client for Emacs 27.2)) 2021-06-26 12:19:37 <-- sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has quit (Read error: Permission denied) 2021-06-26 12:19:53 --> sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has joined ##rust 2021-06-26 12:20:27 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-26 12:23:46 --> metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has joined ##rust 2021-06-26 12:25:33 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-26 12:25:41 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 12:28:06 --> euandreh (~euandreh@2804:14c:33:9fe5:fe7c:a1fa:94dc:c42a) has joined ##rust 2021-06-26 12:28:14 nemo cehteh: well... 1.53's support is old new 2021-06-26 12:28:16 nemo s 2021-06-26 12:28:32 nemo cehteh: but I had totally missed that awesome and hilarious idea of zalgo text 2021-06-26 12:29:05 nemo cehteh: and yeah. emoji are not allowed, but as we discussed at the time https://play.rust-lang.org/?version=beta&mode=debug&edition=2018&gist=f5dd4fc278f58bb8a5459afc68d754e2 works juuust fine ☺ 2021-06-26 12:29:39 <-- euandreh (~euandreh@2804:14c:33:9fe5:fe7c:a1fa:94dc:c42a) has quit (Client Quit) 2021-06-26 12:29:59 --> euandreh (~euandreh@2804:14c:33:9fe5:fe7c:a1fa:94dc:c42a) has joined ##rust 2021-06-26 12:30:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-26 12:30:28 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-06-26 12:30:35 <-- bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has quit (Ping timeout: 272 seconds) 2021-06-26 12:32:30 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:9505:5c9e:7f24:4f04) has joined ##rust 2021-06-26 12:39:15 --> southerntofu (southernto@thunix.net) has joined ##rust 2021-06-26 12:40:47 southerntofu hello, is there a cargo flag to ignore "Cargo.lock" file? i thought it was ignored unless --frozen/--locked was passed 2021-06-26 12:41:23 danieldg just run 'cargo update' 2021-06-26 12:43:14 --> bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has joined ##rust 2021-06-26 12:44:49 <-- Ioupek (~mlin@ip-5-172-238-54.multi.internet.cyfrowypolsat.pl) has quit (Quit: Konversation terminated!) 2021-06-26 12:45:59 southerntofu thanks! :) 2021-06-26 12:58:02 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 12:58:35 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-26 12:59:35 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-26 13:03:53 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Ping timeout: 258 seconds) 2021-06-26 13:04:14 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-26 13:06:08 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 13:18:16 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-26 13:18:35 -- metal_egg is now known as departed_egg 2021-06-26 13:29:52 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 13:30:27 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 13:32:12 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Quit: ChaiTRex) 2021-06-26 13:38:59 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 13:41:47 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 13:44:01 --> llorllale1 (~llorllale@2607:9880:3a18:69:ec5a:b1c5:599c:5def) has joined ##rust 2021-06-26 13:44:26 <-- llorllale (~llorllale@2607:9880:3a18:69:ec8a:a593:8c39:c940) has quit (Ping timeout: 272 seconds) 2021-06-26 14:11:48 --> bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has joined ##rust 2021-06-26 14:15:37 -- CommunistWolf is now known as CapitalistWolf 2021-06-26 14:15:44 -- CapitalistWolf is now known as CommunistWolf 2021-06-26 14:17:50 -- llorllale1 is now known as llorllale 2021-06-26 14:21:38 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-26 14:23:03 --> cdolan22 (~cdolan@047-229-208-026.res.spectrum.com) has joined ##rust 2021-06-26 14:23:58 <-- aelien27 (~cdolan@024-205-153-145.res.spectrum.com) has quit (Ping timeout: 268 seconds) 2021-06-26 14:23:59 -- cdolan22 is now known as aelien27 2021-06-26 14:26:28 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 14:31:17 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-26 14:31:33 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-26 14:46:20 <-- flipchan (~yumman@88.131.87.132) has quit (Changing host) 2021-06-26 14:46:20 --> flipchan (~yumman@user/flipchan) has joined ##rust 2021-06-26 14:48:27 <-- llorllale (~llorllale@2607:9880:3a18:69:ec5a:b1c5:599c:5def) has quit (Quit: WeeChat 3.2) 2021-06-26 14:49:51 --> llorllale (~llorllale@2607:9880:3a18:69:871:a4f2:4bfc:8d6d) has joined ##rust 2021-06-26 14:50:54 --> xse_ (~xse@user/xse) has joined ##rust 2021-06-26 14:52:35 <-- bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has quit (Quit: Leaving) 2021-06-26 14:53:36 <-- xse (~xse@user/xse) has quit (Ping timeout: 252 seconds) 2021-06-26 14:53:59 --> bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has joined ##rust 2021-06-26 14:58:36 -- jkl is now known as jkl1337 2021-06-26 15:00:18 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-26 15:00:44 -- jkl1337 is now known as jkl 2021-06-26 15:01:31 <-- jkl (~jkl@45-19-26-123.lightspeed.cicril.sbcglobal.net) has quit (Changing host) 2021-06-26 15:01:32 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-26 15:05:56 --> dunderprotos (~Guest53@117.241.66.199) has joined ##rust 2021-06-26 15:09:59 <-- dunderprotos (~Guest53@117.241.66.199) has quit (Quit: Client closed) 2021-06-26 15:10:35 --> dunderprotos (~dunderpro@117.241.66.199) has joined ##rust 2021-06-26 15:12:04 <-- llorllale (~llorllale@2607:9880:3a18:69:871:a4f2:4bfc:8d6d) has quit (Quit: WeeChat 3.2) 2021-06-26 15:12:55 <-- dunderprotos (~dunderpro@117.241.66.199) has quit (Client Quit) 2021-06-26 15:13:17 --> llorllale (~llorllale@2607:9880:3a18:69:f1eb:8b18:ec10:ac53) has joined ##rust 2021-06-26 15:17:22 --> dunderprotos (~textual@117.241.66.199) has joined ##rust 2021-06-26 15:21:14 <-- dunderprotos (~textual@117.241.66.199) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-26 15:21:43 --> dunderprotos (~textual@117.241.66.199) has joined ##rust 2021-06-26 15:26:12 <-- dunderprotos (~textual@117.241.66.199) has quit (Client Quit) 2021-06-26 15:28:24 <-- dcz_ (~dcz@dynamic-002-243-154-128.2.243.pool.telefonica.de) has quit (Ping timeout: 258 seconds) 2021-06-26 15:30:41 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-26 15:50:19 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:9505:5c9e:7f24:4f04) has quit 2021-06-26 15:53:00 <-- llorllale (~llorllale@2607:9880:3a18:69:f1eb:8b18:ec10:ac53) has quit (Ping timeout: 272 seconds) 2021-06-26 15:53:28 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 265 seconds) 2021-06-26 15:56:50 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-06-26 15:57:21 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-26 15:57:39 --> puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-26 15:58:19 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-26 15:59:49 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 16:08:56 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 252 seconds) 2021-06-26 16:08:57 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-26 16:10:48 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-26 16:11:37 --> GNUcifer (~ct@i59F72C79.versanet.de) has joined ##rust 2021-06-26 16:15:03 <-- cehteh (~ct@i59F72C79.versanet.de) has quit (Killed (NickServ (GHOST command used by GNUcifer))) 2021-06-26 16:15:09 -- GNUcifer is now known as cehteh 2021-06-26 16:15:42 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-26 16:18:07 <-- sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has quit (Read error: Permission denied) 2021-06-26 16:18:23 --> sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has joined ##rust 2021-06-26 16:23:09 --> ziper (~deamon@212.237.171.46) has joined ##rust 2021-06-26 16:24:10 <-- cultpony (~cultpony@user/cultpony) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-26 16:24:28 --> cultpony (~cultpony@user/cultpony) has joined ##rust 2021-06-26 16:25:30 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-26 16:27:16 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 16:29:12 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 250 seconds) 2021-06-26 16:30:30 <-- ac5tin (~ac5tin@user/ac5tin) has quit (Ping timeout: 258 seconds) 2021-06-26 16:31:07 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-26 16:31:16 --> ac5tin (~ac5tin@user/ac5tin) has joined ##rust 2021-06-26 16:32:31 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-26 16:32:47 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 268 seconds) 2021-06-26 16:37:37 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-26 16:38:17 --> Arnik (~arnik@167.172.99.247) has joined ##rust 2021-06-26 16:38:25 <-- meandi (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has quit (Read error: No route to host) 2021-06-26 16:39:30 --> frk (~textual@193.27.14.10) has joined ##rust 2021-06-26 16:39:45 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 16:40:44 --> meandi (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has joined ##rust 2021-06-26 16:43:56 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 244 seconds) 2021-06-26 16:44:33 <-- Arnik (~arnik@167.172.99.247) has quit (Ping timeout: 272 seconds) 2021-06-26 16:44:34 Tacklebox I might just be crazy, but does the signature of https://docs.rs/zbus/1.9.1/zbus/struct.Proxy.html#method.connect_signal seem kind of unusable? 2021-06-26 16:45:34 Tacklebox The signal name is based on an ID assigned at runtime, so I need to build signal_name with `format!("{}", ...)` and then leak it with Box::leak to make it into a 'static str 2021-06-26 16:45:47 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-26 16:46:16 danieldg yeah, if it's not intended to be a compile-time string, that signature is just wrong 2021-06-26 16:46:34 danieldg likely due to laziness on the part of the author 2021-06-26 16:46:47 j`ey it eventually calls https://docs.rs/zbus/1.9.1/src/zbus/proxy.rs.html#325 2021-06-26 16:47:39 danieldg heh, no need for static there 2021-06-26 16:48:13 Tacklebox Yea, since it gets an owned copy from that format! anyway 2021-06-26 16:48:18 Tacklebox Very strange 2021-06-26 16:48:22 kee But then you need a generic lifetime parameter, which is 0 more characters! Think of the extra typing. 2021-06-26 16:48:59 danieldg it's actually -8 characters 2021-06-26 16:49:06 Tacklebox I didn't mean to dunk on them, I was just unsure if I was having a brainfart or it was as un-ergonomic as it seemed. 2021-06-26 16:49:25 j`ey Tacklebox: hard to say, it might be intentional.. for some reason 2021-06-26 16:49:40 Tacklebox I will see if they will accept a PR, if it is for a good reason they will probably tell me when they reject it. 2021-06-26 16:49:48 kee danieldg: + <'a>'a but -'static – unless you're saying non-&self generic lifetimes are inferred? 2021-06-26 16:50:27 danieldg kee: at least sometimes they are, and this is one of them 2021-06-26 16:52:04 kee Is there any good reason for it to have +'static on H, but then box it? 2021-06-26 16:52:36 danieldg generally callbacks need to be 'static 2021-06-26 16:52:53 danieldg otherwise when you box them you get Box which is less useful 2021-06-26 16:53:06 <-- SoF (~skius@user/skius) has quit (Quit: Ping timeout (120 seconds)) 2021-06-26 16:53:23 --> SoF (~skius@user/skius) has joined ##rust 2021-06-26 16:53:47 <-- xse_ (~xse@user/xse) has quit (Quit: mwah) 2021-06-26 16:55:08 <-- darkapex (uid360049@user/darkapex) has quit (Quit: Connection closed for inactivity) 2021-06-26 16:55:23 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Lost terminal) 2021-06-26 17:00:41 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-26 17:00:59 <-- frk (~textual@193.27.14.10) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-26 17:10:37 kee Is it possible to use::* a struct? 2021-06-26 17:10:47 danieldg yep 2021-06-26 17:10:51 kee How? 2021-06-26 17:10:51 danieldg er, no 2021-06-26 17:10:54 danieldg not a struct 2021-06-26 17:10:56 kee Aw. 2021-06-26 17:10:57 danieldg an enum, yes 2021-06-26 17:11:07 danieldg but that just gets you the variants 2021-06-26 17:11:11 kee The struct has a lot of associated constants and I was hoping to avoid typing them out. 2021-06-26 17:11:25 kee I can just use Struct as S; instead. 2021-06-26 17:13:40 --> xse (~xse@user/xse) has joined ##rust 2021-06-26 17:17:55 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-06-26 17:19:01 <-- bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-26 17:19:44 <-- ziper (~deamon@212.237.171.46) has quit (Quit: ziper) 2021-06-26 17:24:40 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 250 seconds) 2021-06-26 17:26:14 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: fabienwang) 2021-06-26 17:26:50 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 250 seconds) 2021-06-26 17:28:19 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-26 17:42:51 <-- transistor (~trans@S01060011329d4e55.vc.shawcable.net) has quit (Quit: leaving) 2021-06-26 17:45:29 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 17:46:17 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 17:47:20 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 17:48:55 <-- printf (~printf@user/printf) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-26 17:49:13 --> printf (~printf@user/printf) has joined ##rust 2021-06-26 17:50:25 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 17:50:55 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-26 17:54:14 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has joined ##rust 2021-06-26 17:54:52 <-- bastienleonard (~bastienle@2a02:a210:8a0:5700:6666:b3ff:fed5:f1ce) has quit (Quit: WeeChat 3.2) 2021-06-26 17:56:18 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 250 seconds) 2021-06-26 17:59:11 --> a6a45081-2b83 (~aditya@106.214.225.112) has joined ##rust 2021-06-26 18:00:24 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 244 seconds) 2021-06-26 18:00:36 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-26 18:05:37 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-26 18:06:55 --> VG9t (~VG9t@gateway/tor-sasl/vg9t) has joined ##rust 2021-06-26 18:09:27 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-26 18:11:36 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-26 18:11:43 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-26 18:11:48 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 18:14:32 <-- SoF (~skius@user/skius) has quit (Quit: Ping timeout (120 seconds)) 2021-06-26 18:14:49 --> SoF (~skius@user/skius) has joined ##rust 2021-06-26 18:17:58 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-26 18:20:40 --> schmillin_ (~schmillin@user/schmillin) has joined ##rust 2021-06-26 18:21:00 --> Guest64 (~Guest64@cpc158775-hari22-2-0-cust265.20-2.cable.virginm.net) has joined ##rust 2021-06-26 18:24:22 <-- schmillin (~schmillin@user/schmillin) has quit (Ping timeout: 272 seconds) 2021-06-26 18:24:34 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-26 18:25:56 <-- a6a45081-2b83 (~aditya@106.214.225.112) has quit (Quit: Konversation terminated!) 2021-06-26 18:26:43 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Remote host closed the connection) 2021-06-26 18:30:06 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 250 seconds) 2021-06-26 18:30:11 Yruama hi, does someone tried to translate a (small) c++ program in rust ? i wonder how it is usefull 2021-06-26 18:31:07 Tacklebox Yes, I think we can say with certainty that many people have translated c++ programs to rust. ;) 2021-06-26 18:32:22 davros how much auto-translation between c++ and rust works - i dont think there's anywhere near 100% coverage 2021-06-26 18:32:31 davros i think you can translate plain C to rust 100% 2021-06-26 18:32:52 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-26 18:33:11 danieldg you can translate C++ to C too, but that doesn't make it a good idea :p 2021-06-26 18:33:22 Yruama the program i want to translate seems to be very old c++. source file extension are cc 2021-06-26 18:34:27 danieldg really if you want any of rust's benefits you need to do a bit of rewriting anyway 2021-06-26 18:34:27 j`ey cc doesnt make it old 2021-06-26 18:34:52 danieldg lots of things in C++ are unsafe in rust 2021-06-26 18:35:05 Yruama and i want to do this task to finally port it in a embedded target 2021-06-26 18:35:08 danieldg basically anything with iterator modification, for one 2021-06-26 18:35:10 davros converting c++ to rust could definitely be useful eg to simplify builds 2021-06-26 18:35:18 davros and to assist with bindings 2021-06-26 18:35:40 davros mixing c++ and rust just seems destined to be hard though, no way around that 2021-06-26 18:36:02 danieldg part of it is that the C++ ABI is compiler-specific 2021-06-26 18:36:52 davros just trying to build the smallest possible executable here .. nm is showing me i've got symbols in there , even after doing cargo build release ... i did have some lines in my cargo.toml to change the library opt level but have removed those (1min i'll paste my cargo..) 2021-06-26 18:37:57 Yruama davros, did you use "strip" ? 2021-06-26 18:38:10 danieldg the symbols are not likely a big part of the size 2021-06-26 18:38:54 Yruama i don't remember if it's possible to run strip automatically for release build 2021-06-26 18:39:34 davros ok let me try that. you're probably right 2021-06-26 18:39:46 davros also i guess the symbols are useful to get a histogram of useage 2021-06-26 18:39:59 Yruama histogram of usage ? 2021-06-26 18:40:19 danieldg davros: and for backtraces 2021-06-26 18:40:35 Yruama what is it? a kind of profiling ? 2021-06-26 18:40:41 danieldg but yeah, perf-record is pretty useless without symbols 2021-06-26 18:41:43 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 272 seconds) 2021-06-26 18:41:54 kee Yruama: Are you using C++'s shared pointers? 2021-06-26 18:42:05 kee Or templates? 2021-06-26 18:42:20 davros thats a good point , anyone know where to start with statistical profiling with rust programs under linux 2021-06-26 18:42:35 j`ey davros: same as with C++ 2021-06-26 18:42:36 davros any profiling i've done in anger has been in visual studio on windows and on consoles 2021-06-26 18:42:36 Yruama don't know for shared pointers, but there is some template 2021-06-26 18:42:45 j`ey davros: `perf` 2021-06-26 18:43:38 davros https://www.brendangregg.com/perf.html this thing i presume, thanks for the recomendation 2021-06-26 18:44:17 kee Yruama: Templates are hard to port. 2021-06-26 18:44:21 j`ey yeah davros 2021-06-26 18:44:30 j`ey its a kernel thing 2021-06-26 18:45:09 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-26 18:45:19 Yruama kee, what you mean by shared pointers ? you talking about a raw pointer shared across object, or about the smart pointer ( i don't know if it exist in c++) 2021-06-26 18:45:33 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-26 18:45:35 danieldg yes, c++ has smart pointers 2021-06-26 18:46:20 danieldg you need to manually figure out if you translate them to Rc, Rc>, or Arc/Arc ... i'm guessing that'll spit out some big dump alongside it 2021-06-26 18:47:38 danieldg yeah, it writes to a file in the current dir 2021-06-26 18:47:58 Yruama kee, i think only template using number as parameter are hard to translate 2021-06-26 18:48:27 kee Yruama: Those are easier now, actually. 2021-06-26 18:48:46 danieldg heavy template use can be hard to translate regardless of the type 2021-06-26 18:49:02 danieldg especially if it uses non-obvious duck typing 2021-06-26 18:49:05 kee danieldg: Everything's easy with proc_macros. 2021-06-26 18:49:29 danieldg I think you have an interesting definition of easy 2021-06-26 18:49:37 kee Duck typing's a tricky one. The Rust equivalent is traits, right? 2021-06-26 18:49:43 danieldg yep 2021-06-26 18:49:48 Yruama kee, how you translate it ? 2021-06-26 18:50:05 kee I have a computer scientist's conception of easy: if it's not impossible, it's easy. 2021-06-26 18:50:07 danieldg but you actually have to make a trait, you can't just go "oh by the way I use .foo and .bar" 2021-06-26 18:50:26 kee Or find a convenient trait on crates.io, like the numeric traits. 2021-06-26 18:50:49 kee Yruama: Depends on the template. Often I'll just not. 2021-06-26 18:51:40 kee The easiest way is to work out what the template's trying to do, then do that thing in Rust (ignoring how the template did it). 2021-06-26 18:52:04 Yruama i just started to look a the source code, so i on't know what templates does in it 2021-06-26 18:52:48 <-- Guest64 (~Guest64@cpc158775-hari22-2-0-cust265.20-2.cable.virginm.net) has quit (Quit: Client closed) 2021-06-26 18:54:00 -- Gustavo6046 is now known as Gustavo6046|bloo 2021-06-26 18:54:09 -- Gustavo6046|bloo is now known as Gustavo6046|oops 2021-06-26 18:54:10 davros ok i have a "perf.data" spat out .. i;m looking around for something to analyse that.. 2021-06-26 18:54:11 -- Gustavo6046|oops is now known as Gustavo6046 2021-06-26 18:54:38 j`ey davros: perf report 2021-06-26 18:55:06 davros thanks i just found that 2021-06-26 18:56:24 danieldg I find '--call-graph=dwarf' (used during record) to be useful 2021-06-26 18:57:13 davros yeah i was about to ask about that.. inclusive vs exclusive 2021-06-26 18:57:57 Yruama anothr question, is it frequent to get a more optimized executable when translating it in rust ? 2021-06-26 18:58:11 kee Yruama: Depends if you do it right. 2021-06-26 18:58:33 kee A rewrite normally gives you a more optimised executable, and Rust isn't *bad* for that. 2021-06-26 18:59:44 kee Rust does more at compile-time than C++ (lots of C++'s primitives are runtime), so possibly. 2021-06-26 18:59:47 Yruama i'm just curious about it, for i want to do, i just want ot avoid to get a less optimized binary 2021-06-26 19:00:09 kee However, doing stuff at runtime sometimes takes less code, which gives better cache efficiency. 2021-06-26 19:00:42 kee I wouldn't bet on Rust being faster in that regard. I think I could get Rust code faster than I could get C++ code, though. 2021-06-26 19:00:51 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 244 seconds) 2021-06-26 19:00:51 kee Yruama: What is "optimised"? 2021-06-26 19:01:06 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-06-26 19:01:32 Yruama kee, i was thinking about speed 2021-06-26 19:01:48 danieldg Yruama: if you're willing to use unsafe liberally, there's no reason you can't match speed in rust and C++ 2021-06-26 19:01:53 davros rust and C++ are very similar in approach i.e zero-cost abstactions 2021-06-26 19:02:09 davros i would not expect performance increase in rewriting in rust.. just code-stability,manageability 2021-06-26 19:02:14 --> kimahri (~ev@user/kimahri) has joined ##rust 2021-06-26 19:02:16 danieldg sometimes safe rust will force you to add checks that C++ doesn't force 2021-06-26 19:02:47 danieldg there's nothing that will guarantee faster code from rust either 2021-06-26 19:03:00 kee danieldg: Except when working with other people's libraries, I've always managed to erase those using the type system. 2021-06-26 19:03:26 davros in my mind if there's any perf differnece, it's "which way the wind was blowing", "some libs haven't been optimized yet" whatever 2021-06-26 19:03:29 danieldg other people's code is always either horrible or wonderful 2021-06-26 19:03:40 <-- tsdh (~user@j289989.servers.jiffybox.net) has quit (Quit: Goodbye) 2021-06-26 19:04:59 kee Yruama: Your target embedded platform: what kind of caching does it do on the CPU? 2021-06-26 19:05:02 Yruama i think i'm lucky, code i want to translate seems clear and well structured 2021-06-26 19:05:51 Yruama kee, i don't directly target embedded platform, i want to do it in two step 2021-06-26 19:06:18 kee Yruama: Yeah, but you won't need to do much porting to get it to the embedded platform. 2021-06-26 19:06:24 Yruama translate the software first, and then adapt it for embedded 2021-06-26 19:06:33 kee It's a good idea to keep your target architecture in mind when doing the translating. 2021-06-26 19:07:17 kee If there's no hysteresis in EEPROM access times, that means you can do pointers-to-pointers stuff that you can't really do on normal computers. 2021-06-26 19:10:17 Yruama lol, for target architecture, it's would be a stm32f411 at first. I will probably use a bigger chip if the project go far enougth 2021-06-26 19:10:35 davros (ok i see 'perf record blah -g / perf report --call-graph , shows columns with children etc 2021-06-26 19:10:44 Yruama i don't understand what is "pointers-to-pointers" stuff 2021-06-26 19:11:58 davros i hope this trace is reliable 2021-06-26 19:12:03 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-26 19:12:06 Yruama i also don't understand what hysteresis for an access time ? 2021-06-26 19:12:17 kee Consider a binary tree. 2021-06-26 19:12:31 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-26 19:12:40 --> tsdh (~user@j289989.servers.jiffybox.net) has joined ##rust 2021-06-26 19:12:42 kee If all memory access is the same, an actual binary tree is fastest; log_2 memory lookups. 2021-06-26 19:13:15 kee However, if adjacent memory accesses are faster, using (say) 10 items at each level (for 5*log_10 memory lookups on average) is better. 2021-06-26 19:14:19 Yruama ok, i don't think there is such things in my program 2021-06-26 19:14:32 <-- kimahri (~ev@user/kimahri) has quit (Ping timeout: 265 seconds) 2021-06-26 19:17:06 davros strip/symbols took my executable from 6.1mb to 2.5mb :) 2021-06-26 19:18:52 davros could anyone comment on the assumption that an executable will be the same ballpark size as webassembly (what's going through my mind is "how big will this be in a web-page" ) 2021-06-26 19:19:25 davros ive been given a target of 5mb to aim at including data (2.5mb desktop code / its tight..) 2021-06-26 19:20:02 danieldg you can't comapre things like that 1:1 2021-06-26 19:20:03 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-26 19:20:11 danieldg too many differences 2021-06-26 19:20:32 danieldg just actually compile it to wasm and check the size 2021-06-26 19:29:22 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-26 19:29:33 --> kimahri (~ev@user/kimahri) has joined ##rust 2021-06-26 19:29:35 --> lf_ (~quassel@p200300d21f261d00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 19:29:36 <-- lf (~quassel@p200300d21f409100022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 272 seconds) 2021-06-26 19:29:41 <-- kimahri (~ev@user/kimahri) has quit (Max SendQ exceeded) 2021-06-26 19:30:29 --> kimahri (~ev@user/kimahri) has joined ##rust 2021-06-26 19:30:38 <-- kimahri (~ev@user/kimahri) has quit (Max SendQ exceeded) 2021-06-26 19:31:55 --> kimahri (~ev@user/kimahri) has joined ##rust 2021-06-26 19:32:04 <-- kimahri (~ev@user/kimahri) has quit (Max SendQ exceeded) 2021-06-26 19:32:34 <-- sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has quit (Read error: Permission denied) 2021-06-26 19:32:53 --> sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has joined ##rust 2021-06-26 19:32:58 --> kimahri (~ev@user/kimahri) has joined ##rust 2021-06-26 19:33:06 <-- kimahri (~ev@user/kimahri) has quit (Max SendQ exceeded) 2021-06-26 19:45:02 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-06-26 19:47:04 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 19:48:45 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-26 19:49:07 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-26 19:50:13 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 258 seconds) 2021-06-26 19:51:08 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-06-26 19:51:26 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-26 19:55:37 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-26 20:00:13 --> Maxattax97 (~max@2603:900a:1501:a7ca::100) has joined ##rust 2021-06-26 20:02:15 --> Celeo_ (~Celeo@user/celeo) has joined ##rust 2021-06-26 20:03:06 --> trusch (~trusch@87.123.134.8) has joined ##rust 2021-06-26 20:06:15 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-26 20:06:44 <-- trusch_ (~trusch@i577B0A3A.versanet.de) has quit (Ping timeout: 265 seconds) 2021-06-26 20:08:41 --> bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has joined ##rust 2021-06-26 20:14:27 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-26 20:18:31 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-26 20:19:15 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 272 seconds) 2021-06-26 20:35:37 <-- VG9t (~VG9t@gateway/tor-sasl/vg9t) has quit (Quit: Leaving) 2021-06-26 20:39:17 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-26 20:39:32 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-26 20:40:09 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 272 seconds) 2021-06-26 20:40:37 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-26 20:41:57 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-26 20:43:31 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-26 20:43:34 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 250 seconds) 2021-06-26 20:49:45 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-06-26 20:50:32 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-06-26 20:53:40 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Client Quit) 2021-06-26 20:55:16 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 250 seconds) 2021-06-26 20:59:57 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-26 21:05:52 --> fpina (~fpina@2804:7f1:ea80:59b5:b90e:a18a:65fc:72a1) has joined ##rust 2021-06-26 21:07:55 --> neurocyte578 (~neurocyte@94.46.64.65) has joined ##rust 2021-06-26 21:07:55 <-- neurocyte578 (~neurocyte@94.46.64.65) has quit (Changing host) 2021-06-26 21:07:55 --> neurocyte578 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-26 21:07:56 --> tiny_user (~tiny_user@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has joined ##rust 2021-06-26 21:09:23 -- tiny_user is now known as TK4E 2021-06-26 21:09:41 <-- TK4E (~tiny_user@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has quit (Client Quit) 2021-06-26 21:10:11 --> tiny_user (~tiny_user@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has joined ##rust 2021-06-26 21:10:18 -- tiny_user is now known as TK4E 2021-06-26 21:10:21 <-- TK4E (~tiny_user@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has quit (Client Quit) 2021-06-26 21:10:32 <-- neurocyte57 (~neurocyte@user/neurocyte) has quit (Ping timeout: 265 seconds) 2021-06-26 21:10:32 -- neurocyte578 is now known as neurocyte57 2021-06-26 21:11:22 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-26 21:11:25 <-- Celeo_ (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-26 21:11:33 --> TK4E (~TK4E@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has joined ##rust 2021-06-26 21:11:53 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-26 21:12:26 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-26 21:12:29 <-- TK4E (~TK4E@2409:8a55:4f11:ea50:c522:8b16:6129:4587) has quit (Remote host closed the connection) 2021-06-26 21:12:57 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 265 seconds) 2021-06-26 21:14:57 -- Gustavo6046_ is now known as Gustavo6046 2021-06-26 21:20:46 meltyness 🤔 ... 2021-06-26 21:20:48 meltyness algae 2021-06-26 21:25:00 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 244 seconds) 2021-06-26 21:26:31 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-26 21:27:49 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-26 21:33:35 <-- departed_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has quit (Quit: Konversation terminated!) 2021-06-26 21:36:43 <-- puadxtub (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: puadxtub) 2021-06-26 21:38:50 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-26 21:40:50 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-26 21:41:08 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-26 21:41:57 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 265 seconds) 2021-06-26 21:43:45 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-06-26 21:43:59 <-- xkuru (~xkuru@user/xkuru) has quit (Read error: Connection reset by peer) 2021-06-26 21:46:51 -- schmillin_ is now known as schmillin 2021-06-26 21:51:29 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 21:52:03 <-- _________ (~nobody@user//x-7881368) has quit (Ping timeout: 252 seconds) 2021-06-26 21:56:02 --> starblue1 (~juergen@dslb-094-220-116-102.094.220.pools.vodafone-ip.de) has joined ##rust 2021-06-26 21:56:47 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-26 21:57:59 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-26 21:58:10 -- jeaye is now known as not-a-bot 2021-06-26 21:58:23 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 268 seconds) 2021-06-26 21:58:32 -- not-a-bot is now known as jeaye 2021-06-26 21:59:06 <-- starblue (~juergen@dslb-088-078-109-108.088.078.pools.vodafone-ip.de) has quit (Ping timeout: 244 seconds) 2021-06-26 22:00:42 --> bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has joined ##rust 2021-06-26 22:03:46 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-26 22:03:51 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-06-26 22:04:03 --> est31 (~est31@user/est31) has joined ##rust 2021-06-26 22:05:32 --> mpt (~tom@2a02:908:1862:49e0::6) has joined ##rust 2021-06-26 22:05:52 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-06-26 22:05:58 meltyness i guess a fat "rust provides traits to implement inheritance" would be admitting rust is oop still lmao 2021-06-26 22:06:01 --> est31 (~est31@user/est31) has joined ##rust 2021-06-26 22:14:27 habnabit_ meltyness, since when does 'OOP' require inheritance 2021-06-26 22:14:59 habnabit_ meltyness, rust types are pretty object-y even without traits 2021-06-26 22:16:25 meltyness data married with methods, inheritance, polymorphism, and encapsulation 2021-06-26 22:16:25 mike-burns If you need to do OO you can do it in Rust, but if you need to do imperative you can also do that in Rust. That doesn't make Rust an OOP. 2021-06-26 22:16:44 <-- mpt (~tom@2a02:908:1862:49e0::6) has quit (Ping timeout: 250 seconds) 2021-06-26 22:17:24 meltyness Well I know OOP is kind of a dirty word nowadays because it mostly results in unnecessary complexity and crutches, and it was designed to make codebases tolerate ever-expanding complexity and monetization 2021-06-26 22:17:46 mike-burns It is what it is. It's a paradigm; up to you to use it for good. 2021-06-26 22:18:34 meltyness well, and eliminating dynamic libraries is another nail in that "the designers of rust detest OOP" coffin 2021-06-26 22:20:16 meltyness I don't know, I'm just procrastinating :{ 2021-06-26 22:20:24 --> _________ (~nobody@user//x-7881368) has joined ##rust 2021-06-26 22:20:25 danieldg not sure the dynamic library thing had anything to do with oop 2021-06-26 22:20:37 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 265 seconds) 2021-06-26 22:20:48 danieldg it's more about rust not wanting to commit to an internal ABI 2021-06-26 22:21:00 davros meltyness: define "OOP" 2021-06-26 22:21:18 danieldg you can make rust shared objects and make rust use shared objects, using a C ABI 2021-06-26 22:21:39 meltyness davros: that thing i said starting with "data married with methods..." 2021-06-26 22:21:43 mike-burns I haven't seen any sign that the Rust designers "detest" OOP; they simply did not make an OOP language. 2021-06-26 22:22:09 meltyness hmmm... i'm not far in the tutorial, are types nestable? 2021-06-26 22:22:41 meltyness like, can a type contain a reference to an instance of another type? 2021-06-26 22:23:07 meltyness ... i mean "own" one 2021-06-26 22:23:18 danieldg a type can have a field of another type 2021-06-26 22:23:20 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-26 22:23:32 danieldg recursion requires a Box or similar somewhere in the chain 2021-06-26 22:26:34 meltyness mike-burns in what sense is rust _not_ OOP? It seems to support all the features I know of, robustly. 2021-06-26 22:26:50 davros meltyness what rust doesn't like is what i call "class-based OOP" (with inheritance, and internal vtables ) 2021-06-26 22:27:12 davros to many people OOP has come to mean Java/C++ virtual style classes 2021-06-26 22:27:19 davros rust doesnt' have that 2021-06-26 22:27:31 meltyness vtables -- you mean the methods are contained as a table of &self function pointers? 2021-06-26 22:27:39 davros but the broader point is that OOP itself is an ill-defined term 2021-06-26 22:27:46 mike-burns meltyness: you _can_ do OO in Rust, but you also don't have to. cf. Ruby, where you make classes with methods in them and that's your only option. 2021-06-26 22:28:15 davros vtables = array of function pointers yes .. in 'java/c++ style' there's a vtable pointer implicitely created held inside each object. Rust does not do this. 2021-06-26 22:28:34 davros but rust can use vtables ("trait objects") .. carried around by the pointer to the object, not inside the object itself. 2021-06-26 22:28:46 meltyness Oh I see, like the standard library doesn't pin you to the ground with a bunch of factories and crap 2021-06-26 22:28:51 mike-burns https://oswalt.dev/2021/06/polymorphism-in-rust/ - here's a more in-depth blog post about vtables in Ruby (from last week's(?) This Week in Rust). 2021-06-26 22:28:57 mike-burns Right. 2021-06-26 22:29:06 davros yeah the term "Polymorphism" is more useful than OOP 2021-06-26 22:29:12 davros rust has plenty of polymorphism.. 2021-06-26 22:29:17 mike-burns It's not "an OOP language", but it gives you all the tools you need to do OO. 2021-06-26 22:29:41 meltyness yeah I read a book about C++, but I only ever learned Java 2021-06-26 22:29:47 davros i find that the word "OOP" is itself so 'overloaded' that it looses meaning 2021-06-26 22:29:59 mike-burns Yeah, some people even consider Java OOP! 2021-06-26 22:30:04 * mike-burns backs out 2021-06-26 22:30:21 davros mostly its 'java style classes'.. it can also mean smalltalk style message passing , loose binding stuff.. 2021-06-26 22:30:35 davros rust certainly has a feature called 'objects' (trait-objects) 2021-06-26 22:30:45 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:1f42:2755:1fbb:af5c) has quit (Remote host closed the connection) 2021-06-26 22:30:54 davros what they really mean it's not in the Java/C++ inheritance/internal-vtable camp 2021-06-26 22:31:10 davros has anyone got a catchy name for that :/ 2021-06-26 22:31:12 meltyness I mostly think of OOP as a paradigm where "everything is a databse" (as opposed to everything is a file) 2021-06-26 22:31:29 davros i think the term OOP is too vague 2021-06-26 22:31:36 mike-burns OK so now we have to define "database"?! 2021-06-26 22:31:56 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-26 22:31:56 meltyness yeah, like a relational database 2021-06-26 22:32:04 davros better to say "rust has polymorphism, but rust doesn't have classes". avoid the term OOP, it says too much and too little. 2021-06-26 22:32:34 danieldg more informative descriptions are always better 2021-06-26 22:32:35 meltyness ... well in that case, what functionality of a class does a Type exclude? 2021-06-26 22:32:37 mike-burns I don't think dwelling on "is Rust OOP?" will help you learn Rust, TBH. Maybe it will, but I would start with learning Rust and then philosophizing. 2021-06-26 22:32:46 danieldg meltyness: superclasses 2021-06-26 22:33:14 danieldg and subclasses too 2021-06-26 22:33:15 davros no class-inheritance; no internal vtable ptr. also methods are not defined inside a class. they're defined in 'traits and impls'. 2021-06-26 22:33:44 danieldg imo 'methods not defined in the class' is a purely syntax thing 2021-06-26 22:33:54 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-26 22:33:58 meltyness ah, i see; all "inheritance" is limited to traits, rather than the wishful-thinking that any person could specify any useful template upon which other templates could be based on 2021-06-26 22:33:59 davros its quite significant for organization IMO 2021-06-26 22:34:28 davros it completely changes how you can organize projects and libraries 2021-06-26 22:34:53 mike-burns In OO .read would be defined on File, not on Read. 2021-06-26 22:34:54 davros it's also differnet in memory layout to 'class-based oop' (internal vtable vs fatptr vtables) 2021-06-26 22:35:49 davros meltyness IMO: traits are better at decoupling and extending, compared to class inheritance. 2021-06-26 22:36:08 <-- Maxattax97 (~max@2603:900a:1501:a7ca::100) has quit (Quit: WeeChat 3.2) 2021-06-26 22:36:15 mike-burns It's certainly different. 2021-06-26 22:36:31 davros a class must know all the interfaces it will implement / via inheritance in c++ . in rust, you can add implementations to a type, outside the library it's defined in.. 2021-06-26 22:37:26 --> ilja (~ilja@78-21-181-75.access.telenet.be) has joined ##rust 2021-06-26 22:37:44 --> saatii (~s@86ff518c.dsl.pool.telekom.hu) has joined ##rust 2021-06-26 22:37:47 meltyness it seems like there should be some easy big-O notation-style description of why traits makes more sense than class inheritance, but it certainly has my intuition 2021-06-26 22:38:13 habnabit_ it is a shame that java weenies co-opted 'OOP' to mean 'must have inheritance' 2021-06-26 22:38:23 danieldg meltyness: it decouples implementation and interface 2021-06-26 22:38:37 danieldg it's one reason why IFoo is encouraged in Java 2021-06-26 22:38:48 meltyness class-inheritance forces inheritance to be a multiplicative event, where as trait-inheritance forces it to be a division event 2021-06-26 22:38:54 mike-burns I learned Smalltalk longer before Java, so OOP to me includes a class browser ... 2021-06-26 22:39:16 <-- ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-26 22:39:22 habnabit_ smalltalk does it more right than java and certainly than C++ 2021-06-26 22:39:22 meltyness or at least facilitates it to be a division event 2021-06-26 22:40:47 meltyness i mean,... "is-a, has-a, can-be" makes sense as far as "relations" go 2021-06-26 22:41:28 <-- _________ (~nobody@user//x-7881368) has quit (Ping timeout: 244 seconds) 2021-06-26 22:41:33 <-- saati (~s@BC06D11E.dsl.pool.telekom.hu) has quit (Ping timeout: 272 seconds) 2021-06-26 22:43:03 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-26 22:43:19 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-26 22:44:42 <-- fsg (fsg@2600:3c00::f03c:92ff:fec6:da18) has quit (Ping timeout: 268 seconds) 2021-06-26 22:49:51 --> vicfred_ (~vicfred@89.46.114.138) has joined ##rust 2021-06-26 22:49:51 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-26 22:51:42 --> _________ (~nobody@user//x-7881368) has joined ##rust 2021-06-26 22:52:39 <-- vicfred (~vicfred@user/vicfred) has quit (Ping timeout: 268 seconds) 2021-06-26 23:02:59 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-06-26 23:08:47 <-- skipwich (~skipwich@user/skipwich) has quit (Ping timeout: 258 seconds) 2021-06-26 23:13:02 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-26 23:14:32 <-- emerent (~quassel@p200300cd5703bbc1ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 244 seconds) 2021-06-26 23:15:12 --> emerent (~quassel@p200300cd5703bb10ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-26 23:19:06 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-26 23:21:38 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-26 23:24:34 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-26 23:32:35 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-26 23:36:00 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-26 23:36:14 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Quit: WeeChat 3.2) 2021-06-26 23:37:19 <-- oaken-source (~oaken-sou@user/oaken-source) has left ##rust 2021-06-26 23:40:31 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-26 23:40:51 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 265 seconds) 2021-06-26 23:41:44 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-26 23:43:11 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 272 seconds) 2021-06-26 23:51:00 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 265 seconds) 2021-06-26 23:52:17 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-26 23:52:56 --> meandi2 (~meandi4@dyndsl-178-142-252-104.ewe-ip-backbone.de) has joined ##rust 2021-06-26 23:53:57 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-26 23:55:25 davros mike-burns i see it as class inheritance centralises dependancies, trait-imples distributes dependancies 2021-06-26 23:56:48 <-- meandi (~meandi4@dyndsl-178-142-254-199.ewe-ip-backbone.de) has quit (Ping timeout: 265 seconds) 2021-06-26 23:56:53 kline i have a large Vec that I want many tokio tasks to all have immutable access to for reading, whats the best way to go about this? 2021-06-26 23:57:05 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-26 23:57:14 kline (its a large structure they all need to use, i dont want each one to have its own clone) 2021-06-27 00:02:40 <-- hendursaga (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-06-27 00:03:06 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-27 00:04:09 --> Fairy (~Fairy@2001:464a:4992:0:54d4:8016:c226:8e2a) has joined ##rust 2021-06-27 00:06:22 jbg kline: Arc for shared ownership 2021-06-27 00:06:55 <-- Fairy97 (~Fairy@2001:464a:4992:0:cd36:524b:2968:9900) has quit (Ping timeout: 244 seconds) 2021-06-27 00:07:32 jbg if it something with a shorter lifetime you could just pass the &Vec / &[] in, but tasks require 'static lifetime so unless the Vec is static you'll have to use Arc 2021-06-27 00:07:54 jbg immutable: Arc>, mutable: Arc> where SomeLock is a futures-aware mutex/rwlock/etc 2021-06-27 00:08:15 kline cool, i guess today is where i learn about Arc 2021-06-27 00:08:34 kline that Arc will end up as a static global outside of main, i guess? 2021-06-27 00:08:34 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 00:09:26 jbg it doesn't have to 2021-06-27 00:09:43 jbg you can just instantiate it in main and pass it down from there if you prefer; that's mostly a stylistic choice 2021-06-27 00:09:46 kline oh 2021-06-27 00:09:48 kline of course 2021-06-27 00:10:00 kline its lifetime will be long enough since its reference counted 2021-06-27 00:10:04 jbg yup 2021-06-27 00:10:11 kline so even if main were to end, it persists, got it 2021-06-27 00:11:57 <-- vicfred_ (~vicfred@89.46.114.138) has quit (Quit: Leaving) 2021-06-27 00:16:31 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-06-27 00:18:47 kline jbg, thanks, this is remarkably pain-free 2021-06-27 00:20:47 jbg yeah. Arc is good. does what it says on the tin 2021-06-27 00:29:22 --> bim9262 (~bim9262@cpe-70-113-84-126.austin.res.rr.com) has joined ##rust 2021-06-27 00:29:48 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-27 00:32:05 --> img (~img@user/img) has joined ##rust 2021-06-27 00:37:17 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 00:37:39 <-- somebody (~ninjin@momey.cs.ucl.ac.uk) has quit (Changing host) 2021-06-27 00:37:39 --> somebody (~ninjin@user/ninjin) has joined ##rust 2021-06-27 00:45:20 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-27 00:45:39 --> pwnd_sfw4 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-27 00:45:46 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-06-27 00:45:46 -- pwnd_sfw4 is now known as pwnd_sfw 2021-06-27 00:47:36 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-06-27 00:50:27 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-27 00:51:56 -- somebody is now known as ninjin 2021-06-27 00:53:14 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-06-27 00:59:11 --> chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has joined ##rust 2021-06-27 01:01:37 --> chancee1 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 01:03:34 <-- chancee (~chancee@2a00:23c5:6324:3b01:8dde:3823:e15f:d4a0) has quit (Ping timeout: 250 seconds) 2021-06-27 01:05:47 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-27 01:08:45 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-27 01:08:57 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-27 01:14:05 <-- printf (~printf@user/printf) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-27 01:14:23 --> printf (~printf@user/printf) has joined ##rust 2021-06-27 01:18:53 --> noyb (~noyb@user/noyb) has joined ##rust 2021-06-27 01:22:09 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 244 seconds) 2021-06-27 01:23:46 <-- nerdypepper (~nerdypepp@152.67.162.71) has quit (Quit: bye) 2021-06-27 01:30:37 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-27 01:32:30 <-- chancee1 (~chancee@178.159.3.173) has quit (Ping timeout: 272 seconds) 2021-06-27 01:35:03 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-06-27 01:36:04 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-27 01:38:59 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-27 01:40:08 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-27 01:40:14 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-27 01:42:38 wilfred I thought I could only mutate values through mutable variables, but apparently I can do mutations through any variables: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f22594fee620edc1bc97d6704f2c8e45 2021-06-27 01:43:38 wilfred what's the rule? 2021-06-27 01:44:38 cehteh google for 'inner mutability 2021-06-27 01:45:03 cehteh .. and bye o/ 2021-06-27 01:45:44 wilfred google keeps pushing me towards interior mutability, which vec doesn't have AFAICS 2021-06-27 01:46:05 wilfred I don't think there are any Cell/RefCell fields inside Vec? 2021-06-27 01:46:27 --> Ke1vin (~Ke1vin@101.85.204.107) has joined ##rust 2021-06-27 01:48:34 wilfred presumably `let mut foo = ...` is only shallow mutability, like `let` vs `const` in JS 2021-06-27 01:49:00 wilfred my `let foo =` is inferring `foo` as `&mut usize` 2021-06-27 01:51:44 --> db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-27 01:53:05 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 01:54:41 <-- noyb (~noyb@user/noyb) has quit (Quit: leaving) 2021-06-27 01:57:38 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-27 01:58:35 --> chancee1 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 02:00:34 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 02:01:25 <-- sgift (~madison@2001:a61:35b8:2401:21a4:43a8:9df0:a5cc) has quit (Ping timeout: 244 seconds) 2021-06-27 02:04:42 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 240 seconds) 2021-06-27 02:10:03 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-27 02:10:35 --> dcz_ (~dcz@dynamic-093-131-018-015.93.131.pool.telefonica.de) has joined ##rust 2021-06-27 02:20:43 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-27 02:23:40 jbg wilfred: `let mut foo` means you can rebind foo to point to something else of the same type 2021-06-27 02:24:16 jbg if foo is owned, it also means you can call &mut methods on foo 2021-06-27 02:25:45 jbg with `let foo` where foo is type `T`, you can only call methods that take `T` or `&T` (potentially via autoderef) 2021-06-27 02:25:55 jbg but of course `T` might be `&mut Something` 2021-06-27 02:26:40 jbg and yes, last_mut() returns &mut usize 2021-06-27 02:26:53 jbg well, Option<&mut usize> 2021-06-27 02:28:07 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 258 seconds) 2021-06-27 02:28:44 wilfred jbg: thanks, that makes sense 2021-06-27 02:29:05 jbg if your method took ownership of the Vec, you'd need the parameter to be `mut` in order to be able to call last_mut() on it 2021-06-27 02:29:20 jbg fn increment_last(mut items: Vec) { 2021-06-27 02:29:35 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-27 02:35:27 <-- chancee1 (~chancee@178.159.3.173) has quit (Ping timeout: 272 seconds) 2021-06-27 02:37:02 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 02:38:33 davros is there a rust UI crate with an opengl back end (just browsing i see imgui-rs has a gfx-?? backend) 2021-06-27 02:39:09 davros https://crates.io/crates/imgui-opengl-renderer/0.11.0 ah here we go 2021-06-27 02:39:52 jbg I think most of the non-web-tech UI crates have GL backends don't they? https://www.areweguiyet.com 2021-06-27 02:40:45 jbg I quite enjoyed conrod when I played with it 2021-06-27 02:41:32 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-27 02:42:15 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-27 02:43:34 davros is that retained or immiediate 2021-06-27 02:43:39 jbg immediate 2021-06-27 02:48:44 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 02:51:13 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 02:52:28 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-06-27 02:53:34 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 272 seconds) 2021-06-27 02:59:21 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Read error: Connection reset by peer) 2021-06-27 03:00:32 rk4 i used to have `f().await?;` but then decided i wanted to log if i did return an error, so that turned into `if let Err(e) = f().await { log::info!("{:?}", e); return Err(e) }`, feels like there might be a more concise expression of this logic, any ideas? 2021-06-27 03:01:54 jbg f().await.map_err(|e| { info!("{:?}", e); e })?; 2021-06-27 03:02:11 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 03:02:25 rk4 not bad 2021-06-27 03:02:29 jbg if you literally "want to log if you return an error", you could also log at the caller, or wrap this fn in something that logs (the `tracing` crate has a nice way to do that) 2021-06-27 03:03:39 davros lmao jbg. PISTON conrod, now i remember. 2021-06-27 03:03:47 davros those guys triggered me on my pet hate 2021-06-27 03:04:00 <-- lord| (~lordpipe@user/lordpipe) has quit (Remote host closed the connection) 2021-06-27 03:04:04 jbg car analogies in software? 2021-06-27 03:04:10 davros "lets build our UI using f64 coordinates everywhere" 2021-06-27 03:04:16 jbg ah 2021-06-27 03:04:24 davros f64 coordinates and u64 indices , where f32 / u32 will do 2021-06-27 03:05:05 davros just incase you have to project your UI onto a continent instead of a monitor 2021-06-27 03:05:56 jbg meh 2021-06-27 03:06:21 davros MEH 32bit default for coordinates throughout my code, then having to switch it for the UI ??? 2021-06-27 03:06:40 davros my 3d world works fine in 32bit but then i have to swap to 64bit for 2d??? 2021-06-27 03:06:41 jbg no. "meh" I don't care :P 2021-06-27 03:06:47 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-06-27 03:06:52 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 272 seconds) 2021-06-27 03:07:19 davros ok well do you have a suggestion for a rust 2d gui lib that makes a sane precision choice for its coordinates 2021-06-27 03:07:50 jbg it's not something I care about even a tiny bit (because I've never had occasion to make a GUI application where the choice of f32 vs. f64 would make any difference to anything at all) 2021-06-27 03:07:53 jbg so I have no idea sorry 2021-06-27 03:09:54 --> bpalmer (~user@user/bpalmer) has joined ##rust 2021-06-27 03:10:06 davros imagine for example drawing debug map (how silly it would be having the world defined in 3d/32bit, and it works fine for flying around , zooming in etc), but then you have to cast to 64bit becaues the library architect doesnt' know that when you manage centres corrrectly, you can represent anything in 32bit 2021-06-27 03:10:42 jbg you can avoid the cast by just using f64 everywhere 2021-06-27 03:10:45 jbg what is the actual concern here? 2021-06-27 03:10:56 davros you're trolling me aren't you 2021-06-27 03:10:57 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 03:11:05 davros vertex arrays taking up a significant chunk of memory 2021-06-27 03:11:12 davros swithcing to 64bit = doubling that 2021-06-27 03:11:27 jbg did you measure that for your app and determine that it was a meaningful amount versus the rest of the memory your app is using? 2021-06-27 03:12:04 davros its somethin glike 50% textures 40% vertices 10% everything else , ballpark 2021-06-27 03:12:15 jbg and the actual values? 2021-06-27 03:12:16 davros so suddenly doubling that 40% is a pretty big deal, yes 2021-06-27 03:12:27 jbg depends what actual amount of memory that 40% is 2021-06-27 03:12:30 davros the actual values - "as many as i can get" 2021-06-27 03:12:40 jbg that doesn't make any sense 2021-06-27 03:12:44 jbg all software exists in the real world with real constraints 2021-06-27 03:12:46 davros jesus 2021-06-27 03:12:48 jbg so the answer is not "as many as I can get" 2021-06-27 03:13:01 davros running on platform X with a certain amount of RAM 2021-06-27 03:13:06 davros content will be built for that amount of RAM 2021-06-27 03:13:12 davros the bulk of whihc is textures and vertices 2021-06-27 03:13:33 davros so doubling memory taken the vertices significantly dents how much you can fit 2021-06-27 03:14:05 jbg I see 2021-06-27 03:14:16 jbg so to clarify 2021-06-27 03:14:30 jbg you're planning to fill my memory with textures and vertices regardless of how much memory I have? 2021-06-27 03:14:48 davros to generate the best possible experience in a game 2021-06-27 03:14:54 davros you fill the available memory with art 2021-06-27 03:15:26 davros the more detail the better 2021-06-27 03:15:28 jbg but there are limits. for example, you only have so much art. perhaps you have it at multiple possible resolutions, but only up to a certain maximum resolution 2021-06-27 03:15:34 jbg your world is only a certain size 2021-06-27 03:15:39 davros detail = number of vertices 2021-06-27 03:15:44 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 272 seconds) 2021-06-27 03:15:45 jbg it makes sense to attach actual numbers to these things so that you can determine which things actually matter 2021-06-27 03:15:46 davros no 2021-06-27 03:15:52 davros you have as much art as you can fit in memory. 2021-06-27 03:16:01 davros artists want to build more , usually 2021-06-27 03:16:12 davros then they have to cut it back until it fits 2021-06-27 03:16:23 jbg "fits" into what? 2021-06-27 03:16:24 davros your job as a programmer is to store the art as efficiently as possible 2021-06-27 03:16:29 davros the target platform 2021-06-27 03:16:36 jbg which has a defined amount of memory 2021-06-27 03:16:39 jbg so again we come back to my point 2021-06-27 03:16:44 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 03:16:50 jbg you are working in the real world, not in some abstract "I need my vertices as small as possible" world 2021-06-27 03:16:55 jbg you can attach real numbers to these things 2021-06-27 03:16:57 davros jesus chrisst you fucking troll 2021-06-27 03:17:01 jbg not just percentages and "as much as possible" and rubbish like that 2021-06-27 03:17:25 davros rubbish is what you're spouting now 2021-06-27 03:17:27 jbg lol no need to swear at me 2021-06-27 03:17:46 davros the way game art is done is .. you have a target platform in mind.. and artists fill it with as much detail as they can 2021-06-27 03:17:56 davros the engine should be scalable 2021-06-27 03:18:07 jbg and my question was really extremely simple 2021-06-27 03:18:10 davros so the engine doesnt say "it will only run 8gb scenes on 8gb machiens" 2021-06-27 03:18:15 jbg for your target platform (which has an actual, defined, amount of memory) 2021-06-27 03:18:20 davros it will run "the biggest possible scene in the avaialbe memory" 2021-06-27 03:18:25 <-- Ke1vin (~Ke1vin@101.85.204.107) has left ##rust (Leaving...) 2021-06-27 03:18:29 jbg is this an actual issue 2021-06-27 03:18:36 jbg I am guessing the answer is "yes" since you are so angry about it 2021-06-27 03:18:41 jbg but you never actually answered, you just keep lecturing instead 2021-06-27 03:18:55 davros artist/desginers <-> code <-> target machine 2021-06-27 03:19:17 davros the job of an engine is to get as much of the artists/desginers work onto any target machine as possible 2021-06-27 03:19:23 jbg I guess the lecture will just continue? 2021-06-27 03:19:30 davros yes till you get the point 2021-06-27 03:19:32 jbg lol 2021-06-27 03:19:39 jbg all I did was ask a question, which I really regret now 2021-06-27 03:19:40 davros its not 2021-06-27 03:19:49 jbg I don't know if there is a perfect GUI engine for you 2021-06-27 03:19:53 jbg I suspect it doesn't exist 2021-06-27 03:20:01 davros "artist: heres X vertices, now load it into your machine" 2021-06-27 03:20:01 jbg because once you get f32 coordinates there'll be some other issue 2021-06-27 03:20:02 davros its 2021-06-27 03:20:02 jbg so just write one 2021-06-27 03:20:15 davros "arists: here's a scene.. here's a bigger scnee... here's an even bigger scene.." 2021-06-27 03:20:24 davros "can you fit this?" 2021-06-27 03:20:41 davros that process of improvement in quality stops earlier if ijust swap 64bit for 32bit vertices 2021-06-27 03:20:49 davros bigger/more detailed 2021-06-27 03:21:07 davros imgui is probably the right one 2021-06-27 03:21:26 davros it has game programmer heritage , they get these issues 2021-06-27 03:21:41 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 272 seconds) 2021-06-27 03:22:22 davros er well / imgui is probably the right design but not the best possible one for rust, it'll have a bit of interfaceing friction i suspect 2021-06-27 03:22:31 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 03:22:52 davros its probabyl good enough though ( i do think rust needs thigns designed around its faetures to really shine) 2021-06-27 03:25:43 saatii do you actually have millions of UI coordinates? or why does it matter? 2021-06-27 03:26:23 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-27 03:27:23 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 272 seconds) 2021-06-27 03:27:23 --> dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has joined ##rust 2021-06-27 03:28:05 <-- dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has left ##rust (WeeChat 3.1) 2021-06-27 03:28:09 --> dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has joined ##rust 2021-06-27 03:29:36 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 250 seconds) 2021-06-27 03:31:22 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Quit: WeeChat 3.2) 2021-06-27 03:32:00 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 268 seconds) 2021-06-27 03:34:01 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 03:35:25 --> a6a45081-2b83 (~aditya@122.163.205.132) has joined ##rust 2021-06-27 03:38:28 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 252 seconds) 2021-06-27 03:40:42 <-- a6a45081-2b83 (~aditya@122.163.205.132) has quit (Quit: Konversation terminated!) 2021-06-27 03:41:15 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 03:41:24 davros i tried to explain to them.. not all cpus have fast 64bit float 2021-06-27 03:41:52 <-- death916 (~death916@user/death916) has quit (Ping timeout: 268 seconds) 2021-06-27 03:42:00 davros because they dont need it 2021-06-27 03:42:50 davros what if you want to run the UI in a VR interface inside a 3d scene 2021-06-27 03:43:11 saatii VR gear without double support? 2021-06-27 03:43:25 davros double will most likely be slower 2021-06-27 03:43:44 davros in some cases alot slower, because 32bit dominates graphics 2021-06-27 03:44:05 saatii ok but the real question is, does it take up a significant fraction of execution time even if you use softfloats? 2021-06-27 03:44:43 davros its an eco-crime , using 64bits when 32 will do 2021-06-27 03:44:49 <-- bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has quit (Quit: Leaving) 2021-06-27 03:44:57 jbg that's not an answer 2021-06-27 03:45:24 davros if you're doing financial modelling or scientific sim then sure you need 64bits 2021-06-27 03:45:47 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 244 seconds) 2021-06-27 03:46:01 davros but rendering scenes that the eye can see on a monitor .. 32bits is enough and lets you have double the vertices for a given amount of silicon 2021-06-27 03:46:06 jbg is any of your perspective here backed up by actual data or do you just feel very strongly that using 64 instead of 32 is a waste? 2021-06-27 03:46:10 saatii davros: how many units do you have to ship to have a worse ecological footprint with that than the programmer 2021-06-27 03:46:36 jbg I mean, if you spend this much time on pointless bit-eco-warrioring I am doubtful any units get shipped at all 2021-06-27 03:46:38 davros consider the number of devices displaying UIs, graphics 2021-06-27 03:46:47 davros if they switched to 64bits , that would be a huge hit 2021-06-27 03:47:39 davros whats the point of using a fast language like rust if you're just going to double your footprint??? 2021-06-27 03:48:00 davros the point of rust over C# or java etc is getting more out of a machine 2021-06-27 03:48:00 jbg I'm curious, do you write software in a commercial context or just for fun? 2021-06-27 03:48:12 davros right now for fun 2021-06-27 03:48:42 jbg these kinds of holy wars don't really gain you anything when you are trying to meet deadlines or requirements 2021-06-27 03:48:44 davros but my fun involves knowing i could send the techniques back to the commercial contexts i have been in or would be in if i had to get back into it 2021-06-27 03:48:52 davros yeah 2021-06-27 03:48:54 jbg the question is "does it matter", not "I am angry that I am using twice as many bits as I need to" 2021-06-27 03:49:06 davros see how long you last in a games company if you just swap in 64bits when 32 will do 2021-06-27 03:49:23 davros fit *as much* art in as possible 2021-06-27 03:49:29 jbg see how long you last in a games company if you spend three weeks writing your own library to get 32 bit coordinates when 64 bit coordinates would have been absolutely fine in every measurable way 2021-06-27 03:49:33 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-27 03:49:43 saatii +1 2021-06-27 03:49:49 davros you have no idea 2021-06-27 03:50:01 davros games graphics libraries start with 32bit 2021-06-27 03:50:11 davros so by getting a 64bit gui librariy you introduce friction 2021-06-27 03:50:14 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-27 03:50:14 --> death916 (~death916@user/death916) has joined ##rust 2021-06-27 03:50:30 davros its just a dumb decision. 2021-06-27 03:51:05 davros although with a language like rust, if you made it generic you wouldn't need to bake it in 2021-06-27 03:51:10 jbg oh god not this again 2021-06-27 03:51:30 jbg and generic indices for vec right? 2021-06-27 03:51:38 davros yes that aswell 2021-06-27 03:55:20 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-27 03:56:36 --> dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has joined ##rust 2021-06-27 03:57:23 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-27 04:02:21 jeho for const generics, e.g., `fn foo(...)`, is there any way to put them in the `where` block? 2021-06-27 04:02:45 jeho or do they pretty much always have to appear fully defined in the generic parameter list? 2021-06-27 04:02:49 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 04:06:09 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-27 04:07:18 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 250 seconds) 2021-06-27 04:09:12 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-27 04:16:22 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-27 04:20:20 <-- zeroed (~zeroed@user/zeroed) has quit (Quit: %done%) 2021-06-27 04:22:12 <-- dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has quit (Remote host closed the connection) 2021-06-27 04:23:17 --> dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has joined ##rust 2021-06-27 04:23:28 <-- dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has quit (Remote host closed the connection) 2021-06-27 04:23:47 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-27 04:23:48 <-- bongobrown (~bongobrow@cpe-76-185-215-2.satx.res.rr.com) has quit (Quit: Leaving) 2021-06-27 04:27:59 --> chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has joined ##rust 2021-06-27 04:28:09 <-- dcz_ (~dcz@dynamic-093-131-018-015.93.131.pool.telefonica.de) has quit (Ping timeout: 244 seconds) 2021-06-27 04:32:17 <-- chancee1 (~chancee@2a00:23c5:6324:3b01:592e:49bb:a037:5ca0) has quit (Ping timeout: 244 seconds) 2021-06-27 04:34:00 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-27 04:36:01 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 04:39:16 <-- meandi2 (~meandi4@dyndsl-178-142-252-104.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-06-27 04:39:25 --> meandi (~meandi4@dyndsl-178-142-252-104.ewe-ip-backbone.de) has joined ##rust 2021-06-27 04:40:45 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-27 04:43:37 --> dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has joined ##rust 2021-06-27 04:44:07 <-- dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has quit (Remote host closed the connection) 2021-06-27 04:48:53 <-- rodd (~zrod@user/rodd) has quit (*.net *.split) 2021-06-27 04:48:53 <-- brb (~brb@user/brb) has quit (*.net *.split) 2021-06-27 04:48:53 <-- Blub\0 (~wry@eperm.errno.eu) has quit (*.net *.split) 2021-06-27 04:48:53 <-- lhx (~lhx@45.76.230.247) has quit (*.net *.split) 2021-06-27 04:48:53 <-- haliucinas (~haliucina@5.20.153.21) has quit (*.net *.split) 2021-06-27 04:48:53 <-- rk4 (~r@user/rk4) has quit (*.net *.split) 2021-06-27 04:48:53 <-- tribaal (~tribaal@ubuntu/member/tribaal) has quit (*.net *.split) 2021-06-27 04:49:02 --> tribaal_ (~tribaal@217.163.28.23) has joined ##rust 2021-06-27 04:49:05 --> Blub\w (~wry@eperm.errno.eu) has joined ##rust 2021-06-27 04:49:08 --> haliucinas (~haliucina@5.20.153.21) has joined ##rust 2021-06-27 04:49:10 --> rk4 (~r@user/rk4) has joined ##rust 2021-06-27 04:49:31 --> brb (~brb@user/brb) has joined ##rust 2021-06-27 04:49:31 --> lhx (~lhx@45.76.230.247) has joined ##rust 2021-06-27 04:49:31 --> rodd (~zrod@user/rodd) has joined ##rust 2021-06-27 04:50:10 --> currybullen (~curry@h-81-170-128-138.A258.priv.bahnhof.se) has joined ##rust 2021-06-27 04:50:15 <-- currybullen (~curry@h-81-170-128-138.A258.priv.bahnhof.se) has quit (Quit: WeeChat 3.2) 2021-06-27 04:50:36 --> currybullen (~curry@h-81-170-128-138.A258.priv.bahnhof.se) has joined ##rust 2021-06-27 04:51:14 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-27 04:51:54 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 04:53:15 currybullen i haven't come across a trait like "Fn(&'static str)" as seen in this example before https://paste.debian.net/1202556/. what is it? some kind of trait parameter? 2021-06-27 04:53:44 faern It's a closure 2021-06-27 04:54:14 faern The trait bound refer to this `Fn` trait: https://doc.rust-lang.org/stable/std/ops/trait.Fn.html 2021-06-27 04:55:00 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-27 04:55:36 faern currybullen: Closures in Rust automatically implement the Fn, FnMut or FnOnce traits, depending on various properties of the closure code. 2021-06-27 04:56:26 faern Fn: A closure that can be called multiple times and can't modify it's own state (&self) 2021-06-27 04:56:28 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-27 04:56:39 faern FnMut: A closure that can be called multiple times and modify its own state (&mut self) 2021-06-27 04:57:02 faern FnOnce: A closure that takes ownership of its own state and consumes it, so can only be called once (self) 2021-06-27 04:59:54 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-27 04:59:55 currybullen right, thanks. i think i have some grasp on closures, i was mainly just curious about the (&'static str) part. i'm unfamiliar with the SomeTrait(type) syntax 2021-06-27 05:00:19 faern Yeah that's specific to closures. A bit magical 2021-06-27 05:00:23 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-27 05:00:23 bluss jeho: for now, they need to be in the parameter list 2021-06-27 05:00:40 faern You can't do that for any trait. Like you can't do Debug(&'static str) 2021-06-27 05:00:40 jeho thanks bluss 2021-06-27 05:00:44 --> chancee1 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 05:01:35 currybullen faern: ah, i was suspecting it was something like that. thanks :) 2021-06-27 05:01:43 db48x you can also specify the return value 2021-06-27 05:01:52 db48x Fn(foo) -> bar 2021-06-27 05:02:04 --> capitol_ (~capitol@login.hackeriet.no) has joined ##rust 2021-06-27 05:02:05 --> make_ (~mark@shell.off.net) has joined ##rust 2021-06-27 05:02:08 <-- mebus (~mebus@2a00:8a60:e019:10de::ac22) has quit (*.net *.split) 2021-06-27 05:02:09 <-- kchibisov (~kchibisov@li2157-210.members.linode.com) has quit (*.net *.split) 2021-06-27 05:02:09 <-- mstruebing (~maex@2001:41d0:8:93c7::1) has quit (*.net *.split) 2021-06-27 05:02:09 <-- make (~mark@shell.off.net) has quit (*.net *.split) 2021-06-27 05:02:09 <-- ap5 (~inf@2a01:4f9:c010:bd02::1) has quit (*.net *.split) 2021-06-27 05:02:09 <-- Lumpio- (~matti@dsl-lhtbng12-54fa7c-206.dhcp.inet.fi) has quit (*.net *.split) 2021-06-27 05:02:09 <-- cbreaker (~zenmaster@53.ip-51-38-71.eu) has quit (*.net *.split) 2021-06-27 05:02:09 <-- mcint (mcint@user/mcint) has quit (*.net *.split) 2021-06-27 05:02:09 <-- capitol (~capitol@login.hackeriet.no) has quit (*.net *.split) 2021-06-27 05:02:14 --> ap5_ (~inf@static.63.103.181.135.clients.your-server.de) has joined ##rust 2021-06-27 05:02:14 --> Lumpio_ (~matti@dsl-lhtbng12-54fa7c-206.dhcp.inet.fi) has joined ##rust 2021-06-27 05:02:14 --> maex (~maex@2001:41d0:8:93c7::1) has joined ##rust 2021-06-27 05:02:15 --> mebus (~mebus@2a00:8a60:e019:10de::ac22) has joined ##rust 2021-06-27 05:02:19 --> kchibisov_ (kchibisov@2a01:7e01::f03c:92ff:fe97:d455) has joined ##rust 2021-06-27 05:02:20 --> cbreaker (~zenmaster@53.ip-51-38-71.eu) has joined ##rust 2021-06-27 05:02:30 currybullen right i'm guessing the general form is something like Fn(type1, type2, ..., typeN) -> typeX 2021-06-27 05:02:45 db48x yep 2021-06-27 05:02:54 db48x and then the same with FnMut and FnOnce 2021-06-27 05:04:02 --> mcint (mcint@user/mcint) has joined ##rust 2021-06-27 05:05:07 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Remote host closed the connection) 2021-06-27 05:05:24 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-27 05:08:12 <-- chancee1 (~chancee@178.159.3.173) has quit (Ping timeout: 268 seconds) 2021-06-27 05:11:33 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-27 05:20:20 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-27 05:23:39 --> chancee1 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 05:25:49 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 05:25:51 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 05:28:35 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-27 05:29:17 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-27 05:30:18 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-27 05:30:35 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-27 05:31:28 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-27 05:33:07 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-27 05:36:33 <-- LucaTM (~LucaTM@user/lucatm) has quit (Ping timeout: 244 seconds) 2021-06-27 05:39:06 <-- dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has quit (Ping timeout: 252 seconds) 2021-06-27 05:40:24 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-06-27 05:43:30 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 252 seconds) 2021-06-27 05:43:37 <-- schmillin (~schmillin@user/schmillin) has quit (Quit: Leaving) 2021-06-27 05:46:10 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 268 seconds) 2021-06-27 05:48:38 <-- chancee1 (~chancee@178.159.3.173) has quit (Ping timeout: 268 seconds) 2021-06-27 05:53:52 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-27 05:53:56 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 252 seconds) 2021-06-27 05:55:25 --> img (~img@user/img) has joined ##rust 2021-06-27 05:55:37 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 05:55:51 <-- img (~img@user/img) has quit (Client Quit) 2021-06-27 05:56:27 --> chancee1 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 05:58:39 --> img (~img@user/img) has joined ##rust 2021-06-27 06:00:10 <-- img (~img@user/img) has quit (Client Quit) 2021-06-27 06:01:40 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 06:02:49 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-27 06:03:01 --> img (~img@user/img) has joined ##rust 2021-06-27 06:03:46 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-06-27 06:09:54 <-- death916 (~death916@user/death916) has quit (Ping timeout: 272 seconds) 2021-06-27 06:15:13 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-27 06:15:57 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-27 06:15:57 --> death916 (~death916@user/death916) has joined ##rust 2021-06-27 06:18:16 davros hey jbg read this and learn 2021-06-27 06:18:21 davros [1] https://www.researchgate.net/post/GPU-floating-point-double-precision-vs-64-bits-fixed-point-What-will-be-the-difference-in-execution-time-on-an-Nvidia-TESLA 2021-06-27 06:18:30 davros [2] https://forums.developer.nvidia.com/t/question-about-64-bit-integer-performance/64147 2021-06-27 06:18:57 jbg [1] does not appear to be even remotely related to our previous conversation 2021-06-27 06:19:14 davros it is a genearl point about precision selection 2021-06-27 06:19:31 davros 'use as many bits as you need', not 'blindly use 64bit everywhere' 2021-06-27 06:19:35 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 06:19:43 davros but the answers more importantly cover the tradeoffs in the machines 2021-06-27 06:19:47 davros READ AND LEARN, BITCH 2021-06-27 06:19:51 jbg right, and the general point I tried to make is that you should first determine how many bits you need 2021-06-27 06:20:00 jbg which you seem to be unwilling to do 2021-06-27 06:20:06 davros i already determined 32bit is enough 2021-06-27 06:20:11 jbg ok, how? 2021-06-27 06:20:28 davros "does the image look good enough" 2021-06-27 06:20:32 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 06:20:38 davros yes the precision of the vertices is fine, but i'd prefer more vertices 2021-06-27 06:20:42 jbg I really don't appreciate your repeatedly swearing at me, btw 2021-06-27 06:20:54 davros if you keep trolling me, i will get angry and swear 2021-06-27 06:21:02 jbg I have literally no intention of trolling you 2021-06-27 06:21:05 jbg I am simply asking questions 2021-06-27 06:21:27 jbg you don't seem to have any data to back up your very strongly held opinions about this stuff 2021-06-27 06:21:34 jbg just links to other people's general opinions 2021-06-27 06:21:43 davros CPUs concentrated more on 64bit support because they do have to cover the full gamut of use caess like science where 64bit is needed 2021-06-27 06:21:45 jbg but the only thing that actually matters is data about *your* code on *your* target platforms 2021-06-27 06:22:04 davros GPUs are designed mostly for my target (graphcis), and then got adapted to science etc 2021-06-27 06:22:27 davros not all GPUs even do 64bit precision 2021-06-27 06:22:40 jbg sure 2021-06-27 06:22:49 davros most probably do today but the fact remains "more 32bit values" is better for graphics than "more precision per value" 2021-06-27 06:23:18 davros if 32bit is suffient for flying around a 3d scene, its also sufficient for placing text on a screen 2021-06-27 06:23:36 jbg depends how big your screen is, but sure 2021-06-27 06:23:38 davros so a guy reaching for 64bit for UI.. probably hasn't done enough 3d programming 2021-06-27 06:23:48 jbg it seems like we are just constantly talking past each other 2021-06-27 06:23:55 jbg none of what you're writing is related at all to anything that I've said 2021-06-27 06:24:17 davros well you did suggest aat one point "why not use 64bit everywhere" 2021-06-27 06:24:19 jbg if you don't care to actually measure the impact of your choices, that's fine, but I'm not really interested in all this lecturing 2021-06-27 06:24:41 jbg I didn't actually say those words, but it's a good question, which you haven't answered 2021-06-27 06:24:47 davros this is overall strategy but if you want to measure its easy 2021-06-27 06:24:48 gggp what is the relation of Deref and RefCell 2021-06-27 06:24:59 jbg with actual data, you might find that it matters, but you apparently have none 2021-06-27 06:25:01 davros 64bit takes up twice the space, so it halves the amount of content you can store. 2021-06-27 06:25:08 jbg sigh 2021-06-27 06:25:20 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 272 seconds) 2021-06-27 06:25:33 davros somewhere there is a precision/storage sweetspot. 8bit is not enough. 128bits is too much. 2021-06-27 06:25:47 davros it just so happens that for the vast majority of graphics use cases, that sweetspot is 32bit. 2021-06-27 06:26:03 davros YOU go do some measurements if you dont already know that. 2021-06-27 06:26:04 jbg gggp: there isn't much relation, can you elaborate the question? 2021-06-27 06:26:17 jbg davros: lol. I should go do some measurements about something I don't care about at all but which you are very angry about. OK 2021-06-27 06:26:27 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 06:27:22 --> jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 06:28:31 davros https://www.quora.com/Do-currently-available-GPUs-support-double-precision-floating-point-arithmetic this answer has some measurements. "as low as 3% performance on many desktop cards" (tahts because people use desktop cards for graphics not science, so they're optimized accordingly). 2021-06-27 06:28:46 davros ive never personally measured it 2021-06-27 06:28:52 davros i made a reasonable assumption 2021-06-27 06:31:09 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-27 06:34:15 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-27 06:35:51 --> paule (~paule@ppp-93-104-181-235.dynamic.mnet-online.de) has joined ##rust 2021-06-27 06:37:00 davros https://social.msdn.microsoft.com/Forums/en-US/2b190cfa-e221-4e91-b40c-c2a00aee4b36/float-vs-double-performance-on-arm?forum=winappswithnativecode good answer given here on the general issue aswell 2021-06-27 06:37:19 davros "In short: For good performance in C++, use float in all cases unless you actually need double." 2021-06-27 06:37:25 davros (he then goes on to explain more) 2021-06-27 06:38:29 gggp jbg why the book says the Rc is used to share data , 2021-06-27 06:38:46 jbg Rc and Arc are for shared ownership 2021-06-27 06:39:05 gggp smart pointer can not be used for sharing ? 2021-06-27 06:39:16 jbg what do you mean by "smart pointer"? 2021-06-27 06:39:17 j`ey Rc and Arc are smart pointers 2021-06-27 06:39:31 jbg there are several types of "smart pointer" in Rust 2021-06-27 06:39:40 gggp hmm ,what is the signature of Rc and Arc 2021-06-27 06:40:06 j`ey gggp: https://doc.rust-lang.org/std/rc/struct.Rc.html 2021-06-27 06:45:33 jbg for just sharing data though, a simple reference - &T - may be fine. you need Rc or Arc if you need shared ownership via refcounting, so the value stays alive as long as there is at least one owner 2021-06-27 06:46:14 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 06:46:39 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 06:49:01 --> dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has joined ##rust 2021-06-27 06:50:36 gggp wish I have not missed some msg 2021-06-27 06:51:33 jbg what was the last msg you saw 2021-06-27 06:52:08 gggp what is the enhance of Rc than Box 2021-06-27 06:52:31 jbg Box is just "an owned value on the heap" 2021-06-27 06:52:38 jbg Rc is "an owned value on the heap with reference-counting" 2021-06-27 06:52:54 jbg you can cheaply clone an Rc to get another Rc that points to the same value 2021-06-27 06:53:09 jbg and the value on the heap will not be dropped until all the Rcs that point to it have been dropped 2021-06-27 06:54:51 gggp thanks ,jbg 2021-06-27 06:54:56 --> hegstal (~hegstal@2a02:c7f:7604:8a00:c6b4:633:2502:e963) has joined ##rust 2021-06-27 06:55:10 gggp when do I need to clone a Rc 2021-06-27 06:55:55 gggp multithreading ? 2021-06-27 06:56:00 jbg that's one example yeah 2021-06-27 06:56:36 jbg since the data you pass into std threads needs to be 'static lifetime, you can't just pass &T in, so Rc (actually generally Arc) is a good solution 2021-06-27 06:57:25 gggp ok 2021-06-27 06:57:45 gggp then what is the diff of RefCell ? BTW 2021-06-27 06:58:49 jbg RefCell is not really related. RefCell allows interior mutability by basically doing the borrow checking at runtime 2021-06-27 06:59:27 jbg so you can have a &RefCell (note just &, not &mut), and you can call .borrow_mut() on it to get (something that derefs to) a &mut T 2021-06-27 07:00:25 jbg most Rust beginners don't need to work with RefCell 2021-06-27 07:00:49 gggp nice:) 2021-06-27 07:01:16 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 07:02:48 --> chancee2 (~chancee@178.159.3.173) has joined ##rust 2021-06-27 07:03:15 <-- chancee1 (~chancee@178.159.3.173) has quit (Ping timeout: 268 seconds) 2021-06-27 07:06:33 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: fabienwang) 2021-06-27 07:07:27 <-- hendursa1 (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-27 07:08:06 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-27 07:09:12 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 07:10:09 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-27 07:11:38 <-- Fairy (~Fairy@2001:464a:4992:0:54d4:8016:c226:8e2a) has quit (Quit: Leaving) 2021-06-27 07:12:24 <-- dolor_avis (~dolor_avi@user-5-173-12-37.play-internet.pl) has quit (Quit: dolor_avis) 2021-06-27 07:13:14 --> pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has joined ##rust 2021-06-27 07:17:02 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-27 07:17:21 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-27 07:18:34 --> img (~img@user/img) has joined ##rust 2021-06-27 07:22:36 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-27 07:24:44 -- capitol_ is now known as capitol 2021-06-27 07:25:11 --> dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has joined ##rust 2021-06-27 07:26:39 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 07:31:37 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-27 07:32:37 --> Fairy (~Fairy@2001:464a:4992:0:54d4:8016:c226:8e2a) has joined ##rust 2021-06-27 07:37:12 <-- kehvo (~kehvo@user/kehvo) has quit (Quit: WeeChat 3.1) 2021-06-27 07:44:11 --> kehvo (~kehvo@user/kehvo) has joined ##rust 2021-06-27 07:54:42 <-- chancee2 (~chancee@178.159.3.173) has quit (Quit: WeeChat 3.1) 2021-06-27 07:55:08 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 252 seconds) 2021-06-27 07:56:39 gggp what is the diff between str and string object 2021-06-27 07:58:10 jbg gggp: you should take the time to read the rust book; it answers all the questions you're likely to be asking in here as you learn :) 2021-06-27 07:58:18 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 07:58:19 jbg String is an owned string, &str is a borrowed string slice 2021-06-27 07:58:31 jbg analogous to Vec vs. &[u8] 2021-06-27 07:58:38 jbg https://doc.rust-lang.org/book/ 2021-06-27 07:59:19 j`ey or like char* and std::string in C++ 2021-06-27 07:59:35 bertptrs more like std::string_view and std::string 2021-06-27 08:00:34 j`ey sure if you use modern c++ :P 2021-06-27 08:01:20 gggp j`ey the char* make sense 2021-06-27 08:01:34 gggp nice explain 2021-06-27 08:01:49 gggp so str is native 2021-06-27 08:01:56 gggp premitive 2021-06-27 08:01:58 bertptrs no, not quite 2021-06-27 08:02:12 gggp ? 2021-06-27 08:02:35 bertptrs String "owns" the text, str refers to data that's stored somewhere else 2021-06-27 08:03:48 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has quit (Remote host closed the connection) 2021-06-27 08:04:16 jbg a String is basically a wrapper around a Vec that promises the bytes are valid UTF-8 2021-06-27 08:04:37 jbg a &str is like a wrapper around a &[u8] that promises the referenced bytes are valid UTF-8 2021-06-27 08:05:06 gggp how to get start address of str 2021-06-27 08:05:12 --> xse_ (~xse@user/xse) has joined ##rust 2021-06-27 08:05:13 gggp and lts length 2021-06-27 08:06:30 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-27 08:06:41 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-27 08:06:51 bertptrs why do you need these 2021-06-27 08:07:08 gggp let ptr = story.as_ptr(); 2021-06-27 08:07:08 gggp let len = story.len(); 2021-06-27 08:07:38 jbg do you need to interop with C or something? 2021-06-27 08:08:15 <-- xse (~xse@user/xse) has quit (Ping timeout: 244 seconds) 2021-06-27 08:08:31 gggp yeah 2021-06-27 08:09:04 bertptrs str and String are terrible for C interop as they don't do 0 terminators 2021-06-27 08:09:14 bertptrs you'll want CString and Cstr 2021-06-27 08:10:43 gggp bertptrs : I have heard of this for the first time 2021-06-27 08:11:01 gggp rust str is not \0 terminated 2021-06-27 08:11:21 gggp where the book says this 2021-06-27 08:12:32 jbg https://doc.rust-lang.org/book/ch08-02-strings.html 2021-06-27 08:13:09 jbg &str is a pointer and a length 2021-06-27 08:13:34 jbg as for the C interop part, https://doc.rust-lang.org/nomicon/ffi.html#interoperability-with-foreign-code is relevant (you probably want to read that whole chapter) 2021-06-27 08:14:35 gggp is this ffi 2021-06-27 08:15:04 jbg sure: C code is "foreign" to rust and vice-versa 2021-06-27 08:18:31 --> sedeki (~textual@user/sedeki) has joined ##rust 2021-06-27 08:19:50 <-- cross (~cross@spitfire.i.gajendra.net) has quit (Quit: leaving) 2021-06-27 08:20:36 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 08:21:16 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-27 08:22:22 <-- sedeki (~textual@user/sedeki) has quit (Client Quit) 2021-06-27 08:22:32 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 250 seconds) 2021-06-27 08:23:32 --> cross (~cross@spitfire.i.gajendra.net) has joined ##rust 2021-06-27 08:31:05 --> hflug (~hflug@77-58-96-171.dclient.hispeed.ch) has joined ##rust 2021-06-27 08:33:06 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-27 08:33:07 --> mikojan (~benjamin@55d46d2c.access.ecotel.net) has joined ##rust 2021-06-27 08:34:07 hflug Assume you have a struct A with a vector of B. Each B implements IntoIterator yielding C elements. 2021-06-27 08:34:08 hflug Is there an easy way to implement IntoIterator for A, so that the iterator produces the elements produced by each B consecutively? 2021-06-27 08:34:08 hflug I tried self.iter().map(B::into_iter).flatten(), but it strangely gives the error that C is not an iterator. 2021-06-27 08:35:22 jbg flatten just requires Self::Item: IntoIterator 2021-06-27 08:35:39 jbg so vec.iter().flatten() will be sufficient if the items in the vec implement IntoIterator 2021-06-27 08:35:57 hflug Aha, and they would implement it by returning an iterator with just themselves, right? 2021-06-27 08:36:05 jbg are they also iterators? 2021-06-27 08:36:08 <-- cross (~cross@spitfire.i.gajendra.net) has quit (Quit: leaving) 2021-06-27 08:36:16 hflug No, they are basic elements, say integers 2021-06-27 08:36:29 jbg I'm a bit confused here 2021-06-27 08:36:37 jbg you said that the Vec contains items that implement IntoIterator 2021-06-27 08:36:38 <-- hiccupmaster (~edvinbasi@edvinbasil.com) has quit (Quit: ZNC - http://znc.in) 2021-06-27 08:37:11 jbg the type within those iterators doesn't matter as long as they're all the same 2021-06-27 08:37:15 --> cross (~cross@spitfire.i.gajendra.net) has joined ##rust 2021-06-27 08:37:42 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 272 seconds) 2021-06-27 08:38:11 jbg if you have Vec where T: IntoIterator, then to get an Iterator you simply need to do the_vec.into_iter().flatten() 2021-06-27 08:38:38 <-- cross (~cross@spitfire.i.gajendra.net) has quit (Client Quit) 2021-06-27 08:38:57 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 08:39:33 jbg if that doesn't work, you need to either read the resulting error message more carefully, or paste the whole error so someone else can read it carefully for you ;) 2021-06-27 08:39:38 --> cross (~cross@spitfire.i.gajendra.net) has joined ##rust 2021-06-27 08:41:45 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-27 08:41:56 hflug Hm, let me try to create a minimal example, that's weird 2021-06-27 08:46:30 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 268 seconds) 2021-06-27 08:47:04 --> Midjak (~Midjak@2a01:e0a:322:72d0:54dc:c255:46d1:35f9) has joined ##rust 2021-06-27 08:48:46 hflug Ok, great, with a.vec_of_B.iter().flatten(), that works. Now, I was trying to implement IntoIter for A, writing into_iter(self) {self.vec_of_b.iter().flatten()}. What I think is my problem is the type IntoIter. What I have currently is type IntoIter = iter::Flatten>, but this produces the error about U not being 2021-06-27 08:48:46 hflug an iterator 2021-06-27 08:49:11 --> Midjak1 (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-27 08:49:31 jbg can you put the code on playground? or at least paste the whole error rather than paraphrasing it 2021-06-27 08:51:41 --> cdown (~cdown@89.32.122.5) has joined ##rust 2021-06-27 08:51:47 <-- Midjak (~Midjak@2a01:e0a:322:72d0:54dc:c255:46d1:35f9) has quit (Ping timeout: 268 seconds) 2021-06-27 08:52:41 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 08:57:25 --> dcz_ (~dcz@dynamic-093-131-018-015.93.131.pool.telefonica.de) has joined ##rust 2021-06-27 09:00:52 hflug Here is a minimal example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1776469f88b382deb7d64bf2558db696 2021-06-27 09:01:41 <-- dmalteseknight (~dmaltesek@zaq7a66da13.zaq.ne.jp) has quit (Changing host) 2021-06-27 09:01:41 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-27 09:02:38 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 09:05:27 j`ey why is a default integer literal type (i32) needed? 2021-06-27 09:05:50 j`ey hm, just realised something like: for _ in (0..10) { ... }, would need a type 2021-06-27 09:07:19 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-06-27 09:07:25 hflug In the actual code, B doesn't have a vector of i32, but a custom IntoIter that produces C. But the error is the same: C is not an iterator 2021-06-27 09:10:25 jbg hflug: have a look at the definition of std::iter::Flatten 2021-06-27 09:10:52 jbg pub struct Flatten where I: Iterator, ::Item: IntoIterator 2021-06-27 09:11:07 jbg the type parameter is the type of the iterator that it wraps 2021-06-27 09:12:03 j`ey meaning it should be: iter::Flatten> 2021-06-27 09:12:19 jbg yup 2021-06-27 09:12:28 <-- hexfive (~eric@50.35.83.177) has quit (Quit: WeeChat 3.0) 2021-06-27 09:16:44 --> oaken-source (~oaken-sou@user/oaken-source) has joined ##rust 2021-06-27 09:18:00 oaken-source Hey, me again. I managed to cross-compile a working rustc for my target platform, but when I try building tools (cargo) the linking step fails with missing libc.so.6 -- is there a way I can tell x.py where the libc.so for the target platform lives? 2021-06-27 09:18:27 oaken-source it seems to not pick up on the sysroot of the target compiler 2021-06-27 09:19:06 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 09:20:46 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 09:21:40 oaken-source I tried adding the sysroot to LD_LIBRARY_PATH, but despite triggering a lot of rebuilds, this doesn't have the intended effect. 2021-06-27 09:22:50 --> antonym (uid432694@user/antonym) has joined ##rust 2021-06-27 09:24:38 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 09:28:16 hflug @jbg j`ey Thanks for your help :) Got it working that way in the minimal example, but it throws the same error when I replace the vec iterator by a custom one: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=470d4373be11f4abca2168d471073318 The type IntoIter = iter::Flatten; should be correct, no? 2021-06-27 09:29:12 hflug oops, that one is the correct one: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d21407190ea7d28b1b2566a8bc7ef443 2021-06-27 09:30:00 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 09:31:39 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-27 09:32:20 _Vi Shall there be "Show THIR" action in play.rust-lang.org? 2021-06-27 09:32:54 <-- PotatoGim_ (sid99505@id-99505.tooting.irccloud.com) has quit 2021-06-27 09:33:31 --> PotatoGim (sid99505@id-99505.tooting.irccloud.com) has joined ##rust 2021-06-27 09:34:56 j`ey hflug: no you still want iter::Flatten> 2021-06-27 09:35:06 _Vi Cna there be THIR-based macros in Rust someday? 2021-06-27 09:35:10 hflug Oh right 2021-06-27 09:38:22 hflug yay, thanks, it works great now := 2021-06-27 09:39:17 j`ey _Vi: probably not? I mean MIR and HIR arent stable at all, so im not sure i expect THIR to be 2021-06-27 09:39:54 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 09:40:10 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 09:44:31 <-- chronon (~chronon@user/chronon) has quit (Quit: leaving) 2021-06-27 09:44:55 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-27 09:46:14 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 09:46:40 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 09:48:18 <-- neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has quit (Remote host closed the connection) 2021-06-27 09:50:18 --> neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has joined ##rust 2021-06-27 09:50:18 davros jbg just to clarify my anger earlier. the kind of attitude you displayed there is exactly why despite my warnings 5+ years ago, rust today has an awkward indexing situation. 2021-06-27 09:50:48 davros think you;'re so clever "oh you little person you didn't profile it did you" 2021-06-27 09:50:51 davros but you're missing the context 2021-06-27 09:51:16 davros you're puting yourself in my crosshairs for 5+ years of frustration on this 2021-06-27 09:51:31 --> skipwich (~skipwich@user/skipwich) has joined ##rust 2021-06-27 09:52:00 davros "well, change your world coordinates to 64bit aswell.. have you profiled it? do you know it wont be fast enough?" FUCKING STUPID 2021-06-27 09:52:23 davros YES LETS DOUBLE THE SIZE OF ALL OUR COORDINATES BECAUSE WE CAN'T BE ARSED MAKING A LIBRARY SELECT THE APPROPRIATE PRECISION 2021-06-27 09:52:27 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-06-27 09:52:36 j`ey lol 2021-06-27 09:52:49 davros this moron seriously suggested 2021-06-27 09:53:02 davros that i should change my world meshes to 64bits to make using a 64bit ui library easier 2021-06-27 09:53:17 yourfate hmm, I can't use serde to serialize chrono::DateTime it seems? 2021-06-27 09:53:26 davros OF COURSE I DIDNT PROFILE IT BECAUSE I ALREADY KNOW THATS STUPID AND THATS WHY CONSUMER GPUS ARE OPTIMIZED FOR 32BIT 2021-06-27 09:54:01 davros people like that is why rust today has awkward 32/64bit issues 2021-06-27 09:54:01 j`ey davros: well either you have to use a 64bit ui lib, or you make that lib use 32 bits, or you make your own lib 2021-06-27 09:54:06 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 09:54:14 davros sure there's plenty of 32bit ui libs 2021-06-27 09:54:26 davros i had this argumen twith the piston person aswell 2021-06-27 09:54:37 davros i already know by instinct 32bits is right 2021-06-27 09:55:08 j`ey you have to give better than that, to try get someone to change their library 2021-06-27 09:55:23 davros "it's a cross platform ui lib (oh i've only worked on intel desktop PCs, to me crossplatform means "windows+linux", what do you mean some embedded devices or GPUs dont have 64bit as fast as 32bit?)" 2021-06-27 09:55:59 davros this weirdness is why some people in games dont take rust seriously 2021-06-27 09:56:27 davros there's a certain "web-ness" that permeates it.. the fact someone doesn't just know this instincitcely indicates little experience of this domain 2021-06-27 09:56:37 davros so it makes them suspicious 2021-06-27 09:56:57 j`ey well then themselves dont know enough of rust as a domain soo :P 2021-06-27 09:56:59 davros in the web world people just lazily use 64bit everywhere 2021-06-27 09:57:16 davros its no issue because everything is hidden by network delays 2021-06-27 09:57:35 davros rust is a general purpose/systems language, the issue is *the target domain* 2021-06-27 09:58:15 davros here i know i can workaround but the fact these guys *didn't care about it* makes games people suspicious 2021-06-27 09:58:35 davros and i'm super-keen on rust by comparison 2021-06-27 09:58:43 * kpcyrd hides 2021-06-27 09:59:02 davros you make me look bad with this, when i try and push rust in the games world 2021-06-27 09:59:15 davros "huh ? they didn't care about THAT? what else might they have got wrong?" 2021-06-27 10:00:13 kpcyrd as long as it's not the std lib the games world can just stick to the crates that work best for them 2021-06-27 10:01:02 --> dcn (~dcn@47.187.66.11) has joined ##rust 2021-06-27 10:01:22 kpcyrd (would be my naive assumption) 2021-06-27 10:01:26 j`ey kpcyrd: which is what they do with C++ too I believe 2021-06-27 10:02:35 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 272 seconds) 2021-06-27 10:02:38 davros it wasnt' just that, its the broader context of that conversation 2021-06-27 10:03:02 <-- bpalmer (~user@user/bpalmer) has left ##rust (ERC (IRC client for Emacs 27.2)) 2021-06-27 10:06:08 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 10:09:34 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-27 10:10:52 <-- Midjak1 (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving.) 2021-06-27 10:11:11 --> Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has joined ##rust 2021-06-27 10:12:34 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 268 seconds) 2021-06-27 10:13:52 Midjak Hi, If I want the user input I can use stdin.read_line() . I need in my application merely wait the user press enter. Should I use stdin.read_line ? Or is there something to just wait user press enter without need to instatiate a `String` ? 2021-06-27 10:15:51 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-27 10:16:12 kpcyrd Midjak: it depends if and how you want to handle certain cases 2021-06-27 10:17:30 kpcyrd like, what if the user presses a lot of other characters before pressing enter 2021-06-27 10:19:03 kpcyrd Midjak: the way with the least allocation overhead would be stdin.read(&mut buf), buf is simply an array of a few bytes of size 2021-06-27 10:19:46 kpcyrd but if you want to ask the user a few times to press enter and I hold down A for a while and then press enter it would confirm all at once 2021-06-27 10:20:03 Midjak I don't need what user type. It's just a way to stop the program. So I don't need to allocate something . 2021-06-27 10:20:37 kpcyrd if you define `let mut buf = [0u8; 8];` that doesn't allocate anything, it's on the stack 2021-06-27 10:21:11 Midjak I resolve my issue with stdin.read_line(&mut String::new()), but your solution is better thanks 2021-06-27 10:22:33 Midjak sorry for the "allocate" thing in fact I don't need anything to retieve what the user types. Just waiting for an input. 2021-06-27 10:23:06 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-06-27 10:24:02 Midjak there is a handler attached to a midi port I just need the program wait the time needed for the device respond 2021-06-27 10:25:22 Midjak I am trying the buffer I think is lighter than a String::new() 2021-06-27 10:25:36 kpcyrd all good, don't worry :) 2021-06-27 10:26:08 Midjak word is important you are right 2021-06-27 10:26:22 jbg yourfate: the chrono crate has a serde feature you need to enable 2021-06-27 10:31:29 <-- farmstatejake (~farmstate@user/farmstatejake) has quit (Read error: Connection reset by peer) 2021-06-27 10:32:06 Midjak works fine thx kpcyrd ! 2021-06-27 10:32:31 yourfate jbg: <3 2021-06-27 10:33:27 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 10:34:14 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 10:36:16 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 10:36:46 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 10:37:28 oaken-source hm, I can't seem to get cargo to link :/ 2021-06-27 10:37:40 oaken-source in a cross-compiling scenario 2021-06-27 10:38:06 kpcyrd oaken-source: are you using external libraries? 2021-06-27 10:39:19 oaken-source I don't know, am I? 2021-06-27 10:39:31 oaken-source it's looking for libc.so when linking cargo 2021-06-27 10:39:43 oaken-source and it's not looking at the right places, it seems 2021-06-27 10:40:00 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 10:40:49 oaken-source I think it's looking for libc.so for the target architecture, but it's not including the toolchain sysroo 2021-06-27 10:40:56 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 10:41:18 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 10:41:42 w0x12ef_ Rust nightly not installed, please install it! 2021-06-27 10:42:12 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in) 2021-06-27 10:42:40 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-27 10:42:46 bertptrs no, I don't think I will 2021-06-27 10:44:21 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Remote host closed the connection) 2021-06-27 10:44:34 Midjak Do you know some GUI library for rust which is simple, light and work on OSX ? 2021-06-27 10:44:46 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-27 10:44:49 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Remote host closed the connection) 2021-06-27 10:44:53 <-- jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-27 10:45:27 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-27 10:45:35 jbg https://www.areweguiyet.com 2021-06-27 10:46:18 Lumpio_ Answer is no 2021-06-27 10:46:28 -- Lumpio_ is now known as Lumpio- 2021-06-27 10:46:35 bertptrs what's it with Rust ecosystem websites and requiring javascript for displaying basic stuff 2021-06-27 10:46:40 * bertptrs shakes fist at cloud 2021-06-27 10:46:45 Lumpio- It's going to take a very long while to get a GUI toolkit going that's on par with things like Qt/GTK/WPF/whatever 2021-06-27 10:47:39 jbg I don't recommend any of those shitty electron-based ones, but you can use GTK or Cocoa fairly pleasantly, and for cross-platform, conrod and druid are both interesting and maybe usable for simple stuff 2021-06-27 10:48:17 Sobek How do you use cocoa in rust ? 2021-06-27 10:48:28 mike-burns gtk-rs is pretty good already. 2021-06-27 10:48:54 mike-burns Doesn't answer the macOS requirement, though. gtk-rs will work on macOS, but it will look like a GTK+ UI, not a macOS UI. 2021-06-27 10:49:12 kee Tcl/Tk can do native UIs. 2021-06-27 10:49:29 jbg Sobek: https://github.com/servo/core-foundation-rs/tree/master/cocoa/examples 2021-06-27 10:49:36 --> tj8 (~tj@user/tj) has joined ##rust 2021-06-27 10:50:09 kee Use ttk via tkinter via pyo3 to get easy cross-platform native UIs in Rust. 2021-06-27 10:50:17 jbg lol 2021-06-27 10:50:27 mike-burns The request was for a macOS UI, not cross-platform. 2021-06-27 10:50:32 Sobek What about the Qt bindings ? Qt is pretty good with looking native iirc 2021-06-27 10:50:41 <-- tj (~tj@user/tj) has quit (Ping timeout: 244 seconds) 2021-06-27 10:50:41 -- tj8 is now known as tj 2021-06-27 10:50:43 jbg for a macOS UI, just use cocoa 2021-06-27 10:50:46 mike-burns Right. 2021-06-27 10:50:51 jbg the above crate is no doubt incomplete, but add more bindings as needed 2021-06-27 10:50:51 Sobek ^ 2021-06-27 10:51:01 Midjak Well the main issue with gtk on osx is install gtk. I tried this for scala, but I didn't succeed to get it working 2021-06-27 10:52:11 Midjak ok let'try cocoa 2021-06-27 10:53:20 Midjak I don't know if it the simplest framework to learn but It is shipped with osx 2021-06-27 10:54:17 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-27 10:54:30 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 258 seconds) 2021-06-27 10:55:03 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 10:55:04 Midjak For Qt I need to install Qt framework and I need something light. Qt is a very good framework for complexe application. 2021-06-27 10:55:12 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Read error: Connection reset by peer) 2021-06-27 10:56:29 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 10:57:08 kee Midjak: UIs on Rust are hard. Cocoa is probably the easiest way to go, regardless of how complicated it is. 2021-06-27 10:58:30 jbg I did some toy things with the cocoa-rs and if you already know cocoa it's not that different from doing it in swift or obj-c tbh 2021-06-27 10:58:51 Midjak no I am new on Mac OSX 2021-06-27 10:59:00 jbg if you don't know cocoa it's a learning curve no matter the language, but if you're developing for macOS you should learn cocoa 2021-06-27 10:59:05 Midjak I am a Linux guy 2021-06-27 10:59:06 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 10:59:27 Midjak I need Mac for music thing and switch to it for dev toor 2021-06-27 10:59:36 Midjak too* 2021-06-27 10:59:36 jbg making your app look and feel native on macOS is much easier with cocoa 2021-06-27 10:59:51 Midjak ok I am going to try 2021-06-27 11:00:18 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-27 11:00:28 kpcyrd oaken-source: try https://github.com/rust-embedded/cross :) 2021-06-27 11:00:41 Midjak Anyway, I'll have to figure out how it works 2021-06-27 11:00:53 jbg I think oaken-source is trying to build rust for a new target, as opposed to cross-compile something written in rust 2021-06-27 11:00:56 <-- hflug (~hflug@77-58-96-171.dclient.hispeed.ch) has quit (Quit: Client closed) 2021-06-27 11:01:31 Midjak thank you all for your advices 2021-06-27 11:04:21 oaken-source yeah. I had no problem compiling rust itself, but cargo is giving me trouble. 2021-06-27 11:04:51 kee oaken-source: Do you really need cargo? 2021-06-27 11:05:16 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-27 11:07:14 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-27 11:07:20 oaken-source kee: I need cargo to compile rust again natively on the platform I think 2021-06-27 11:07:48 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 11:07:52 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 11:07:55 oaken-source I'm trying to cross-compile a compiler that I can use to compile a native one on the platform 2021-06-27 11:09:14 kee How long did it take you to get the compiler you've got? 2021-06-27 11:09:42 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 11:10:06 oaken-source could you rephrase that? 2021-06-27 11:10:27 kee I assume you have a RISC-V compiler. How long did it take you to bootstrap that? 2021-06-27 11:10:38 oaken-source oh! 2021-06-27 11:14:02 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 11:14:02 oaken-source I have a riscv64 gcc, that's not difficult. and riscv64gc is a supported rust target 2021-06-27 11:14:02 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Read error: Connection reset by peer) 2021-06-27 11:14:02 oaken-source so I just started from the rust binaries that came with my distribution 2021-06-27 11:14:02 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 11:14:02 <-- smitop (~smitop@user/smitop) has quit (Quit: Ping timeout (120 seconds)) 2021-06-27 11:14:02 kee Ah, okay. I thought you bootstrapped from the OCaml. 2021-06-27 11:14:02 --> smitop (~smitop@user/smitop) has joined ##rust 2021-06-27 11:14:02 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 11:14:02 oaken-source no. I looked into that, but the early rust versions only worked on x86 2021-06-27 11:14:02 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 11:17:11 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 11:17:21 -- xse_ is now known as xse 2021-06-27 11:20:24 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 11:20:28 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 252 seconds) 2021-06-27 11:22:15 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 11:22:19 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-27 11:29:46 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-27 11:37:10 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 11:38:53 davros crates.io .. does this only support distributing with sourcecode (i'd guess yes, r.e. tradeoff for running the ecosystem.. and maybe even for security reasons) 2021-06-27 11:39:11 j`ey yes 2021-06-27 11:40:41 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-27 11:41:00 davros i suppose sourcecode obfuscation would be against the spirit of it (and quite possibly outlawed ?) 2021-06-27 11:41:22 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 11:41:51 j`ey probably fine, but i guess people might not want to rely on that crate :P 2021-06-27 11:42:02 oaken-source let CS students write your code, and you get obfuscation for free :^) 2021-06-27 11:42:51 --> jbaublitzzz (~jbaublitz@157.245.143.148) has joined ##rust 2021-06-27 11:45:47 jbaublitzzz so I'm struggling with higher rank trait bounds. I have a trait defined that requires the predicate for<'a> FromBytes<'a> to be true. my understanding of this is that this means that FromBytes<'a> must be implemented for all lifetimes. is that correct so far? 2021-06-27 11:45:59 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-27 11:46:44 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 11:53:38 <-- cinix (~cinix__@c-73-60-53-69.hsd1.nh.comcast.net) has quit (Quit: Leaving) 2021-06-27 11:54:59 --> jadesnail (~user@2001:861:324e:1e90:b442:b4a1:73f3:d14e) has joined ##rust 2021-06-27 11:55:58 <-- pretty_dumm_guy (trottel@gateway/vpn/protonvpn/prettydummguy/x-88029655) has quit (Quit: WeeChat 3.3-dev) 2021-06-27 11:57:41 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 12:01:00 <-- mikojan (~benjamin@55d46d2c.access.ecotel.net) has quit (Ping timeout: 272 seconds) 2021-06-27 12:05:17 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-27 12:09:55 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-27 12:15:04 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-06-27 12:15:21 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-27 12:22:56 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-27 12:24:52 <-- thing (~thing@user/thing) has quit (Remote host closed the connection) 2021-06-27 12:25:12 --> thing (~thing@user/thing) has joined ##rust 2021-06-27 12:26:49 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 12:29:30 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 12:35:15 <-- jadesnail (~user@2001:861:324e:1e90:b442:b4a1:73f3:d14e) has left ##rust (ERC (IRC client for Emacs 28.0.50)) 2021-06-27 12:37:29 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 12:38:35 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-27 12:43:03 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-27 12:43:27 --> brandonh (~brandonh@151.46.93.174) has joined ##rust 2021-06-27 12:49:02 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 12:49:11 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 12:50:26 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 12:51:43 <-- brandonh (~brandonh@151.46.93.174) has quit (Quit: brandonh) 2021-06-27 12:54:29 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 265 seconds) 2021-06-27 12:55:09 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 12:55:47 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 12:58:53 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-27 13:02:43 --> lf78 (~s@225-2-237-24.gci.net) has joined ##rust 2021-06-27 13:02:45 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 13:04:11 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 13:04:17 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 13:06:21 --> ski (~ski@ed-3358-10.studat.chalmers.se) has joined ##rust 2021-06-27 13:08:12 --> mpt (~tom@2001:41b8:83c:fa01:9f51:88b4:dd95:965a) has joined ##rust 2021-06-27 13:08:56 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Quit: Hay te huacho!) 2021-06-27 13:09:53 bertptrs yes 2021-06-27 13:10:29 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 13:11:08 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 13:12:40 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-27 13:14:00 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-27 13:15:03 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-06-27 13:15:27 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-27 13:16:45 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-27 13:17:58 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 13:19:42 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 13:19:49 --> brandonh (~brandonh@151.82.33.7) has joined ##rust 2021-06-27 13:20:09 --> hellla (~hellla@49.49.242.166) has joined ##rust 2021-06-27 13:20:38 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 13:21:39 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-27 13:22:42 <-- hellla (~hellla@49.49.242.166) has left ##rust 2021-06-27 13:22:46 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 13:24:37 <-- mpt (~tom@2001:41b8:83c:fa01:9f51:88b4:dd95:965a) has quit (Ping timeout: 272 seconds) 2021-06-27 13:26:46 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-27 13:33:36 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 268 seconds) 2021-06-27 13:48:03 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-27 13:49:04 --> mpt (~tom@2a00:20:8017:8a04:ba09:ca8e:505f:8d30) has joined ##rust 2021-06-27 13:58:22 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 13:58:38 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 14:07:24 <-- brandonh (~brandonh@151.82.33.7) has quit (Quit: brandonh) 2021-06-27 14:13:56 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 14:15:26 --> rob (~user@87.239.204.91) has joined ##rust 2021-06-27 14:15:29 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-27 14:16:05 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-27 14:18:26 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-06-27 14:19:14 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-27 14:19:56 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 14:21:21 <-- Guest53 (~textual@170.250.221.149) has quit (Client Quit) 2021-06-27 14:22:19 --> ajmag (~ajmag@117.200.114.217) has joined ##rust 2021-06-27 14:22:27 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-27 14:23:16 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-27 14:23:26 <-- mpt (~tom@2a00:20:8017:8a04:ba09:ca8e:505f:8d30) has quit (Read error: Connection reset by peer) 2021-06-27 14:25:24 <-- dcn (~dcn@47.187.66.11) has quit (Ping timeout: 268 seconds) 2021-06-27 14:27:18 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 272 seconds) 2021-06-27 14:27:46 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-27 14:29:11 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 14:30:24 <-- chronon (~chronon@user/chronon) has quit (Quit: leaving) 2021-06-27 14:31:22 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 14:31:39 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 14:39:11 <-- dwt_ (~dwt_@c-98-200-58-177.hsd1.tx.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-27 14:39:59 <-- Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-06-27 14:41:32 --> Iolo (~iolo@dsl-tkubng22-58c02b-220.dhcp.inet.fi) has joined ##rust 2021-06-27 14:42:16 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-27 14:43:37 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-27 14:49:49 --> manray (~user@c188-151-212-195.bredband.tele2.se) has joined ##rust 2021-06-27 14:51:29 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-27 14:55:48 <-- dcz_ (~dcz@dynamic-093-131-018-015.93.131.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-06-27 14:57:18 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 250 seconds) 2021-06-27 14:59:03 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-27 15:01:24 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 15:01:40 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 15:03:10 --> lupine (~gulag@user/communistwolf) has joined ##rust 2021-06-27 15:03:25 <-- CommunistWolf (~gulag@user/communistwolf) has quit (Ping timeout: 256 seconds) 2021-06-27 15:03:40 <-- ajmag (~ajmag@117.200.114.217) has quit (Ping timeout: 246 seconds) 2021-06-27 15:04:36 -- lupine is now known as CommunistWolf 2021-06-27 15:07:50 <-- jess (~jess@libera/staff/jess) has quit 2021-06-27 15:11:40 --> Rio (~rio@2601:345:4203:41c0:3f1f:6ee6:2ea6:a58b) has joined ##rust 2021-06-27 15:14:39 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-27 15:14:47 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 15:15:17 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-27 15:17:04 <-- oaken-source (~oaken-sou@user/oaken-source) has left ##rust 2021-06-27 15:17:06 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-27 15:17:34 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-27 15:19:02 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-27 15:19:05 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 15:19:10 --> dcn (~dcn@47.187.66.11) has joined ##rust 2021-06-27 15:20:09 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-06-27 15:24:36 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 15:26:25 <-- lf78 (~s@225-2-237-24.gci.net) has left ##rust 2021-06-27 15:27:03 --> a6a45081-2b83 (~aditya@122.163.205.132) has joined ##rust 2021-06-27 15:50:42 <-- croax (9593c976ee@ghost.pepta.net) has quit (Quit: Gateway shutdown) 2021-06-27 15:51:20 --> croax (9593c976ee@ghost.pepta.net) has joined ##rust 2021-06-27 15:57:23 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 15:57:33 <-- a6a45081-2b83 (~aditya@122.163.205.132) has quit (Remote host closed the connection) 2021-06-27 16:01:28 <-- [fspy] (~fspy@user/fspy) has quit (Quit: [fspy]) 2021-06-27 16:01:28 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 16:01:28 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 272 seconds) 2021-06-27 16:05:34 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:05:46 -- ap5_ is now known as ap5 2021-06-27 16:06:09 <-- fspy (~fspy@user/fspy) has quit (Client Quit) 2021-06-27 16:06:48 --> MarderIII (~MarderIII@2001:985:e889:1:2537:dba9:7530:9f55) has joined ##rust 2021-06-27 16:07:54 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:09:56 <-- fspy (~fspy@user/fspy) has quit (Client Quit) 2021-06-27 16:09:56 --> sco1 (~sco1@charon.whatbox.ca) has joined ##rust 2021-06-27 16:09:56 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:09:56 <-- fspy (~fspy@user/fspy) has quit (Client Quit) 2021-06-27 16:09:56 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:09:56 <-- fspy (~fspy@user/fspy) has quit (Client Quit) 2021-06-27 16:10:35 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:12:01 <-- fspy (~fspy@user/fspy) has quit (Client Quit) 2021-06-27 16:14:19 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:14:52 <-- cehteh (~ct@i59F72C79.versanet.de) has quit (Ping timeout: 250 seconds) 2021-06-27 16:15:16 <-- fspy (~fspy@user/fspy) has quit (Remote host closed the connection) 2021-06-27 16:17:04 --> fspy (~fspy@user/fspy) has joined ##rust 2021-06-27 16:17:06 <-- MarderIII (~MarderIII@2001:985:e889:1:2537:dba9:7530:9f55) has quit (Quit: Leaving) 2021-06-27 16:19:20 --> flump (~flump@user/flump) has joined ##rust 2021-06-27 16:24:28 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-06-27 16:31:48 --> cehteh (~ct@i59F72C79.versanet.de) has joined ##rust 2021-06-27 16:33:43 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-27 16:34:20 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 252 seconds) 2021-06-27 16:40:00 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-27 16:45:55 --> bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has joined ##rust 2021-06-27 17:00:41 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 17:03:18 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-27 17:04:39 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 17:07:32 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 272 seconds) 2021-06-27 17:10:04 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 272 seconds) 2021-06-27 17:14:04 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 17:17:16 <-- kron (~weechat@user/qaph) has quit (Ping timeout: 250 seconds) 2021-06-27 17:20:50 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 17:22:44 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 265 seconds) 2021-06-27 17:25:04 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 17:26:05 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 17:26:11 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-27 17:27:26 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-27 17:30:22 --> haenno (~haenno@user/haenno) has joined ##rust 2021-06-27 17:34:22 --> ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has joined ##rust 2021-06-27 17:34:31 <-- haenno (~haenno@user/haenno) has quit (Quit: Leaving) 2021-06-27 17:34:43 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 268 seconds) 2021-06-27 17:35:38 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-27 17:37:09 yourfate so, any good lectures on how I should organize my data for storing in a database? I'm using sled for a pet project (time tracking system) 2021-06-27 17:40:30 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-27 17:40:52 --> pwnd_sfw5 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-27 17:41:09 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 268 seconds) 2021-06-27 17:41:09 -- pwnd_sfw5 is now known as pwnd_sfw 2021-06-27 17:42:55 <-- darkstalker (~wolfie@186.148.12.159) has quit (Read error: Connection reset by peer) 2021-06-27 17:45:49 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-06-27 17:46:17 --> yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has joined ##rust 2021-06-27 17:48:32 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 17:49:38 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-06-27 17:52:58 <-- dcn (~dcn@47.187.66.11) has quit (Quit: leaving) 2021-06-27 17:59:15 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-27 18:00:09 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-27 18:01:07 kee yourfate: I don't have lectures,but store the data the same way you would in structs. 2021-06-27 18:03:26 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-06-27 18:04:15 <-- aquijoule_ (~richbridg@213-225-5-235.nat.highway.a1.net) has quit (Remote host closed the connection) 2021-06-27 18:06:16 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 18:06:39 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-27 18:12:08 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 272 seconds) 2021-06-27 18:12:25 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-27 18:12:55 <-- PorkrollPosadist (~PorkrollP@matapacos.dog) has quit (Quit: Goodbye) 2021-06-27 18:13:12 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-27 18:15:53 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has joined ##rust 2021-06-27 18:18:09 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 18:21:14 <-- fanf (~fanf@90.251.70.141) has quit (Ping timeout: 268 seconds) 2021-06-27 18:23:49 --> fanf (~fanf@90.254.237.175) has joined ##rust 2021-06-27 18:28:24 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-27 18:32:36 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-27 18:45:45 <-- yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has quit (Quit: yuri6037) 2021-06-27 18:50:30 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-27 18:53:20 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-06-27 18:59:42 --> richbridger (~richbridg@213-225-5-235.nat.highway.a1.net) has joined ##rust 2021-06-27 19:00:57 meltyness hmm... in terms of iterators -- should Next _really_ be returning a Result? 2021-06-27 19:01:28 meltyness cause it seems like one could iterate over a structure where None isn't necessarily the last result 2021-06-27 19:02:13 GreenJello meltyness, you can have an iterator of Option values 2021-06-27 19:02:27 GreenJello in which case .next() returns Option> 2021-06-27 19:03:27 meltyness I meant Option, but yeah -- that's kinda what I puzzled down to 2021-06-27 19:04:08 meltyness That way you wouldn't violate any of the assumptions of the std::Iterator methods 2021-06-27 19:04:59 GreenJello separately there's the case of "I don't have the next value *yet*" for which you need a futures::Stream instead of Iterator 2021-06-27 19:05:51 meltyness hmm 2021-06-27 19:05:55 GreenJello but with Iterator the (outer) Option is just saying if the iterator is exhausted yet or not 2021-06-27 19:07:25 meltyness I actually just re-read zip() and it's not clear that's the case, it looks like the assumption there is that it's per-execution 2021-06-27 19:08:58 kee The standard library doesn't assume iterators are fused. 2021-06-27 19:09:02 kee But it also doesn't assume they're not. 2021-06-27 19:09:04 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 265 seconds) 2021-06-27 19:10:17 kee Speaking of iterators, I'm trying to select an (A, B, C, D) with methods like `a.iter_bs()`, and I'm finding myself with a lot of .flat_map(|(a, b)| b.iter_cs().map(|c| (a, b, c))) 2021-06-27 19:10:35 kee Is there a better way to do it? (Something like .zip_map, perhaps?) 2021-06-27 19:11:15 <-- ur5us (~ur5us@2406:e002:6afd:5401:dcda:4751:ffe1:3610) has quit (Ping timeout: 250 seconds) 2021-06-27 19:11:44 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-06-27 19:11:53 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-27 19:18:37 <-- richbridger (~richbridg@213-225-5-235.nat.highway.a1.net) has quit (Remote host closed the connection) 2021-06-27 19:21:36 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 19:23:11 --> richbridger (~richbridg@213-225-5-235.nat.highway.a1.net) has joined ##rust 2021-06-27 19:23:17 meltyness so an iterable 4 tuple? 2021-06-27 19:24:30 kee Kind of. 2021-06-27 19:24:34 kee The first stage gets an iterable of a, which I use to get an iterable of iterables of b, but I want an iterable of (a, b). 2021-06-27 19:24:37 kee And so on. 2021-06-27 19:24:47 kee I'm fine with (((a, b), c), d) or something. 2021-06-27 19:26:23 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-27 19:26:52 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Read error: Permission denied) 2021-06-27 19:27:08 --> sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has joined ##rust 2021-06-27 19:28:08 <-- lf_ (~quassel@p200300d21f261d00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-27 19:28:44 --> lf (~quassel@p200300d21f003100022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 19:30:51 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-27 19:31:23 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-27 19:37:50 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-27 19:39:23 --> rx80 (~quassel@84-255-239-58.static.t-2.net) has joined ##rust 2021-06-27 19:44:31 meltyness Is this example /really/ more efficient than a clone() ? 2021-06-27 19:44:32 meltyness https://doc.rust-lang.org/book/ch13-03-improving-our-io-project.html#using-iterator-trait-methods-instead-of-indexing 2021-06-27 19:45:01 Arnavion A clone of what 2021-06-27 19:45:22 meltyness a string slice 2021-06-27 19:45:29 Arnavion What string slice 2021-06-27 19:45:34 Arnavion std::env::args() gives you an iterator 2021-06-27 19:46:31 j`ey Arnavion: https://doc.rust-lang.org/book/ch13-03-improving-our-io-project.html#removing-a-clone-using-an-iterator 2021-06-27 19:46:33 meltyness It seems like when you call args.next() the Result you receive must make a clone of the string it found 2021-06-27 19:46:59 meltyness since it has Result and not Result<&str> 2021-06-27 19:47:11 meltyness ...right? hm 2021-06-27 19:47:20 j`ey I think you mean Option 2021-06-27 19:47:35 Arnavion j`ey: That supposes that something already created the str slice 2021-06-27 19:47:40 danieldg env::args does freshly clone the argument every time 2021-06-27 19:47:55 danieldg std::env is really inefficient as an API 2021-06-27 19:48:05 Arnavion kee: You can split the flat_map() into multiple ones for readability, but it'll still be as long as that. AFAICT itertools doesn't have anything to help either 2021-06-27 19:48:30 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 250 seconds) 2021-06-27 19:48:50 meltyness danieldg thanks -- the tutorial highlights that clone is inefficient somehow, but based on the types I'm looking at this implementation doesn't fix the copy either. 2021-06-27 19:48:54 j`ey Arnavion: bad timing :P 2021-06-27 19:49:07 Arnavion Welp 2021-06-27 19:49:42 danieldg cloning a String is expensive, moving it is not. String is not Copy, so can't do that 2021-06-27 19:49:57 danieldg copying a reference to a String (str) is also cheap 2021-06-27 19:50:02 Arnavion meltyness: It has strictly one less copy than the code at the top of that page 2021-06-27 19:51:03 Arnavion meltyness: Enumerating an Args creates one copy (from what libstd holds internally). The code at the top of the file then collect()s it into a Vec, but then uses it as a &[String] (???), and is thus forced to clone() a second time 2021-06-27 19:51:49 Arnavion I have no idea why that code is written as it is. Even if it didn't want to use the iterator, it could've taken the Vec so that it could remove owned Strings from it 2021-06-27 19:52:38 j`ey Arnavion: probably just to try show diff ways of writing things? dunno 2021-06-27 19:52:56 Arnavion (ofc you can't pop_front() from a Vec, so you'd still have to do .into_iter().next(), which would be even more pointless because then you might as well have used the original std::env::args() iterator) 2021-06-27 19:54:25 Arnavion btw std::env::args(), just like its cousin std::env::vars(), is a great way to crash your program because it ended up getting non-utf8 input. Consider using the _os() versions instead and handling the failed conversion to String manually 2021-06-27 19:59:16 davros struct Foo{ a:A,b:C} {let foo:Foo=.. { let x=&mut foo.a /* is foo.b useable as an immutable borrow here? or does &foo.a freeze *the whole of foo**/}} 2021-06-27 19:59:31 Arnavion Yes it is 2021-06-27 19:59:38 davros ok i kind of hoped so 2021-06-27 19:59:57 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-27 20:00:23 Arnavion If it was impl Foo { fn a(&mut self) -> &mut A { &mut self.a } } then the entire foo would've been locked 2021-06-27 20:00:43 davros my scenario is like that.. I had some seperation that I was hoping was overkill, which i've simplified out. a master object that has some parts that are mutable/immutable in different areas of the program. 2021-06-27 20:01:49 davros i wonder if i had some misconceptions from a very early version 2021-06-27 20:01:53 --> trusch_ (~trusch@87.123.135.205) has joined ##rust 2021-06-27 20:02:10 davros (which led me to overcomplicate my architecture around that.. all cleaned up now..) 2021-06-27 20:02:45 davros there's parts where i will want to take advantage of parts of the 'Foo' being immutable to read in parallel , which i'm not doing yet 2021-06-27 20:05:03 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 20:05:16 <-- trusch (~trusch@87.123.134.8) has quit (Ping timeout: 272 seconds) 2021-06-27 20:10:07 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 268 seconds) 2021-06-27 20:10:17 <-- webmind (~webmind@user/webmind) has quit (Ping timeout: 252 seconds) 2021-06-27 20:11:40 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-27 20:11:57 --> llorllale (~llorllale@2607:9880:3a18:69:4d8e:9dc8:8270:3ec1) has joined ##rust 2021-06-27 20:15:29 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-27 20:18:59 --> webmind (~webmind@user/webmind) has joined ##rust 2021-06-27 20:21:49 --> metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has joined ##rust 2021-06-27 20:23:04 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-06-27 20:24:10 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-27 20:24:53 <-- rx80 (~quassel@84-255-239-58.static.t-2.net) has quit (Changing host) 2021-06-27 20:24:53 --> rx80 (~quassel@user/rx80) has joined ##rust 2021-06-27 20:26:09 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 20:26:54 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::ea80) has quit (Quit: Leaving) 2021-06-27 20:28:44 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-06-27 20:28:56 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 20:30:10 <-- rx80 (~quassel@user/rx80) has quit (Quit: rx80) 2021-06-27 20:30:24 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-27 20:30:28 --> rx80 (~quassel@user/rx80) has joined ##rust 2021-06-27 20:32:12 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 265 seconds) 2021-06-27 20:33:33 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-27 20:34:38 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-27 20:35:16 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 272 seconds) 2021-06-27 20:37:07 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-27 20:37:27 <-- cdown (~cdown@89.32.122.5) has quit (Quit: https://chrisdown.name) 2021-06-27 20:38:11 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-27 20:38:17 <-- cjb (~cjb@user/cjb) has quit (Quit: brb) 2021-06-27 20:41:44 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-27 20:42:00 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 272 seconds) 2021-06-27 20:47:52 --> PorkrollPosadist (~PorkrollP@matapacos.dog) has joined ##rust 2021-06-27 20:48:31 <-- PorkrollPosadist (~PorkrollP@matapacos.dog) has quit (Read error: Connection reset by peer) 2021-06-27 20:49:42 --> PorkrollPosadist (~PorkrollP@matapacos.dog) has joined ##rust 2021-06-27 20:58:14 <-- gggp (~textual@36.112.135.215) has quit (Remote host closed the connection) 2021-06-27 20:59:18 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 21:00:48 <-- PorkrollPosadist (~PorkrollP@matapacos.dog) has quit (Quit: Goodbye) 2021-06-27 21:05:33 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-27 21:05:52 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-06-27 21:06:30 --> mpt (~tom@2a02:908:1862:49e0::6) has joined ##rust 2021-06-27 21:06:31 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 21:06:35 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 21:08:12 --> neurocyte573 (~neurocyte@92.119.8.247) has joined ##rust 2021-06-27 21:08:12 <-- neurocyte573 (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-27 21:08:12 --> neurocyte573 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-27 21:09:41 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-27 21:10:49 <-- neurocyte57 (~neurocyte@user/neurocyte) has quit (Ping timeout: 268 seconds) 2021-06-27 21:10:49 -- neurocyte573 is now known as neurocyte57 2021-06-27 21:14:33 <-- PonzoSporrigan (~ghost64@user/ghost64) has quit (Read error: Connection reset by peer) 2021-06-27 21:14:52 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 268 seconds) 2021-06-27 21:15:32 --> w0x12ef_ (~w0x12ef@124.126.15.211) has joined ##rust 2021-06-27 21:15:48 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 21:16:48 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-06-27 21:17:57 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 268 seconds) 2021-06-27 21:18:20 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 21:20:05 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-27 21:23:23 --> ghost64 (~ghost64@user/ghost64) has joined ##rust 2021-06-27 21:24:26 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 272 seconds) 2021-06-27 21:25:48 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-27 21:26:22 --> w0x12ef (~w0x12ef@106.37.74.209) has joined ##rust 2021-06-27 21:27:20 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 21:27:30 <-- w0x12ef_ (~w0x12ef@124.126.15.211) has quit (Read error: Connection reset by peer) 2021-06-27 21:27:44 <-- emerent (~quassel@p200300cd5703bb10ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-27 21:28:22 --> emerent (~quassel@p200300cd5703bba5ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 21:32:08 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-06-27 21:34:04 <-- paule (~paule@ppp-93-104-181-235.dynamic.mnet-online.de) has quit (Ping timeout: 265 seconds) 2021-06-27 21:35:35 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 21:37:06 <-- gggp (~textual@106.37.74.209) has quit (Remote host closed the connection) 2021-06-27 21:37:52 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:c6b4:633:2502:e963) has quit (Remote host closed the connection) 2021-06-27 21:38:05 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 21:38:18 <-- w0x12ef (~w0x12ef@106.37.74.209) has quit (Ping timeout: 268 seconds) 2021-06-27 21:40:02 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 258 seconds) 2021-06-27 21:42:19 <-- antonym (uid432694@user/antonym) has quit (Quit: Connection closed for inactivity) 2021-06-27 21:44:18 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-27 21:45:27 db48x std::env doesn’t need to be ultra–efficient 2021-06-27 21:45:35 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 21:46:22 db48x your argument list and environment variables top out at a few kilobytes. You’re going to process it once and then you’re done 2021-06-27 21:47:07 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-27 21:47:07 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-27 21:47:51 --> gggp (~textual@124.126.15.211) has joined ##rust 2021-06-27 21:52:57 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-27 21:53:54 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-27 21:55:07 --> Gaba (~admin@61.144.209.226) has joined ##rust 2021-06-27 21:59:11 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-27 22:01:43 * rk4 has a flashback to digging into just how big env vars could be, when people started using them to pass in lists of customers 2021-06-27 22:01:56 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-27 22:02:17 db48x heh 2021-06-27 22:02:26 db48x ok, in any sane environment… 2021-06-27 22:04:33 db48x actually, now that I think back on it, there was a system at the internet archive that creates image thumbnails of videos, and I think it base64 encodes the thumbnail and passes it along on the command line 2021-06-27 22:04:34 <-- sgift (~madison@2001:a61:35b8:2401:b40d:d99b:3d19:5514) has quit (Ping timeout: 250 seconds) 2021-06-27 22:05:08 db48x I decided not to get involved in that one 2021-06-27 22:05:35 <-- jkl (~jkl@user/jkl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-27 22:05:47 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-27 22:11:59 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-27 22:13:27 <-- mpt (~tom@2a02:908:1862:49e0::6) has quit (Ping timeout: 268 seconds) 2021-06-27 22:15:38 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-27 22:15:52 <-- bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has quit (Quit: Leaving) 2021-06-27 22:18:23 <-- Midjak (~Midjak@2a01:e0a:322:72d0:a637:8b00:74c1:dd49) has quit (Ping timeout: 268 seconds) 2021-06-27 22:19:00 <-- gggp (~textual@124.126.15.211) has quit (Ping timeout: 268 seconds) 2021-06-27 22:20:49 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 22:23:15 <-- metal_egg (~the_egg@pool-72-94-145-43.phlapa.fios.verizon.net) has quit (Quit: Konversation terminated!) 2021-06-27 22:25:47 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-27 22:28:00 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 272 seconds) 2021-06-27 22:28:31 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 22:29:49 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-27 22:29:54 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 22:29:54 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-27 22:30:08 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 265 seconds) 2021-06-27 22:31:06 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-27 22:31:18 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-27 22:35:14 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-27 22:35:39 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-06-27 22:39:04 --> aquijoule_ (~richbridg@213-225-32-103.nat.highway.a1.net) has joined ##rust 2021-06-27 22:40:31 <-- gggp (~textual@36.112.135.215) has quit (Remote host closed the connection) 2021-06-27 22:41:16 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 22:41:49 <-- richbridger (~richbridg@213-225-5-235.nat.highway.a1.net) has quit (Ping timeout: 268 seconds) 2021-06-27 22:42:20 <-- lord| (~lordpipe@user/lordpipe) has quit (Ping timeout: 272 seconds) 2021-06-27 22:44:18 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-27 22:46:31 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 22:48:16 --> pwnd_sfw1 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-27 22:48:16 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 22:48:16 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 22:48:46 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-06-27 22:48:46 -- pwnd_sfw1 is now known as pwnd_sfw 2021-06-27 22:48:48 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-06-27 22:50:06 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 22:51:06 --> ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has joined ##rust 2021-06-27 22:55:42 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-06-27 22:57:25 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-27 22:59:13 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 246 seconds) 2021-06-27 23:01:28 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-06-27 23:01:37 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-27 23:02:17 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 23:10:12 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-27 23:18:09 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-06-27 23:18:48 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 23:26:10 gggp let story = "Once upon a time..."; 2021-06-27 23:26:16 gggp then what is Ok(story) 2021-06-27 23:27:24 Mutabah A `Result<&'static str, _>` 2021-06-27 23:27:32 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 272 seconds) 2021-06-27 23:28:10 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-27 23:30:33 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-27 23:30:53 gggp what is the relation of Result and Option 2021-06-27 23:33:00 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-06-27 23:33:22 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-27 23:34:15 jeho love it when I can solve these advanced problems using Rust on hackerrank and other sites like that =) 2021-06-27 23:34:16 Mutabah `Result` is for something that can fail, `Option` is for when something may not exist 2021-06-27 23:34:35 jeho just solved one that required implementing a fenwick tree 2021-06-27 23:35:42 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-06-27 23:36:07 jeho if you come from c or java, Result is sort of like indicating a function could throw an exception, while option is sort of like indicating the function could return a valid pointer or null 2021-06-27 23:36:25 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 23:37:00 gggp what is zk proof rollup 2021-06-27 23:37:19 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-06-27 23:37:31 jeho zero kost? 2021-06-27 23:38:04 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-27 23:40:47 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-27 23:42:09 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 265 seconds) 2021-06-27 23:42:09 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-27 23:47:17 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-27 23:48:37 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-27 23:50:31 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-27 23:51:38 --> meandi2 (~meandi4@dyndsl-178-142-250-041.ewe-ip-backbone.de) has joined ##rust 2021-06-27 23:52:52 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 23:53:30 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-27 23:54:24 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-27 23:55:32 <-- meandi (~meandi4@dyndsl-178-142-252-104.ewe-ip-backbone.de) has quit (Ping timeout: 268 seconds) 2021-06-27 23:56:47 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-27 23:58:02 db48x zero knowledge, probably 2021-06-28 00:03:09 --> SamuelMarks (~samuel@user/samuelmarks) has joined ##rust 2021-06-28 00:03:11 SamuelMarks hi 2021-06-28 00:03:34 * SamuelMarks has an offtopic question, is there a Rust channel for that? 2021-06-28 00:12:14 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-28 00:14:07 gggp zero knowledge proof ,how to do 2021-06-28 00:16:19 jeho I have zero knowledge 2021-06-28 00:16:49 jeho maybe it's another way of saying idiot proof 2021-06-28 00:17:23 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 00:18:01 SamuelMarks gggp Coq? 2021-06-28 00:18:01 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 268 seconds) 2021-06-28 00:18:53 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-28 00:19:26 --> db48x_ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-28 00:19:28 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 00:19:32 --> gggp (~textual@36.112.134.194) has joined ##rust 2021-06-28 00:20:24 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 00:21:02 <-- db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 258 seconds) 2021-06-28 00:25:47 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-28 00:27:48 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-28 00:29:36 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-28 00:33:07 --> trev (~trev@user/trev) has joined ##rust 2021-06-28 00:33:24 <-- flump (~flump@user/flump) has quit (Ping timeout: 272 seconds) 2021-06-28 00:33:56 <-- db48x_ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 252 seconds) 2021-06-28 00:34:09 --> db48x_ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-28 00:34:50 --> frost (~frost@59.71.241.179) has joined ##rust 2021-06-28 00:35:17 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-28 00:45:31 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-06-28 00:45:40 <-- gggp (~textual@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-06-28 00:46:36 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-28 00:47:26 --> jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-28 00:48:43 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-06-28 00:51:08 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 272 seconds) 2021-06-28 00:51:37 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 00:55:47 --> dcz_ (~dcz@dynamic-093-135-156-226.93.135.pool.telefonica.de) has joined ##rust 2021-06-28 00:58:38 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-28 00:58:49 --> flump (~flump@user/flump) has joined ##rust 2021-06-28 01:03:47 -- db48x_ is now known as db48x 2021-06-28 01:06:58 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-06-28 01:11:17 --> jay-invariant (~jay@c-24-4-6-169.hsd1.ca.comcast.net) has joined ##rust 2021-06-28 01:15:27 <-- flump (~flump@user/flump) has quit (Remote host closed the connection) 2021-06-28 01:16:30 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-28 01:19:24 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 272 seconds) 2021-06-28 01:21:48 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-28 01:27:05 <-- gggp (~textual@106.37.74.209) has quit (Ping timeout: 268 seconds) 2021-06-28 01:27:11 <-- jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Remote host closed the connection) 2021-06-28 01:28:08 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-06-28 01:28:53 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 01:34:12 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 01:38:34 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-28 01:40:39 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Read error: Connection reset by peer) 2021-06-28 01:41:31 --> eroux (~eroux@102-65-85-162.ftth.web.africa) has joined ##rust 2021-06-28 01:41:55 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-28 01:42:51 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-28 01:44:18 <-- gggp (~textual@36.112.135.215) has quit (Remote host closed the connection) 2021-06-28 01:44:40 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 01:44:59 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-28 01:47:11 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-28 01:47:17 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-28 01:48:42 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-28 01:49:44 --> bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has joined ##rust 2021-06-28 01:49:51 <-- bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has quit (Client Quit) 2021-06-28 01:50:07 --> bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has joined ##rust 2021-06-28 01:50:33 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 01:51:21 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-28 01:51:48 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-28 01:59:10 <-- SamuelMarks (~samuel@user/samuelmarks) has quit (Ping timeout: 258 seconds) 2021-06-28 02:01:18 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 02:02:24 --> pwnd_sfw3 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-28 02:03:46 <-- acid (~acid@user/acid) has quit (Ping timeout: 250 seconds) 2021-06-28 02:03:54 --> fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 02:04:05 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 268 seconds) 2021-06-28 02:04:05 -- pwnd_sfw3 is now known as pwnd_sfw 2021-06-28 02:04:26 --> acid (~acid@user/acid) has joined ##rust 2021-06-28 02:04:36 <-- bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has quit (Ping timeout: 272 seconds) 2021-06-28 02:06:01 --> SamuelMarks (~samuel@110-175-213-50.static.tpgi.com.au) has joined ##rust 2021-06-28 02:06:33 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-06-28 02:08:27 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 02:16:31 --> bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has joined ##rust 2021-06-28 02:17:40 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 272 seconds) 2021-06-28 02:22:38 <-- fooker (~fooker@2001:638:301:11a3::6) has quit (Ping timeout: 252 seconds) 2021-06-28 02:24:33 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 265 seconds) 2021-06-28 02:25:42 --> Guest21 (~Guest21@176.42.17.73) has joined ##rust 2021-06-28 02:25:46 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Ping timeout: 252 seconds) 2021-06-28 02:26:07 <-- Guest21 (~Guest21@176.42.17.73) has left ##rust 2021-06-28 02:26:17 --> Guest21 (~Guest21@176.42.17.73) has joined ##rust 2021-06-28 02:26:31 --> acclution (~acclution@user/acclution) has joined ##rust 2021-06-28 02:26:37 <-- acclution (~acclution@user/acclution) has quit (Client Quit) 2021-06-28 02:28:59 Guest21 hi, I want to move target folder outside of source directory. I tried CARGO_TARGET_DIR but it seems instead of creating a folder for every project it just writes every artifact into the same folder. How can I fix this 2021-06-28 02:29:41 <-- bkircher (~bkircher@host-79-61-237-209.business.telecomitalia.it) has quit (Quit: WeeChat 3.0.1) 2021-06-28 02:32:33 --> w0x12ef_ (~w0x12ef@60.10.194.47) has joined ##rust 2021-06-28 02:35:33 --> fooker (~fooker@2001:638:301:11a3::6) has joined ##rust 2021-06-28 02:38:57 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 02:40:30 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-28 02:40:44 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-06-28 02:49:24 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 02:53:28 <-- Zulikath (~zi@vmi584737.contaboserver.net) has quit (Quit: ZNC - https://znc.in) 2021-06-28 02:53:40 --> biberu\ (~biberu@user/biberu) has joined ##rust 2021-06-28 02:53:41 <-- SamuelMarks (~samuel@110-175-213-50.static.tpgi.com.au) has quit (Ping timeout: 268 seconds) 2021-06-28 02:53:43 jbg set CARGO_TARGET_DIR differently for each project you are building 2021-06-28 02:54:33 <-- w0x12ef_ (~w0x12ef@60.10.194.47) has left ##rust (Leaving) 2021-06-28 02:54:43 jbg the meaning of that environment variable is "put the built artifacts in this folder". cargo doesn't have a concept of a global parent dir for built artifacts, so if you want that you'll need to arrange it yourself 2021-06-28 02:55:26 <-- manray (~user@c188-151-212-195.bredband.tele2.se) has quit (Read error: Connection reset by peer) 2021-06-28 02:56:29 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 02:57:00 -- gggpkm_ is now known as gggpkm 2021-06-28 02:57:24 <-- biberu (~biberu@user/biberu) has quit (Ping timeout: 268 seconds) 2021-06-28 02:57:24 -- biberu\ is now known as biberu 2021-06-28 02:59:28 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-28 03:01:37 -- nerdypepper is now known as np 2021-06-28 03:01:41 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 03:02:19 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-28 03:03:18 --> mreznik (~mreznik@213.175.37.12) has joined ##rust 2021-06-28 03:04:26 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 250 seconds) 2021-06-28 03:04:59 Guest21 real bummer, thanks for the answer 2021-06-28 03:05:11 <-- Guest21 (~Guest21@176.42.17.73) has quit (Quit: Client closed) 2021-06-28 03:07:00 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-28 03:07:04 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 03:07:07 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-28 03:09:02 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 252 seconds) 2021-06-28 03:09:59 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-28 03:11:55 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 265 seconds) 2021-06-28 03:13:18 <-- capitol (~capitol@login.hackeriet.no) has quit (Quit: leaving) 2021-06-28 03:14:52 -- gggpkm_ is now known as gggpkm 2021-06-28 03:18:32 --> Feuermagier_ (~Feuermagi@213.178.26.41) has joined ##rust 2021-06-28 03:22:24 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 268 seconds) 2021-06-28 03:25:48 osa1 proptest does not show the failing test inputs when a test fails, any ideas why? I'm using the default config. I don't see any fields in the config for showing failing inputs https://altsysrq.github.io/rustdoc/proptest/1.0.0/proptest/test_runner/struct.Config.html 2021-06-28 03:28:13 <-- cjb (~cjb@user/cjb) has quit 2021-06-28 03:31:51 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-28 03:35:12 --> sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has joined ##rust 2021-06-28 03:40:47 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-28 03:41:34 <-- starblue1 (~juergen@dslb-094-220-116-102.094.220.pools.vodafone-ip.de) has quit (Quit: WeeChat 2.3) 2021-06-28 03:51:55 --> Zulikath (~zi@vmi584737.contaboserver.net) has joined ##rust 2021-06-28 03:53:59 -- trusch_ is now known as trusch 2021-06-28 03:55:38 <-- tribaal_ (~tribaal@217.163.28.23) has quit (Quit: ZNC - https://znc.in) 2021-06-28 03:55:53 --> tribaal (~tribaal@217.163.28.23) has joined ##rust 2021-06-28 03:55:53 <-- tribaal (~tribaal@217.163.28.23) has quit (Changing host) 2021-06-28 03:55:53 --> tribaal (~tribaal@ubuntu/member/tribaal) has joined ##rust 2021-06-28 03:57:12 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-28 03:57:34 <-- beanzilla (beanzilla@user/beanzilla) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 03:57:59 --> beanzilla (~beanzilla@user/beanzilla) has joined ##rust 2021-06-28 03:58:13 --> gggpkm_ (~gggpkm@36.112.134.194) has joined ##rust 2021-06-28 03:58:53 --> _eroux_ (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-06-28 03:59:10 <-- beanzilla (~beanzilla@user/beanzilla) has quit (Client Quit) 2021-06-28 03:59:40 --> beanzilla (~beanzilla@user/beanzilla) has joined ##rust 2021-06-28 03:59:55 <-- eroux (~eroux@102-65-85-162.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-06-28 04:01:08 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 04:02:34 <-- gggpkm_ (~gggpkm@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-06-28 04:04:58 <-- trusch (~trusch@87.123.135.205) has quit (Quit: leaving) 2021-06-28 04:06:19 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-28 04:06:24 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-28 04:08:38 <-- hendursa1 (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-28 04:14:49 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 04:16:20 --> img (~img@user/img) has joined ##rust 2021-06-28 04:18:36 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-28 04:18:47 _Vi Can there be something like `safe { }` blocks within `unsafe { } ` blocks, for auto-generated code, which includes user snippets, to be checked for unsafety more precisely? 2021-06-28 04:19:28 db48x there isn’t, but you could write an RFC 2021-06-28 04:19:41 <-- img (~img@user/img) has quit (Client Quit) 2021-06-28 04:21:16 --> img (~img@user/img) has joined ##rust 2021-06-28 04:21:17 kron _Vi: if it's generated code, can't you generate safe functions and put the user code in that, then call them from unsafe code? 2021-06-28 04:22:02 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 272 seconds) 2021-06-28 04:23:55 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-28 04:24:00 --> dmathieu (~textual@2a01:e34:ecbd:4370:2951:c817:eb7b:cefc) has joined ##rust 2021-06-28 04:24:34 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 272 seconds) 2021-06-28 04:25:18 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-28 04:28:49 ssbr_ kron: the type of the function can be annoying. 2021-06-28 04:29:35 --> dav1d (~dav1d@80-109-93-56.cable.dynamic.surfer.at) has joined ##rust 2021-06-28 04:30:26 kron what about closures then? 2021-06-28 04:31:16 ssbr_ kron: closures can't be polymorphic 2021-06-28 04:31:18 <-- mwehner (~mwehner@li910-8.members.linode.com) has quit (Ping timeout: 272 seconds) 2021-06-28 04:31:56 ssbr_ like idk how common it is, but definitely some macros could benefit from this. 2021-06-28 04:32:41 kron yeah, i'm not arguing that it's completely identical, just wondering if these could work as a workaround that's available now 2021-06-28 04:32:54 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-28 04:33:52 ssbr_ yep, they should frequently be able to work 2021-06-28 04:34:45 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 04:36:02 --> ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 04:37:18 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-28 04:38:31 Sobek Alternatively, use a much smaller unsafe block before and after the safe block ? 2021-06-28 04:39:37 * Sobek < https://libera.ems.host/_matrix/media/r0/download/libera.chat/add385fe55abc4d110f65c6476e3e9141cd6b01c/message.txt > 2021-06-28 04:39:52 Sobek should be equivalent to 2021-06-28 04:40:40 * Sobek < https://libera.ems.host/_matrix/media/r0/download/libera.chat/f0fe7dbea2ba6fa3cf0c215503cc6c633a334677/message.txt > 2021-06-28 04:42:20 --> mikojan (~benjamin@55d49647.access.ecotel.net) has joined ##rust 2021-06-28 04:42:36 <-- Feuermagier_ (~Feuermagi@213.178.26.41) has quit (Read error: Connection reset by peer) 2021-06-28 04:42:47 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-28 04:44:04 <-- fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-06-28 04:46:12 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 04:48:56 --> starblue (~juergen@dslb-094-220-116-102.094.220.pools.vodafone-ip.de) has joined ##rust 2021-06-28 04:52:51 --> JuggleTux (~tux@mob-194-230-146-157.cgn.sunrise.net) has joined ##rust 2021-06-28 04:53:17 ssbr_ I know of a place that doesn't work, but it's very specific (macro which evaluates to a materialized temporary) 2021-06-28 04:57:14 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-28 04:57:38 <-- dmathieu (~textual@2a01:e34:ecbd:4370:2951:c817:eb7b:cefc) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 04:59:06 --> SamuelMarks (~samuel@110-175-213-50.static.tpgi.com.au) has joined ##rust 2021-06-28 04:59:20 <-- SamuelMarks (~samuel@110-175-213-50.static.tpgi.com.au) has quit (Client Quit) 2021-06-28 05:00:08 <-- mikojan (~benjamin@55d49647.access.ecotel.net) has quit (Quit: WeeChat 3.2) 2021-06-28 05:01:39 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 05:02:32 <-- meandi2 (~meandi4@dyndsl-178-142-250-041.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-06-28 05:03:08 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 05:09:54 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-28 05:12:36 --> mwehner (~mwehner@li910-8.members.linode.com) has joined ##rust 2021-06-28 05:14:53 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-28 05:18:10 <-- kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has quit (Ping timeout: 272 seconds) 2021-06-28 05:22:41 --> kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has joined ##rust 2021-06-28 05:23:53 <-- ssbr_ (~ssbr@c-174-61-157-141.hsd1.wa.comcast.net) has quit (Changing host) 2021-06-28 05:23:53 --> ssbr_ (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-06-28 05:24:26 <-- JuggleTux (~tux@mob-194-230-146-157.cgn.sunrise.net) has quit (Quit: WeeChat 1.6) 2021-06-28 05:30:10 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 05:30:20 -- ssbr_ is now known as ssbr 2021-06-28 05:41:13 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-06-28 05:41:51 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 05:42:23 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-28 05:42:42 <-- gggp (~textual@60.10.194.47) has quit (Client Quit) 2021-06-28 05:49:25 --> Gaba_ (~admin@122.14.229.62) has joined ##rust 2021-06-28 05:51:01 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 268 seconds) 2021-06-28 05:51:01 <-- Gaba (~admin@61.144.209.226) has quit (Ping timeout: 268 seconds) 2021-06-28 05:58:28 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-28 06:03:06 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Read error: Connection reset by peer) 2021-06-28 06:03:51 --> mmmnnn (~mmmnnn@185.207.166.75) has joined ##rust 2021-06-28 06:04:29 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-06-28 06:04:41 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 06:04:52 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-28 06:05:08 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 250 seconds) 2021-06-28 06:05:23 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-28 06:08:55 --> raute1 (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-06-28 06:15:34 <-- neurocyte57 (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-28 06:16:25 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-28 06:16:46 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-28 06:17:15 --> tglman (~tglman@92.40.177.114.threembb.co.uk) has joined ##rust 2021-06-28 06:17:28 --> neurocyte57 (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 06:17:29 <-- neurocyte57 (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 06:17:29 --> neurocyte57 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 06:20:20 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-28 06:22:35 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-28 06:24:39 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 06:25:49 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-28 06:28:23 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-28 06:30:34 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-06-28 06:31:36 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-28 06:36:35 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 06:41:55 <-- noonien (~noonien@user/noonien) has quit (Ping timeout: 268 seconds) 2021-06-28 06:46:13 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-28 06:48:16 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 06:49:34 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-28 06:50:23 <-- neurocyte57 (~neurocyte@user/neurocyte) has quit (Quit: Ping timeout (120 seconds)) 2021-06-28 06:51:06 <-- tglman (~tglman@92.40.177.114.threembb.co.uk) has quit (Ping timeout: 268 seconds) 2021-06-28 06:53:00 --> tglman (~tglman@46.233.82.207) has joined ##rust 2021-06-28 07:00:58 <-- Allegretto (~allegrett@fibhost-67-230-113.fibernet.hu) has quit (Ping timeout: 268 seconds) 2021-06-28 07:02:06 --> DNH (~DNH@8.43.122.6) has joined ##rust 2021-06-28 07:03:02 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Remote host closed the connection) 2021-06-28 07:03:12 --> neurocyte57 (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 07:03:12 <-- neurocyte57 (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 07:03:12 --> neurocyte57 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 07:03:33 -- neurocyte57 is now known as neurocyte 2021-06-28 07:03:34 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-28 07:07:20 --> Danishman (~Allan@62-243-156-218-static.dk.customer.tdc.net) has joined ##rust 2021-06-28 07:12:43 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 246 seconds) 2021-06-28 07:13:00 --> Allegretto (~allegrett@91-83-34-167.pool.digikabel.hu) has joined ##rust 2021-06-28 07:14:17 --> dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has joined ##rust 2021-06-28 07:14:41 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-28 07:14:58 <-- dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has quit (Client Quit) 2021-06-28 07:15:08 --> dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has joined ##rust 2021-06-28 07:16:35 <-- amk (~amk@176.61.106.150) has quit (Remote host closed the connection) 2021-06-28 07:20:28 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-28 07:21:31 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-28 07:21:57 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-28 07:23:30 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-28 07:25:39 --> hegstal (~hegstal@2a02:c7f:7604:8a00:ac06:25a4:7233:bcc6) has joined ##rust 2021-06-28 07:26:09 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-06-28 07:28:02 --> yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has joined ##rust 2021-06-28 07:28:27 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 268 seconds) 2021-06-28 07:29:16 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-28 07:29:28 --> noonien (~noonien@user/noonien) has joined ##rust 2021-06-28 07:29:46 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 07:32:44 --> neurocyte (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 07:32:44 <-- neurocyte (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 07:32:44 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 07:45:10 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-06-28 07:45:17 <-- dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has quit (Quit: Leaving) 2021-06-28 07:45:20 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 272 seconds) 2021-06-28 07:45:25 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 07:45:28 --> dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has joined ##rust 2021-06-28 07:45:36 <-- dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has quit (Remote host closed the connection) 2021-06-28 07:45:54 --> dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has joined ##rust 2021-06-28 07:47:01 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 07:48:23 <-- Reventlov (~remy@user/reventlov) has quit (Ping timeout: 265 seconds) 2021-06-28 07:48:36 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Client Quit) 2021-06-28 07:48:57 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-06-28 07:55:49 <-- rascul (~rascul@user/rascul) has quit (Read error: Connection reset by peer) 2021-06-28 07:56:07 --> rascul (~rascul@user/rascul) has joined ##rust 2021-06-28 07:56:55 <-- ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-28 07:57:14 --> ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 08:01:48 <-- frost (~frost@59.71.241.179) has quit (Ping timeout: 272 seconds) 2021-06-28 08:02:01 -- __jmcantrell__ is now known as jmcantrell 2021-06-28 08:05:01 --> frost (~frost@59.71.241.179) has joined ##rust 2021-06-28 08:07:02 --> cdown (~cdown@89.32.122.5) has joined ##rust 2021-06-28 08:08:42 --> LeDragonDev (~LeDragonD@lfbn-mon-1-1474-174.w92-167.abo.wanadoo.fr) has joined ##rust 2021-06-28 08:09:58 --> arinov (~arinov@31.142.7.118) has joined ##rust 2021-06-28 08:14:08 --> fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 08:14:14 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 272 seconds) 2021-06-28 08:15:43 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-28 08:15:44 <-- tglman (~tglman@46.233.82.207) has quit (Ping timeout: 272 seconds) 2021-06-28 08:16:51 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-28 08:18:58 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-28 08:19:32 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 08:21:26 --> gggp (~textual@124.126.15.211) has joined ##rust 2021-06-28 08:22:03 --> cdown_ (~cdown@163.114.131.1) has joined ##rust 2021-06-28 08:25:11 <-- cdown (~cdown@89.32.122.5) has quit (Ping timeout: 268 seconds) 2021-06-28 08:30:14 <-- LeDragonDev (~LeDragonD@lfbn-mon-1-1474-174.w92-167.abo.wanadoo.fr) has quit (Quit: Client closed) 2021-06-28 08:31:34 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-06-28 08:32:35 <-- arinov (~arinov@31.142.7.118) has quit (Ping timeout: 268 seconds) 2021-06-28 08:33:10 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 252 seconds) 2021-06-28 08:36:28 <-- gggp (~textual@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-06-28 08:37:52 --> gggp (~textual@124.126.15.211) has joined ##rust 2021-06-28 08:37:58 <-- sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has quit (Read error: Permission denied) 2021-06-28 08:38:15 --> sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has joined ##rust 2021-06-28 08:41:22 --> SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has joined ##rust 2021-06-28 08:43:24 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:13:3c3f:fb8a:fb0a) has joined ##rust 2021-06-28 08:45:42 <-- fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-28 08:46:21 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-28 08:46:59 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 08:51:39 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 08:51:55 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 08:52:24 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-28 08:52:36 yuri6037 Hi, I have a question related to the log crate. I need a special logger which requires mut self access. Is there a way to hack a &mut self into a function which only takes &self? 2021-06-28 08:52:47 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-28 08:53:12 Lumpio- You could use a Mutex 2021-06-28 08:53:15 Sobek A mutex ? 2021-06-28 08:53:27 Lumpio- (Or e.g. RefCell in the general case, but Log requires Sync) 2021-06-28 08:53:34 yuri6037 Obviously I cannot change the definition of the trait. Unfortunatly the dev of the crate forced &self! (https://docs.rs/log/0.4.14/log/trait.Log.html) 2021-06-28 08:53:44 Sobek Race condition ^^' 2021-06-28 08:54:01 Lumpio- Yeah well they also force Sync because they want to leave synchronization up to the loggers 2021-06-28 08:55:30 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-28 08:55:31 yuri6037 How would you turn self into mut self using a RefCell? 2021-06-28 08:55:46 ssbr yuri6037: you can always add interior mutability (using e.g. RefCell, Mutex) for the things you store inside self 2021-06-28 08:56:42 <-- qoelet (~kumo@139.180.144.166) has quit (Ping timeout: 240 seconds) 2021-06-28 08:56:55 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-28 08:57:19 yuri6037 Is there some kind of optimized threaded queue or do I have to write this myself? 2021-06-28 08:57:47 ssbr yuri6037: look at the example at the top of https://doc.rust-lang.org/std/sync/struct.Mutex.html -- lock lets you get a mut reference to the thing inside the mutex. For RefCell, it'd be borrow_mut ( https://doc.rust-lang.org/std/cell/struct.RefCell.html ) 2021-06-28 08:57:50 kee yuri6037: std::sync::mpsc::channel I think 2021-06-28 08:58:00 ssbr man this is moving faste rthan I can copy paste links huh. 2021-06-28 08:58:13 Sobek As in a queue that you can insert into from several threads and pop from several threads ? (Typically used for producer + consumers). 2021-06-28 08:58:18 Lumpio- Also you can't put RefCell in a Sync type so you'll need that Mutex 2021-06-28 08:58:23 Lumpio- As I said before. 2021-06-28 08:58:28 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 250 seconds) 2021-06-28 08:58:48 yuri6037 then it might be better to create a single logging thread which polls a threaded queue 2021-06-28 08:59:06 <-- gggp (~textual@124.126.15.211) has quit (Ping timeout: 268 seconds) 2021-06-28 08:59:28 yuri6037 make the logger do nothing except redirecting to a threaded queue then have a special thread which runs in background and pops the queue 2021-06-28 08:59:40 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 09:02:51 yuri6037 kee: Thanks for std::sync::mpsc::channel. I'm not sure this is gonna work: does "impl !Sync for Sender" mean "not Sync"? 2021-06-28 09:03:25 kee yuri6037: Yes, but it's send. 2021-06-28 09:03:32 kee .clone() the sender. 2021-06-28 09:03:42 kee It just means you can't Send references. 2021-06-28 09:04:29 yuri6037 yeah but then you hit the "Sync" part of the Log trait. 2021-06-28 09:04:45 yuri6037 except if the Clone function is thread safe 2021-06-28 09:04:47 Lumpio- Yeah mpsc Senders must be owned by one thread 2021-06-28 09:05:28 yuri6037 That's what I thught it's only usefull if you know in advance what are the sender threads. Well turns out here theres no way to know that 2021-06-28 09:05:42 kee Well… 2021-06-28 09:05:50 kee You could have a reciever of senders. 2021-06-28 09:06:21 kee Oh, that's !Sync too, never mind. 2021-06-28 09:06:46 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 09:06:58 yuri6037 Then I need a replacement to Sender which is Sync. Is there a crate for that? 2021-06-28 09:07:24 kee I found an unanswered Stack Overflow question asking the same thing; does that help? 2021-06-28 09:07:25 yuri6037 receiver does not matter as only one thread which I know and control will own Receiver however the Sender is shared 2021-06-28 09:08:19 kee In theory you could have a pool of Senders. 2021-06-28 09:08:28 yuri6037 Well I can write this naively myself with a mutex if absolutely needed but if there's an existing lib that does this this would be good. 2021-06-28 09:10:10 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-28 09:11:00 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 09:14:07 kee yuri6037: parking_lot_mpsc has the !Sync lines commented out. 2021-06-28 09:15:52 Alexendoo In std SyncSender is Sync, crossbeam channels are also, but there's nothing wrong with just using a mutex here 2021-06-28 09:16:18 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 272 seconds) 2021-06-28 09:16:22 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-28 09:16:32 Alexendoo It's not naive, in fact stdout is behind a mutex for example 2021-06-28 09:17:14 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 09:17:56 yuri6037 I know I can use a mutex. You could avoid locks with memory barriers and a bounded lossy channel (a ring buffer in other words) 2021-06-28 09:18:26 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-06-28 09:18:45 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 09:20:52 yuri6037 Nice thanks about crossbeam I couldn't remember the name of the crate I already used which provided a lot of threading features 2021-06-28 09:21:31 yuri6037 I'll use crossbeam_channel it's Sync 2021-06-28 09:21:58 yuri6037 and I'm already familiar with this crate 2021-06-28 09:22:45 Sobek Quick question yuri, how does the lockless solution works (with barriers and ring buffer) ? 2021-06-28 09:23:05 Lumpio- Oh SyncSender exists in std, try that? 2021-06-28 09:23:16 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-28 09:24:24 db48x printing via lockless ring buffer would be a nice crate, but possibly a bit complex for the standard library 2021-06-28 09:26:37 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 09:27:53 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 09:28:47 cehteh dont overrate the lockless craze. it comes with a price, which means the normal uncontended cases costs considerably more than a lock 2021-06-28 09:30:43 Sobek (It looks like the bridge might have some lag, apologises for that) 2021-06-28 09:30:55 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 09:32:13 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 09:33:37 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-06-28 09:34:14 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 265 seconds) 2021-06-28 09:34:40 <-- yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has quit (Read error: No route to host) 2021-06-28 09:36:05 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-06-28 09:36:23 --> yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has joined ##rust 2021-06-28 09:37:00 yuri6037 Sorry computer crash 2021-06-28 09:40:00 la_mettrie (you didn't miss anything) 2021-06-28 09:44:22 kee cehteh: Sometimes. In other cases, lockless is strictly better – it depends entirely on the particulars of the implementations. 2021-06-28 09:45:33 --> MarderIII (~MarderIII@2001:985:e889:1:d827:a614:8af:2d72) has joined ##rust 2021-06-28 09:47:05 yuri6037 Sobek: the concept is something like: allocate a block of memory of a fixed size and NEVER reallocate it (otherwise it's unsafe and needs mutex to be safe). Then everytime you read and write just don't forget to issue the memory barrier to force the system to synchronize with RAM 2021-06-28 09:47:16 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 09:47:35 cehteh kee: lockless hass its advantages, esp when you need latency gurantees 2021-06-28 09:48:14 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-28 09:48:23 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 09:48:49 gggpkm how to do identity proof of hash function 2021-06-28 09:48:51 yuri6037 that's the basic concept. You may need additional atomics to control the pointers in the buffer (Intel x86_64 already guarentees you 64 bit int atmocity given 8 multiple alignment 2021-06-28 09:49:38 yuri6037 I think AARCH64 does have some atomic instructions that can permit you to read and write 64 bit ints atomically 2021-06-28 09:50:37 cehteh i wanted (didnt yet) experiment with lock chaining: imagine Mutex>> ringbuffer; you obtain the outer Mutex to gain access to the inner (head or tail) and drop the outer lock asap, then you have very little contention on the ringbuffer 2021-06-28 09:50:38 yuri6037 But the memory barrier is a platform dependent thing which I'm not even sure Linux has. I know Windows have it 2021-06-28 09:51:19 cehteh i bet/guess that could outperform an lockless implementation in a lot use cases 2021-06-28 09:52:05 yuri6037 Never used memory barriers on any Posix system. 2021-06-28 09:52:08 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 09:52:24 --> arinov (~arinov@31.142.7.118) has joined ##rust 2021-06-28 09:52:25 <-- austy (~austy@212-166-59-246.win.be) has quit (Ping timeout: 268 seconds) 2021-06-28 09:52:28 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 09:52:31 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 09:53:26 jbg yuri6037: https://www.kernel.org/doc/Documentation/memory-barriers.txt 2021-06-28 09:55:19 Sobek And the drawback of this method is that two threads might try writing at the same time and may overwite each other output ? 2021-06-28 09:55:30 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-28 09:57:18 --> Mooncairn (~mooncairn@user/mooncairn) has joined ##rust 2021-06-28 09:57:30 yuri6037 ah yeah forgot to mention it's only lockless for single thread write single tthread read 2021-06-28 09:58:55 yuri6037 But yeah if you use it accross more than 2 threads or use the read end in the thread for the write end you may get nice random memory bugs... 2021-06-28 09:58:57 --> arinov_ (~arinov@31.142.7.118) has joined ##rust 2021-06-28 09:59:15 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 268 seconds) 2021-06-28 09:59:20 <-- arinov (~arinov@31.142.7.118) has quit (Quit: Konversation terminated!) 2021-06-28 10:00:09 yuri6037 oh and by the way here is why I got computer crash. In fact it's more of a f*** *** NVIDIA kernel: nvidia 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible) 2021-06-28 10:00:30 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 10:00:41 yuri6037 and then we've got a nice GPU has fallen off the bus!! 2021-06-28 10:03:58 <-- sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has quit (Read error: Permission denied) 2021-06-28 10:04:14 --> sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has joined ##rust 2021-06-28 10:06:56 <-- arinov_ (~arinov@31.142.7.118) has quit (Ping timeout: 268 seconds) 2021-06-28 10:08:58 jbg f*** Nvidia 2021-06-28 10:09:16 jbg them possibly buying ARM makes me so sad 2021-06-28 10:09:28 gggpkm_ how to identify the hash algorithm from the hash? 2021-06-28 10:09:36 jbg gggpkm_: in general, you can't 2021-06-28 10:09:51 gggpkm_ what do you mean 2021-06-28 10:09:58 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 10:09:59 gggpkm_ I need uniqueness proof 2021-06-28 10:10:09 jbg are you aware that you're in ##rust? 2021-06-28 10:10:21 gggpkm_ rust is ok 2021-06-28 10:10:30 jbg your last several questions have nothing to do with rust though 2021-06-28 10:10:44 jbg (and it's better than ok! but fine.) 2021-06-28 10:11:07 gggpkm_ yep 2021-06-28 10:12:31 gggpkm_ jbg, iF identity uniqueness cannot get proved , blockchain can not work 2021-06-28 10:12:49 jbg this is not the channel to learn how blockchain works 2021-06-28 10:12:54 jbg I'm sure there are channels for that 2021-06-28 10:13:47 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 10:14:37 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Read error: Connection reset by peer) 2021-06-28 10:15:28 --> amk (~amk@176.61.106.150) has joined ##rust 2021-06-28 10:16:03 -- Gustavo6046_ is now known as Gustavo6046 2021-06-28 10:22:32 Tv_ is there any nice way to control main while still using #[test]? i'd like to make a tests/foo.rs that skips *all* tests unless conditions are right, so i don't need to remember to annotate every test 2021-06-28 10:24:18 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 10:26:05 cehteh what do you mean by that? 2021-06-28 10:26:25 cehteh usually your test has to set up everything it needs, it shouldnt rely on other tests 2021-06-28 10:27:10 cehteh when you have a bin crate .. i recently made a some test infrastructure for that, maybe you like that (running the binary you build in a test environment) 2021-06-28 10:27:17 Tv_ cehteh: "yes, test, you are now running in a disposable VM where it is safe for you to mess with important things" 2021-06-28 10:28:12 cehteh not that far as running in a container, CI may do that already anyway< 2021-06-28 10:28:26 cehteh anyway i dont get your problem 2021-06-28 10:28:36 Tv_ the point is to never run the dangerous stuff with just `cargo test` 2021-06-28 10:28:37 --> ubert1 (~Thunderbi@p200300ecdf259d13e6b318fffe838f33.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 10:28:52 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-06-28 10:28:52 cehteh you want to run a test function but that depends on other things set up properly? 2021-06-28 10:29:25 Tv_ imagine you want to write an integration test against specific behavior of something like sshd 2021-06-28 10:29:35 cehteh dangerous is in the eye of the beholder, there isnt anything in cargo that prevents you from that 2021-06-28 10:30:06 Tv_ you don't want your regular `cargo test` to mess with system daemons, and anyway it won't be authorized to 2021-06-28 10:30:16 cehteh when you want to do so then i think you rather use a CI from the outside which fires up a container for the test 2021-06-28 10:30:25 cehteh yes 2021-06-28 10:30:44 Tv_ yeah, this is the part i want to ship inside such a disposable environment, to actually perform the test 2021-06-28 10:31:03 cehteh then use some CI 2021-06-28 10:31:14 Tv_ *sigh* 2021-06-28 10:32:53 j`ey yeah i dont think you can control main() for tests 2021-06-28 10:32:57 ssbr Tv_: you don't need to annotate *every* test, FWIW. That's what macros are for >:) 2021-06-28 10:33:37 ssbr (and/or a cfg on the whole test module) 2021-06-28 10:34:37 Tv_ https://crates.io/crates/wraptest looks like roughly the right thing 2021-06-28 10:34:57 Tv_ ssbr: and yes, macros written by others would be a fine solution ;) 2021-06-28 10:35:02 cehteh Tv_: i made https://crates.io/crates/bintest and https://crates.io/crates/testcall to run your program (main) from a test, but by itself that has no isolation layer, it just run the tests and instructs your program to do whatever it does 2021-06-28 10:35:11 Tv_ is there way to get the effect of #[ignore] from inside the test function? 2021-06-28 10:35:49 Tv_ cehteh: yeah. i have the isolation layer, i'm looking for a convenient way to have stuff in my source tree that doesn't trigger explosions until told to 2021-06-28 10:36:43 cehteh isnt that what tests commonly do already :) 2021-06-28 10:37:02 Tv_ cehteh: i want a subcategory of tests that isn't safe to run normally as part of `cargo test` 2021-06-28 10:37:18 Tv_ and/or would fail because they try to do things only root can do, etc 2021-06-28 10:37:25 cehteh AAAH 2021-06-28 10:37:48 cehteh iirc you can do that with normal features 2021-06-28 10:38:04 ssbr Tv_: yes, this sounds like a use for cfg on the whole test module and features 2021-06-28 10:38:40 cehteh #[test] #[feature(dangerous-test)] or somehow like that 2021-06-28 10:38:59 Tv_ maybe that is the easiest way 2021-06-28 10:39:10 cehteh i tihnk so 2021-06-28 10:39:37 Tv_ what i've seen about features is that they're visible to importers, which makes them sound like somewhat of the wrong tool for internal things 2021-06-28 10:40:26 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 10:40:46 ssbr Tv_: "visible to importers"? 2021-06-28 10:40:55 ssbr I don't know what that means. 2021-06-28 10:41:09 j`ey to people using the crate 2021-06-28 10:41:14 Tv_ ssbr: as in serde = { version = "1.0.126", features = ["derive"] } 2021-06-28 10:42:17 j`ey Tv_: not perfect, but i think its cleaner than trying to make it work by magic 2021-06-28 10:42:34 ssbr Tv_: Ah. Yes, but OTOH they'd have no reason to specify a feature that only does something to tests. 2021-06-28 10:42:55 Tv_ j`ey: https://crates.io/crates/wraptest seemed reasonably clean, but i didn't see a way to neatly skip the tests, just "return" and make them nops 2021-06-28 10:43:30 Tv_ a custom version of that and something like #[ignore] would look reasonably clean to me -- but more work than using a feature, likely 2021-06-28 10:45:52 cehteh iirc you can define customs things, dont have the right syntax in mind but something like test-enabled and then cargo test --config tests-enabled=dangerous-tests (doc shows thats unstable) 2021-06-28 10:46:35 cehteh when you settle on that unstable thing (check discussion about if there is a hint that it will be finalized soon) then you can make this pretty nicely 2021-06-28 10:47:28 cehteh otherwise nothing prevents you on just normal features, actually i used that because some tests need to be in sync with features enabled, testing that feature code 2021-06-28 10:47:58 Tv_ cehteh: do you mean `cargo test --features`? 2021-06-28 10:48:07 Tv_ oh there's --config K=V too 2021-06-28 10:48:08 <-- haliucinas (~haliucina@5.20.153.21) has quit (Remote host closed the connection) 2021-06-28 10:48:08 cehteh yes 2021-06-28 10:48:27 Tv_ cehteh: not sure what unstable thing you mean, then 2021-06-28 10:48:42 cehteh --features is just a short for --config features=value 2021-06-28 10:48:43 cehteh iirc 2021-06-28 10:49:38 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 272 seconds) 2021-06-28 10:50:23 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-28 10:51:22 cehteh also #[ignore] may work and name your tests somewhat semantically fn foo_dangerous() .... when you run cargo tests you can provide and if i am not wrong that has some matching rules 2021-06-28 10:51:32 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 272 seconds) 2021-06-28 10:51:43 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-06-28 10:51:47 <-- hexfive (~eric@50.35.83.177) has quit (Client Quit) 2021-06-28 10:51:52 Tv_ okay tests/foo.rs with #![cfg(feature="dangerous-test")] makes normal runs think the file has 0 tests, good enough with some documentation 2021-06-28 10:52:28 cehteh --test name... 2021-06-28 10:52:28 cehteh Test the specified integration test. This flag may be specified multiple times and supports common Unix glob patterns. 2021-06-28 10:52:34 --> rglu (~rglu@2603-8090-2006-7fc6-ed48-3002-76bc-6daa.res6.spectrum.com) has joined ##rust 2021-06-28 10:52:51 Tv_ then i can do cargo test --features dangerous-test --no-run, ship the compiled executable to the sandbox, and run it there 2021-06-28 10:53:09 cehteh cargo test --tests *dangerous ... 2021-06-28 10:53:14 Tv_ cehteh: i looked at ignore for a while but was scared of --test '*' 2021-06-28 10:53:15 cehteh or that 2021-06-28 10:53:19 cehteh anyway there are plenty options 2021-06-28 10:53:33 --> haliucinas (~haliucina@5.20.153.21) has joined ##rust 2021-06-28 10:53:59 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 265 seconds) 2021-06-28 10:54:13 cehteh either way what are 'dangerous' tests .. i rather consider to filter expensive testes, but test shouldnt be dangerous but fail safe as well 2021-06-28 10:55:14 Tv_ cehteh: e.g. an integration test that wants to restart a system service to see how the client copes with that 2021-06-28 10:55:56 cehteh unless you rewrite coreutils in rust and want to test if rm -rf preserves :) 2021-06-28 10:56:30 cehteh does the test even have enough privileges to restart the service? 2021-06-28 10:56:47 Tv_ that's the point, it'll be run as root inside the disposable vm 2021-06-28 10:57:10 cehteh then its not dangerous :) 2021-06-28 10:57:23 Tv_ the test is dangerous, and only contained by the disposability 2021-06-28 10:57:34 Tv_ but i need a way to build the test, as part of my source tree 2021-06-28 10:57:56 cehteh :) 2021-06-28 10:58:06 Tv_ and without root, it would be a failing test, which is.. unhelpful.. to run from cargo test 2021-06-28 10:58:27 <-- MarderIII (~MarderIII@2001:985:e889:1:d827:a614:8af:2d72) has quit (Ping timeout: 268 seconds) 2021-06-28 10:58:34 cehteh ok i see the point 2021-06-28 10:59:37 cehteh would be cool when someone invents a 'cargo container' in a mostly portable way so that one just can run 'cargo container test' 2021-06-28 11:00:05 Tv_ oh i want full control of what the disposable vm contains, and already have that part 2021-06-28 11:00:07 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Quit: WeeChat 3.2) 2021-06-28 11:00:15 cehteh with a bit config bits for the container and support for different container envs on different oses 2021-06-28 11:00:32 cehteh yeah just talking to myself :) 2021-06-28 11:01:28 Tv_ it would be cool to have a "transport" to the actual tests, where the transport gets to manage the disposable vm construction, lifetime, etc, but test results would get transported back to `cargo test` 2021-06-28 11:02:04 --> EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has joined ##rust 2021-06-28 11:03:05 Tv_ e.g. go has -exec flags that let you do things like "anything you're about to run, run via this wrapper", which means you can run unit tests even in cross-compilation scenarios by doing qemu or ssh in the wrapper 2021-06-28 11:03:21 Tv_ (but that doesn't have the right amount of configurability for this need, either) 2021-06-28 11:03:53 j`ey cargo has that 2021-06-28 11:04:08 j`ey a bit 2021-06-28 11:04:11 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-28 11:04:38 Tv_ j`ey: oh? i haven't stumbled on such? give me something to search 2021-06-28 11:05:04 j`ey theyre called test runners.. but i cant find the docs 2021-06-28 11:05:26 Tv_ https://github.com/rust-lang/cargo/issues/1411 ? 2021-06-28 11:05:45 j`ey yeah 2021-06-28 11:06:51 Tv_ yeah interesting but way too coarse-grained for this 2021-06-28 11:07:06 j`ey yeah ;/ 2021-06-28 11:07:34 Tv_ i *could* always have a runner, and then make the runner understand when to do something... but features should work just fine 2021-06-28 11:09:07 kee Is there a version of flat_map that zips each of the inner things with clones of the items from the original iterator? 2021-06-28 11:10:08 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-28 11:10:21 kee I want to do as.something(A::iter_bs) and get an iterator of (a, b), and the only way I've found is horrible nested iterators. 2021-06-28 11:13:17 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-06-28 11:13:46 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 11:14:35 <-- mreznik (~mreznik@213.175.37.12) has quit (Quit: Leaving) 2021-06-28 11:17:04 --> MarderIII (~MarderIII@2001:985:e889:1:d827:a614:8af:2d72) has joined ##rust 2021-06-28 11:19:38 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 11:19:56 -- gggpkm_ is now known as gggpkm 2021-06-28 11:21:28 <-- xkuru (~xkuru@user/xkuru) has quit (Quit: Unvirtualizing) 2021-06-28 11:25:35 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-28 11:26:04 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-28 11:27:00 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 11:27:03 jbg isn't that quite easy by composing existing iterator adapters? 2021-06-28 11:27:26 --> home (~home@user/home) has joined ##rust 2021-06-28 11:27:27 jbg generally std doesn't include iterator adapters that are just compositions of existing ones (with a few exceptions_ 2021-06-28 11:28:12 kee jbg: It is, but doing that composition in my code is awkward. 2021-06-28 11:28:36 kee I could use a macro, but that'd be even worse. 2021-06-28 11:28:38 jbg you could extract it to an iterator adapter of your own 2021-06-28 11:29:01 jbg I don't see any need for a macro 2021-06-28 11:29:10 kee How? 2021-06-28 11:29:13 jbg just write a trait and impl it for Iterator 2021-06-28 11:29:41 <-- DNH (~DNH@8.43.122.6) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 11:29:44 kee You can't return impl Iterator in traits, though. 2021-06-28 11:29:59 jbg you don't return impl Iterator, you return a concrete type (the type of your iterator adapter) 2021-06-28 11:30:03 jbg you could look at itertools for examples 2021-06-28 11:30:26 kee Okay, that's doable if I use a function instead of a lambda. (Didn't think of that.) Thanks. 2021-06-28 11:30:30 <-- home (~home@user/home) has quit (Client Quit) 2021-06-28 11:35:14 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 11:35:56 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Remote host closed the connection) 2021-06-28 11:36:21 <-- jaix (~jaix@user/jaix) has quit (Ping timeout: 268 seconds) 2021-06-28 11:36:36 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-06-28 11:37:08 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 272 seconds) 2021-06-28 11:37:33 Arnavion kee: You can split the flat_map() into multiple ones for readability, but it'll still be as long as that. AFAICT itertools doesn't have anything to help either 2021-06-28 11:37:43 Arnavion (from last time you asked, but you ping-timeout'd without seeing it) 2021-06-28 11:38:28 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 11:39:02 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-28 11:41:36 --> DNH (~DNH@8.44.0.30) has joined ##rust 2021-06-28 11:42:04 kee Arnavion: Thanks. I haven't been able to find anything either. 2021-06-28 11:42:11 kee I guess I'll have to make one. 2021-06-28 11:44:31 <-- yuri6037 (~yuri6037@224.34.76.86.rev.sfr.net) has quit (Quit: yuri6037) 2021-06-28 11:49:28 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 11:53:20 <-- ubert1 (~Thunderbi@p200300ecdf259d13e6b318fffe838f33.dip0.t-ipconnect.de) has quit (Quit: ubert1) 2021-06-28 11:54:04 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-28 11:57:40 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 11:59:36 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (Ping timeout: 250 seconds) 2021-06-28 12:01:28 -- maex is now known as mstruebing 2021-06-28 12:02:03 --> twiclo (~twiclo@66.29.177.50.static.utbb.net) has joined ##rust 2021-06-28 12:02:35 <-- ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-06-28 12:04:39 cehteh anyone has good understanding of the regex lib (without me trying) ... are named captures appear in the numbered captures or are they mutally exclusive? 2021-06-28 12:05:35 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-28 12:12:34 <-- MarderIII (~MarderIII@2001:985:e889:1:d827:a614:8af:2d72) has quit (Quit: Leaving) 2021-06-28 12:14:16 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 272 seconds) 2021-06-28 12:14:16 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Read error: Connection reset by peer) 2021-06-28 12:14:50 --> neurocyte (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 12:14:50 <-- neurocyte (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 12:14:50 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 12:15:33 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 12:15:39 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 12:16:51 jbg cehteh: the docs are *really* clear about that 2021-06-28 12:17:05 jbg "The 0th capture always corresponds to the entire match. Each subsequent index corresponds to the next capture group in the regex. If a capture group is named, then the matched string is also available via the name method." 2021-06-28 12:17:21 jbg it took me less time to find that than it took me to type "the docs are *really* clear about that" 2021-06-28 12:17:36 cehteh doh .. i overseen that 2021-06-28 12:21:50 --> swistak (~swistak@185.21.216.141) has joined ##rust 2021-06-28 12:23:58 --> whereistejas (~whereiste@182.48.252.191) has joined ##rust 2021-06-28 12:24:49 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 12:26:30 Tv_ cehteh: as a fellow english-as-second-language person, overlooked; oversee means to manage, keep track of, supervise 2021-06-28 12:26:56 cehteh haha ok :) 2021-06-28 12:28:46 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-28 12:29:49 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 12:30:51 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-28 12:31:14 pounce So I'd like to sort a vec by a key function `fn(&T) -> Result`, failing if an error is occured. is there any way to do this idiomatically? 2021-06-28 12:31:49 pounce I'm thinking I could transform it into an iterator, map to a tuple of the value and key, collect back into a result, sort, and map out the key, but that seems inefficient and silly 2021-06-28 12:32:17 jbg you want to handle the failure gracefully, like, return a Result from the fn that is doing this? 2021-06-28 12:32:24 pounce yeah 2021-06-28 12:32:27 bertptrs sort_by_key, with a lambda that sets an external flag if it ever fails 2021-06-28 12:32:33 jbg yeah 2021-06-28 12:32:59 Tv_ that wouldn't do early abort though 2021-06-28 12:33:03 pounce yeah 2021-06-28 12:33:05 jbg and returns some ostensibly-valid sort key, but then you check the flag after and fail 2021-06-28 12:33:10 jbg is early abort important? 2021-06-28 12:33:13 jbg it wasn't mentioned 2021-06-28 12:33:46 pounce i suppose it doesn't seem very graceful, but a solution nonetheless 2021-06-28 12:33:56 jbg early abort means a Result-aware sort_by_key which doesn't exist in std 2021-06-28 12:34:09 pounce or collecting a few times 2021-06-28 12:34:09 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-28 12:34:32 bertptrs you could copy the current sort code and adapt it as needed, but that's even less elegant. Beautiful as Orson Peters' code is 2021-06-28 12:34:58 j`ey bertptrs: any relation? :P 2021-06-28 12:35:18 bertptrs not that I'm aware of but I have met the guy 2021-06-28 12:39:00 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-28 12:42:06 --> Hazza (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has joined ##rust 2021-06-28 12:46:23 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 12:47:10 Midjak Hi ! Is there something to iterate by group of n elements from an iterator ? returning an iterator on each 5 elements by instance 2021-06-28 12:47:38 bertptrs chunks() and chunks_exact respectively 2021-06-28 12:48:31 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-06-28 12:48:53 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-28 12:49:04 Midjak thanks bertptrs I am looking this 2021-06-28 12:49:19 j`ey thats on a slice not an iterator 2021-06-28 12:49:26 <-- currybullen (~curry@h-81-170-128-138.A258.priv.bahnhof.se) has left ##rust (WeeChat 3.2) 2021-06-28 12:49:32 Midjak hum yes 2021-06-28 12:49:40 bertptrs ah I forget, that makes sense 2021-06-28 12:49:43 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Client Quit) 2021-06-28 12:49:47 <-- DNH (~DNH@8.44.0.30) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 12:49:50 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-28 12:50:43 bertptrs itertools has batching, maybe you want that? 2021-06-28 12:50:50 --> DNH (~DNH@2a09:bac0:67::82c:1e) has joined ##rust 2021-06-28 12:51:01 Midjak well I am starting from a vector so it's good 2021-06-28 12:51:07 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-28 12:51:49 bertptrs good, because batching did something diff3erent. itertools::chunks appears to do what's asked 2021-06-28 12:51:54 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Client Quit) 2021-06-28 12:52:14 Midjak yes I saw that in my search result earlier 2021-06-28 12:52:18 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-28 12:52:40 Midjak I going to try from slice and switch to itertools if needed 2021-06-28 12:53:32 --> neurocyte (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 12:53:32 <-- neurocyte (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 12:53:32 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 12:55:09 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-28 12:56:16 <-- DNH (~DNH@2a09:bac0:67::82c:1e) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 12:57:14 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-06-28 12:57:48 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-06-28 12:58:10 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-06-28 12:58:56 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-28 13:00:56 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 13:01:34 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-28 13:03:40 --> DNH (~DNH@2a09:bac0:48::82b:7a06) has joined ##rust 2021-06-28 13:04:25 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-28 13:10:53 <-- whereistejas (~whereiste@182.48.252.191) has quit (Quit: Connection closed) 2021-06-28 13:11:32 <-- death916 (~death916@user/death916) has quit (Ping timeout: 258 seconds) 2021-06-28 13:12:08 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 272 seconds) 2021-06-28 13:20:58 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 13:21:38 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 272 seconds) 2021-06-28 13:23:22 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 13:23:45 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-28 13:24:12 <-- DNH (~DNH@2a09:bac0:48::82b:7a06) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 13:24:41 --> Sherin (~Sherin@184.22.66.254) has joined ##rust 2021-06-28 13:28:26 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 13:28:36 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 13:30:04 <-- Sherin (~Sherin@184.22.66.254) has quit (K-Lined) 2021-06-28 13:31:33 <-- twiclo (~twiclo@66.29.177.50.static.utbb.net) has quit (Ping timeout: 265 seconds) 2021-06-28 13:32:13 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-28 13:32:13 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-28 13:32:14 --> death916 (~death916@user/death916) has joined ##rust 2021-06-28 13:33:46 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 13:34:21 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-28 13:34:47 --> Narrat (~omnius@p200300df5f3a682506ea56fffe2e7cdc.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 13:35:34 --> DNH (~DNH@2a09:bac0:48::82b:7a06) has joined ##rust 2021-06-28 13:37:44 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-28 13:45:44 --> dwt_ (~dwt_@c-98-200-58-177.hsd1.tx.comcast.net) has joined ##rust 2021-06-28 13:53:37 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 256 seconds) 2021-06-28 13:55:40 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-28 13:56:32 --> ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 14:00:16 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 14:02:48 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 252 seconds) 2021-06-28 14:04:23 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-28 14:04:57 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-28 14:07:07 --> jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-28 14:07:25 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-28 14:09:04 --> jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has joined ##rust 2021-06-28 14:09:16 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-28 14:09:36 <-- ubert (~Thunderbi@p200300ecdf259d13a4bb62e26735ec02.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-28 14:09:47 --> jhulten__ (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-28 14:11:14 <-- jhulten (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 252 seconds) 2021-06-28 14:13:38 <-- jhulten_ (jhulten@gateway/vpn/protonvpn/jhulten) has quit (Ping timeout: 258 seconds) 2021-06-28 14:13:39 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-28 14:13:56 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Ping timeout: 268 seconds) 2021-06-28 14:16:37 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 14:17:43 <-- austy (~austy@212-166-59-246.win.be) has quit (Quit: WeeChat 3.1) 2021-06-28 14:21:27 georgemp is it considered ok to use +nightly to produce release builds? i understand that new featuers are tested out in the nightlies, but, does that mean i could potentially end up with incorrectly compiled code (i am assuming not here)? 2021-06-28 14:22:10 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-06-28 14:22:35 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-28 14:22:56 j`ey georgemp: it's unlikely 2021-06-28 14:23:10 j`ey but even the stable compilers can create incorrect code.. 2021-06-28 14:23:21 bwidawsk Is there a design pattern for printing things differently based on say output type, json vs. human readable, or debug vs. non-debug? 2021-06-28 14:24:01 georgemp j`ey: thanks. not something i should particularly worry about i guess (unless i see some issue) 2021-06-28 14:24:10 j`ey yup 2021-06-28 14:24:40 -- jhulten__ is now known as jhulten 2021-06-28 14:25:09 --> twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has joined ##rust 2021-06-28 14:25:17 GreenJello bwidawsk, you typically implement a trait for each 2021-06-28 14:25:26 GreenJello Debug, serde::Serialize, etc. 2021-06-28 14:25:41 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 265 seconds) 2021-06-28 14:26:53 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 272 seconds) 2021-06-28 14:27:11 GreenJello if it doesn't fit into an existing trait, then define your own. If you need code to be generic over the output type, you can use an enum of output types, and a function that matches on that to produce a string 2021-06-28 14:27:16 bwidawsk GreenJello: as an example, my application has a command to generate a list of things. When --json is passed, I want the list to be printed as JSON. Obviously, I can use an if/else or match for that, but there are several places in ymy app for stuff like this 2021-06-28 14:28:01 Sobek Firefox has a few head-aches due to non stabilised yet features they need, iirc, specifically beacuse they have good reasons not to use a nightly. 2021-06-28 14:28:08 bwidawsk GreenJello: yeah, the function/enum was where I was going, but I'd need to pass the globalstate, and type with each call 2021-06-28 14:28:11 bwidawsk seems like a lot of typing 2021-06-28 14:28:36 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-28 14:28:38 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-28 14:28:50 --> maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-197.mrsn.at) has joined ##rust 2021-06-28 14:29:48 <-- maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-197.mrsn.at) has quit (Read error: Connection reset by peer) 2021-06-28 14:30:37 georgemp Sobek: hmm...hopefully, i don't run into those :) it looks like i need to use nightly for iOS builds (to add the static library to a xcframework - https://github.com/rust-lang/rust/issues/79408 ) 2021-06-28 14:30:37 lambda bwidawsk: if possible, produce the strings only at the top level, and use properly typed objects everywhere else 2021-06-28 14:32:02 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 14:32:20 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 272 seconds) 2021-06-28 14:32:39 <-- luca0N (~luca0N@nautilus.luca0n.com) has quit (Remote host closed the connection) 2021-06-28 14:33:57 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 14:34:18 bwidawsk lambda: not sure I follow how to do it.. Here's a small example 2021-06-28 14:34:19 bwidawsk if let Some(matches) = matches.subcommand_matches("info") { 2021-06-28 14:34:21 bwidawsk let memdev = memdev!(matches.value_of("dev").unwrap()); 2021-06-28 14:34:23 bwidawsk let cmds = memdev.get_commands()?; 2021-06-28 14:34:25 bwidawsk serialized = serde_json::to_string_pretty(&cmds).unwrap(); 2021-06-28 14:34:27 bwidawsk } 2021-06-28 14:34:58 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 14:35:45 bwidawsk I want either serde version, or the raw vec printed - and I have this pattern throughout the app 2021-06-28 14:35:55 bwidawsk so what would the advice here be? 2021-06-28 14:39:39 --> Asmodean (~Asmoedean@178.115.128.129.wireless.dyn.drei.com) has joined ##rust 2021-06-28 14:40:47 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-28 14:41:00 georgemp bwidawsk: something on these lines might work - 1. define a trait MyPrinter with a `fn print(&cmd)`. 2. Define objects that implements the trait JsonPrinter: MyPrinter, RawVecPrinter: MyPrinter. 3. Store a dyn trait object at a place that is accesible to the call site at `serialized=`. 2021-06-28 14:41:24 georgemp 4. call that dyn trait object instead of directly calling serde_json 2021-06-28 14:42:05 --> Guest21 (~Guest21@modemcable054.186-21-96.mc.videotron.ca) has joined ##rust 2021-06-28 14:42:13 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-28 14:42:22 <-- Guest21 (~Guest21@modemcable054.186-21-96.mc.videotron.ca) has quit (Client Quit) 2021-06-28 14:42:37 georgemp there may be better approaches to this :) 2021-06-28 14:43:05 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-28 14:43:35 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-28 14:43:42 bwidawsk georgemp: thanks. I'll think about that. It would seem there should be a simpler way to do this 2021-06-28 14:45:16 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-28 14:45:22 --> maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-197.mrsn.at) has joined ##rust 2021-06-28 14:46:23 bwidawsk I guess at least if I use a function like GreenJello was saying, I can use a global there... 2021-06-28 14:46:52 ec Did insert on Option used to take 2 arguments? 2021-06-28 14:47:00 georgemp is it possible for me to examine (easily) the spec for an existing target tuple? i'd like to make a custom .json, but, it would be easier if i could base it off an existing entry for the same architecture 2021-06-28 14:48:10 j`ey georgemp: --print-cfg 2021-06-28 14:48:19 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-28 14:48:30 j`ey sorry, --print cfg 2021-06-28 14:49:27 georgemp j`ey: is that a cargo/rustc command? 2021-06-28 14:49:48 <-- DNH (~DNH@2a09:bac0:48::82b:7a06) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 14:51:07 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-28 14:51:51 georgemp `rustc --print cfg` shows me some values for my current arch (i think). I'd like to see the values for a diff arch (x86_64-apple-ios), so that i can create a new target.json (like here https://github.com/rust-lang/rust/issues/79408#issue-750675820) 2021-06-28 14:51:54 Alexendoo ec: what would the second arg be? 2021-06-28 14:53:05 ec Alexendoo: in the code I'm seeing, they're calling "error.insert(variant, |_| panic!("Only one #[error] variant can be declared."));" 2021-06-28 14:53:36 j`ey georgemp: so pass --target 2021-06-28 14:53:36 bertptrs ec: got a link to that code? 2021-06-28 14:54:10 j`ey georgemp: and it's actually --print target-spec-json 2021-06-28 14:54:30 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 14:55:00 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 14:55:49 ec bertptrs: https://docs.rs/logos-derive/0.7.7/src/logos_derive/lib.rs.html#1-223 2021-06-28 14:56:00 <-- printf (~printf@user/printf) has quit (Read error: Connection reset by peer) 2021-06-28 14:56:19 --> printf (~printf@user/printf) has joined ##rust 2021-06-28 14:57:50 <-- printf (~printf@user/printf) has quit (Remote host closed the connection) 2021-06-28 14:58:15 bertptrs ec: seems they include their own "OptionExt" trait that adds this two-argument variant 2021-06-28 14:58:34 --> printf (~printf@user/printf) has joined ##rust 2021-06-28 14:59:15 bertptrs also this version is kinda old 2021-06-28 14:59:24 bertptrs old enough to break docs.rs 2021-06-28 14:59:26 georgemp j`ey: thanks..examining the rustc options led me to that as well `rustc +nightly -Z unstable-options --print target-spec-json --target x86_64-apple-ios` :) 2021-06-28 15:00:32 ec bertptrs: The reason I'm asking is it fails to build on rust 1.53 but builds fine on 1.46, a far downstream dependency for a crate I'm using 2021-06-28 15:00:50 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-28 15:01:13 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 15:01:22 j`ey ec: what error do you get? 2021-06-28 15:01:34 bertptrs that's because the regular insert method was added in 1.53 which means you now need a cast to avoid conflict 2021-06-28 15:01:40 j`ey ah 2021-06-28 15:02:44 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-28 15:03:41 ec How do I visualize a dependency graph with cargo? I'll trying bumping the root and see if it pulls in a more recent version of logos-derive 2021-06-28 15:03:47 bertptrs cargo tree 2021-06-28 15:06:15 ec Cargo's amazing. Thanks for the help 2021-06-28 15:06:25 bertptrs happy to. Good luck! 2021-06-28 15:08:29 <-- maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-197.mrsn.at) has quit (Ping timeout: 268 seconds) 2021-06-28 15:11:36 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-06-28 15:11:44 --> dark-knight (~dark-knig@2a02:8388:1984:a800:f553:cc23:d889:8bbc) has joined ##rust 2021-06-28 15:12:39 <-- Fairy (~Fairy@2001:464a:4992:0:54d4:8016:c226:8e2a) has quit (Read error: Connection reset by peer) 2021-06-28 15:15:20 <-- tsdh (~user@j289989.servers.jiffybox.net) has quit (Quit: Goodbye) 2021-06-28 15:18:54 --> kwilczynski (sid379192@user/kwilczynski) has joined ##rust 2021-06-28 15:19:16 --> Fairy (~Fairy@2001:464a:4992:0:acc9:cc3e:a2d:31e2) has joined ##rust 2021-06-28 15:19:46 --> Gaba (~admin@122.14.229.62) has joined ##rust 2021-06-28 15:20:40 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 250 seconds) 2021-06-28 15:20:42 <-- Gaba_ (~admin@122.14.229.62) has quit (Ping timeout: 272 seconds) 2021-06-28 15:22:16 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 15:23:10 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-28 15:23:55 <-- fkrauthan (~fkrauthan@user/fkrauthan) has quit (Quit: ZNC - https://znc.in) 2021-06-28 15:24:31 --> fkrauthan (~fkrauthan@user/fkrauthan) has joined ##rust 2021-06-28 15:27:40 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-06-28 15:27:46 --> DNH (~DNH@8.43.122.6) has joined ##rust 2021-06-28 15:28:04 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-28 15:31:04 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 250 seconds) 2021-06-28 15:31:39 --> sh9 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-06-28 15:32:17 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-28 15:32:23 <-- DNH (~DNH@8.43.122.6) has quit (Ping timeout: 265 seconds) 2021-06-28 15:33:36 --> ubert (~Thunderbi@p548c937f.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 15:33:54 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-28 15:36:42 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 250 seconds) 2021-06-28 15:37:18 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-28 15:40:41 --> neurocyte (~neurocyte@92.119.8.247) has joined ##rust 2021-06-28 15:40:41 <-- neurocyte (~neurocyte@92.119.8.247) has quit (Changing host) 2021-06-28 15:40:41 --> neurocyte (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 15:44:21 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 15:45:47 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-28 15:45:58 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-28 15:47:14 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 15:49:53 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-28 15:52:22 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 272 seconds) 2021-06-28 15:52:33 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-28 15:53:11 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 15:53:22 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 15:54:16 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-28 15:54:49 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 15:55:58 <-- dcz_ (~dcz@dynamic-093-135-156-226.93.135.pool.telefonica.de) has quit (Ping timeout: 268 seconds) 2021-06-28 15:56:08 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 15:56:20 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-28 15:56:35 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-28 15:57:12 <-- Narrat (~omnius@p200300df5f3a682506ea56fffe2e7cdc.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-06-28 15:57:50 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-28 15:58:37 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-28 16:00:52 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-06-28 16:02:07 --> Narrat (~omnius@p200300df5f3a682506ea56fffe2e7cdc.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 16:10:20 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-28 16:11:40 <-- mmmnnn (~mmmnnn@185.207.166.75) has quit (Ping timeout: 268 seconds) 2021-06-28 16:12:43 <-- histrio (~histrio@109.234.34.168) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 16:13:07 --> histrio (~histrio@109.234.34.168) has joined ##rust 2021-06-28 16:13:53 --> Gaba_ (~admin@122.14.229.62) has joined ##rust 2021-06-28 16:15:09 <-- Hazza (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has quit (Quit: Haxxa flies away.) 2021-06-28 16:15:47 <-- Gaba (~admin@122.14.229.62) has quit (Read error: Connection reset by peer) 2021-06-28 16:15:48 <-- cehteh (~ct@i59F72C79.versanet.de) has quit (Ping timeout: 272 seconds) 2021-06-28 16:16:00 --> cehteh (~ct@i6DFA8E2C.versanet.de) has joined ##rust 2021-06-28 16:16:05 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 16:17:23 --> Haxxa (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has joined ##rust 2021-06-28 16:18:47 --> luca0N (~luca0N@nautilus.luca0n.com) has joined ##rust 2021-06-28 16:19:11 -- luca0N is now known as Guest6483 2021-06-28 16:19:48 -- Guest6483 is now known as luca0N 2021-06-28 16:23:52 <-- anchorite (~anchorite@95.111.56.99) has quit (Remote host closed the connection) 2021-06-28 16:24:30 --> i3d (~i3dmaster@c-73-42-171-203.hsd1.wa.comcast.net) has joined ##rust 2021-06-28 16:26:36 i3d if I have let s1 = String::from("foo"); and then let s2 = s1; the ownership would be moved from s1 to s2 given the understanding that s2 now will own the same piece of memory of that string data, but if I print the pointer of s1 and s2, they aren't really having the same addresses, I suspect that whether I am actaully printing the address of the string data? Or is there a way to do that? 2021-06-28 16:27:03 j`ey i3d: try s2.as_ptr(); 2021-06-28 16:27:21 i3d you mean print that value? 2021-06-28 16:27:23 j`ey yeah 2021-06-28 16:27:29 i3d ok, let me try it 2021-06-28 16:28:23 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-28 16:28:38 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-28 16:29:26 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-06-28 16:30:25 i3d j`ey: awesome, thank you for the trick. so as_ptr is the way to print the pointer to the data. May I as what's the address I printed out with just &s1 or &s2? 2021-06-28 16:31:14 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-28 16:31:32 j`ey i3d: that's the part of the String that is uh 2021-06-28 16:31:40 j`ey i3d: contains the pointer? 2021-06-28 16:32:07 i3d j`ey: sorry what? I didn't really follow 2021-06-28 16:32:07 j`ey String is struct String { chars: ptr } (not exactly, but close enough) 2021-06-28 16:32:15 i3d sure 2021-06-28 16:32:19 <-- zhamm_ (~zhamm@unbutte.red) has quit (Quit: leaving) 2021-06-28 16:32:20 j`ey so &s1 is the address of that struct, and as_ptr() is the chars ptr 2021-06-28 16:32:28 i3d ah ... got it 2021-06-28 16:32:45 i3d so what I printed is the addresses of the two different String structs 2021-06-28 16:33:02 j`ey yeah 2021-06-28 16:34:30 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-28 16:38:55 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 258 seconds) 2021-06-28 16:43:28 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 16:47:52 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-28 16:49:39 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-28 16:50:07 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 16:52:29 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 16:52:31 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 16:52:59 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 16:56:02 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-28 16:58:37 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:f553:cc23:d889:8bbc) has quit (Read error: Connection reset by peer) 2021-06-28 16:58:48 --> bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has joined ##rust 2021-06-28 16:58:53 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 16:59:13 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-28 16:59:31 --> FlyingWaffle (~FlyingWaf@216.156.220.118.ptr.us.xo.net) has joined ##rust 2021-06-28 16:59:36 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:01:17 <-- ryzendapgh (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-06-28 17:02:34 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 268 seconds) 2021-06-28 17:03:50 <-- anchorite (~anchorite@95.111.56.99) has quit (Remote host closed the connection) 2021-06-28 17:06:43 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 17:07:48 davros i kind of want a 'const' on a field... i suppose you'd have to do that just making it priv and using an accessor 2021-06-28 17:08:37 davros kind of inverse of C++'s mutable workaround for consts... a const field that makes something immutable reached from &mut 2021-06-28 17:08:46 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-28 17:09:01 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-28 17:10:24 davros originally what I had done is a pair of context variables (read, read/write) basically. in one system, these were a tuple (someone says yuk), in another, a pair of parameters. (doubles up the amount of vars in the scope). I'm trying this "stuff them all in one place" approach. Some parts of that are refs to immutable stuff (that works fine), but it would be clearer to indicate that those refs themselves should not change. 2021-06-28 17:10:35 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-06-28 17:11:34 davros i suppose a newtype wrapping any system , mutable, could give mutable/immutable views over subsets as needed (i've gone and bundled up some refs) 2021-06-28 17:17:23 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-28 17:18:16 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:18:19 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Read error: Connection reset by peer) 2021-06-28 17:20:38 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 17:20:57 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:22:57 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-28 17:25:05 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Remote host closed the connection) 2021-06-28 17:26:07 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 272 seconds) 2021-06-28 17:27:31 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 17:28:00 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-28 17:30:20 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-06-28 17:30:26 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-06-28 17:31:23 <-- chronon (~chronon@user/chronon) has quit (Client Quit) 2021-06-28 17:31:53 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:31:54 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:ac06:25a4:7233:bcc6) has quit (Remote host closed the connection) 2021-06-28 17:32:50 --> chronon (~chronon@user/chronon) has joined ##rust 2021-06-28 17:33:29 Tv_ anyone have a brilliant idea how to get the moral equivalent of a build id for a *library* not just the main binary? use case: i have an internal protocol that is tightly controlled in production and thus doesn't need versioning, but in testing i sometimes accidentally run components with different source code edits against each other. 2021-06-28 17:33:57 Tv_ and git describe's --dirty isn't quite enough to prevent me from wasting time debugging in development 2021-06-28 17:34:39 Tv_ i used to hash the executable, but that fails when i want to use a small stub client to poke things manually 2021-06-28 17:36:06 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-28 17:41:25 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 268 seconds) 2021-06-28 17:42:52 <-- ubert (~Thunderbi@p548c937f.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-06-28 17:43:01 Tv_ hrmm let's see if build.rs setting an env var to random value works well enough 2021-06-28 17:45:30 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 17:45:58 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:45:58 j`ey HashMap::new(), can it be const ever? Or is it not possible due to RandomState? 2021-06-28 17:46:58 Tv_ i'm not afraid of reaching for getrandom 2021-06-28 17:47:11 Tv_ what i am not 100% familiar with is exactly when build.rs runs etc 2021-06-28 17:47:14 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 265 seconds) 2021-06-28 17:48:20 i3d after [&str].iter().filter(some_closure).collect() It appears that I no longer able to just .join(" ") the result anymore... 2021-06-28 17:48:42 j`ey i3d: whats the error? 2021-06-28 17:48:48 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Excess Flood) 2021-06-28 17:49:02 i3d something like trait bound not satisfied 2021-06-28 17:49:14 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:49:23 i3d <[&&str] as Join<_>>::Output = _ 2021-06-28 17:49:27 j`ey try collect::>() 2021-06-28 17:49:35 i3d try that too 2021-06-28 17:49:40 j`ey i3d: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018 2021-06-28 17:49:52 Alexendoo with_hasher is const in hashbrown 2021-06-28 17:50:13 j`ey Alexendoo: interesting 2021-06-28 17:52:00 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Quit: WeeChat 3.2) 2021-06-28 17:52:01 i3d j`ey: ok on the playground 2021-06-28 17:52:26 i3d j`ey: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c56bf0084e5f764dd0682eff1eb8482a 2021-06-28 17:52:39 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 17:52:51 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Read error: Connection reset by peer) 2021-06-28 17:52:51 <-- Arahael (~arahael@120.88.166.123) has quit (Ping timeout: 268 seconds) 2021-06-28 17:53:34 j`ey ugh, that's kinda ugly actually 2021-06-28 17:53:40 Alexendoo I can't imagine new would ever be const though, it wouldn't be protected against hashdos if you had access to the binary 2021-06-28 17:53:40 j`ey https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1b1501b2f867a4858ba9bdd33037dcaf 2021-06-28 17:53:42 i3d with all that transformation the type has changed from [&str] to Vec<&&str> though. looks like the filter call added another & ther 2021-06-28 17:54:07 j`ey i3d: it's not the filter 2021-06-28 17:54:21 j`ey i3d: iter() on that array is iterating over &&str 2021-06-28 17:54:22 i3d j`ey: hm... another map. 2021-06-28 17:54:31 i3d j`ey: just to remove the & 2021-06-28 17:54:34 j`ey i3d: yeah 2021-06-28 17:55:15 -- Gustavo6046_ is now known as Gustavo6046 2021-06-28 17:55:20 i3d oh I see... so iter on & of &str... 2021-06-28 17:55:37 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-28 17:55:51 j`ey i3d: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b8c342d93340730ea15ca3ffee02697e 2021-06-28 17:56:11 i3d wish the compiler would be smart to say ok it's a ref already, just use it... 2021-06-28 17:56:40 --> Gaba (~admin@122.14.229.62) has joined ##rust 2021-06-28 17:56:55 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 17:58:21 <-- Gaba_ (~admin@122.14.229.62) has quit (Ping timeout: 268 seconds) 2021-06-28 17:59:19 <-- Narrat (~omnius@p200300df5f3a682506ea56fffe2e7cdc.dip0.t-ipconnect.de) has quit (Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.) 2021-06-28 18:01:11 --> neurocyte3 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 18:01:43 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 258 seconds) 2021-06-28 18:02:12 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 18:02:12 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Ping timeout: 272 seconds) 2021-06-28 18:02:12 -- neurocyte3 is now known as neurocyte 2021-06-28 18:02:24 <-- Danishman (~Allan@62-243-156-218-static.dk.customer.tdc.net) has quit (Quit: Leaving) 2021-06-28 18:04:13 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 18:06:11 --> pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has joined ##rust 2021-06-28 18:08:56 <-- rglu (~rglu@2603-8090-2006-7fc6-ed48-3002-76bc-6daa.res6.spectrum.com) has quit (Quit: leaving) 2021-06-28 18:09:44 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-28 18:10:56 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-28 18:10:58 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-06-28 18:11:23 kupi is there a prettier way to write this two liner? https://gist.github.com/theqp/7e89a6f0c6e7ab2ca06f3eeed607901e 2021-06-28 18:11:44 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 18:15:30 GreenJello _ instead of _x 2021-06-28 18:16:53 kupi GreenJello: thanks, I wish the compiler suggested that 2021-06-28 18:17:10 tomboy64 ugh 2021-06-28 18:17:41 tomboy64 i just noticed LinkedList::remove() is marked as experimental/nightly-only 2021-06-28 18:18:01 GreenJello _bytes would also be a good name. The compiler doesn't know that _x carries no meaning 2021-06-28 18:18:42 tomboy64 i need to maintain a priority queue and remove random elements efficiently while preserving the original order, while new elements only get appended to the end 2021-06-28 18:18:56 tomboy64 suggestions how to achieve that? 2021-06-28 18:19:15 tomboy64 hmmm. maybe Vec>? 2021-06-28 18:20:42 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-28 18:21:40 GreenJello yeah, I don't know of any ordered collections with efficient random access deletion, unless you leave holes which Vec> lets you do 2021-06-28 18:24:59 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 18:25:12 --> meandi (~meandi4@dyndsl-178-142-250-041.ewe-ip-backbone.de) has joined ##rust 2021-06-28 18:25:29 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-28 18:25:48 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 18:26:10 kupi let x = ... means is that both the variable x is immutable and the value too? 2021-06-28 18:26:36 GreenJello it means you can't borrow 'x' mutably 2021-06-28 18:26:39 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 18:27:00 GreenJello you could still move it into a variable/argument that has a `mut` 2021-06-28 18:27:29 GreenJello let mut y = x; y.takes_mut_ref() 2021-06-28 18:27:52 kupi but after that I can't use x because it is borrowed? 2021-06-28 18:28:10 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-28 18:28:18 GreenJello because it's moved (assuming it doesn't impl Copy) 2021-06-28 18:29:46 kupi so the meaning of x cannot change in a scope unless I shadow it? 2021-06-28 18:30:01 GreenJello correct 2021-06-28 18:31:04 <-- Mooncairn (~mooncairn@user/mooncairn) has quit (Quit: Quitting) 2021-06-28 18:33:07 --> Gaba_ (~admin@122.14.229.62) has joined ##rust 2021-06-28 18:34:27 <-- Gaba (~admin@122.14.229.62) has quit (Ping timeout: 268 seconds) 2021-06-28 18:34:37 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-28 18:34:54 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-28 18:35:18 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 18:36:09 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 18:36:48 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 272 seconds) 2021-06-28 18:36:49 --> normalperson (~sphinx@user/businessclass) has joined ##rust 2021-06-28 18:36:57 normalperson THIS 2021-06-28 18:37:26 la_mettrie was? 2021-06-28 18:39:31 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-06-28 18:39:39 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-28 18:40:37 <-- rx80 (~quassel@user/rx80) has quit (Ping timeout: 268 seconds) 2021-06-28 18:41:06 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 252 seconds) 2021-06-28 18:42:01 <-- Fairy (~Fairy@2001:464a:4992:0:acc9:cc3e:a2d:31e2) has quit (Read error: Connection reset by peer) 2021-06-28 18:46:27 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 268 seconds) 2021-06-28 18:48:20 tomboy64 meh 2021-06-28 18:48:28 tomboy64 unsatisfying state of affairs 2021-06-28 18:50:36 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-28 18:50:52 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-28 18:54:17 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 18:56:38 habnabit_ kupi, do you not need to make it a move closure? 2021-06-28 18:59:04 <-- Celeo (~Celeo@user/celeo) has quit (Read error: Connection reset by peer) 2021-06-28 18:59:32 kupi habnabit_: why would I? 2021-06-28 18:59:53 kupi oh wait it is used in map 2021-06-28 19:00:12 kupi weirdly it compiles 2021-06-28 19:00:13 habnabit_ kupi, yeah, in the map, you seem to be trying to move the String to return a String 2021-06-28 19:00:24 <-- bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has quit (Quit: Leaving) 2021-06-28 19:00:33 habnabit_ i wonder why that's legal to omit the move 2021-06-28 19:00:54 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-28 19:01:06 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 19:01:58 habnabit_ huh, yeah https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c5ab31ec33c95dc686cd8b15eb37a378 2021-06-28 19:02:29 kupi habnabit_: i think i got it 2021-06-28 19:02:38 kupi the function which receives map implements FnOnce 2021-06-28 19:02:47 kupi which means the function will only be called once 2021-06-28 19:03:05 kupi *which map receives 2021-06-28 19:03:07 SpaceManiac you don't need `move` if the compiler can tell from how you use the variable 2021-06-28 19:03:09 habnabit_ hm. so a FnOnce closure can omit move? 2021-06-28 19:03:12 habnabit_ SpaceManiac, ah 2021-06-28 19:03:24 SpaceManiac it's not tied directly to Fn/FnMut/FnOnce 2021-06-28 19:03:39 habnabit_ i thought it was required if you wante to move into a closure 2021-06-28 19:04:02 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 272 seconds) 2021-06-28 19:04:13 -- Gustavo6046_ is now known as Gustavo6046 2021-06-28 19:04:18 kupi > FnOnce is implemented automatically by closures that might consume captured variables, as well as all types that implement [FnMut], e.g., (safe) function pointers (since FnOnce is a supertrait of [FnMut]). 2021-06-28 19:04:57 SpaceManiac it's common that FnOnce coincides with a closure where the compiler knows to move without the `move` keyword 2021-06-28 19:05:52 SpaceManiac but it's based on the content of the closure, not what `map` accepts 2021-06-28 19:08:55 <-- EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-28 19:13:41 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-28 19:16:49 gggp what is interior mutability 2021-06-28 19:18:50 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 272 seconds) 2021-06-28 19:19:11 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 19:21:22 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 19:22:17 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-28 19:26:48 <-- lf (~quassel@p200300d21f003100022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-28 19:27:13 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving.) 2021-06-28 19:27:23 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-28 19:27:25 --> lf (~quassel@p200300d21f001500022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 19:31:48 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-06-28 19:31:48 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 258 seconds) 2021-06-28 19:32:13 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 19:32:22 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-28 19:32:36 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-28 19:33:05 <-- xnor (~xnor@97-120-127-196.ptld.qwest.net) has quit (Ping timeout: 265 seconds) 2021-06-28 19:33:16 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 19:34:03 --> EvanCarroll (~ecarroll@c-76-30-156-101.hsd1.tx.comcast.net) has joined ##rust 2021-06-28 19:35:26 --> explorier4 (~explorier@user/explorier) has joined ##rust 2021-06-28 19:36:26 --> UndeadLeech_ (~UndeadLee@165.227.76.134) has joined ##rust 2021-06-28 19:36:43 <-- explorier (~explorier@user/explorier) has quit (Read error: Connection reset by peer) 2021-06-28 19:36:43 -- explorier4 is now known as explorier 2021-06-28 19:38:09 <-- UndeadLeech (~UndeadLee@165.227.76.134) has quit (Ping timeout: 244 seconds) 2021-06-28 19:38:09 -- UndeadLeech_ is now known as UndeadLeech 2021-06-28 19:39:29 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-28 19:45:15 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 19:45:22 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 268 seconds) 2021-06-28 19:46:30 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 19:46:55 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 19:47:28 --> feldim2425_ (~feldim242@2002:c19a:ae1a:0:ba56:ea21:8ff6:ded6) has joined ##rust 2021-06-28 19:48:28 <-- emerent (~quassel@p200300cd5703bba5ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-28 19:48:34 <-- feldim2425 (~feldim242@178-191-253-8.adsl.highway.telekom.at) has quit (Ping timeout: 252 seconds) 2021-06-28 19:49:18 <-- biberu (~biberu@user/biberu) has quit (Quit: ZNC - https://znc.in) 2021-06-28 19:49:32 --> emerent (~quassel@p200300cd5703bb9dba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 19:51:01 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 19:51:39 --> biberu (~biberu@user/biberu) has joined ##rust 2021-06-28 19:52:10 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-28 19:52:26 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 19:55:54 --> marcel0 (~marcel@user/marcel) has joined ##rust 2021-06-28 19:56:12 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 19:56:14 <-- binkers (~binkers@user/binkers) has quit (Ping timeout: 244 seconds) 2021-06-28 19:56:26 <-- sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has quit (Read error: Permission denied) 2021-06-28 19:56:32 --> binkers (~binkers@user/binkers) has joined ##rust 2021-06-28 19:56:44 --> sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has joined ##rust 2021-06-28 19:56:45 <-- andytoshi (~apoelstra@s66-183-0-205.bc.hsia.telus.net) has quit (Ping timeout: 244 seconds) 2021-06-28 19:56:45 <-- Trollmann (~Trollmann@user/trollmann) has quit (Ping timeout: 244 seconds) 2021-06-28 19:56:54 --> andytoshi (~apoelstra@s66-183-0-205.bc.hsia.telus.net) has joined ##rust 2021-06-28 19:57:16 <-- Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:16 <-- bluss (~bluss@user/bluss) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:16 <-- DoubleAW (~DoubleAW@user/doubleaw) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:16 <-- manifolds_ (~manifolds@157.245.231.152) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:20 --> Trollmann (~Trollmann@user/trollmann) has joined ##rust 2021-06-28 19:57:37 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-28 19:57:41 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 19:57:42 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 19:57:46 <-- marcel (~marcel@user/marcel) has quit (Read error: Connection reset by peer) 2021-06-28 19:57:47 -- marcel0 is now known as marcel 2021-06-28 19:57:47 <-- s1b1 (~s1b1@user/s1b1) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:47 <-- mdf (mdf@hilla.kapsi.fi) has quit (Ping timeout: 244 seconds) 2021-06-28 19:57:56 --> mdf (mdf@hilla.kapsi.fi) has joined ##rust 2021-06-28 19:58:34 --> DoubleAW (~DoubleAW@user/doubleaw) has joined ##rust 2021-06-28 19:59:04 --> manifolds_ (~manifolds@157.245.231.152) has joined ##rust 2021-06-28 19:59:52 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 20:00:16 -- Gustavo6046 is now known as Gustavo60 2021-06-28 20:01:25 --> Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has joined ##rust 2021-06-28 20:02:32 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 20:02:47 <-- Gustavo60 (~Gustavo60@user/gustavo6046) has quit (Client Quit) 2021-06-28 20:03:26 --> bluss (~bluss@user/bluss) has joined ##rust 2021-06-28 20:05:04 <-- Asmodean (~Asmoedean@178.115.128.129.wireless.dyn.drei.com) has quit (Ping timeout: 272 seconds) 2021-06-28 20:06:27 --> Asmodean (~Asmoedean@77.119.201.202.wireless.dyn.drei.com) has joined ##rust 2021-06-28 20:10:12 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 252 seconds) 2021-06-28 20:10:51 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-28 20:14:58 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 268 seconds) 2021-06-28 20:14:58 <-- Haxxa (~Haxxa@89nnjg0xckz9ggn6r5xm.ip6.superloop.com) has quit (Ping timeout: 272 seconds) 2021-06-28 20:16:49 --> s1b1 (~s1b1@user/s1b1) has joined ##rust 2021-06-28 20:16:52 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-28 20:17:17 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-28 20:18:33 --> mr_ballon (uid294865@id-294865.brockwell.irccloud.com) has joined ##rust 2021-06-28 20:21:11 <-- zaszi (~zaszi@user/zaszi) has quit (Ping timeout: 252 seconds) 2021-06-28 20:21:40 --> qaph (~weechat@user/qaph) has joined ##rust 2021-06-28 20:24:30 <-- kron (~weechat@user/qaph) has quit (Ping timeout: 268 seconds) 2021-06-28 20:24:32 -- qaph is now known as kron 2021-06-28 20:25:46 <-- mwehner (~mwehner@li910-8.members.linode.com) has quit (Ping timeout: 265 seconds) 2021-06-28 20:26:37 --> mwehner (~mwehner@li910-8.members.linode.com) has joined ##rust 2021-06-28 20:31:51 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-28 20:34:26 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Ping timeout: 244 seconds) 2021-06-28 20:34:51 <-- sgift (~madison@2001:a61:35b8:2401:58eb:1b02:c0c6:c4c5) has quit (Ping timeout: 272 seconds) 2021-06-28 20:35:48 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 20:36:04 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 20:36:08 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-06-28 20:36:16 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 20:37:01 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-28 20:37:22 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 20:38:16 --> gggp (~textual@36.112.128.143) has joined ##rust 2021-06-28 20:40:31 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-28 20:41:20 <-- normalperson (~sphinx@user/businessclass) has quit (Quit: poweroff) 2021-06-28 20:43:12 <-- gggp (~textual@36.112.128.143) has quit (Ping timeout: 252 seconds) 2021-06-28 20:43:52 --> ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has joined ##rust 2021-06-28 20:45:59 --> OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-28 20:46:04 <-- FlyingWaffle (~FlyingWaf@216.156.220.118.ptr.us.xo.net) has quit (Ping timeout: 265 seconds) 2021-06-28 20:49:56 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-28 20:50:26 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 272 seconds) 2021-06-28 20:50:48 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-28 20:53:23 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-06-28 20:54:26 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-06-28 20:54:28 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 272 seconds) 2021-06-28 20:57:08 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 21:01:08 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 21:01:29 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-06-28 21:05:22 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-28 21:05:38 --> DNH (~DNH@8.43.122.6) has joined ##rust 2021-06-28 21:17:54 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 21:20:34 --> gggpkm_ (~gggpkm@36.112.134.194) has joined ##rust 2021-06-28 21:21:22 <-- pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has quit (Quit: Leaving) 2021-06-28 21:22:12 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-28 21:22:20 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 272 seconds) 2021-06-28 21:24:21 <-- rcbaus (~rcbaus@35.142.158.114) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-28 21:24:37 --> gggpkm (~gggpkm@106.37.74.209) has joined ##rust 2021-06-28 21:24:47 --> rcbaus (~rcbaus@35.142.158.114) has joined ##rust 2021-06-28 21:25:00 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-28 21:25:13 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Ping timeout: 265 seconds) 2021-06-28 21:25:53 <-- gggpkm_ (~gggpkm@36.112.134.194) has quit (Ping timeout: 268 seconds) 2021-06-28 21:29:18 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-28 21:33:28 -- OneFlyingWaffle is now known as FlyingWaffle 2021-06-28 21:33:54 <-- starblue (~juergen@dslb-094-220-116-102.094.220.pools.vodafone-ip.de) has quit (Ping timeout: 268 seconds) 2021-06-28 21:35:05 --> starblue (~juergen@dslb-088-078-097-111.088.078.pools.vodafone-ip.de) has joined ##rust 2021-06-28 21:35:38 <-- Gaba_ (~admin@122.14.229.62) has quit (Ping timeout: 272 seconds) 2021-06-28 21:35:41 --> gggpkm_ (~gggpkm@124.126.15.211) has joined ##rust 2021-06-28 21:36:02 --> Gaba_ (~admin@122.14.229.62) has joined ##rust 2021-06-28 21:38:50 <-- gggpkm (~gggpkm@106.37.74.209) has quit (Ping timeout: 268 seconds) 2021-06-28 21:39:17 <-- Gaba_ (~admin@122.14.229.62) has quit (Client Quit) 2021-06-28 21:42:48 <-- DNH (~DNH@8.43.122.6) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-28 21:43:39 --> sm2n_ (~sm2n@user/sm2n) has joined ##rust 2021-06-28 21:44:23 --> mpt (~tom@2a02:908:1862:49e0::5) has joined ##rust 2021-06-28 21:45:56 --> tims (~tims@193-82-247-42.tpgi.com.au) has joined ##rust 2021-06-28 21:46:16 <-- sm2n (~sm2n@user/sm2n) has quit (Ping timeout: 252 seconds) 2021-06-28 21:48:58 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Quit: Konversation terminated!) 2021-06-28 21:50:58 --> neurocyte4 (~neurocyte@212.232.83.109) has joined ##rust 2021-06-28 21:50:58 <-- neurocyte4 (~neurocyte@212.232.83.109) has quit (Changing host) 2021-06-28 21:50:58 --> neurocyte4 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-28 21:54:47 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Ping timeout: 258 seconds) 2021-06-28 21:54:47 -- neurocyte4 is now known as neurocyte 2021-06-28 21:56:43 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Quit: I think the heat wave melted my electronics) 2021-06-28 21:58:29 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-28 22:00:14 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-06-28 22:00:58 --> rx80 (~quassel@user/rx80) has joined ##rust 2021-06-28 22:02:16 <-- mpt (~tom@2a02:908:1862:49e0::5) has quit (Ping timeout: 268 seconds) 2021-06-28 22:07:18 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-06-28 22:07:56 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 272 seconds) 2021-06-28 22:13:55 -- gggpkm_ is now known as gggpkm 2021-06-28 22:15:56 Gaelan Anyone know if there are equivalents to std::io::{Write, Read} that have an associated error type instead of hard-coding io::Error? 2021-06-28 22:19:43 cehteh note that you can pass custom/generic errors with io::Error 2021-06-28 22:20:03 danieldg Gaelan: someone has likely written one, but I don't know of it 2021-06-28 22:20:42 Gaelan cehteh: right, I know that, and maybe it's the best solution; but mashing things into an Any when I could type it better makes me sad 2021-06-28 22:20:43 danieldg it's not a hard trait to write, but also not very widely useful 2021-06-28 22:20:54 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-28 22:21:06 <-- gggpkm (~gggpkm@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-06-28 22:21:09 danieldg you usually want a higher-level interface than bytes if you have custom errors anyway 2021-06-28 22:21:37 cehteh Gaelan: i meant io::ErrorKind::Other 2021-06-28 22:22:23 Arnavion Perhaps they meant Box instead of Any. It's not strongly-typed either way 2021-06-28 22:22:46 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-28 22:24:10 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-28 22:24:25 Gaelan Arnavion: yeah, my bad 2021-06-28 22:25:19 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-28 22:25:27 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 258 seconds) 2021-06-28 22:25:38 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 22:25:51 Gaelan in any case, I'll just write one myself; would just have used an existing standard one if it existed 2021-06-28 22:28:44 <-- tg (~tg@rockylinux/infra/tg) has quit (Quit: tg) 2021-06-28 22:36:50 --> gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has joined ##rust 2021-06-28 22:41:28 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-06-28 22:41:37 --> mpt (~tom@2a02:908:1862:49e0::5) has joined ##rust 2021-06-28 22:43:25 <-- Erutuon (~Erutuon@user/erutuon) has quit (Quit: WeeChat 2.8) 2021-06-28 22:43:48 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-28 22:45:40 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-28 22:46:40 <-- mpt (~tom@2a02:908:1862:49e0::5) has quit (Ping timeout: 268 seconds) 2021-06-28 22:47:02 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-28 22:48:14 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-28 22:50:25 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-28 22:57:12 <-- gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has quit (Quit: ZZZzzz…) 2021-06-28 22:58:02 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-06-28 23:00:36 --> gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has joined ##rust 2021-06-28 23:01:48 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 252 seconds) 2021-06-28 23:02:17 --> LtHummus (~lthummus@174-21-28-50.tukw.qwest.net) has joined ##rust 2021-06-28 23:02:59 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-28 23:03:19 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 268 seconds) 2021-06-28 23:04:59 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 23:10:41 --> gggpkm (~gggpkm@124.126.15.211) has joined ##rust 2021-06-28 23:12:32 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-28 23:12:48 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 252 seconds) 2021-06-28 23:14:23 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 23:15:28 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-28 23:15:50 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-28 23:16:13 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-28 23:22:47 <-- gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has quit (Quit: ZZZzzz…) 2021-06-28 23:23:40 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 268 seconds) 2021-06-28 23:25:17 --> gggpkm_ (~gggpkm@36.112.134.194) has joined ##rust 2021-06-28 23:26:04 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-28 23:26:40 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-28 23:27:40 --> gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has joined ##rust 2021-06-28 23:27:50 <-- gggpkm (~gggpkm@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-06-28 23:28:57 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-28 23:29:24 discipulus rk4: which book did you mention a few days ago? 2021-06-28 23:32:49 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-28 23:36:54 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-28 23:39:26 <-- gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has quit (Quit: ZZZzzz…) 2021-06-28 23:40:36 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-28 23:41:02 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 265 seconds) 2021-06-28 23:41:50 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-28 23:42:33 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-28 23:43:13 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-28 23:44:15 <-- Tv_ (uid62079@user/tv/x-3144562) has quit (Quit: Connection closed for inactivity) 2021-06-28 23:44:35 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-28 23:46:06 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 272 seconds) 2021-06-28 23:48:17 <-- mr_ballon (uid294865@id-294865.brockwell.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-28 23:50:22 --> meandi2 (~meandi4@dyndsl-178-142-255-227.ewe-ip-backbone.de) has joined ##rust 2021-06-28 23:54:30 <-- meandi (~meandi4@dyndsl-178-142-250-041.ewe-ip-backbone.de) has quit (Ping timeout: 268 seconds) 2021-06-28 23:54:36 <-- djapo (~archangel@user/djapo) has quit (Remote host closed the connection) 2021-06-28 23:55:09 <-- SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has quit (Remote host closed the connection) 2021-06-28 23:56:41 <-- SiegeLord (~sl@user/siegelord) has quit (Ping timeout: 258 seconds) 2021-06-28 23:58:17 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-28 23:58:39 <-- cjb (~cjb@user/cjb) has quit (Quit: brb) 2021-06-29 00:02:26 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-29 00:02:37 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 00:02:58 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-29 00:05:27 <-- darkapex (uid360049@user/darkapex) has quit (Quit: Connection closed for inactivity) 2021-06-29 00:07:25 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 258 seconds) 2021-06-29 00:07:48 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-29 00:08:37 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-29 00:10:31 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-29 00:12:17 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 00:17:45 <-- hendursaga (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-06-29 00:18:13 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-29 00:18:51 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-29 00:19:02 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 00:22:02 ssbr pin-project is fundamentally unsound, I think -- if you used pin-project and a competitor crate that did the same thing, but declared a field pinned in one and not the other, you'd be able to violate the pin guarantee. Does pin-project do anything special to prevent this? 2021-06-29 00:22:50 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 272 seconds) 2021-06-29 00:23:40 danieldg doesn't it impl Drop for you? 2021-06-29 00:23:43 ssbr Maybe it' something silly, like "syntactically, you can't really do #[pin_project] #[recursively_pinned] struct Foo {uh_oh: T }" 2021-06-29 00:23:52 danieldg two impls of Drop would error out 2021-06-29 00:24:31 ssbr danieldg: mmmm, that's a good point. And any trait which *didn't* implement drop for you would be unsafe already, because then it lets users define drop (and thus be able to access fields without the pin) 2021-06-29 00:24:38 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-29 00:24:55 ssbr so any conflicting trait would be unsafe by design already, even without this issue 2021-06-29 00:25:10 ssbr (which sort of resolves this: if you write dangerous traits, you get dangerous results!) 2021-06-29 00:25:23 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-29 00:26:39 ssbr thanks! 2021-06-29 00:27:37 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Quit: ChaiTRex) 2021-06-29 00:27:57 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-29 00:29:21 <-- noonien (~noonien@user/noonien) has quit (Quit: Ping timeout (120 seconds)) 2021-06-29 00:31:55 --> noonien (~noonien@user/noonien) has joined ##rust 2021-06-29 00:33:14 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-06-29 00:35:14 --> gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has joined ##rust 2021-06-29 00:49:36 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 00:50:25 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 00:56:24 <-- EvanCarroll (~ecarroll@c-76-30-156-101.hsd1.tx.comcast.net) has quit (Ping timeout: 272 seconds) 2021-06-29 00:56:35 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 00:57:11 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-29 00:59:29 --> trev (~trev@user/trev) has joined ##rust 2021-06-29 01:02:30 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 01:04:09 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-29 01:04:59 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-29 01:07:04 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-29 01:09:38 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 01:09:56 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 01:10:53 --> oaken-source (~oaken-sou@user/oaken-source) has joined ##rust 2021-06-29 01:11:50 oaken-source my cross-compiled rustc segfaults when trying to compile a native compiler. any tips? 2021-06-29 01:11:54 oaken-source rustc exited with signal: 11 2021-06-29 01:11:55 oaken-source error: could not compile `compiler_builtins` 2021-06-29 01:12:36 oaken-source I haven't yet figured out what's special about compiler_builtins that makes it crash there 2021-06-29 01:12:53 oaken-source and it's difficult to isolate that step of the build process 2021-06-29 01:13:00 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 01:20:22 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-29 01:21:02 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 01:22:16 --> dcz_ (~dcz@dynamic-002-243-153-127.2.243.pool.telefonica.de) has joined ##rust 2021-06-29 01:22:36 <-- gggpkm_ (~gggpkm@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-06-29 01:25:17 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 01:27:21 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 250 seconds) 2021-06-29 01:29:43 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 01:32:30 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 01:33:08 oaken-source maybe I should rebuild llvm 2021-06-29 01:33:44 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 01:34:01 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (Ping timeout: 256 seconds) 2021-06-29 01:35:18 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-06-29 01:38:29 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-29 01:44:30 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-06-29 01:46:46 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-29 01:48:57 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-29 01:49:07 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-29 01:50:02 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 01:54:23 <-- cjb (~cjb@user/cjb) has quit (Quit: end of day) 2021-06-29 01:54:55 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-29 01:55:06 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-06-29 01:55:53 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 265 seconds) 2021-06-29 02:05:49 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 02:07:35 --> EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has joined ##rust 2021-06-29 02:07:39 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-29 02:08:57 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-29 02:09:25 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-29 02:09:27 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 02:10:30 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 02:15:26 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-06-29 02:18:24 <-- gco (~gco@2601:647:5a00:524:cdac:b93c:e6a3:d714) has quit (Quit: ZZZzzz…) 2021-06-29 02:19:40 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 258 seconds) 2021-06-29 02:27:04 -- gggpkm_ is now known as gggpkm 2021-06-29 02:37:34 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 02:41:54 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-29 02:45:23 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-06-29 02:45:35 --> Fairy (~Fairy@2001:464a:4992:0:d9a:d5e9:381c:bc47) has joined ##rust 2021-06-29 02:45:44 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-29 02:48:22 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 02:48:53 <-- biberu (~biberu@user/biberu) has quit (Quit: ZNC - https://znc.in) 2021-06-29 02:54:31 --> biberu (~biberu@user/biberu) has joined ##rust 2021-06-29 02:56:23 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-29 02:56:51 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 02:57:18 <-- thing (~thing@user/thing) has quit (Remote host closed the connection) 2021-06-29 02:58:20 --> thing (~thing@user/thing) has joined ##rust 2021-06-29 02:59:14 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-29 02:59:54 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 03:01:37 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-06-29 03:01:55 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-29 03:04:51 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-29 03:05:17 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-29 03:06:00 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-06-29 03:09:50 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-06-29 03:11:06 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-29 03:18:23 <-- thing (~thing@user/thing) has quit (Quit: thing) 2021-06-29 03:19:07 --> thing (~thing@user/thing) has joined ##rust 2021-06-29 03:27:43 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-06-29 03:29:11 <-- neurocyte (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-29 03:29:21 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-29 03:30:12 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-06-29 03:32:34 --> neurocyte4 (~neurocyte@212.232.83.109) has joined ##rust 2021-06-29 03:32:34 <-- neurocyte4 (~neurocyte@212.232.83.109) has quit (Changing host) 2021-06-29 03:32:34 --> neurocyte4 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-29 03:32:42 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-06-29 03:33:11 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-29 03:38:24 --> mkopriva (~mkopriva@ip-94-113-146-145.net.upcbroadband.cz) has joined ##rust 2021-06-29 03:38:32 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 272 seconds) 2021-06-29 03:39:47 --> thijsr (~Thunderbi@217.67.224.106) has joined ##rust 2021-06-29 03:43:56 --> mreznik (~mreznik@95.85.216.116) has joined ##rust 2021-06-29 03:44:09 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-06-29 03:45:08 <-- zaszi (~zaszi@user/zaszi) has quit (Ping timeout: 268 seconds) 2021-06-29 03:45:30 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-06-29 03:45:36 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-29 03:51:27 --> imm__ (~imm_@user/imm/x-3405860) has joined ##rust 2021-06-29 03:53:18 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 03:54:03 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 268 seconds) 2021-06-29 03:55:22 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 04:00:20 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-29 04:02:08 <-- thijsr (~Thunderbi@217.67.224.106) has quit (Quit: thijsr) 2021-06-29 04:02:46 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 04:06:34 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-29 04:09:15 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- siraben (~siraben@user/siraben) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- kadoban (~kadoban@user/kadoban) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- jai (~darkapex@user/darkapex) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- psydroid (~psydroid@user/psydroid) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:15 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:16 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:16 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:16 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:17 <-- felinae (~felinae@user/felinae) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:24 <-- Alex[m]123456 (~randomstr@2001:470:69fc:105::47f6) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:25 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:29 <-- thecatster_ (~thecatste@user/thecatster) has quit (Quit: Bridge terminating on SIGTERM) 2021-06-29 04:09:37 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-29 04:09:48 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 252 seconds) 2021-06-29 04:14:04 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 04:14:12 --> hegstal (~hegstal@2a02:c7f:7604:8a00:cf3c:697d:723b:8aac) has joined ##rust 2021-06-29 04:17:33 --> dark-knight (~dark-knig@2a02:8388:1984:a800:8d5c:ca53:3ec7:e9b2) has joined ##rust 2021-06-29 04:20:53 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-29 04:21:22 <-- feliix42 (~felix@gibbs.uberspace.de) has quit (Ping timeout: 272 seconds) 2021-06-29 04:21:30 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-06-29 04:22:16 --> Arahael (~arahael@60-240-135-223.tpgi.com.au) has joined ##rust 2021-06-29 04:23:33 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-29 04:25:34 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-06-29 04:25:35 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-29 04:26:07 --> gggp (~textual@124.126.15.211) has joined ##rust 2021-06-29 04:27:35 -- imm__ is now known as imm_ 2021-06-29 04:28:27 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-29 04:29:12 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-29 04:30:11 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-29 04:30:42 <-- gggp (~textual@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-06-29 04:31:05 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-06-29 04:31:26 <-- chrizz (~chrizz@user/chrizz) has quit (Ping timeout: 252 seconds) 2021-06-29 04:32:31 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 256 seconds) 2021-06-29 04:33:34 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-29 04:34:25 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-29 04:35:00 <-- meandi2 (~meandi4@dyndsl-178-142-255-227.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-06-29 04:35:05 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 268 seconds) 2021-06-29 04:35:12 --> meandi (~meandi4@dyndsl-178-142-255-227.ewe-ip-backbone.de) has joined ##rust 2021-06-29 04:36:51 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-29 04:37:04 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-29 04:41:14 <-- db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 272 seconds) 2021-06-29 04:41:49 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-29 04:46:47 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 04:47:05 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 04:53:48 <-- neurocyte4 (~neurocyte@user/neurocyte) has quit (Ping timeout: 252 seconds) 2021-06-29 04:54:17 nox pin-project is not fundamentally unsound 2021-06-29 04:55:10 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 04:55:25 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-29 05:00:25 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 05:01:33 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 05:02:50 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 05:03:37 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-06-29 05:05:16 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 258 seconds) 2021-06-29 05:06:31 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 05:08:24 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 05:08:26 tomboy64 i've been trying to find out whether a comparison &somval == &someotherval is always implicitly converted to *(&someval) == *(&someotherval)? or is there a caveat that it might actually check if those references are pointing to "the same thing"? 2021-06-29 05:08:47 tomboy64 i tried to google it but my google-fu is insufficient it seems :( 2021-06-29 05:10:51 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 05:10:52 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-06-29 05:12:59 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-06-29 05:13:34 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-29 05:16:05 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 05:16:06 tomboy64 never mind. just found ptr::eq(). 2021-06-29 05:18:00 --> tglman (~tglman@92.40.177.154.threembb.co.uk) has joined ##rust 2021-06-29 05:19:17 <-- tglman (~tglman@92.40.177.154.threembb.co.uk) has quit (Read error: Connection reset by peer) 2021-06-29 05:19:20 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-29 05:24:41 <-- _eroux_ (~eroux@102-65-81-156.ftth.web.africa) has quit (Read error: Connection reset by peer) 2021-06-29 05:28:53 --> tims1 (~tims@220-244-125-107.static.tpgi.com.au) has joined ##rust 2021-06-29 05:30:20 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-06-29 05:30:38 <-- tims (~tims@193-82-247-42.tpgi.com.au) has quit (Ping timeout: 272 seconds) 2021-06-29 05:34:04 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Read error: Connection reset by peer) 2021-06-29 05:34:57 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-06-29 05:35:16 --> jward (~john@cpc1-stkp12-2-0-cust21.10-2.cable.virginm.net) has joined ##rust 2021-06-29 05:36:27 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-29 05:37:42 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 256 seconds) 2021-06-29 05:38:06 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-29 05:38:14 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-06-29 05:38:20 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-29 05:39:32 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 05:41:18 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 258 seconds) 2021-06-29 05:42:02 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 272 seconds) 2021-06-29 05:46:00 <-- acid (~acid@user/acid) has quit (Ping timeout: 268 seconds) 2021-06-29 05:47:39 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 05:47:53 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 265 seconds) 2021-06-29 05:48:43 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-29 05:49:17 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-29 05:49:34 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-29 05:50:18 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 265 seconds) 2021-06-29 05:51:54 --> acid (~acid@user/acid) has joined ##rust 2021-06-29 05:52:53 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 05:54:17 discipulus &someval == &someotherval evaluates to <&T as PartialEq>::eq(&&someval, &&someotherval). 2021-06-29 05:54:46 discipulus What does <&T as PartialEq>::eq(&&someval, &&someotherval) do? 2021-06-29 05:55:34 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-06-29 05:57:13 -- gggpkm_ is now known as gggpkm 2021-06-29 05:57:43 <-- acid (~acid@user/acid) has quit (Ping timeout: 246 seconds) 2021-06-29 05:58:03 bertptrs Itself. &T implements PartialEq<&T> by deferring to the implementation for T 2021-06-29 05:58:23 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-29 05:58:30 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-06-29 06:00:46 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 06:01:16 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-29 06:01:28 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-29 06:01:41 --> acid (~acid@user/acid) has joined ##rust 2021-06-29 06:02:13 --> neurocyte4 (~neurocyte@212.232.83.109) has joined ##rust 2021-06-29 06:02:13 <-- neurocyte4 (~neurocyte@212.232.83.109) has quit (Changing host) 2021-06-29 06:02:13 --> neurocyte4 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-29 06:04:13 --> arinov_ (~arinov@31.142.7.118) has joined ##rust 2021-06-29 06:05:55 discipulus yeah, I see its doing PartialEq::eq(*self, *other) https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1385-1397 2021-06-29 06:06:58 <-- xsperry (~as@user/xsperry) has quit (Ping timeout: 268 seconds) 2021-06-29 06:08:05 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Read error: Connection reset by peer) 2021-06-29 06:08:48 discipulus "Reference equality by address, instead of comparing the values pointed to, is accomplished via implicit reference-pointer coercion and raw pointer equality via ptr::eq, while PartialEq compares values." https://doc.rust-lang.org/stable/std/primitive.reference.html 2021-06-29 06:08:53 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-06-29 06:09:06 discipulus so to compare addresses use ptr::eq() 2021-06-29 06:09:47 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 06:10:17 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 06:12:15 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-29 06:12:20 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-29 06:13:45 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-29 06:14:42 <-- arinov_ (~arinov@31.142.7.118) has quit (Ping timeout: 240 seconds) 2021-06-29 06:15:29 --> db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-29 06:19:03 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 256 seconds) 2021-06-29 06:19:25 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-06-29 06:23:06 <-- db48x (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 240 seconds) 2021-06-29 06:23:19 --> db48x__ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-29 06:26:10 -- gggpkm_ is now known as gggpkm 2021-06-29 06:28:04 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-29 06:28:34 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 06:30:18 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-29 06:31:06 <-- db48x__ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 240 seconds) 2021-06-29 06:31:19 --> db48x____ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-29 06:31:49 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 06:36:16 <-- bitstalker (~bitstalke@user/bitstalker) has quit (Quit: bye) 2021-06-29 06:37:45 --> bitstalker (~bitstalke@user/bitstalker) has joined ##rust 2021-06-29 06:38:05 <-- bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (Ping timeout: 268 seconds) 2021-06-29 06:38:55 --> bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-06-29 06:39:06 <-- db48x____ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has quit (Ping timeout: 240 seconds) 2021-06-29 06:40:04 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 246 seconds) 2021-06-29 06:41:14 <-- htd (~htd@095129203062.t4.akis.net) has quit (Ping timeout: 252 seconds) 2021-06-29 06:41:36 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-29 06:44:26 nox Also don't compare trait object pointers naively 2021-06-29 06:44:27 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-29 06:44:50 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-29 06:45:11 nox cause their vtable pointer may be different depending on how the build was done 2021-06-29 06:45:57 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 06:52:10 discipulus nox: what happens/how does it work? 2021-06-29 06:53:42 bertptrs The example is given in the docs of ptr::eq 2021-06-29 06:57:06 ac5tin if i want to simultaneously run a few async functions, should i use futures::try_join! or futures::join_all 2021-06-29 06:58:09 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-06-29 06:58:13 discipulus bertptrs: the example doesn't mention vtables or how the build changes things 2021-06-29 06:58:49 Geekingfrog ac5tin, They have different semantics. try_join! expects tasks to return a Result, and will cancel all other tasks as soon as one returns an error. join_all will return a vec of whatever your tasks returns. 2021-06-29 06:59:03 <-- rcbaus (~rcbaus@35.142.158.114) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-29 06:59:26 ac5tin i have a list of tasks that returns Result, and i want all of them to continue running even if one of them fails 2021-06-29 06:59:50 rk4 discipulus: i do not recall, but odds are it was 2021-06-29 07:00:02 Geekingfrog ac5tin, I would go with join_all in this case 2021-06-29 07:00:10 rk4 discipulus: 'Programming Rust, 2nd Edition' 2021-06-29 07:00:34 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 07:00:45 Geekingfrog ac5tin, you get a Vec> when the last task complete, and you can decide how to handle that. 2021-06-29 07:01:02 discipulus rk4: yes, I think that's it. I remember you mentioning 2nd edition. 2021-06-29 07:01:06 ac5tin can i get an array with fixed size instead of vector 2021-06-29 07:01:38 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-29 07:01:50 ac5tin vector works too, just curious if i can define the size 2021-06-29 07:02:17 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 07:02:19 Geekingfrog ac5tin, uhm, I think the macro try_join! returns a tuple actually 2021-06-29 07:02:20 nox discipulus: Depending on whether there are multiple code hen units etc, the vtable can be duplicated inside the final binary 2021-06-29 07:02:33 --> jinsun__ (~quassel@user/jinsun) has joined ##rust 2021-06-29 07:03:18 ac5tin the biggest difference between try_join! and join_all is that join_all will always finish all tasks while try_join! terminates on the first error, is that right? 2021-06-29 07:03:38 Geekingfrog Yes, that's my understanding. 2021-06-29 07:03:43 ac5tin thx 2021-06-29 07:03:48 nox discipulus: https://github.com/rust-lang/rust/issues/46139 2021-06-29 07:03:49 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-06-29 07:04:38 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-29 07:04:52 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 07:06:19 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Ping timeout: 246 seconds) 2021-06-29 07:06:52 --> lalbornoz (~lalbornoz@185.213.155.163) has joined ##rust 2021-06-29 07:06:54 --> lalbornoz_ (~lalbornoz@185.213.155.163) has joined ##rust 2021-06-29 07:06:54 lalbornoz YOUR CHATS MAKE ME SO MAD I PUNCH HOLES IN MY WALL! THATS WHY I ONLY HANG OUT AT IRC.LIBERA.CHAT #MIDIPIX 2021-06-29 07:06:56 lalbornoz_ YOUR CHATS MAKE ME SO MAD I PUNCH HOLES IN MY WALL! THATS WHY I ONLY HANG OUT AT IRC.LIBERA.CHAT #MIDIPIX 2021-06-29 07:07:02 j`ey mrmonday: 2021-06-29 07:07:25 <-- lalbornoz (~lalbornoz@185.213.155.163) has quit (Read error: Connection reset by peer) 2021-06-29 07:07:30 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-06-29 07:07:35 <-- jkl (~jkl@user/jkl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 07:07:36 <-- lalbornoz_ (~lalbornoz@185.213.155.163) has quit (Remote host closed the connection) 2021-06-29 07:07:49 -- Mode ##rust [+o jbg] by ChanServ 2021-06-29 07:07:50 la_mettrie with rust you could code more effective spam-bots 2021-06-29 07:08:32 -- Mode ##rust [-o jbg] by ChanServ 2021-06-29 07:09:11 discipulus nox: thank you 2021-06-29 07:09:26 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-29 07:16:21 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Remote host closed the connection) 2021-06-29 07:16:53 --> tglman1 (~tglman@113.255.6.51.dyn.plus.net) has joined ##rust 2021-06-29 07:17:44 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-29 07:18:43 Geekingfrog oh btw ac5tin there is also futures::join! which is the same as join_all, but returns a tuple and not a vec. If you know at compile time all the tasks, and want to avoid the vec, it's probably a good match 2021-06-29 07:18:55 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-29 07:19:41 mrmonday sorry, little too late 2021-06-29 07:19:52 <-- jkl (~jkl@user/jkl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 07:20:43 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-29 07:23:58 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-29 07:25:54 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 240 seconds) 2021-06-29 07:28:09 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-29 07:29:52 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-06-29 07:30:14 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-29 07:31:36 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 256 seconds) 2021-06-29 07:35:38 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 07:35:50 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-06-29 07:36:38 --> arinov_ (~arinov@88.230.49.132) has joined ##rust 2021-06-29 07:36:47 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-29 07:36:57 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-29 07:38:16 bertptrs mrmonday: it seems you got your coverage :P 2021-06-29 07:40:29 --> postal_blab (~quassel@2a01:4f8:202:53d9::bad:deed) has joined ##rust 2021-06-29 07:41:00 <-- postal_blab (~quassel@2a01:4f8:202:53d9::bad:deed) has quit (Client Quit) 2021-06-29 07:41:12 --> postal_blab (~quassel@2a01:4f8:202:53d9::bad:deed) has joined ##rust 2021-06-29 07:43:37 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-29 07:43:38 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 272 seconds) 2021-06-29 07:45:01 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-06-29 07:45:39 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-29 07:45:48 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-06-29 07:46:01 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-29 07:56:12 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-29 07:56:14 mrmonday heh, guess so :) 2021-06-29 07:59:21 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 256 seconds) 2021-06-29 08:00:41 --> jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has joined ##rust 2021-06-29 08:01:03 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Ping timeout: 256 seconds) 2021-06-29 08:01:27 <-- decartes (uid240036@id-240036.brockwell.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 08:03:19 <-- Asmodean (~Asmoedean@77.119.201.202.wireless.dyn.drei.com) has quit (Quit: leaving) 2021-06-29 08:04:28 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 256 seconds) 2021-06-29 08:06:10 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Ping timeout: 246 seconds) 2021-06-29 08:08:31 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-29 08:09:39 --> DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has joined ##rust 2021-06-29 08:10:04 --> eduardas (~eduardas@82-135-139-249.static.zebra.lt) has joined ##rust 2021-06-29 08:10:40 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-29 08:10:58 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-29 08:11:49 <-- jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has quit (Ping timeout: 256 seconds) 2021-06-29 08:15:00 <-- amk (~amk@176.61.106.150) has quit (Remote host closed the connection) 2021-06-29 08:18:19 --> amk (~amk@176.61.106.150) has joined ##rust 2021-06-29 08:19:00 * rk4 ponders rocksdb vs sled 2021-06-29 08:22:44 --> koan (~kon@2a02:587:ac78:45c1:66cd:ed31:f7be:47be) has joined ##rust 2021-06-29 08:23:06 <-- arinov_ (~arinov@88.230.49.132) has quit (Ping timeout: 240 seconds) 2021-06-29 08:25:40 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 08:25:48 --> bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has joined ##rust 2021-06-29 08:26:57 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:13:3c3f:fb8a:fb0a) has quit (Ping timeout: 268 seconds) 2021-06-29 08:27:05 bonhoeffer just learning rust -- I'm writing a script to pull stuff out of a text file so I have to make lots of modifications. compiling each time is a bit cumbersome. is there a way to speed that up other than rustc myscript && ./myscript 2021-06-29 08:27:48 --> badri (~badri@user/badri) has joined ##rust 2021-06-29 08:30:31 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 08:31:24 j`ey bonhoeffer: not really 2021-06-29 08:31:47 bonhoeffer ok 2021-06-29 08:32:00 j`ey cargo does incremental compilation, but you still have to compile/link 2021-06-29 08:32:08 bonhoeffer it's not hard -- and so much cleaner than python 2021-06-29 08:33:24 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-06-29 08:33:25 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-06-29 08:33:34 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-06-29 08:34:07 gggpkm j`ey, what is interior mutability 2021-06-29 08:34:24 gggpkm refcell 2021-06-29 08:34:38 j`ey gggpkm: it's mutability behind a non-mutable &reference 2021-06-29 08:34:41 <-- brickfat (~brickfat@user/brickfat) has quit (Quit: Leaving) 2021-06-29 08:34:42 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-06-29 08:35:03 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-29 08:35:04 <-- jinsun__ (~quassel@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-06-29 08:35:14 gggpkm what is the scenario to use it 2021-06-29 08:35:41 gggpkm this is trying to cheat the compiler 2021-06-29 08:35:57 j`ey yes kinda 2021-06-29 08:36:11 gggpkm what is the scenario to use it 2021-06-29 08:36:11 <-- tglman1 (~tglman@113.255.6.51.dyn.plus.net) has quit (Ping timeout: 256 seconds) 2021-06-29 08:36:37 <-- bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has quit (Ping timeout: 246 seconds) 2021-06-29 08:37:38 j`ey maybe https://doc.rust-lang.org/std/cell/index.html#when-to-choose-interior-mutability helps 2021-06-29 08:41:51 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-06-29 08:41:57 gggpkm j`ey, what is the diff between move and rc 2021-06-29 08:43:00 j`ey well if you move something, you change owners, Rc allows multiple onwers 2021-06-29 08:46:41 mike-burns Good interview questions. 2021-06-29 08:47:32 gggpkm j`ey, oops ,my question is borrow ,not move 2021-06-29 08:48:18 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 240 seconds) 2021-06-29 08:48:22 j`ey Rc is runtime borrowing 2021-06-29 08:48:34 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-29 08:49:10 gggpkm what is advantage 2021-06-29 08:49:50 j`ey sometimes its just not a static thing the comiler can prove 2021-06-29 08:50:14 rk4 mike-burns: tell us about a time that rustc gave you feedback, and how you responded to that 2021-06-29 08:50:55 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 08:55:03 zipper Hello all, I have an interesting problem. I need to mutably borrow two different fields in a struct but the borrow checker feel that I am mutably borrowing the struct itself. 2021-06-29 08:55:08 zipper How do I get around this? 2021-06-29 08:55:10 --> Asmodean (~quassel@165.22.94.154) has joined ##rust 2021-06-29 08:55:14 --> jushur (~human@user/jushur) has joined ##rust 2021-06-29 08:55:37 jbg pastebin/playground the code 2021-06-29 08:56:06 zipper it's a ton but okay 2021-06-29 08:56:15 jbg preferably just the relevant part 2021-06-29 08:56:38 <-- _xor (~xor@74.215.46.133) has quit (Quit: brb) 2021-06-29 08:56:55 gggpkm move is rarely use ,right? 2021-06-29 08:57:15 gggpkm reference is prefer 2021-06-29 08:57:16 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-29 08:57:44 j`ey gggpkm: it depends 2021-06-29 08:57:57 jbg gggpkm: you move when you want to move, and reference when you want to reference. it doesn't make sense to arbitrarily prefer one or the other 2021-06-29 08:57:59 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-06-29 08:58:22 gggpkm but reference is mostly used indeed 2021-06-29 08:58:34 jbg is it? 2021-06-29 08:59:39 zipper https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=5fbc269c421a480898a794cf2b21c2a1 2021-06-29 08:59:46 zipper On line 364 and 365 2021-06-29 09:00:36 --> pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has joined ##rust 2021-06-29 09:00:36 <-- badri (~badri@user/badri) has quit (Read error: Connection reset by peer) 2021-06-29 09:01:06 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 240 seconds) 2021-06-29 09:01:56 --> badri (~badri@user/badri) has joined ##rust 2021-06-29 09:02:03 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-29 09:02:34 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-06-29 09:03:45 kupi hi, the point of heap is to find values based on a reference? 2021-06-29 09:05:18 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-29 09:05:57 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-29 09:07:05 rk4 that's a curious phrasing, also the stack has limitations [size, and lifetime of the contents of your stackframe] that makes the heap a better place for some values 2021-06-29 09:07:15 jbg zipper: yeah so get_wavefront_mut takes &mut self and returns 'something borrowed from self', so self remains mutably borrowed as long as that returned reference is alive 2021-06-29 09:08:34 jbg since you're passing score to wf_extend anyway, could you not just pass &mut wavefronts to wf_extend and move the get_wavefront_mut call into wf_extend? 2021-06-29 09:09:37 j`ey rk4: there's a data structure called a 'heap' 2021-06-29 09:09:38 <-- badri (~badri@user/badri) has quit (Read error: Connection reset by peer) 2021-06-29 09:09:42 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-29 09:09:57 j`ey rk4: https://doc.rust-lang.org/std/collections/struct.BinaryHeap.html 2021-06-29 09:10:35 --> badri (~badri@user/badri) has joined ##rust 2021-06-29 09:10:49 zipper that had caused me issues inside wf_extend but directly borrowing (instead of my get_Wavefront_mut) seems to be working 2021-06-29 09:10:54 zipper `let mwavefront = &mut wavefronts.wavefronts.get_mut(score).unwrap().mwavefront;` 2021-06-29 09:11:12 zipper There's no way to get that function not to take &mut self, right? 2021-06-29 09:11:16 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-29 09:12:07 gggpkm let ptr = Box::new(5); does ptr equal to the memory address whose value is 5 2021-06-29 09:12:12 rk4 j`ey: indeed! fair point it could be that heap, though the question is a little weird in that context too 2021-06-29 09:12:27 j`ey gggpkm: no, ptr is a value on the stack, that contains a pointer to the address 2021-06-29 09:13:07 gggpkm j`ey, is its pointer equal to the memory address whose value is 5 2021-06-29 09:13:25 j`ey gggpkm: the pointer is some memory address, at that memory address is 5 2021-06-29 09:14:19 gggpkm j`ey, how to get the pointer's value 2021-06-29 09:14:27 j`ey ptr.as_ptr() 2021-06-29 09:14:42 j`ey evalr2: let p = Box::new(5); p.as_ptr() 2021-06-29 09:14:43 jbg zipper: you need to take &mut self if you are mutating self / getting a mutable reference to a field inside self, but you could do an interior mutation pattern if you wanted 2021-06-29 09:14:44 -- Notice(evalr2): j`ey: error[E0599]: no method named `as_ptr` found for struct `Box<{in ... 2021-06-29 09:14:45 -- Notice(evalr2): j`ey: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ac2e2edbc3ef2ef6a4abe8990819293e 2021-06-29 09:15:12 j`ey oh derp 2021-06-29 09:15:14 jbg if the field inside is a cell or behind a lock then you could access it via a &self 2021-06-29 09:15:31 j`ey evalr2: let p = Box::new(5); Box::into_raw(p) 2021-06-29 09:15:34 -- Notice(evalr2): j`ey: 0x55aa527479d0 2021-06-29 09:15:48 j`ey how dyo you get the address without consuming? 2021-06-29 09:16:17 gggpkm j`ey, as_ptr() ? 2021-06-29 09:16:28 gggpkm underscore ? 2021-06-29 09:16:49 j`ey gggpkm: no it's Box::into_raw(ptr) 2021-06-29 09:16:52 j`ey I got it wrong 2021-06-29 09:17:30 gggpkm how about as_mut_ptr 2021-06-29 09:17:33 <-- badri (~badri@user/badri) has quit (Ping timeout: 256 seconds) 2021-06-29 09:17:36 gggpkm what is the diff 2021-06-29 09:17:43 --> badri (~badri@user/badri) has joined ##rust 2021-06-29 09:17:46 <-- badri (~badri@user/badri) has quit (Client Quit) 2021-06-29 09:18:50 j`ey gggpkm: well Box doesnt have those methods 2021-06-29 09:19:09 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-29 09:20:26 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-06-29 09:20:33 --> tg (~tg@rockylinux/infra/tg) has joined ##rust 2021-06-29 09:23:58 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 09:30:12 <-- DodgeThis (~DodgeThis@246.102.90.149.rev.vodafone.pt) has quit (Quit: Leaving) 2021-06-29 09:31:32 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-29 09:38:23 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-29 09:39:40 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 256 seconds) 2021-06-29 09:40:12 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-29 09:40:36 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-29 09:47:08 <-- discipulus (~discipulu@user/discipulus) has quit (Ping timeout: 272 seconds) 2021-06-29 09:49:34 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-29 09:50:06 <-- tg (~tg@rockylinux/infra/tg) has quit (Quit: tg) 2021-06-29 09:50:42 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-06-29 09:51:16 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-29 09:51:20 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-29 09:53:30 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 240 seconds) 2021-06-29 09:58:46 --> thijsr (~Thunderbi@217.67.224.106) has joined ##rust 2021-06-29 10:00:21 --> Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has joined ##rust 2021-06-29 10:00:34 --> _xor (~xor@74.215.46.133) has joined ##rust 2021-06-29 10:01:57 <-- _xor (~xor@74.215.46.133) has quit (Client Quit) 2021-06-29 10:02:28 --> _xor (~xor@74.215.46.133) has joined ##rust 2021-06-29 10:02:50 <-- _xor (~xor@74.215.46.133) has quit (Client Quit) 2021-06-29 10:03:07 --> _xor (~xor@74.215.46.133) has joined ##rust 2021-06-29 10:08:08 osa1 if I do `#[x] #[y] ` will `x` be attached to `y`, or `item`, or `#[y] `? 2021-06-29 10:08:59 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 268 seconds) 2021-06-29 10:10:50 <-- Asmodean (~quassel@165.22.94.154) has left ##rust (https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-29 10:12:02 danieldg osa1: pretty sure it attaches both to item 2021-06-29 10:12:20 danieldg else derive+repr wouldn't work 2021-06-29 10:19:27 osa1 danieldg: good point, thanks 2021-06-29 10:20:34 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 10:26:24 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 10:27:30 --> Tv_ (uid62079@user/tv/x-3144562) has joined ##rust 2021-06-29 10:31:13 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 10:31:14 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (Ping timeout: 268 seconds) 2021-06-29 10:31:30 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-06-29 10:31:52 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 10:33:30 <-- discipulus (~discipulu@user/discipulus) has quit (Ping timeout: 240 seconds) 2021-06-29 10:33:40 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-06-29 10:35:17 <-- pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has quit (Quit: Leaving) 2021-06-29 10:35:33 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-29 10:36:24 --> pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has joined ##rust 2021-06-29 10:38:47 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-06-29 10:39:18 jbg j`ey: to get the ptr without consuming wouldn't it just be &*the_box as *const T 2021-06-29 10:39:31 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-29 10:40:11 j`ey ah yeah 2021-06-29 10:40:12 --> xnor (~xnor@97-120-105-43.ptld.qwest.net) has joined ##rust 2021-06-29 10:40:52 j`ey evalr2: let b = Box::new(5u64); let x = &*b as *const _; (Box::into_raw(b), x) 2021-06-29 10:40:55 -- Notice(evalr2): j`ey: (0x55d6d6a4d9d0, 0x55d6d6a4d9d0) 2021-06-29 10:41:29 <-- discipulus (~discipulu@user/discipulus) has quit (Remote host closed the connection) 2021-06-29 10:41:34 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-29 10:41:43 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-06-29 10:42:01 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-29 10:43:23 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 10:46:33 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-06-29 10:47:07 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 10:49:10 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 10:55:09 cehteh success! 2021-06-29 10:55:09 cehteh error: internal compiler error: unexpected panic 2021-06-29 10:55:12 cehteh :D 2021-06-29 10:58:22 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 246 seconds) 2021-06-29 11:03:46 --> zerotypic (~zerotypic@66.96.192.176) has joined ##rust 2021-06-29 11:04:01 trev what's the proper way to run and join an async fn from within a non-async fn? i am using tokio::runtime::Handle::current() to get the runtime 2021-06-29 11:05:30 osa1 trev: you'll have to create an executor, spawn the tasks. the library you use probably also provides a macro for joining. are you using tokio? 2021-06-29 11:05:49 -- tims1 is now known as tims 2021-06-29 11:06:02 osa1 or if you already have an executor running, you could pass a handle to it to your non-async function and spawn via that 2021-06-29 11:09:21 trev osa1 yes, tokio, already running in an executor, but no way to pass anything to this function since it's from a trait where i need to use some async code 2021-06-29 11:10:13 danieldg trev: call the async fn, it returns a future. Then spawn that future. 2021-06-29 11:10:37 trev i guess i' 2021-06-29 11:10:42 danieldg trev: if you need to wait for the result, you need to set up a channel that the future sends on (oneshot channels are good for this) 2021-06-29 11:11:02 trev ah...the channel is what i was missing thanks danieldg 2021-06-29 11:11:07 trev totally forgot about that 2021-06-29 11:11:34 danieldg make sure you are using a multi-threaded executor, because waiting on the channel will block your thread 2021-06-29 11:11:41 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-06-29 11:12:29 trev ok that's not enabled...:D 2021-06-29 11:13:02 danieldg to be nice, you should also make sure the parent tells tokio it will be blocking 2021-06-29 11:13:41 danieldg tokio also lets you do things like block_on if you have a Runtime object sitting around 2021-06-29 11:14:22 danieldg (that is, if you're not already in a tokio context) 2021-06-29 11:14:37 trev block_on did not work for me since i'm in a context already. i'm just trying to initialize a struct which happens to be async in the external crate for some reason :\ 2021-06-29 11:16:56 <-- thijsr (~Thunderbi@217.67.224.106) has quit (Remote host closed the connection) 2021-06-29 11:17:49 kupi is there anything an experienced rustecian would have done differently here? https://gist.github.com/theqp/851e1d49086ff8ad6617d91ff929027b 2021-06-29 11:19:22 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 246 seconds) 2021-06-29 11:21:54 danieldg kupi: Only minor things like error handling instead of unwrap 2021-06-29 11:21:57 <-- tj (~tj@user/tj) has quit (Quit: buh-bye) 2021-06-29 11:22:09 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-06-29 11:22:33 kupi danieldg: by that you mean .expect(str)? 2021-06-29 11:22:52 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-29 11:23:01 bertptrs no, actually handling the error 2021-06-29 11:23:16 --> tj8 (~tj@user/tj) has joined ##rust 2021-06-29 11:23:32 danieldg in this case you can't do much more than that to handle the error, but the default expect/unwrap error messages are not the best 2021-06-29 11:23:47 bertptrs you could slightly simplify your readline() by using the try operator 2021-06-29 11:23:58 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-29 11:24:03 bertptrs io::stdin().read_line(&mut ret)?; ret 2021-06-29 11:24:30 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 256 seconds) 2021-06-29 11:25:22 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-29 11:27:00 --> mpt (~tom@2a02:908:1862:49e0::5) has joined ##rust 2021-06-29 11:28:35 --> dolor_avis (~dolor_avi@user-5-173-12-123.play-internet.pl) has joined ##rust 2021-06-29 11:29:38 kupi bertptrs: don't you mean this? io::stdin().read_line(&mut ret)?; Ok(ret) 2021-06-29 11:29:41 <-- mreznik (~mreznik@95.85.216.116) has quit (Remote host closed the connection) 2021-06-29 11:29:47 bertptrs Oh yeah, correct 2021-06-29 11:30:29 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-29 11:31:42 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-29 11:34:42 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 240 seconds) 2021-06-29 11:34:54 trev danieldg a tokio oneshot will require await to receieve a value still right? so i can't use that unless i do try_recv() 2021-06-29 11:35:41 danieldg use a std::sync::oneshot 2021-06-29 11:36:37 trev it doesn't exist. i can just use a regular channel i guess 2021-06-29 11:37:26 trev sync_channel(1) i mean 2021-06-29 11:37:42 jbg condvar? 2021-06-29 11:37:57 danieldg eh, I guess sync-channel-1 is it 2021-06-29 11:38:15 trev or is it sync_channel(0).... 2021-06-29 11:38:33 danieldg either would work 2021-06-29 11:38:52 danieldg depends on if you want the task to complete without waiting on your recv 2021-06-29 11:39:18 danieldg sync_channel(1) is nicer because the task won't hang around for no good reason 2021-06-29 11:40:06 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-06-29 11:40:27 trev yeah that seems better 2021-06-29 11:40:43 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 246 seconds) 2021-06-29 11:42:48 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-06-29 11:42:51 <-- dmvrtx (~dmvrtx@znc.dmvrtx.me) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-06-29 11:45:34 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 11:46:11 kupi bertptrs: what do you think of this? :P https://gist.github.com/theqp/a29f1ff3115fadfadf1a39ffa93e07c7 2021-06-29 11:46:37 --> dmvrtx (dmvrtx@2a01:7e01::f03c:92ff:fefd:6ed6) has joined ##rust 2021-06-29 11:47:30 <-- waldo323__ (~waldo323@d149-67-45-83.clv.wideopenwest.com) has quit (Ping timeout: 240 seconds) 2021-06-29 11:48:18 danieldg note recv_timeout has issues, avoid it 2021-06-29 11:50:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 246 seconds) 2021-06-29 11:50:45 <-- eduardas (~eduardas@82-135-139-249.static.zebra.lt) has quit (Quit: Konversation terminated!) 2021-06-29 11:55:16 --> waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined ##rust 2021-06-29 11:58:39 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-29 12:00:25 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-29 12:02:59 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 12:05:17 <-- tims (~tims@220-244-125-107.static.tpgi.com.au) has quit (Ping timeout: 256 seconds) 2021-06-29 12:08:41 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 12:10:01 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Remote host closed the connection) 2021-06-29 12:10:51 <-- Maker (~maker@70.18.215.45) has quit 2021-06-29 12:17:11 <-- dolor_avis (~dolor_avi@user-5-173-12-123.play-internet.pl) has quit (Quit: dolor_avis) 2021-06-29 12:18:52 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-29 12:18:53 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 12:21:54 --> _42large (~user@37.120.197.42) has joined ##rust 2021-06-29 12:22:58 <-- mkopriva (~mkopriva@ip-94-113-146-145.net.upcbroadband.cz) has quit (Quit: Leaving...) 2021-06-29 12:27:33 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-06-29 12:27:57 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-29 12:31:26 <-- ibigbug (~thelounge@115.130.21.65) has quit (Ping timeout: 268 seconds) 2021-06-29 12:34:20 --> ibigbug (~thelounge@115.130.21.65) has joined ##rust 2021-06-29 12:36:05 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 268 seconds) 2021-06-29 12:36:23 --> kmh_ (~kmh@p200300df5f2c2900489e1812d3a742a3.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 12:37:20 <-- kmh (~kmh@p200300df5f3e6100dd8abf4c678f29f0.dip0.t-ipconnect.de) has quit (Ping timeout: 244 seconds) 2021-06-29 12:37:43 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 12:39:48 <-- _42large (~user@37.120.197.42) has quit (Quit: Konversation terminated!) 2021-06-29 12:43:07 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-29 12:53:45 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-06-29 12:54:03 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-29 12:55:44 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-29 12:56:37 --> sm2n (~sm2n@user/sm2n) has joined ##rust 2021-06-29 12:57:45 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-29 12:58:54 <-- sm2n_ (~sm2n@user/sm2n) has quit (Ping timeout: 268 seconds) 2021-06-29 12:59:37 <-- pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has quit (Remote host closed the connection) 2021-06-29 13:00:13 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-06-29 13:00:45 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-29 13:00:46 <-- ibigbug (~thelounge@115.130.21.65) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-29 13:02:38 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-29 13:04:57 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-29 13:06:59 --> ibigbug (~thelounge@115.130.21.65) has joined ##rust 2021-06-29 13:07:04 <-- carla (~carla@facebook/engineering/carla) has quit (Ping timeout: 256 seconds) 2021-06-29 13:23:30 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 240 seconds) 2021-06-29 13:23:41 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-29 13:30:41 --> carla (~carla@facebook/engineering/carla) has joined ##rust 2021-06-29 13:31:30 --> barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has joined ##rust 2021-06-29 13:32:25 <-- koan (~kon@2a02:587:ac78:45c1:66cd:ed31:f7be:47be) has quit (Remote host closed the connection) 2021-06-29 13:33:08 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-29 13:34:02 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 13:34:18 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 240 seconds) 2021-06-29 13:41:02 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-29 13:41:50 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-29 13:42:18 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 240 seconds) 2021-06-29 13:43:22 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-29 13:44:31 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-29 13:45:40 --> chrizz (~chrizz@user/chrizz) has joined ##rust 2021-06-29 13:46:10 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-29 13:46:19 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-29 13:50:28 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-29 13:51:15 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 14:04:35 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 14:06:54 --> zmt01 (~zmt00@user/zmt00) has joined ##rust 2021-06-29 14:07:02 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 14:07:36 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-29 14:09:06 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-06-29 14:09:12 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Read error: Connection reset by peer) 2021-06-29 14:09:32 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-29 14:10:00 <-- zmt00 (~zmt00@user/zmt00) has quit (Ping timeout: 250 seconds) 2021-06-29 14:11:12 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-06-29 14:16:22 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-29 14:17:28 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-29 14:18:42 <-- postal_blab (~quassel@2a01:4f8:202:53d9::bad:deed) has quit (Ping timeout: 240 seconds) 2021-06-29 14:22:01 --> pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has joined ##rust 2021-06-29 14:23:35 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 14:26:02 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-29 14:27:05 --> feliix42 (~felix@gibbs.uberspace.de) has joined ##rust 2021-06-29 14:34:18 <-- dogood (~roger_dog@174.127.241.77) has left ##rust 2021-06-29 14:36:39 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-29 14:37:30 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 240 seconds) 2021-06-29 14:41:56 bwidawsk is there an idiomatic way to use '?' in a for_each closure? 2021-06-29 14:42:43 j`ey bwidawsk: no 2021-06-29 14:43:04 bwidawsk j`ey: :/ 2021-06-29 14:43:04 j`ey you cant use ? in a closure and have it return from the outer function 2021-06-29 14:43:23 <-- barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-29 14:43:36 bwidawsk it makes sense... I just figured there would be some pattern since it must be a common thing 2021-06-29 14:43:52 j`ey bwidawsk: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each 2021-06-29 14:43:55 Arnavion If this is Iterator, it has try_for_each 2021-06-29 14:44:19 Alexendoo Or often for in is nicer 2021-06-29 14:44:56 bwidawsk ah, I missed that... thanks 2021-06-29 14:46:35 ashafq Is there a way I can add post-build steps in build.rs? 2021-06-29 14:46:41 bwidawsk Alexendoo: what's 'for in' ? 2021-06-29 14:46:46 j`ey ashafq: no 2021-06-29 14:47:06 --> mreznik (~mreznik@95.85.216.116) has joined ##rust 2021-06-29 14:47:28 ashafq j`ey: How about copying generated file into a specific directory? 2021-06-29 14:47:56 j`ey ashafq: you can do that in a build.rs yes 2021-06-29 14:48:05 Alexendoo bwidawsk: for x in y { ... } 2021-06-29 14:48:20 ashafq j`ey: How? Where is this documented? 2021-06-29 14:49:01 j`ey ashafq: oh, you mean after the build? no 2021-06-29 14:49:03 bwidawsk Alexendoo: ha... why didn't I think of rewriting it that way :D 2021-06-29 14:50:27 ashafq j`ey, :( that's not fun. 2021-06-29 14:51:32 --> postal_blab (~quassel@2a01:4f8:202:53d9::bad:deed) has joined ##rust 2021-06-29 14:53:10 cehteh ashafq: https://crates.io/crates/bintest .. but thats made for testing, does a build for testing and you can do things post build there, as long you did a cargo build 2021-06-29 14:53:15 cehteh err cargo test 2021-06-29 14:54:03 cehteh otherwise makefile .. i am trying hard to avoid it yet but eventually i think i add makefiles calling cargo to my project 2021-06-29 14:54:04 --> tsdh (~tsdh@j289989.servers.jiffybox.net) has joined ##rust 2021-06-29 14:54:18 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-29 14:55:20 j`ey that's what I've done 2021-06-29 14:55:28 ashafq cehteh, Thanks 2021-06-29 14:57:55 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-06-29 14:59:34 cehteh ashafq: for what do you need that? planning to setup tests? install the program? put some resources in place? 2021-06-29 14:59:36 Hans-Martin hiya folks, anybody knowledgeable with libp2p? I got a comprehension problem with type propagation from NetworkBehaviour::OutEvent to swarm.poll_next_unpin() :-( 2021-06-29 15:00:52 ashafq cehteh, Building an audio plugin which needs to have some additional manifest files along with a .so file. 2021-06-29 15:01:23 cehteh isnt that part of some install process that isnt covered by cargo at all? -> Makefile 2021-06-29 15:02:12 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-06-29 15:02:26 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-06-29 15:02:35 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-06-29 15:02:51 ashafq cehteh, Yes, I guess Makefile is the only option 2021-06-29 15:02:53 cehteh (or reading what cargo install can do .. but thats more dev environment things i think) 2021-06-29 15:03:03 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-29 15:04:18 <-- starblue (~juergen@dslb-088-078-097-111.088.078.pools.vodafone-ip.de) has quit (Ping timeout: 252 seconds) 2021-06-29 15:06:16 --> starblue (~juergen@dslb-088-078-097-111.088.078.pools.vodafone-ip.de) has joined ##rust 2021-06-29 15:06:27 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-29 15:14:14 <-- printf (~printf@user/printf) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-29 15:19:04 --> arinov_ (~arinov@95.70.154.214) has joined ##rust 2021-06-29 15:19:51 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-29 15:20:49 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-29 15:21:17 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-29 15:21:24 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-29 15:22:35 --> melty_cheese (~melty_che@ip72-219-72-7.oc.oc.cox.net) has joined ##rust 2021-06-29 15:24:36 <-- melty_cheese (~melty_che@ip72-219-72-7.oc.oc.cox.net) has quit 2021-06-29 15:25:58 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 272 seconds) 2021-06-29 15:37:50 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-29 15:38:02 pounce does `std::fs::symlink_metadata(path)` returning `Ok(_)` roughly correspond to `faccessat(0, path, F_OK, AT_SYMLINK_NOFOLLOW)` returning 0? i.e. that a file exists without following symlinks 2021-06-29 15:39:29 <-- tristero (~nobody@user/tristero) has quit (Quit: WeeChat 3.0) 2021-06-29 15:40:24 danieldg pounce: it's lstat, so it will follow directory symlinks 2021-06-29 15:41:00 pounce I see.... Is there any way to replicate the latter call? I haven't really seen any bindings to faccessat or access2 except in `libc` itself 2021-06-29 15:41:02 danieldg ah, and so does faccessat, so never mind 2021-06-29 15:41:22 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-29 15:41:24 danieldg if you want faccessat you need to call faccessat 2021-06-29 15:41:37 pounce I thought the difference between `symlink_metadata` and `metadata` was that the former showed symlink info 2021-06-29 15:41:45 danieldg it does 2021-06-29 15:42:01 danieldg why do you want faccessat? 2021-06-29 15:42:04 pounce so if i have either a normal file or a symlink at `path` would it return `Ok(_)` if it exists? 2021-06-29 15:42:15 pounce danieldg `path.exists()` returns false for a symlink 2021-06-29 15:42:41 danieldg symlink_metadata will return ok for a symlink, yes 2021-06-29 15:42:45 pounce so im looking at alternatives 2021-06-29 15:42:48 pounce but not an ordinary file? 2021-06-29 15:42:58 danieldg symlink_metadata will return ok for a normal file too 2021-06-29 15:43:05 danieldg just try it :p 2021-06-29 15:43:10 pounce ok x_x 2021-06-29 15:43:12 --> barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has joined ##rust 2021-06-29 15:43:16 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-06-29 15:43:20 j`ey evalr2: "you can try it here" 2021-06-29 15:43:23 -- Notice(evalr2): j`ey: "you can try it here" 2021-06-29 15:43:31 pounce I think it'd work better than `path.exists()` for my case 2021-06-29 15:43:32 danieldg pounce: look at the type in the metadata 2021-06-29 15:43:37 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-29 15:45:43 <-- arinov_ (~arinov@95.70.154.214) has quit (Ping timeout: 256 seconds) 2021-06-29 15:48:43 <-- pedalo (~pedalo@2a01:cb10:83bc:c700:e432:de81:632f:e70d) has left ##rust (Leaving) 2021-06-29 15:50:26 cehteh the *at API (openat, faccessat) is generally superior to the old legacy stuff, less race conditions, better performance in some cases 2021-06-29 15:51:18 <-- dcz_ (~dcz@dynamic-002-243-153-127.2.243.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-06-29 15:52:16 danieldg cehteh: true, but only if you use the dirfd argument or flags properly 2021-06-29 15:53:22 danieldg the rust std lib uses fstatx for direntry.metadata actually 2021-06-29 15:53:45 cehteh yes 2021-06-29 15:54:13 <-- jward (~john@cpc1-stkp12-2-0-cust21.10-2.cable.virginm.net) has quit (Ping timeout: 256 seconds) 2021-06-29 15:55:08 cehteh i am planning to add statx to the openat crate .. unfortunally its maintainer seems to be a bit busy, i send a lot PR's 2.5 months ago or so an no response since then, fixing most of the open issues :/ 2021-06-29 15:55:52 cehteh wondering if i shall fork it or ask for co-maintainership in case he cant cope 2021-06-29 15:56:04 danieldg crates.io needs a better way to handle abandoned crates in general 2021-06-29 15:56:21 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-06-29 15:57:17 --> mountolive (~mountoliv@188.240.132.112) has joined ##rust 2021-06-29 15:58:48 cehteh yes 2021-06-29 15:58:55 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (Ping timeout: 272 seconds) 2021-06-29 15:59:22 cehteh well its not totally abadoned, he responded once, at the beginning 2021-06-29 15:59:35 cehteh possibly the is just swamped with daywork 2021-06-29 16:00:45 --> twiclo (~twiclo@66.29.177.50.static.utbb.net) has joined ##rust 2021-06-29 16:02:07 cehteh i think identifying crates not by name but by some cryptographic key would be a nice start, then one could make a WoT that maps names to these keys and thus to the actual code. rather than having names claimed and abadoned 2021-06-29 16:02:34 cehteh (but implementing such a system would be a major effort) 2021-06-29 16:03:16 --> thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has joined ##rust 2021-06-29 16:03:29 danieldg well, Cargo.lock already does some of that for specific releases 2021-06-29 16:03:58 Alexendoo I believe there's some ongoing effort to add namespaces 2021-06-29 16:04:05 danieldg not sure why a WoT would be a helpful addition 2021-06-29 16:04:35 Hans-Martin Asking again for libp2p knowledgeable folks as my question is scrolling off :-) 2021-06-29 16:04:50 cehteh because you can add private/per-organization registries 2021-06-29 16:05:04 cehteh Hans-Martin: sorry no 2021-06-29 16:05:12 Hans-Martin :-( 2021-06-29 16:05:16 danieldg cehteh: you can already do that 2021-06-29 16:05:21 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 16:05:38 cehteh danieldg: yeah but WoT could give some nice security layer 2021-06-29 16:06:15 Alexendoo It only adds security if you can do a better job of solving key sharing than some https url 2021-06-29 16:07:03 cehteh in my lib i can sign that it shall import library $cryptographic_key as foo 2021-06-29 16:07:04 danieldg or a better way to solve trust; WoT is hard enough just verifying identity 2021-06-29 16:07:20 cehteh Alexendoo: yes of course, i saied major effort 2021-06-29 16:07:43 danieldg Cargo.lock's hashing of the code is probably better there - you trust the code, not the key 2021-06-29 16:08:08 danieldg else you get the chrome web store issue of people selling their private keys 2021-06-29 16:08:18 cehteh lol 2021-06-29 16:08:56 cehteh remmeber the times when http://ssh-keygen.com was a thing? 2021-06-29 16:09:06 --> raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-06-29 16:09:07 danieldg never heard of it 2021-06-29 16:09:34 danieldg sounds like a great way to build yourself a botnet, though 2021-06-29 16:10:00 cehteh that was hilarious, some webservice which gave users a nice frontend to generate ssh keys :) ... for the commandlineophobes 2021-06-29 16:10:23 cehteh maybe 10/15 years ago 2021-06-29 16:10:28 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 250 seconds) 2021-06-29 16:11:00 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-29 16:11:39 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 16:11:46 <-- raute1 (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Ping timeout: 250 seconds) 2021-06-29 16:12:04 --> GNUcifer (~ct@i6DFA8712.versanet.de) has joined ##rust 2021-06-29 16:12:16 <-- cehteh (~ct@i6DFA8E2C.versanet.de) has quit (Killed (NickServ (GHOST command used by GNUcifer!~ct@i6DFA8712.versanet.de))) 2021-06-29 16:12:26 -- GNUcifer is now known as cehteh 2021-06-29 16:13:32 Hans-Martin yeah I would totally trust a keypair generated on some website... 2021-06-29 16:15:07 danieldg funny thing is, if you were running debian, it might have been more secure than generating locally 2021-06-29 16:15:13 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-06-29 16:15:14 cehteh haha 2021-06-29 16:15:47 --> tristero (~nobody@user/tristero) has joined ##rust 2021-06-29 16:16:01 --> jward (~john@cpc1-stkp12-2-0-cust21.10-2.cable.virginm.net) has joined ##rust 2021-06-29 16:16:29 --> johuck (~johuck@dynamic-002-244-073-241.2.244.pool.telefonica.de) has joined ##rust 2021-06-29 16:16:57 cehteh actually i noticed many years after the debian debacle that i had one of these broken keys in use .. luckily only in the local net and not 'really' in use, was my wifes ssh key, but she really used it 2021-06-29 16:17:36 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-06-29 16:17:46 danieldg yeah, I generated a secondary key during that period... never got around to rotating it in, luckily 2021-06-29 16:18:37 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-29 16:20:09 cehteh btw in my pre-commit hook i got compile time from 1:20m to <30 sec and now ~4sec ... \o/ ... thats pretty good optimization result 2021-06-29 16:21:06 <-- Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has quit (Ping timeout: 240 seconds) 2021-06-29 16:21:16 <-- mreznik (~mreznik@95.85.216.116) has quit (Quit: Leaving) 2021-06-29 16:26:02 Hans-Martin argh I think I found the cause of my problem. libp2p crate is at version 0.38, and the github project is at 0.39. Handling of swarm events has changed. Totally not mentioned in CHANGELOG :-( 2021-06-29 16:27:22 Hans-Martin so either pull the crate from github or work without the nice features... 2021-06-29 16:27:51 j`ey the 0.39 probably is unreleased? 2021-06-29 16:28:01 cehteh as long you are in development you can just pull from github and hope they make a release before you want to do so 2021-06-29 16:28:38 cehteh i am currently using nightly as well on my main project because it will takev loooong time before its releaseable 2021-06-29 16:28:56 cehteh (something p2p too :D but wont use libp2p) 2021-06-29 16:28:59 Hans-Martin yeah, I'm just playing around, no release plans yet, so I don't mind if using unrelease libs 2021-06-29 16:29:08 --> safe (~safe@cpe-74-64-165-24.nj.res.rr.com) has joined ##rust 2021-06-29 16:29:43 Hans-Martin I actually have too little experience with p2p to write the complete stack from scratch, was hoping to get a headstart by using a comprehensive lib 2021-06-29 16:30:10 cehteh i may look at it again, but i tihnk its not needed for me 2021-06-29 16:30:35 cehteh and i want noise protocol between the peers 2021-06-29 16:30:54 Hans-Martin they do noise (among lots of other stuff) 2021-06-29 16:31:03 cehteh but still working on other things not a bit of networking yet 2021-06-29 16:31:16 cehteh well i may look at it when its time 2021-06-29 16:31:52 <-- johuck (~johuck@dynamic-002-244-073-241.2.244.pool.telefonica.de) has quit (Remote host closed the connection) 2021-06-29 16:32:10 --> johuck (~johuck@dynamic-002-244-073-241.2.244.pool.telefonica.de) has joined ##rust 2021-06-29 16:32:23 cehteh i am stuill on the rust learning stage and creating some tools/libs on the way 2021-06-29 16:33:57 <-- johuck (~johuck@dynamic-002-244-073-241.2.244.pool.telefonica.de) has quit (Client Quit) 2021-06-29 16:35:04 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Quit: WeeChat 3.0.1) 2021-06-29 16:35:04 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 265 seconds) 2021-06-29 16:35:47 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-06-29 16:36:07 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-29 16:37:26 Hans-Martin I'm also still learning - coming from a pure object oriented background, Rust is pretty foreign. I had the choice of doing C or something else without GC for some private project, and memory and type safety as in Rust wins hands down. 2021-06-29 16:37:57 Hans-Martin Could have learned Go, but there's only so much time... 2021-06-29 16:41:53 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-29 16:42:48 cehteh i looked at go but found it unfit for my purposes (and much less nice) 2021-06-29 16:43:04 cehteh done plenty of C and some lua 2021-06-29 16:44:28 <-- darkstalker (~wolfie@186.148.12.159) has quit (Quit: No Ping reply in 180 seconds.) 2021-06-29 16:44:52 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-06-29 16:45:03 Hans-Martin For anything big I'll stay with Smalltalk-80, reliable and doesn't get in the way. Type systems can be helpful but making them happy costs a lot of time and nerves. 2021-06-29 16:49:23 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-29 16:50:24 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-29 16:50:43 cehteh lol 2021-06-29 16:51:22 cehteh i liked the smalltalk idea but never got used to the syntax back then, meanwhile it not that bad but its a bit antique 2021-06-29 16:51:51 mike-burns There are nice modern Smalltalks, like Pharo. 2021-06-29 16:52:45 cehteh i could like logtalk since prolog was one of my first programming languages and i always keep an eye on it, just dont use it anymore for serious stuff 2021-06-29 16:53:04 la_mettrie cehteh: for which purpose you studied prolog? 2021-06-29 16:53:31 cehteh but currently we are over the oo hype. it will be back in a few years i bet 2021-06-29 16:53:45 cehteh la_mettrie: just private interest 2021-06-29 16:54:04 cehteh happend to be my 2nd language after basic in the late 80's 2021-06-29 16:54:11 la_mettrie what kind of programs you wrote with it? 2021-06-29 16:54:25 cehteh nothing much mostly fooling around 2021-06-29 16:55:30 <-- twiclo (~twiclo@66.29.177.50.static.utbb.net) has quit (Quit: WeeChat 2.9) 2021-06-29 16:55:37 cehteh i still value it for its learning experience and way of thinking one gets taught 2021-06-29 16:59:29 --> bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has joined ##rust 2021-06-29 17:03:30 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 272 seconds) 2021-06-29 17:04:30 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Ping timeout: 256 seconds) 2021-06-29 17:05:06 <-- mpt (~tom@2a02:908:1862:49e0::5) has quit (Ping timeout: 240 seconds) 2021-06-29 17:05:24 ashafq cehteh, I was able to hack up a build.rs file to copy some files in the src directory to the target directory 2021-06-29 17:06:37 cehteh yes thats pretty doable, as long you want to do that before building 2021-06-29 17:09:17 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-29 17:09:33 ashafq I guess all I can do after that is do a 'install.sh' or something 2021-06-29 17:10:38 cehteh if its unix only 2021-06-29 17:10:57 --> Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has joined ##rust 2021-06-29 17:13:07 cehteh i'd prolly leave the 'installation' to some packager/distributor/maintainer ... maybe create a ./contrib or whatever is necessary to host tools for that 2021-06-29 17:15:54 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-06-29 17:21:41 --> brickfat (~brickfat@user/brickfat) has joined ##rust 2021-06-29 17:23:38 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-29 17:25:39 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-29 17:26:17 <-- brickfat (~brickfat@user/brickfat) has left ##rust 2021-06-29 17:33:16 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Ping timeout: 272 seconds) 2021-06-29 17:34:55 <-- Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has quit (Ping timeout: 246 seconds) 2021-06-29 17:36:47 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-29 17:40:00 <-- jward (~john@cpc1-stkp12-2-0-cust21.10-2.cable.virginm.net) has quit (Quit: Leaving) 2021-06-29 17:40:05 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-29 17:40:53 <-- saatii (~s@86ff518c.dsl.pool.telekom.hu) has quit (Remote host closed the connection) 2021-06-29 17:41:33 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-29 17:49:11 --> ollierees (~ollierees@109.249.185.27) has joined ##rust 2021-06-29 17:50:58 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Ping timeout: 256 seconds) 2021-06-29 17:51:07 ollierees I asked this in the ##programming room, but does anyone have any good pointers in a rustacean way? I keep on getting borrowing erros when I compile, which I can fix, but I think I can avoid them more if I adjust my thinking, and I keep on being told to tack on lifetimes to members of structs that are of other struct types, i.e. a Node struct in a Graph struct. 2021-06-29 17:52:47 --> Wafelack (~wafelack@pop.92-184-112-223.mobile.abo.orange.fr) has joined ##rust 2021-06-29 17:53:45 cehteh depends on what you want to archive .. self referring things in rust are hard, lifetimes are kindof infectionous, once you introduce them you have to carry them all around (but may given the best performance) .. but lifetimes cant fix circular references 2021-06-29 17:53:57 cehteh sometimes you can use Rc or Arc 2021-06-29 17:54:06 cehteh or some other things 2021-06-29 17:55:06 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-29 17:55:19 <-- aoei (aoei@nethackscoreboard/aoei) has quit (Quit: reboot) 2021-06-29 17:56:27 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-06-29 17:56:55 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Remote host closed the connection) 2021-06-29 17:57:45 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 256 seconds) 2021-06-29 17:57:52 --> aoei (~aoei@nethackscoreboard/aoei) has joined ##rust 2021-06-29 17:59:41 ollierees So what's the advantage over using C? I get the feeling I still have to worry about memory management, but it trades expressiveness for safety. 2021-06-29 18:00:32 cehteh when you use safe rust then your program, once it compiles cant segfault/show UB 2021-06-29 18:00:48 cehteh doesnt mean its bug free, but it wont crash 2021-06-29 18:01:10 cehteh considering that panics and asserts are safe aborts 2021-06-29 18:01:57 Gottox but even then, you need to be expressive about the locations where your program may panic. 2021-06-29 18:02:31 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-29 18:02:40 cehteh memory management in rust is kindof 'augmented' you dont need to worry about it but you may need to specify the dataflow a bit more precise, which generally leads to better design and more robust programs as well 2021-06-29 18:02:51 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 256 seconds) 2021-06-29 18:02:53 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-06-29 18:03:07 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-06-29 18:03:46 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-29 18:04:05 cehteh but in most cases its implicit, when there is a borrow error that usually say "you are doing something stupid" .. rarely its fooled and the thing could be legal, then there are things how you can direct to do compile correctly 2021-06-29 18:04:06 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-29 18:04:06 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-06-29 18:04:06 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-06-29 18:04:06 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-29 18:04:11 --> felinae (~felinae@user/felinae) has joined ##rust 2021-06-29 18:04:24 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-06-29 18:04:24 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-06-29 18:04:24 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-06-29 18:04:24 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-06-29 18:04:24 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-06-29 18:04:24 --> siraben (~siraben@user/siraben) has joined ##rust 2021-06-29 18:04:24 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-06-29 18:04:24 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-06-29 18:04:25 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-06-29 18:04:38 --> Alex[m]1 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-29 18:05:08 cehteh many malpratice one done in C (and worked there just by chance) wont pass the rust compiler you have to rethink some things 2021-06-29 18:06:32 <-- biberu (~biberu@user/biberu) has quit (Read error: Connection reset by peer) 2021-06-29 18:06:52 --> biberu (~biberu@user/biberu) has joined ##rust 2021-06-29 18:06:58 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 18:11:00 <-- ollierees (~ollierees@109.249.185.27) has quit (Quit: WeeChat 2.9) 2021-06-29 18:11:28 <-- siraben (~siraben@user/siraben) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:29 <-- psydroid (~psydroid@user/psydroid) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:31 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:32 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:33 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:41 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:41 <-- jai (~darkapex@user/darkapex) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:44 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:44 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:45 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:48 <-- kadoban (~kadoban@user/kadoban) has quit (Quit: node-irc says goodbye) 2021-06-29 18:11:55 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Quit: node-irc says goodbye) 2021-06-29 18:12:08 <-- thecatster_ (~thecatste@user/thecatster) has quit (Quit: node-irc says goodbye) 2021-06-29 18:12:30 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 18:13:39 <-- felinae (~felinae@user/felinae) has quit (Quit: node-irc says goodbye) 2021-06-29 18:13:51 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Quit: node-irc says goodbye) 2021-06-29 18:14:01 <-- Alex[m]1 (~randomstr@2001:470:69fc:105::47f6) has quit (Quit: node-irc says goodbye) 2021-06-29 18:14:54 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:8d5c:ca53:3ec7:e9b2) has quit (Read error: Connection reset by peer) 2021-06-29 18:20:17 <-- thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has quit (Remote host closed the connection) 2021-06-29 18:21:05 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-06-29 18:22:38 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Ping timeout: 244 seconds) 2021-06-29 18:24:57 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-29 18:26:43 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-06-29 18:27:02 --> JanC_ (~janc@user/janc) has joined ##rust 2021-06-29 18:27:47 <-- mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has quit (Ping timeout: 256 seconds) 2021-06-29 18:27:54 <-- JanC (~janc@user/janc) has quit (Ping timeout: 240 seconds) 2021-06-29 18:28:10 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-06-29 18:30:42 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-06-29 18:31:00 <-- davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has quit (Remote host closed the connection) 2021-06-29 18:31:19 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-06-29 18:31:33 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-06-29 18:32:19 --> Feuermagier_ (~Feuermagi@2a02:2488:4211:3400:5def:8486:9e4:b49a) has joined ##rust 2021-06-29 18:32:39 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Read error: Connection reset by peer) 2021-06-29 18:34:27 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-29 18:34:51 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-29 18:34:51 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-06-29 18:34:51 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-06-29 18:34:51 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-29 18:34:51 --> felinae (~felinae@user/felinae) has joined ##rust 2021-06-29 18:34:51 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-06-29 18:34:51 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-06-29 18:34:51 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-06-29 18:34:51 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-06-29 18:34:51 --> siraben (~siraben@user/siraben) has joined ##rust 2021-06-29 18:34:51 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-06-29 18:34:51 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-06-29 18:34:51 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-06-29 18:35:06 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-06-29 18:35:13 --> Alex[m]123456712 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-29 18:40:52 <-- Wafelack (~wafelack@pop.92-184-112-223.mobile.abo.orange.fr) has quit (Quit: co'o) 2021-06-29 18:44:14 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 268 seconds) 2021-06-29 18:46:16 ashafq Is there ldexp() in Rust? 2021-06-29 18:47:30 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 240 seconds) 2021-06-29 18:50:54 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-29 18:52:23 <-- jay-invariant (~jay@c-24-4-6-169.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-06-29 18:53:29 --> Overflwn (~Overflwn@2a02:8070:c3b7:5b00::e4f3) has joined ##rust 2021-06-29 18:55:11 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-29 18:55:38 <-- barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-29 18:57:16 <-- discipulus (~discipulu@user/discipulus) has quit (Ping timeout: 256 seconds) 2021-06-29 18:59:43 <-- bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has quit (Quit: Leaving) 2021-06-29 19:03:07 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 19:15:01 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 246 seconds) 2021-06-29 19:16:19 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-29 19:16:48 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-06-29 19:20:58 Arnavion Not in libstd 2021-06-29 19:22:36 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-06-29 19:23:19 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-06-29 19:26:20 <-- lf (~quassel@p200300d21f001500022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 250 seconds) 2021-06-29 19:26:35 --> lf (~quassel@p200300d21f000700022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 19:29:24 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 19:30:36 --> tims (~tims@220-244-125-107.static.tpgi.com.au) has joined ##rust 2021-06-29 19:31:10 --> mjs2600 (~mjs2600@c-24-91-3-49.hsd1.vt.comcast.net) has joined ##rust 2021-06-29 19:34:02 --> FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-29 19:39:15 -- JanC_ is now known as JanC 2021-06-29 19:39:48 --> paravida (~paravida@user/paravida) has joined ##rust 2021-06-29 19:43:29 --> Rayke (rayke@user/rayke) has joined ##rust 2021-06-29 19:43:54 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 240 seconds) 2021-06-29 19:52:36 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 272 seconds) 2021-06-29 19:52:50 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-29 19:55:32 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-29 19:55:54 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-06-29 19:59:36 <-- safe (~safe@cpe-74-64-165-24.nj.res.rr.com) has quit (Read error: Connection reset by peer) 2021-06-29 20:01:40 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-29 20:04:38 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-06-29 20:05:54 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Read error: Connection reset by peer) 2021-06-29 20:06:38 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-29 20:07:42 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-06-29 20:07:55 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 20:11:30 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-29 20:12:38 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-29 20:15:30 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-06-29 20:17:20 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:cf3c:697d:723b:8aac) has quit (Remote host closed the connection) 2021-06-29 20:18:51 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 256 seconds) 2021-06-29 20:20:07 <-- Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has quit (Ping timeout: 246 seconds) 2021-06-29 20:26:47 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 256 seconds) 2021-06-29 20:34:16 --> emerent_ (~quassel@p200300cd5703bbbcba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 20:34:16 -- emerent is now known as Guest621 2021-06-29 20:34:16 <-- Guest621 (~quassel@p200300cd5703bb9dba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Killed (molybdenum.libera.chat (Nickname regained by services))) 2021-06-29 20:34:16 -- emerent_ is now known as emerent 2021-06-29 20:40:54 <-- jinie (~jimmy@188.114.173.37) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-29 20:41:24 --> gggpkm (~gggpkm@106.37.74.209) has joined ##rust 2021-06-29 20:42:10 --> jinie (~jimmy@188.114.173.37) has joined ##rust 2021-06-29 20:42:51 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-29 20:43:01 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-29 20:43:24 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-29 20:44:30 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 20:44:55 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 20:45:23 <-- jinie (~jimmy@188.114.173.37) has quit (Client Quit) 2021-06-29 20:46:13 --> jinie (~jimmy@188.114.173.37) has joined ##rust 2021-06-29 20:46:59 <-- Overflwn (~Overflwn@2a02:8070:c3b7:5b00::e4f3) has quit (Remote host closed the connection) 2021-06-29 20:47:04 <-- xse (~xse@user/xse) has quit (Ping timeout: 272 seconds) 2021-06-29 20:47:30 <-- gggpkm (~gggpkm@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-06-29 20:53:16 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Read error: Connection reset by peer) 2021-06-29 20:53:19 --> jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has joined ##rust 2021-06-29 20:54:14 <-- jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has quit (Remote host closed the connection) 2021-06-29 20:54:22 --> jay-invariant (~jay@c-24-4-6-169.hsd1.ca.comcast.net) has joined ##rust 2021-06-29 20:55:02 --> jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has joined ##rust 2021-06-29 20:56:21 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 20:57:10 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-29 21:00:18 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-29 21:00:59 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-29 21:02:45 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-29 21:02:46 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-29 21:03:01 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-29 21:03:19 <-- jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has quit (Ping timeout: 265 seconds) 2021-06-29 21:04:08 --> jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has joined ##rust 2021-06-29 21:04:34 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 246 seconds) 2021-06-29 21:06:41 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-29 21:07:35 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 256 seconds) 2021-06-29 21:08:36 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 21:08:55 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-29 21:09:11 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 21:10:30 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 21:21:12 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 256 seconds) 2021-06-29 21:21:40 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-29 21:22:19 <-- kmh_ (~kmh@p200300df5f2c2900489e1812d3a742a3.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-06-29 21:22:46 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 258 seconds) 2021-06-29 21:23:10 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 21:23:20 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-29 21:25:08 --> kmh (~kmh@p200300df5f069e00e4c314caf78672dd.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 21:25:33 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-29 21:30:42 <-- ilja (~ilja@78-21-181-75.access.telenet.be) has quit 2021-06-29 21:32:27 --> starblue1 (~juergen@dslb-188-109-104-173.188.109.pools.vodafone-ip.de) has joined ##rust 2021-06-29 21:34:30 <-- dece (~dece@dece.space) has left ##rust (WeeChat 2.3) 2021-06-29 21:34:35 <-- Rio (~rio@2601:345:4203:41c0:3f1f:6ee6:2ea6:a58b) has quit (Remote host closed the connection) 2021-06-29 21:34:53 --> Rio (~rio@2601:345:4203:41c0:9cf8:bc7b:3ef:2751) has joined ##rust 2021-06-29 21:35:06 <-- starblue (~juergen@dslb-088-078-097-111.088.078.pools.vodafone-ip.de) has quit (Ping timeout: 240 seconds) 2021-06-29 21:42:35 <-- Rio (~rio@2601:345:4203:41c0:9cf8:bc7b:3ef:2751) has quit (Remote host closed the connection) 2021-06-29 21:42:43 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 246 seconds) 2021-06-29 21:42:49 --> Maxattax97 (~max@2603-900a-1501-a7ca-0000-0000-0000-077a.inf6.spectrum.com) has joined ##rust 2021-06-29 21:42:53 --> Rio (~rio@2601:345:4203:41c0:6bb1:1071:dd25:a90b) has joined ##rust 2021-06-29 21:44:18 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 240 seconds) 2021-06-29 21:44:50 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 21:46:36 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-29 21:50:20 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Ping timeout: 244 seconds) 2021-06-29 21:50:31 --> neurocyte47 (~neurocyte@185.238.253.62) has joined ##rust 2021-06-29 21:50:31 <-- neurocyte47 (~neurocyte@185.238.253.62) has quit (Changing host) 2021-06-29 21:50:31 --> neurocyte47 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-29 21:52:09 <-- Maxattax97 (~max@2603-900a-1501-a7ca-0000-0000-0000-077a.inf6.spectrum.com) has quit (Quit: WeeChat 3.0.1) 2021-06-29 21:53:42 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-29 21:54:03 <-- jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has quit (Ping timeout: 256 seconds) 2021-06-29 21:54:30 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-06-29 21:54:37 <-- neurocyte4 (~neurocyte@user/neurocyte) has quit (Ping timeout: 256 seconds) 2021-06-29 21:54:38 -- neurocyte47 is now known as neurocyte4 2021-06-29 21:57:22 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-29 21:57:56 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-29 21:58:11 <-- moistphantom (~root@user/moistphantom) has quit (Quit: moistphantom) 2021-06-29 21:58:11 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-29 21:59:03 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-29 22:01:10 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-29 22:02:57 gggpkm what is the use of lib.rs file under folder 2021-06-29 22:08:40 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 22:10:32 cehteh module 2021-06-29 22:11:50 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-06-29 22:12:02 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-29 22:13:18 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-29 22:14:01 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-29 22:15:06 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-29 22:16:19 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 246 seconds) 2021-06-29 22:16:35 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-29 22:23:38 Mutabah gggp: `src/lib.rs` is the root file of a library 2021-06-29 22:25:58 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-29 22:29:11 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-29 22:29:25 --> willbush (~user@47.183.200.14) has joined ##rust 2021-06-29 22:31:54 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-06-29 22:36:40 --> jleightcap2 (~jleightca@user/jleightcap) has joined ##rust 2021-06-29 22:38:14 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 252 seconds) 2021-06-29 22:38:18 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-06-29 22:41:39 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 256 seconds) 2021-06-29 22:43:22 --> bilegeek (~bilegeek@11.sub-174-208-196.myvzw.com) has joined ##rust 2021-06-29 22:46:32 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-29 22:48:47 <-- Rio (~rio@2601:345:4203:41c0:6bb1:1071:dd25:a90b) has quit (Quit: Leaving) 2021-06-29 22:57:35 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-29 22:57:46 <-- paravida (~paravida@user/paravida) has quit (Remote host closed the connection) 2021-06-29 22:58:26 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-29 23:01:58 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-29 23:02:33 <-- bilegeek (~bilegeek@11.sub-174-208-196.myvzw.com) has quit (Read error: Connection reset by peer) 2021-06-29 23:02:40 willbush Is there some special component that has to be installed via rustup to get rust-gdbgui? I have rust-gdb, but not rust-gdbgui and I wanted to give it a try. 2021-06-29 23:03:59 --> bilegeek (~bilegeek@11.sub-174-208-196.myvzw.com) has joined ##rust 2021-06-29 23:06:16 --> fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has joined ##rust 2021-06-29 23:08:01 willbush Nevermind, think I found the issue. There's a hardcoded list of binaries to link for rustup in NixOS https://github.com/NixOS/nixpkgs/blob/0d8cbf704cace86734d93d2b49a821e05b1d8bde/pkgs/development/tools/rust/rustup/default.nix#L61 2021-06-29 23:16:21 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-29 23:19:30 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 240 seconds) 2021-06-29 23:22:45 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-06-29 23:25:35 --> Guest19 (~Guest19@2601:404:d300:5a0:e1ef:e298:8a2d:95d6) has joined ##rust 2021-06-29 23:30:25 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-29 23:31:30 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-29 23:33:42 --> bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has joined ##rust 2021-06-29 23:34:27 --> decartes (uid240036@id-240036.brockwell.irccloud.com) has joined ##rust 2021-06-29 23:39:43 <-- Guest19 (~Guest19@2601:404:d300:5a0:e1ef:e298:8a2d:95d6) has quit (Ping timeout: 246 seconds) 2021-06-29 23:40:01 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 256 seconds) 2021-06-29 23:40:58 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-29 23:41:00 gggpkm_ what is #![allow(dead_code, unused_macros) in the first line of file 2021-06-29 23:41:55 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 258 seconds) 2021-06-29 23:42:12 -- Lord_of_Life_ is now known as Lord_of_Life 2021-06-29 23:42:48 jbg it's a module-level attribute (https://doc.rust-lang.org/rust-by-example/attribute.html) saying that within that module, the compiler will allow (i.e. won't warn about) about dead code or unused macros 2021-06-29 23:43:35 jbg the built-in attributes are documented here: https://doc.rust-lang.org/reference/attributes.html#built-in-attributes-index 2021-06-29 23:46:00 gggpkm_ jbg, #![] is coding for attributes? 2021-06-29 23:47:34 jbg yup. #![] is a crate-level attribute, actually (I misspoke above). there is also #[] which applies to a specific module/item 2021-06-29 23:47:43 jbg the first link I gave you above covers it pretty well 2021-06-29 23:48:03 gggpkm_ nice 2021-06-29 23:48:10 jbg so #![allow(dead_code, unused_macros)] turns off the dead_code and unused_macros lints for the entire crate 2021-06-29 23:48:26 <-- death916 (~death916@user/death916) has quit (Ping timeout: 258 seconds) 2021-06-29 23:48:27 -- gggpkm_ is now known as gggpkm 2021-06-29 23:48:54 --> meandi2 (~meandi4@dyndsl-178-142-253-071.ewe-ip-backbone.de) has joined ##rust 2021-06-29 23:49:38 gggpkm I am wondering if Vec::New return a reference 2021-06-29 23:49:59 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-29 23:50:07 jbg you can stop wondering if you look at the docs, which clearly show that Vec::new doesn't return a reference 2021-06-29 23:50:17 gggpkm is that rational or good 2021-06-29 23:50:24 jbg you can also figure it out logically: if it returns a reference, what it refer to? 2021-06-29 23:50:28 jbg *what does 2021-06-29 23:50:32 gggpkm I mean "if" 2021-06-29 23:50:43 jbg how could it return a reference? where would the storage be? 2021-06-29 23:51:09 gggpkm allocating a block of memory ,then return reference to it 2021-06-29 23:51:43 jbg I mean, that is basically what it does (except it doesn't allocate anything until something is pushed), but the reference is contained within the Vec structure 2021-06-29 23:52:13 <-- meandi (~meandi4@dyndsl-178-142-255-227.ewe-ip-backbone.de) has quit (Ping timeout: 246 seconds) 2021-06-29 23:52:16 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-29 23:52:35 jbg if it returned an actual reference type, who would own this "block of memory" you refer to? 2021-06-29 23:52:38 jbg and when would it be dropped? 2021-06-29 23:52:58 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-06-29 23:53:13 gggpkm jbg, so for every block of memory ,it must have a owner ? 2021-06-29 23:53:25 jbg I think you might want to read the rust book 2021-06-29 23:53:36 jbg if you have a reference, it refers to something that is owned 2021-06-29 23:54:17 jbg but going back to your Vec question, you might also want to look at the definition of the Vec struct 2021-06-29 23:54:33 gggpkm the std lib should return the owner to programmer 2021-06-29 23:54:36 jbg because it's basically already what you imagine 2021-06-29 23:54:45 jbg Vec is a pointer, a capacity, and a length 2021-06-29 23:55:22 jbg in other words, when you call Vec::new(), it arranges some storage (it doesn't actually allocate until you push something) and returns an owned value that encapsulates a reference to that storage 2021-06-29 23:55:49 jbg it's important that the value is owned by you, since when you drop it the storage will be freed 2021-06-29 23:56:33 gggpkm jbg, can I manipulate on the vec pointer directly 2021-06-29 23:56:36 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-29 23:56:42 jbg you probably shouldn't but you absolutely can if you want to 2021-06-29 23:56:59 jbg the Vec documentation even goes into detail about the internal structure of it, what is guaranteed, and what is not 2021-06-29 23:59:33 <-- cjb (~cjb@user/cjb) has quit 2021-06-30 00:00:53 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-30 00:01:04 rk4 i would suggest learning the basics of rust via the book instead of irc, since once you get beyond the book you'll have much harder questions that you'll need people to answer and if you've tired everyone out with a million questions beforehand that are well addressed in the free documentation the community already wrote, it won't be so great 2021-06-30 00:03:19 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-30 00:03:30 <-- bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has quit (Ping timeout: 240 seconds) 2021-06-30 00:05:29 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-30 00:05:55 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-06-30 00:06:16 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 00:13:50 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-30 00:27:12 --> LtHummus_ (~lthummus@97-126-113-251.tukw.qwest.net) has joined ##rust 2021-06-30 00:28:36 <-- LtHummus (~lthummus@174-21-28-50.tukw.qwest.net) has quit (Ping timeout: 252 seconds) 2021-06-30 00:29:44 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-30 00:35:24 <-- flipchan (~yumman@user/flipchan) has quit (Ping timeout: 268 seconds) 2021-06-30 00:37:54 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-30 00:38:14 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-30 00:38:18 <-- bilegeek (~bilegeek@11.sub-174-208-196.myvzw.com) has quit (Quit: Leaving) 2021-06-30 00:43:45 --> P1RATEZ (piratez@user/p1ratez) has joined ##rust 2021-06-30 00:44:28 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 00:44:34 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Ping timeout: 272 seconds) 2021-06-30 00:46:42 --> dmalteseknight (~dmaltesek@user/dmalteseknight) has joined ##rust 2021-06-30 00:46:53 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-30 00:47:06 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 00:48:15 --> trev (~trev@user/trev) has joined ##rust 2021-06-30 00:55:31 <-- P1RATEZ (piratez@user/p1ratez) has quit 2021-06-30 00:59:55 --> veegee_ (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-06-30 01:03:02 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Ping timeout: 250 seconds) 2021-06-30 01:06:33 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-06-30 01:11:30 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-06-30 01:11:30 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-06-30 01:13:32 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-30 01:14:56 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-30 01:15:48 ac5tin is there a difference between Vec.first() and Vec.get(0) 2021-06-30 01:17:09 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-06-30 01:17:58 jbg can you spot the difference by looking at the docs? the signature of those methods tells you all you need to know 2021-06-30 01:18:42 jbg I should say "difference or lack thereof" ;) 2021-06-30 01:21:22 ac5tin seems the same 2021-06-30 01:21:49 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 01:22:07 jbg yup. first() and get(0) behave the same. there is one very minor difference though: first() is a const fn, so you can use it some places you can't use get(0) 2021-06-30 01:23:11 --> img (~img@user/img) has joined ##rust 2021-06-30 01:23:12 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 01:23:12 jbg maybe that's only in nightly though 2021-06-30 01:24:46 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 01:25:10 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 01:25:25 jbg anyway yeah they're the same, and the signature is really enough to know that; they both return Option<&T>. if one of them didn't return an Option you'd know that it panics when out-of-bounds (or does something more exotic like returning Default::default(), but by convention in that case it would have a name making that very clear like first_or_default() and it could only be defined for T: Default) 2021-06-30 01:25:45 ac5tin jbg: i got an error about shared reference being moved 2021-06-30 01:25:49 ac5tin jbg: https://paste.rs/1Q9 2021-06-30 01:26:19 jbg your paste is not useful to me at all; it contains neither the error nor a hint as to where the error occurred 2021-06-30 01:26:37 ac5tin the error is on the line `let err = ...` 2021-06-30 01:26:41 jbg and what is the error? 2021-06-30 01:26:51 jbg when asking people to help you, it's best not to make them guess at what help you need 2021-06-30 01:26:53 ac5tin the error message is : cannot move out of `*sp_res` which is behind a shared refernce 2021-06-30 01:27:17 jbg yes 2021-06-30 01:27:18 ac5tin move occurs because `*sp_res` has type `Result<(),Box>` 2021-06-30 01:27:23 <-- Vonter (~Vonter@user/vonter) has quit (Quit: WeeChat 3.1) 2021-06-30 01:27:25 jbg first() returns a reference to the first element in the vec 2021-06-30 01:27:28 ac5tin thats the whole error 2021-06-30 01:27:35 jbg but err() tries to move the error out of the result 2021-06-30 01:27:57 jbg again, the docs make that clear, just from the function signature: https://doc.rust-lang.org/std/result/enum.Result.html#method.err 2021-06-30 01:28:00 ac5tin so what im trying to do is check if the 1st element is_err(), if it is then i want to convert it into a string 2021-06-30 01:28:16 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 272 seconds) 2021-06-30 01:28:22 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-30 01:28:24 jbg it returns Option, i.e. it gives ownership of the error if there is one, but you can't give ownership, because you only have a reference to the first element in the vec, not ownership of it 2021-06-30 01:28:26 jbg you have a few options 2021-06-30 01:28:53 jbg you can either move the element out of the vec (vec.remove(0) -- but that panics if the vec is empty) 2021-06-30 01:28:56 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-06-30 01:29:00 jbg or you can just take a reference to the error instead of trying to move it 2021-06-30 01:29:16 jbg .as_ref().err() 2021-06-30 01:29:39 jbg your code might be tidier written as a match 2021-06-30 01:29:53 ac5tin i think .as_ref().err().unwrap() works 2021-06-30 01:30:03 ac5tin my editor isnt complaining anymore 2021-06-30 01:30:13 jbg finalresult.abc = match sp_res.as_ref() { Ok(_) => "Ok".to_owned(), Err(e) => e.to_string() }; 2021-06-30 01:30:29 ac5tin oh yaa, forgot about match 2021-06-30 01:30:40 ac5tin match is actually very useful 2021-06-30 01:32:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 01:32:50 ac5tin btw, is "".to_owned() same as "".to_string() 2021-06-30 01:33:07 jbg yeah 2021-06-30 01:33:09 Mutabah Subtle difference 2021-06-30 01:33:17 Mutabah but same effect 2021-06-30 01:33:28 jbg the standard library specialises to_string() on str 2021-06-30 01:33:32 jbg iirc? 2021-06-30 01:33:38 Mutabah yeah, it does 2021-06-30 01:33:53 Mutabah (I kinda missed the `""` part and looked up to the above `match`) 2021-06-30 01:34:05 jbg I vaguely remember some time in the past when it didn't and "".to_string() was inefficient because it used the formatting machinery? 2021-06-30 01:34:18 --> mreznik (~mreznik@nat-pool-brq-t.redhat.com) has joined ##rust 2021-06-30 01:35:02 ac5tin i used to do "".to_string() but recently switched to to_owned() 2021-06-30 01:35:14 --> toast1 (~toast@2001:8003:2d01:e100:ab84:d817:23c:9f43) has joined ##rust 2021-06-30 01:35:27 Mutabah Yep, before specialization that was the case 2021-06-30 01:35:49 Mutabah I also prefer to_owned, because it avoids any accidental "conversion" 2021-06-30 01:36:41 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 01:38:04 --> img (~img@user/img) has joined ##rust 2021-06-30 01:40:54 <-- toast1 (~toast@2001:8003:2d01:e100:ab84:d817:23c:9f43) has quit (Quit: WeeChat 3.2) 2021-06-30 01:43:25 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 01:45:49 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 01:47:13 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-30 01:47:32 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 256 seconds) 2021-06-30 01:48:39 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 01:50:40 <-- cjb (~cjb@user/cjb) has quit 2021-06-30 01:53:45 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 01:55:06 --> img (~img@user/img) has joined ##rust 2021-06-30 02:00:39 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-30 02:01:50 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 02:02:10 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 02:04:32 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 256 seconds) 2021-06-30 02:05:18 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 02:06:40 --> img (~img@user/img) has joined ##rust 2021-06-30 02:09:54 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 240 seconds) 2021-06-30 02:22:20 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-30 02:26:14 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 02:29:07 --> img (~img@user/img) has joined ##rust 2021-06-30 02:32:16 --> dcz_ (~dcz@dynamic-002-243-174-190.2.243.pool.telefonica.de) has joined ##rust 2021-06-30 02:33:52 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 02:36:35 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-06-30 02:38:45 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-06-30 02:38:50 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-30 02:39:02 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 02:39:09 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-30 02:40:21 --> img (~img@user/img) has joined ##rust 2021-06-30 02:41:11 <-- img (~img@user/img) has quit (Client Quit) 2021-06-30 02:42:17 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-06-30 02:42:35 --> img (~img@user/img) has joined ##rust 2021-06-30 02:45:13 --> frost (~frost@59.71.241.179) has joined ##rust 2021-06-30 02:48:24 kai hi folks 2021-06-30 02:49:17 kai I'm currently trying to update my rust install, and "rustup update" is failing, as is the install via curl from the website if I try to do a new install 2021-06-30 02:49:31 kai the error message I'm getting is "CloseHandle' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', src/diskio/mod.rs:421:40" 2021-06-30 02:50:32 kai I didn't see anything for this on google, so I'm a bit confused about what's going on 2021-06-30 02:54:12 ssbr and that's why every unwrap should really be an expect 2021-06-30 02:55:19 ssbr kai: what if you pass -v to get verbose output? It sounds like something went wrong that might show up in logs if you do that. 2021-06-30 02:55:29 ssbr (I have to go to a meeting soon, will be back in thirty minutes though) 2021-06-30 02:55:59 kai so after 5 or 6 tries always falling over while downloading IO-ops, it now seems to have worked 2021-06-30 02:56:09 kai I guess some sort of transient network issue 2021-06-30 02:56:41 ssbr that works too 😎 2021-06-30 02:57:33 kai hm, or I have a hardware issue, I just had a build die with a segfault that wasn't there the last time 2021-06-30 02:57:39 kai sigh 2021-06-30 02:58:31 kai I've seen a lot of random segfaults recently, so maybe there's something to that. I guess time to talk to IT\ 2021-06-30 03:05:12 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-30 03:08:29 mdf what's the proper way to convert between arrayviews from ndarray to complex vectors in basic_dsp? the only way I've got it to work so far has been to first .collect() a new Vec from the arrayview and then convert that to a real time vec, and then that to a complex time vec 2021-06-30 03:08:45 mdf I think it's hugely inefficient with lots of unnecessary allocations 2021-06-30 03:09:45 -- aoei is now known as Rust 2021-06-30 03:13:49 substack whole point of ndarray libs is usually to prevent needing to do exactly that sort of thing 2021-06-30 03:14:42 <-- willbush (~user@47.183.200.14) has quit (Quit: ERC (IRC client for Emacs 28.0.50)) 2021-06-30 03:17:13 mdf yeah, it would be optimal if I could just find out how to make ndarray and basic_dsp interop nicely 2021-06-30 03:17:55 jbg I don't know much about these crates but when you say "convert that to a real time vec" and then "[convert] that to a complex time vec", are the actual Vec types changing or only the elements? 2021-06-30 03:18:04 jbg because if only the elements, why not do it in the iterator chain before .collect() 2021-06-30 03:18:57 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-06-30 03:19:10 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-30 03:21:46 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-06-30 03:26:08 mdf jbg: basic_dsp has this to_real_time_vec() that works for stdlib Vecs and outputs a DspVec. the conversion to complex time vec happens by using a to_complex() method of that DspVec, and I guess that's not the heaviest lifting 2021-06-30 03:27:49 jbg the Vec -> DspVec conversion doesn't look expensive. it just moves the Vec into the DspVec, resizing it if needed: https://docs.rs/basic_dsp_vector/0.9.4/src/basic_dsp_vector/vector_types/to_from_vec_conversions.rs.html#201-220 2021-06-30 03:27:50 substack mdf: sounds like if that lib had a more abstract trait input type instead of a vec only you could supply different implementations of the required routines and save some marshalling 2021-06-30 03:28:13 jbg did you actually observe it being hugely inefficient with lots of unnecessary allocations? 2021-06-30 03:29:08 jbg similarly, the real <-> complex conversions look almost free 2021-06-30 03:30:32 mdf the ArrayView from ndarray provides a read-only view to the contents of that array, so if I do .into_iter().collect::Vec() on that, it won't compile since it's iterating on &f64 items. so the way I got it working was to call to_owned() on the arrayview first, and then collect it to a Vec and do the to_real_time_vec() and to_complex() conversions 2021-06-30 03:31:14 mdf basically I haven't gotten to profile it correctly yet, since it seems to be a bit tricky (the code is library code which is used by a Python program via PyO3) 2021-06-30 03:31:24 jbg you can use .into_iter().copied().collect() to get an Iterator of f64 from an Iterator of &f64 2021-06-30 03:31:38 --> sean (~sean@user/se-sm-ca) has joined ##rust 2021-06-30 03:31:51 jbg I don't think you need to worry much about the Vec -> DspVec conversion or the DspVec (real) -> DspVec (complex) conversions 2021-06-30 03:31:53 mdf but the function is about 5 times slower than a python equivalent, so I'm guessing the problem is in those conversions or allocations 2021-06-30 03:31:59 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-06-30 03:32:01 mdf thanks, I'll try that 2021-06-30 03:32:25 jbg the first one is just moving the Vec into the DspVec (which doesn't copy any data, it just moves the (ptr, capacity, len) triple) and the second one is just updating some fields in the DspVec to reinterpret it 2021-06-30 03:32:28 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-06-30 03:32:59 jbg profiling will tell you where the actual slowness is so that you don't need to guess ;) 2021-06-30 03:33:10 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-30 03:33:54 ssbr I have so many questions about writing procedural macros, it's hard to know where to start. :( Any feedback on the TODOs for my second-ever proc macro? https://bpa.st/PUFQ Especially worried about hygiene -- no idea what the $crate equivalent is for proc macros. 2021-06-30 03:34:34 --> sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has joined ##rust 2021-06-30 03:34:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-06-30 03:35:00 jbg mdf: if you're able to use .as_slice() on the ArrayView you can also just directly go from that slice to the DspVec 2021-06-30 03:35:45 jbg if let Some(slice) = array_view.as_slice() { let dsp_vec: DspVec = slice.into(); ... } 2021-06-30 03:36:03 jbg but as_slice() returns None if the array view is discontiguous or not in standard order 2021-06-30 03:36:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 03:36:57 --> MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has joined ##rust 2021-06-30 03:38:42 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 03:40:08 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-06-30 03:40:57 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 03:41:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-06-30 03:42:25 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-30 03:42:41 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-30 03:42:41 --> death916 (~death916@user/death916) has joined ##rust 2021-06-30 03:43:25 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 03:44:14 <-- MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has quit (Ping timeout: 250 seconds) 2021-06-30 03:46:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 03:47:14 --> hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has joined ##rust 2021-06-30 03:48:04 <-- hidark (~hidark@126.red-83-34-145.dynamicip.rima-tde.net) has quit (Remote host closed the connection) 2021-06-30 03:48:49 --> MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has joined ##rust 2021-06-30 03:50:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 03:52:39 --> lumgwada_ (~lumgwada@101.181.188.168) has joined ##rust 2021-06-30 03:55:04 <-- MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has quit (Ping timeout: 250 seconds) 2021-06-30 03:55:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 03:55:36 <-- lumgwada (~lumgwada@101.181.126.104) has quit (Ping timeout: 272 seconds) 2021-06-30 03:59:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-06-30 04:00:41 --> MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has joined ##rust 2021-06-30 04:03:02 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-30 04:04:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 04:07:20 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-06-30 04:08:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-06-30 04:10:05 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-06-30 04:11:09 rk4 OT: anyone know of a room suitable for discussion about performant persistent storage methods, while I might have a rust program it's not really about rust, sled might fit be on topic but rocksdb is looking pretty good to me atm and that's all C++ [w/ a popular rust wrapper :] 2021-06-30 04:11:57 -- sean is now known as se-sm-ca 2021-06-30 04:13:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 04:15:44 --> hegstal (~hegstal@2a02:c7f:7604:8a00:19d1:3d77:8320:86c9) has joined ##rust 2021-06-30 04:18:15 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 04:22:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 04:24:14 --> kissen (~kissen@user/kissen) has joined ##rust 2021-06-30 04:25:40 sweater2 If anyone wants to participate in the legendary "ICFPC" contest (Jul 9-12) in one of the top teams, message me. We use rust. 2021-06-30 04:27:08 rk4 i like the idea but i chewed too much lead during key periods in my development 2021-06-30 04:27:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 04:27:26 * rk4 however is quite resistant to radiation 2021-06-30 04:29:49 <-- mreznik (~mreznik@nat-pool-brq-t.redhat.com) has quit (Quit: Leaving) 2021-06-30 04:31:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 04:32:31 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-30 04:33:33 discipulus I've wrapped up Ch.16. I posted practice code for review on the forums. https://users.rust-lang.org/t/feedback-ch-16-multi-threaded-operate-on-non-overlapping-slices-of-vector/61723 2021-06-30 04:33:49 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-06-30 04:34:37 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 04:34:38 --> arinov_ (~arinov@95.70.154.195) has joined ##rust 2021-06-30 04:34:53 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-30 04:34:57 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 04:35:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-06-30 04:39:34 <-- acid (~acid@user/acid) has quit (Ping timeout: 246 seconds) 2021-06-30 04:40:40 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 04:41:19 --> acid (~acid@user/acid) has joined ##rust 2021-06-30 04:41:41 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 04:41:56 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 04:43:10 <-- MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has quit (Ping timeout: 250 seconds) 2021-06-30 04:43:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-06-30 04:43:56 --> me (~thement@user/me) has joined ##rust 2021-06-30 04:44:50 trev what do you do when two deep dependencies are using a dependency of the same version but different features? 2021-06-30 04:44:55 --> gggpkm_ (~gggpkm@36.112.128.143) has joined ##rust 2021-06-30 04:47:30 trev and they are conflicting 2021-06-30 04:47:48 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-30 04:49:02 rk4 trev: i got shafted with that a few months ago with sqlx :< 2021-06-30 04:50:53 trev rk4 i feel like i'm partially responsible for having a project with massive crate bloat 2021-06-30 04:51:42 j`ey trev: it could happen with as few as 3 crates 2021-06-30 04:52:34 trev j`ey ew 3 crates? that's bloated 2021-06-30 04:52:43 trev need 0 to be safe 2021-06-30 04:53:18 j`ey trev: does that 0 include std/core? 2021-06-30 04:54:29 trev yeah those are fine 2021-06-30 04:55:32 <-- arinov_ (~arinov@95.70.154.195) has quit (Ping timeout: 265 seconds) 2021-06-30 05:02:29 jbg trev: it's a bug in the dependencies, technically, because features are supposed to be strictly additive 2021-06-30 05:02:54 j`ey jbg: thats what the docs say 2021-06-30 05:02:59 jbg so it's not a problem that different deps select different features, they just get summed and as long as the versions are compatible you'll just have one copy of the dep 2021-06-30 05:03:02 jbg but at a deeper level it's a deficiency in the features system 2021-06-30 05:03:07 j`ey but its convention they arent :P 2021-06-30 05:03:26 jbg generally this gets solved by the shallower deps getting "pass through" features 2021-06-30 05:03:49 jbg so e.g. if library foo uses library bar, and bar has openssl and rustls features 2021-06-30 05:03:59 jbg foo gets bar-openssl and bar-rustls features 2021-06-30 05:04:16 jbg I have started to realise recently that all of my biggest gripes with rust are actually gripes with cargo 2021-06-30 05:04:40 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-06-30 05:04:50 --> frostschutz (~frostschu@2a01:c23:7996:3e00:43c6:de01:9266:99ea) has joined ##rust 2021-06-30 05:05:08 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 05:05:47 trev yes 2021-06-30 05:08:00 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-06-30 05:08:22 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-06-30 05:08:44 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-06-30 05:09:35 -- gggpkm_ is now known as gggpkm 2021-06-30 05:10:09 gggpkm is it possible to get a raw pointer of int32 2021-06-30 05:10:54 ssbr gggpkm: like `let x : i32 = 0; let my_ptr = &x as *const _;` ? 2021-06-30 05:11:09 jbg gggpkm: I second rk4's earlier advice to read the book and do some self-directed learning of the basics rather than asking the community for the answer to every basic question 2021-06-30 05:13:42 --> MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has joined ##rust 2021-06-30 05:15:16 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-30 05:15:25 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:e4d7:c4d:9c1f:dab) has joined ##rust 2021-06-30 05:18:10 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 272 seconds) 2021-06-30 05:20:10 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 246 seconds) 2021-06-30 05:20:27 --> Guest94 (~textual@194.62.169.65.ipv4.parknet.dk) has joined ##rust 2021-06-30 05:24:36 mdf jbg: thanks for help re. conversions between ndarray and dspvec previously. I got the code a lot cleaner with your tips. however it's as you said that profiling is the way to go, as the guessing didn't actually result in noticiable performance gains :) 2021-06-30 05:24:41 mdf but still, it looks a lot nicer now 2021-06-30 05:27:53 --> mreznik (~mreznik@213.175.37.12) has joined ##rust 2021-06-30 05:29:14 --> chandlerbing (~oscar@81-206-221-72.fixed.kpn.net) has joined ##rust 2021-06-30 05:33:18 bertptrs cargo flamegraph is wonderful for profiling when you don't know what to look for 2021-06-30 05:34:46 --> arinov_ (~arinov@95.70.154.195) has joined ##rust 2021-06-30 05:35:03 jbg mdf: np! 2021-06-30 05:42:35 <-- WinterStar (~IceLight@user/icelight) has quit (Quit: WeeChat 3.2) 2021-06-30 05:43:03 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-30 05:43:39 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-06-30 05:47:13 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 256 seconds) 2021-06-30 05:48:41 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-06-30 05:49:10 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-06-30 05:49:50 <-- WinterStar (~IceLight@user/icelight) has quit (Quit: WeeChat 3.2) 2021-06-30 05:50:06 --> MadBeiDrache (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has joined ##rust 2021-06-30 05:51:57 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-30 05:53:06 <-- sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has quit (Ping timeout: 240 seconds) 2021-06-30 05:56:10 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 272 seconds) 2021-06-30 05:56:10 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 272 seconds) 2021-06-30 05:57:46 <-- WinterStar (~IceLight@user/icelight) has quit (Quit: WeeChat 3.2) 2021-06-30 05:58:10 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-06-30 06:03:37 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-30 06:03:54 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 240 seconds) 2021-06-30 06:05:45 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-06-30 06:05:49 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-30 06:05:57 --> tsal (~tsal@user/tsal) has joined ##rust 2021-06-30 06:09:21 la_mettrie i assume as-conversions of literals are not ineffective since they can be made at compile time 2021-06-30 06:10:20 j`ey la_mettrie: you mean inefficient? 2021-06-30 06:10:32 j`ey also you can just write 0u32, no need for `as` 2021-06-30 06:10:42 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-06-30 06:10:54 la_mettrie *inefficient 2021-06-30 06:11:04 <-- arinov_ (~arinov@95.70.154.195) has quit (Ping timeout: 252 seconds) 2021-06-30 06:11:26 la_mettrie does that work for 'a' as u8? 2021-06-30 06:11:46 j`ey ah no 2021-06-30 06:11:53 j`ey but b'a' does 2021-06-30 06:12:04 j`ey evalr2: b'a' 2021-06-30 06:12:09 -- Notice(evalr2): j`ey: 97 2021-06-30 06:12:12 la_mettrie okay, that's neat 2021-06-30 06:13:30 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-06-30 06:14:10 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-06-30 06:19:34 --> mreznik_ (~mreznik@nat-pool-brq-t.redhat.com) has joined ##rust 2021-06-30 06:21:16 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-06-30 06:22:32 <-- mreznik (~mreznik@213.175.37.12) has quit (Ping timeout: 265 seconds) 2021-06-30 06:27:05 bertptrs as for your original question, yes, those conversions will likely be done at compile time 2021-06-30 06:27:56 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-30 06:28:26 Sobek Just wanted to share, ferris had sneaked into my slides at Dimva, because most of my research code was written in rust. 🦀 2021-06-30 06:28:55 <-- MarderIII (~MarderIII@2001:985:e889:1:9cb2:4c4e:b36a:b1e5) has quit (Ping timeout: 250 seconds) 2021-06-30 06:30:01 ssbr So there's proc_macro2::TokenStream and proc_macro::TokenStream -- is there any way to write proc macros s.t. one *only* deals with proc_macro2::TokenStream? I tried my hand at it, but e.g. `syn::parse_macro_input!(x as y)` expects for `x` to be a TokenStream, not a TokenStream2 (while other things are exactly the opposite -- e.g. you can't unquote a TokenStream, but must unquote a TokenStream2) 2021-06-30 06:31:20 ssbr (and anyway, the macro definition only works with TokenStream, not TokenStream2 -- there's no e.g. proc_macro2::proc_macro_attribute) 2021-06-30 06:31:30 ssbr Maybe I've answered my own question at this point 2021-06-30 06:33:32 --> dark-knight (~dark-knig@2a02:8388:1984:a800:4b5:28a0:1f6e:96a9) has joined ##rust 2021-06-30 06:35:24 <-- asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has quit (Remote host closed the connection) 2021-06-30 06:35:58 --> asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has joined ##rust 2021-06-30 06:39:30 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-06-30 06:40:24 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 06:43:58 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 06:45:34 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-30 06:46:16 <-- gggpkm (~gggpkm@36.112.128.143) has quit (Ping timeout: 252 seconds) 2021-06-30 06:46:42 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 265 seconds) 2021-06-30 06:46:51 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-30 06:48:16 --> Arnik (~arnik@167.172.99.247) has joined ##rust 2021-06-30 06:48:28 --> gggpkm (~gggpkm@124.126.15.211) has joined ##rust 2021-06-30 06:48:34 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 06:48:49 --> xsperry (~as@user/xsperry) has joined ##rust 2021-06-30 06:49:52 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:4b5:28a0:1f6e:96a9) has quit (Read error: Connection reset by peer) 2021-06-30 06:53:39 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-06-30 06:58:27 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 06:59:51 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-06-30 07:00:43 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 07:00:46 <-- Arnik (~arnik@167.172.99.247) has quit (Ping timeout: 272 seconds) 2021-06-30 07:00:56 <-- gggpkm (~gggpkm@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-06-30 07:01:58 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-30 07:03:18 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 07:03:46 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 07:09:10 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-30 07:10:42 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-06-30 07:10:44 --> jaix (~jaix@user/jaix) has joined ##rust 2021-06-30 07:12:33 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-30 07:12:37 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-30 07:14:13 --> FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-30 07:14:49 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-30 07:20:05 <-- MadBeiDrache (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has quit (Quit: Leaving) 2021-06-30 07:20:16 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-06-30 07:20:46 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 258 seconds) 2021-06-30 07:22:44 --> Arnik (~arnik@167.172.99.247) has joined ##rust 2021-06-30 07:22:58 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-06-30 07:27:58 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-06-30 07:29:40 <-- mountolive (~mountoliv@188.240.132.112) has quit (Ping timeout: 246 seconds) 2021-06-30 07:30:19 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-30 07:30:59 <-- dmalteseknight (~dmaltesek@user/dmalteseknight) has quit (Quit: WeeChat 3.1) 2021-06-30 07:31:10 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-30 07:35:28 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 256 seconds) 2021-06-30 07:44:57 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 07:45:10 --> MarderIII (~MarderIII@2001:985:e889:1:d44c:dcd:329d:7de) has joined ##rust 2021-06-30 07:47:38 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 07:49:00 mdf bertptrs: thanks for pointing out the flamegraph tool. I was already messing around with perf, but now that I tried out flamegraph, the visualization really helps 2021-06-30 07:49:56 <-- MarderIII (~MarderIII@2001:985:e889:1:d44c:dcd:329d:7de) has quit (Ping timeout: 250 seconds) 2021-06-30 07:50:00 bertptrs mdf: you're welcome :) after finding flamegraph I haven't profiled with raw perf nor do I feel the need to 2021-06-30 07:54:45 --> Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has joined ##rust 2021-06-30 07:55:59 kupi in rust if I borrow foo, does it get moved to the heap so it can be referenced? 2021-06-30 07:56:09 j`ey no 2021-06-30 07:56:46 j`ey you can reference something on the stack 2021-06-30 07:57:57 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 08:00:05 kupi here everything is on the stack except *s1.ptr? https://doc.rust-lang.org/book/img/trpl04-05.svg 2021-06-30 08:00:11 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-30 08:00:37 cehteh what are the types? 2021-06-30 08:00:44 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 08:00:46 j`ey probably &str and String 2021-06-30 08:00:54 j`ey kupi: yes 2021-06-30 08:01:09 kupi s1 is String, s is &String 2021-06-30 08:01:31 cehteh but the underlying string data s1.ptr is heap allocated 2021-06-30 08:01:59 kupi cehteh: didn't I say that? 2021-06-30 08:02:25 cehteh err yes .. i shall pay more attention :( 2021-06-30 08:02:32 j`ey btw it's better to say in-place, than stack allocated 2021-06-30 08:02:40 j`ey because you can have a Box 2021-06-30 08:03:17 j`ey if s1 was Box, s1 would be on the heap 2021-06-30 08:03:28 kupi j`ey: what's the difference, can't find anything for "in place allocation" 2021-06-30 08:03:41 j`ey see above ^ 2021-06-30 08:03:52 j`ey a String (s1) doesnt have to be on the heap 2021-06-30 08:03:55 j`ey err 2021-06-30 08:03:57 j`ey a String (s1) doesnt have to be on the stack 2021-06-30 08:04:05 j`ey it could be on the heap too 2021-06-30 08:04:05 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Read error: Connection reset by peer) 2021-06-30 08:04:14 j`ey but its ptr always points to the heap 2021-06-30 08:05:53 cehteh i wonder if there is some trick to Cow between an array on stack to a Vec 2021-06-30 08:06:17 j`ey thats what Cow is! 2021-06-30 08:06:23 --> MarderIII (~MarderIII@2001:985:e889:1:edc8:f407:8f8:449c) has joined ##rust 2021-06-30 08:07:21 cehteh i thought Cow only works between same type .. err .. but yes 2nd thought 2021-06-30 08:07:31 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-06-30 08:07:44 cehteh you cant have a vec (data) on stack 2021-06-30 08:07:56 --> Warkruid (~MarderIII@2001:985:e889:1:50d7:e7d4:e499:cd38) has joined ##rust 2021-06-30 08:09:04 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 08:10:24 cehteh btw how works cargo on windows? is that called from cmd.exe or does it come with a unix shell? does cargo depend on any shell command? 2021-06-30 08:10:51 j`ey cargo depends on link.exe I guess 2021-06-30 08:10:57 j`ey dunno what else command wise 2021-06-30 08:11:04 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 08:11:36 <-- MarderIII (~MarderIII@2001:985:e889:1:edc8:f407:8f8:449c) has quit (Ping timeout: 250 seconds) 2021-06-30 08:12:02 ssbr If I have a blanket impl for T: Unpin, this causes conflicts with manual impls for Unpin types if they use PhantomPinned, but not if they `impl !Unpin for T`. Why is that? Example: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=a878cc111ce0a4b7eaf3547083f385db 2021-06-30 08:12:15 cehteh haha i havent used windows for 20 years, dunno what link.exe is .. just wondering if there is any command i can call from a test portably, just 'echo' would be enough 2021-06-30 08:12:25 me anybody using YouCompleteMe with rust && vim? 2021-06-30 08:12:26 j`ey cehteh: link.exe is the linker 2021-06-30 08:12:28 <-- Warkruid (~MarderIII@2001:985:e889:1:50d7:e7d4:e499:cd38) has quit (Ping timeout: 250 seconds) 2021-06-30 08:12:44 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-06-30 08:12:57 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-06-30 08:12:57 --> Deknos (~someone@user/menace) has joined ##rust 2021-06-30 08:13:10 me or someone willing to suggest what to use to be able to jump to definition in vim when editing rust files? 2021-06-30 08:13:38 cehteh runtime linker like /lib/ld-linux.so ? 2021-06-30 08:13:51 j`ey cehteh: no, ld 2021-06-30 08:14:21 cehteh oh interesting, didnt know that on windows its a program outside of the dev env 2021-06-30 08:14:33 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 08:14:39 cehteh anyway not relevant here 2021-06-30 08:15:07 cehteh anyone here developing rust on windows? :D 2021-06-30 08:15:31 jbg I think the linker would normally be considered a program _within_ the development environment, not outside it 2021-06-30 08:16:34 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 08:17:21 jbg just as you need to have gcc (etc) installed to get ld on *nix, you need visual studio (/ the standalone build tools / etc) installed to get link.exe on windows 2021-06-30 08:17:22 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 08:19:20 cehteh on most linux distris you have to install binutils, not a full C dev env 2021-06-30 08:20:01 cehteh anyway irrelevent for me 2021-06-30 08:22:37 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-30 08:34:12 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 08:39:52 kpcyrd I'm confused, I have a Path that prints ".SIGN.RSA.user-5d523e06.rsa.pub" with Debug, but `if path.starts_with(".SIGN.") {` doesn't seem to be true 2021-06-30 08:40:15 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 08:41:09 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 08:41:14 kpcyrd `if path.to_str().unwrap().starts_with(".SIGN.") {` works, but shouldn't the other one too? 2021-06-30 08:41:30 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 08:41:37 danieldg I think path-starts-with expects full components 2021-06-30 08:41:53 --> dark-knight (~dark-knig@2a02:8388:1984:a800:753f:cd64:2f73:8c3d) has joined ##rust 2021-06-30 08:41:55 <-- Guest94 (~textual@194.62.169.65.ipv4.parknet.dk) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-06-30 08:42:00 kpcyrd ah, hm 2021-06-30 08:42:22 kpcyrd going with `if path.to_str().map(|x| x.starts_with(".SIGN.")).unwrap_or(false) {` then unless somebody has a more elegant idea 2021-06-30 08:42:42 danieldg map_or(false,) 2021-06-30 08:43:18 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-06-30 08:43:20 kpcyrd neat, thanks 2021-06-30 08:44:01 danieldg converting to osstr and using starts-with there (if it has it) might also be good 2021-06-30 08:44:08 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-30 08:44:53 kpcyrd osstr doesn't seem to have starts_with 2021-06-30 08:46:51 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-06-30 08:48:00 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-30 08:49:08 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 08:49:58 --> saati (~s@86FF518C.dsl.pool.telekom.hu) has joined ##rust 2021-06-30 08:50:20 <-- cdown_ (~cdown@163.114.131.1) has quit (Remote host closed the connection) 2021-06-30 08:50:34 --> cdown (~cdown@163.114.131.1) has joined ##rust 2021-06-30 08:50:44 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 08:52:55 <-- arinov_ (~arinov@178.240.158.75) has quit (Quit: Konversation terminated!) 2021-06-30 08:53:05 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 08:53:10 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-06-30 08:53:20 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 08:55:47 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-30 08:56:08 <-- Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has quit (Ping timeout: 268 seconds) 2021-06-30 08:56:15 --> Snaffu_ (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has joined ##rust 2021-06-30 08:56:34 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-30 08:56:46 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-06-30 08:56:47 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-30 09:00:39 --> ubert1 (~Thunderbi@ip5b409628.dynamic.kabel-deutschland.de) has joined ##rust 2021-06-30 09:01:06 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Ping timeout: 240 seconds) 2021-06-30 09:01:06 -- ubert1 is now known as ubert 2021-06-30 09:01:56 <-- Arnik (~arnik@167.172.99.247) has quit (Ping timeout: 252 seconds) 2021-06-30 09:04:30 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 252 seconds) 2021-06-30 09:05:51 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 09:09:25 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-06-30 09:12:46 --> Guest53 (~textual@170.250.221.149) has joined ##rust 2021-06-30 09:12:58 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-06-30 09:15:57 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 09:15:57 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 09:16:57 --> tglman1 (~tglman@46.233.83.249) has joined ##rust 2021-06-30 09:19:14 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-06-30 09:21:14 <-- osa1 (~osa1@178.233.26.94) has quit (Remote host closed the connection) 2021-06-30 09:21:53 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-06-30 09:21:56 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-30 09:24:05 <-- Guest53 (~textual@170.250.221.149) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 09:25:11 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 09:28:36 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-06-30 09:30:03 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Ping timeout: 268 seconds) 2021-06-30 09:32:19 <-- maerwald (~maerwald@user/maerwald) has quit (Ping timeout: 244 seconds) 2021-06-30 09:32:38 --> bsdbandit01 (~bsdbandit@172.58.190.166) has joined ##rust 2021-06-30 09:33:54 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 256 seconds) 2021-06-30 09:33:57 mike-burns me: vim-lsp 2021-06-30 09:35:40 <-- bsdbandit01 (~bsdbandit@172.58.190.166) has quit (Read error: Connection reset by peer) 2021-06-30 09:37:35 --> bsdbandit01 (~bsdbandit@172.58.187.108) has joined ##rust 2021-06-30 09:38:27 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-30 09:39:27 <-- gggp (~textual@60.10.194.47) has quit (Client Quit) 2021-06-30 09:46:45 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 09:47:37 <-- bsdbandit01 (~bsdbandit@172.58.187.108) has quit (Read error: Connection reset by peer) 2021-06-30 09:48:37 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 09:50:25 --> bsdbandit01 (~bsdbandit@172.58.187.105) has joined ##rust 2021-06-30 09:52:12 <-- bsdbandit01 (~bsdbandit@172.58.187.105) has quit (Read error: Connection reset by peer) 2021-06-30 09:54:14 <-- mreznik_ (~mreznik@nat-pool-brq-t.redhat.com) has quit (Quit: Leaving) 2021-06-30 09:54:41 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 09:55:49 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 09:56:42 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-06-30 09:57:10 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-06-30 09:57:37 --> mreznik (~mreznik@213.175.37.12) has joined ##rust 2021-06-30 09:58:16 kupi kpcyrd: i would `if path.to_str().filter(|x| x.starts_with(".SIGN.")).is_some() {` 2021-06-30 09:59:05 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 10:00:31 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-06-30 10:00:44 --> barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has joined ##rust 2021-06-30 10:01:06 --> sol (~toor@oops.root.sx) has joined ##rust 2021-06-30 10:01:54 <-- death916 (~death916@user/death916) has quit (Ping timeout: 272 seconds) 2021-06-30 10:02:32 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-30 10:02:50 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 10:03:15 kupi if you do that more than once, i would write an exists extension function 2021-06-30 10:03:46 kupi then it would be `if path.to_str().exists(|x| x.starts_with(".SIGN.")) {` 2021-06-30 10:06:20 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-30 10:07:00 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-06-30 10:07:00 --> death916 (~death916@user/death916) has joined ##rust 2021-06-30 10:09:42 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-30 10:09:48 jbg kupi: but Result doesn't have a filter() method 2021-06-30 10:10:19 kupi i thought it was option :D 2021-06-30 10:10:54 jbg oh it does return Option 2021-06-30 10:10:55 jbg interesting 2021-06-30 10:11:00 jbg I guess there's no useful error 2021-06-30 10:11:36 jbg still seems like some opaque error type would make more sense there 2021-06-30 10:13:44 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-06-30 10:13:49 --> maerwald (~maerwald@mail.hasufell.de) has joined ##rust 2021-06-30 10:14:23 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-06-30 10:14:59 <-- meandi2 (~meandi4@dyndsl-178-142-253-071.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-06-30 10:15:09 --> meandi (~meandi4@dyndsl-178-142-253-071.ewe-ip-backbone.de) has joined ##rust 2021-06-30 10:15:47 -- daemon is now known as daimon 2021-06-30 10:23:56 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-06-30 10:25:54 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-06-30 10:26:24 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-06-30 10:27:13 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-06-30 10:32:03 <-- tglman1 (~tglman@46.233.83.249) has quit (Ping timeout: 258 seconds) 2021-06-30 10:35:02 --> twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has joined ##rust 2021-06-30 10:37:02 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 10:39:54 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 10:42:34 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-06-30 10:42:46 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 10:45:04 --> andrade (~andrade@user/andrade) has joined ##rust 2021-06-30 10:49:18 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-06-30 10:53:24 -- gggpkm_ is now known as gggpkm 2021-06-30 10:55:21 --> duckonomy (~duckonomy@177.ip-144-217-84.net) has joined ##rust 2021-06-30 10:57:14 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-30 11:02:56 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 11:03:15 --> FluffyMask (~FluffyMas@user/fluffymask) has joined ##rust 2021-06-30 11:03:50 kpcyrd is there an easy way to write something like "run this binary, pipe the output to the next binary, then pipe it to another one and then read stdout in a Vec"? 2021-06-30 11:04:08 kpcyrd I got it to work with format! and sh -c, but that's obviously a very bad idea™ 2021-06-30 11:04:46 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 11:05:11 jbg kpcyrd: did you check the std::process docs? 2021-06-30 11:05:19 jbg they have an example of piping output from one command to another 2021-06-30 11:05:20 lambda kpcyrd: write a shell script? :p 2021-06-30 11:05:21 jbg https://doc.rust-lang.org/std/process/index.html#handling-io 2021-06-30 11:06:47 kpcyrd I was hoping there'd be a less verbose way :) 2021-06-30 11:07:03 jbg I wouldn't really call that code verbose? 2021-06-30 11:07:06 kee Piping is horrible in almost every (non-shell) language. 2021-06-30 11:07:21 jbg if idiomatic rust upsets you, you could write macros that make it look like a shell script 2021-06-30 11:07:31 jbg (at the expense of readability for everyone else who will ever read your code) 2021-06-30 11:09:39 jbg but yeah maybe shell is just a better language for whatever you're writing 2021-06-30 11:09:54 jbg and if you need the output in a rust Vec, just call the shell script from rust 2021-06-30 11:11:39 --> sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has joined ##rust 2021-06-30 11:12:39 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-30 11:12:51 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-30 11:13:02 nox https://docs.rs/command-macros/0.2.9/command_macros/ 2021-06-30 11:14:05 nox https://github.com/rust-shell-script/rust_cmd_lib 2021-06-30 11:14:15 nox kpcyrd: ^ 2021-06-30 11:14:23 --> Tacklebox (~mborden@s173-180-44-49.bc.hsia.telus.net) has joined ##rust 2021-06-30 11:16:15 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-06-30 11:16:51 kpcyrd I agree the macros are too hard to read, especially regarding quoting 2021-06-30 11:21:54 <-- krjst (~krjst@2604:a880:800:c1::16b:8001) has quit (Quit: bye) 2021-06-30 11:22:31 --> krjst (~krjst@2604:a880:800:c1::16b:8001) has joined ##rust 2021-06-30 11:23:22 --> aeva (uid409031@id-409031.highgate.irccloud.com) has joined ##rust 2021-06-30 11:23:30 --> theBen (~ben@2001:16b8:ad54:dd00:e199:a243:bb1:c235) has joined ##rust 2021-06-30 11:23:54 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:19d1:3d77:8320:86c9) has quit (Ping timeout: 240 seconds) 2021-06-30 11:25:53 kpcyrd seems okayish https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=01ffb019540c75b9d43e46b25bd0bc86 2021-06-30 11:27:24 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 272 seconds) 2021-06-30 11:29:42 --> dolor_avis (~dolor_avi@user-5-173-10-119.play-internet.pl) has joined ##rust 2021-06-30 11:32:07 <-- dolor_avis (~dolor_avi@user-5-173-10-119.play-internet.pl) has quit (Client Quit) 2021-06-30 11:33:31 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Quit: WeeChat 3.2) 2021-06-30 11:36:59 --> thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has joined ##rust 2021-06-30 11:38:07 <-- mreznik (~mreznik@213.175.37.12) has quit (Quit: Leaving) 2021-06-30 11:38:59 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Quit: Ping timeout (120 seconds)) 2021-06-30 11:39:10 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-30 11:39:32 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-06-30 11:40:16 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 256 seconds) 2021-06-30 11:45:33 kee Is there a good way to .parse() hex literals? 2021-06-30 11:47:15 j`ey from_str_radix 2021-06-30 11:47:30 <-- andrade (~andrade@user/andrade) has quit (Ping timeout: 240 seconds) 2021-06-30 11:47:51 j`ey https://doc.rust-lang.org/std/primitive.u32.html#method.from_str_radix 2021-06-30 11:48:49 kee And that handles case fine, so I don't need my second question. 2021-06-30 11:49:26 j`ey a 2 for 1! 2021-06-30 11:50:21 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-06-30 11:54:18 <-- unmanbearpig (~unmanbear@45.76.95.141) has quit (Quit: unmanbearpig) 2021-06-30 11:54:51 <-- ubert (~Thunderbi@ip5b409628.dynamic.kabel-deutschland.de) has quit (Remote host closed the connection) 2021-06-30 11:54:55 --> Zenton (~user@user/zenton) has joined ##rust 2021-06-30 11:55:03 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-06-30 11:55:46 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-06-30 11:56:19 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-30 12:02:50 --> tims1 (~tims@123-243-10-176.static.tpgi.com.au) has joined ##rust 2021-06-30 12:02:52 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 12:04:42 <-- tims (~tims@220-244-125-107.static.tpgi.com.au) has quit (Ping timeout: 240 seconds) 2021-06-30 12:05:05 --> Arnik (~arnik@167.172.99.247) has joined ##rust 2021-06-30 12:05:15 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-06-30 12:07:59 --> FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-30 12:08:36 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 265 seconds) 2021-06-30 12:09:40 <-- Arnik (~arnik@167.172.99.247) has quit (Ping timeout: 252 seconds) 2021-06-30 12:10:41 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 12:11:38 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-30 12:14:32 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 12:14:42 <-- tims1 (~tims@123-243-10-176.static.tpgi.com.au) has quit (Ping timeout: 268 seconds) 2021-06-30 12:23:05 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 12:23:08 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 12:28:11 --> mpt (~tom@2a02:908:1862:49e0::4) has joined ##rust 2021-06-30 12:29:34 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 256 seconds) 2021-06-30 12:33:28 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-30 12:34:32 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-06-30 12:34:36 <-- nvmd (~nvmd@user/nvmd) has quit (Quit: Later, nerds.) 2021-06-30 12:34:42 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 12:36:08 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 12:36:10 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 12:37:50 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-06-30 12:38:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 12:38:34 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 12:41:57 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-06-30 12:43:09 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Client Quit) 2021-06-30 12:43:24 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 12:43:46 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 12:44:59 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 12:47:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 12:48:18 <-- mpt (~tom@2a02:908:1862:49e0::4) has quit (Ping timeout: 240 seconds) 2021-06-30 12:52:35 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-06-30 12:52:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-06-30 12:59:07 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-06-30 12:59:43 --> hegstal (~hegstal@2a02:c7f:7604:8a00:1749:70f2:c3b4:7591) has joined ##rust 2021-06-30 13:02:52 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 13:05:22 <-- Zulikath (~zi@vmi584737.contaboserver.net) has quit (Quit: ZNC - https://znc.in) 2021-06-30 13:05:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:06:50 <-- Snaffu_ (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has quit (Ping timeout: 272 seconds) 2021-06-30 13:07:47 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 13:10:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-06-30 13:12:18 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-30 13:12:32 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-30 13:14:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:18:53 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-06-30 13:19:25 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 13:24:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:24:17 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 13:24:31 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 13:28:30 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-06-30 13:29:18 * carmysilna < https://libera.ems.host/_matrix/media/r0/download/libera.chat/b55efdcd8f8e896af60cd9e626b5bc72427b375c/message.txt > 2021-06-30 13:30:42 dcz_ if this works, I want it 2021-06-30 13:31:18 dcz_ I have failed to make the compiler happy with a trait in the return place on a trait method so far 2021-06-30 13:32:00 * carmysilna < https://libera.ems.host/_matrix/media/r0/download/libera.chat/5623af910baaa1508cbd44da8ada2865f28e183c/message.txt > 2021-06-30 13:32:30 dcz_ oh, you're returning an associated type, not a trait... well I guess that works but isn't a lot better than a hardcoded type 2021-06-30 13:33:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:35:03 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-06-30 13:35:18 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-06-30 13:37:08 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Read error: Connection reset by peer) 2021-06-30 13:37:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-06-30 13:39:41 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 13:40:25 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 13:42:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:45:28 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 272 seconds) 2021-06-30 13:46:41 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-30 13:47:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 13:49:12 <-- thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has quit (Quit: thijsr) 2021-06-30 13:51:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 13:51:21 --> underscore (bouncerku@user/underscore) has joined ##rust 2021-06-30 13:52:26 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-06-30 13:52:30 --> roboguy (~roboguy@user/roboguy) has joined ##rust 2021-06-30 13:53:14 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Remote host closed the connection) 2021-06-30 13:53:58 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 246 seconds) 2021-06-30 13:56:23 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 13:58:48 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-06-30 14:00:32 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:01:13 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-30 14:02:26 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 14:04:44 cehteh mhm crazy idea: imagine a proc macro wraping functions, whenever you dont use a function return (thats not must-use) it gets logged in debug build 2021-06-30 14:05:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 14:07:45 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-06-30 14:09:37 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:14:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-06-30 14:17:22 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 14:18:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:22:49 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-30 14:23:27 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 14:23:50 <-- kron (~weechat@user/qaph) has quit (Ping timeout: 250 seconds) 2021-06-30 14:24:44 --> kron (~weechat@user/qaph) has joined ##rust 2021-06-30 14:26:42 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-06-30 14:27:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:28:01 trev cehteh what about #[must_use] ? 2021-06-30 14:28:06 trev oh 2021-06-30 14:28:12 trev ignore that 2021-06-30 14:32:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 14:35:28 bertptrs sounds incredibly noisy 2021-06-30 14:36:22 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-06-30 14:36:45 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-06-30 14:37:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:38:55 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-06-30 14:39:19 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 14:40:07 <-- ghost64 (~ghost64@user/ghost64) has quit (Read error: Connection reset by peer) 2021-06-30 14:40:14 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 14:40:58 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-30 14:42:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-06-30 14:42:54 --> test9753 (~test9753@117.217.238.29) has joined ##rust 2021-06-30 14:43:06 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-06-30 14:43:46 <-- test9753 (~test9753@117.217.238.29) has left ##rust 2021-06-30 14:47:15 <-- se-sm-ca (~sean@user/se-sm-ca) has quit (Ping timeout: 256 seconds) 2021-06-30 14:47:51 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 14:48:11 --> ghost64 (~ghost64@user/ghost64) has joined ##rust 2021-06-30 14:48:12 cehteh yeah just start of a brainfart, a must #[must_log] may be nice 2021-06-30 14:48:40 cehteh a must_log result gets logged when not used 2021-06-30 14:50:25 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 258 seconds) 2021-06-30 14:50:26 --> OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-30 14:51:52 Arnavion I write let () = ... for complicated-looking `...` for that reason, to prove to the compiler and to future readers of the code that I'm not accidentally forgetting to use the result of the `...`. It does mean I have to `#![allow(clippy::let_unit_value)]` 2021-06-30 14:52:18 ssbr Arnavion: I wonder if, instead, every pure function should be marked #[must_use]. 2021-06-30 14:52:40 Arnavion Ideally you'd be forced to write let _ = to discard a value you don't want, like in other functional languages like F#'s |> ignore but alas very few Rust users would like that 2021-06-30 14:52:41 ssbr I think about this a lot. Like, shouldn't every getter be marked #[must_use] for example? What's the cost? 2021-06-30 14:53:09 j`ey Arnavion: but how do you turn T into ()? 2021-06-30 14:53:12 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-30 14:53:32 Arnavion j`ey: If it does return a value that I want to ignore, then it'd be let _ = 2021-06-30 14:53:38 j`ey ah 2021-06-30 14:54:20 Arnavion But I think it's pretty rare when I call a function and don't want its return value, especially given the prerequisite that I was talking about complicated functions and not something like BTreeMap::insert() 2021-06-30 14:54:34 Arnavion so I feel the let () = case has been more common in the code I write 2021-06-30 14:55:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 14:55:33 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 14:56:11 Arnavion ssbr: If you want that, `clippy::must_use_candidate` is for you 2021-06-30 14:57:01 ssbr Arnavion: I'm googling for this but can't find any docs. What does that do? 2021-06-30 14:57:21 Arnavion Piss you off so that you #![allow] it and curse the clippy devs for ever implementing it 2021-06-30 14:57:35 ssbr oh, apparently https://rust-lang.github.io/rust-clippy/master/ is how you do this -- not findable from google, but is findable from twitter threads 2021-06-30 14:57:37 Arnavion https://rust-lang.github.io/rust-clippy/master/index.html#must_use_candidate 2021-06-30 14:57:43 cehteh be careful there is a difference between let _ = and let _foo = 2021-06-30 14:57:59 ssbr cehteh: my least favorite fact :( 2021-06-30 14:58:04 bertptrs yeah that one confused me at first 2021-06-30 14:58:08 j`ey yeah, not a fun one 2021-06-30 14:58:12 ssbr cehteh: but in any case, `let _ = ...` is correct here, it does the same thing as the implicit discard 2021-06-30 14:58:25 bertptrs I'd argue that they should be the same but that ship has sailed 2021-06-30 14:58:37 Arnavion They shouldn't 2021-06-30 14:58:56 bertptrs It's bikeshedding night then 2021-06-30 14:59:19 Arnavion Otherwise you'd have to do drop(expr); or { expr; } to indicate that you're explicitly ignoring the value, which is just worse 2021-06-30 14:59:23 ssbr Arnavion: w,rt, must_use_candidate: nice. Although I'd probably rather something that enforces it, than just lints and natters annoyingly. sounds like people legitimately hate this, from the google results :/ 2021-06-30 14:59:26 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-06-30 14:59:33 ssbr er, not enforces, but automatically applies 2021-06-30 14:59:40 ssbr (not that it really can, unfortunately) 2021-06-30 14:59:43 bertptrs But less surprising, as _ looks like a valid identifier 2021-06-30 14:59:44 Arnavion ssbr: Yes, that's why I said it'll piss you off 2021-06-30 14:59:58 Arnavion ssbr: I'm not convinced anyone sane likes it 2021-06-30 15:00:00 cehteh how about let __ = ... :) 2021-06-30 15:00:08 ssbr Arnavion: w.r.t. drop(expr), I'm not convinced that's worse :) 2021-06-30 15:00:09 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 15:00:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-06-30 15:00:16 --> pwnd_sfw4 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-30 15:00:34 Arnavion ssbr: But anyway, if you need enforcing, make it part of your CI. Heck, every new project I start has a Makefile with clippy as part of the test target anyway 2021-06-30 15:00:38 ssbr it's certainly different. 2021-06-30 15:00:39 cehteh ssbr: explicit drops are valid and sometimes really nice 2021-06-30 15:00:49 bertptrs What's the false-positive rate on must_use_candidate? How good is it at detecting side effects? 2021-06-30 15:00:58 ssbr cehteh: yes, but the context here is: is that what it should look like to explicitly consume a result that you don't use? 2021-06-30 15:00:59 Arnavion The false-positive rate is 100% 2021-06-30 15:01:02 ssbr vs current-day "let _ = ..." 2021-06-30 15:01:17 bertptrs Then I agree with your assessment that no sane person should use this :P 2021-06-30 15:01:25 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-06-30 15:01:25 -- pwnd_sfw4 is now known as pwnd_sfw 2021-06-30 15:01:31 ssbr (C++, btw, uses (void)foo() -- actually quite similar-feeling to drop(foo())) 2021-06-30 15:01:44 Arnavion If tells you that fn add(a: i32, b: i32) -> i32 requires #[must_use] even though only an insane person would call that function and ignore its return value 2021-06-30 15:02:13 cehteh when i started rust i was somewhat surprised that there is #[must_use] and that that isnt default 2021-06-30 15:02:14 bertptrs Makes gcc's -pedantic look tame 2021-06-30 15:02:28 ssbr Arnavion: I have literally encountered exactly that kind of mistake when helping people on IRC (albeit they're usually beginners, and I'm thinking of #python) 2021-06-30 15:02:36 cehteh some #[may_drop] opposite semantic would be more rusty 2021-06-30 15:02:40 Arnavion ssbr: With add(i32, i32) ? 2021-06-30 15:03:03 ssbr Arnavion: string methods that return the new string 2021-06-30 15:03:04 mike-burns Sure: add(x, y) would add y to x, mutating x. Why not, if you're a beginner? 2021-06-30 15:03:10 ssbr Arnavion: so think .replace() 2021-06-30 15:03:22 Arnavion ssbr: My point is specifically about add(i32, i32) -> i32 2021-06-30 15:03:29 mike-burns I wouldn't call them insane, just new. 2021-06-30 15:03:53 bertptrs true, not everyone is blessed with an inate understanding of signature subtleties 2021-06-30 15:03:55 ssbr Arnavion: fine, but that's only "insanity" because people are taught in grade school what addition expressions look like. For almost all other (pure) library functions, #[must_use] makes sense 2021-06-30 15:04:13 Arnavion ssbr: I'm not saying that putting a #[must_use] on add is wrong. I'm saying that it's unnecessary, and that clippy has no way to differentiate between "this function obviously has a significant return" and "this function could do with a #[must_use]" 2021-06-30 15:04:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 15:04:23 cehteh Arnavion: add(i32, i32) -> i32 would be completely optmized out when the result isnt used 2021-06-30 15:04:31 Arnavion ssbr: There's a reason that #[must_use] is on specific functions in libstd and not on every function 2021-06-30 15:04:38 ssbr Arnavion: of course it's unnecessary, but #[must_use] is always unnecessary 2021-06-30 15:04:49 ssbr it's merely helpful for helping avoid errors on the part of the caller 2021-06-30 15:04:51 Arnavion ssbr: It requires a human to make the determination of when it's useful 2021-06-30 15:05:07 cehteh ssbr: thats the whole point about it :D 2021-06-30 15:05:10 ssbr Arnavion: right. my temptation is to think that it should be on nearly every function. 2021-06-30 15:05:29 bertptrs And to determine "pure"-ness as various crates do side-effects with immutable references. 2021-06-30 15:05:38 * bertptrs *coughs* diesel *coughs* 2021-06-30 15:05:46 ssbr Arnavion: ironically, my exact example does in fact have a must_use in rust: .replace()! neat. 2021-06-30 15:06:32 Arnavion Arnavion: right. my temptation is to think that it should be on nearly every function. < Okay, then as I said clippy::must_use_candidate is made for you 2021-06-30 15:06:37 cehteh bertptrs: simple pureness can be pretty easily deduced -> with the fallaback to impure when not deduceable at compiletime, like dyn calls or other things 2021-06-30 15:07:00 --> Snaffu (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has joined ##rust 2021-06-30 15:07:15 cehteh #[pure] declaraction may even enforce that and give a compiletime error when it cant be proven to be pure 2021-06-30 15:07:37 cehteh for some traits that would be pretty useful 2021-06-30 15:07:48 bertptrs I write rust to get away from this as this way lies madness, but you'd love my haskell-writing colleagues 2021-06-30 15:07:56 cehteh not necessary, but can help to track logic bugs at runtime 2021-06-30 15:08:32 cehteh bertptrs: as long its an optional help its welcome i'd say 2021-06-30 15:08:40 dcz_ what's the difference between _ and _foo? 2021-06-30 15:08:52 bertptrs _ gets dropped immediately, _foo at the end of the scope 2021-06-30 15:09:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-06-30 15:09:31 dcz_ why would anyone want _foo not to be dropped immediately? 2021-06-30 15:09:52 cehteh because destructor/drop side effects 2021-06-30 15:09:54 Arnavion Mutex lock guard where you don't actually have anything inside the mutex, you're just using it to enforce exclusivity 2021-06-30 15:10:00 bertptrs RAII guards usually for me. I acquire the guard, and I want it to be dropped at the end of the scope, but I do not want to touch it in between 2021-06-30 15:10:20 dcz_ that's annoying 2021-06-30 15:10:21 bertptrs Mutex guards or magic cleanup structs 2021-06-30 15:10:22 cehteh i had this with the TempDir thing which deletes temp dir at the end of the scop 2021-06-30 15:10:44 bertptrs tempdir might be different as you usually want to query its name in between? 2021-06-30 15:11:29 cehteh arguable drop(SomethingWithSideEffect::new()); is more pleasant to let _ = SomethingWithSideEffect::new() 2021-06-30 15:11:53 bertptrs I've wrapped a C lib that had a "call this to do some cleanup" function that I'd need to regularly call, so I wrote a RAII guard that triggered it on drop, regardless of how I exited my function 2021-06-30 15:11:56 cehteh i just hope (didnt test) that the compiler doesnt optimize that out, but iirc it can not 2021-06-30 15:12:10 bertptrs it shouldn't because side effects :D 2021-06-30 15:12:15 --> fabienwang (~fabienwan@user/fabienwang) has joined ##rust 2021-06-30 15:12:27 bertptrs Although I prefer SomethingWithSideEffects::new(); 2021-06-30 15:12:46 cehteh yes but what if its must_use 2021-06-30 15:13:25 bertptrs Then I squint real hard at the crate author who decided that a thing where I don't need or want the result is #[must_use] 2021-06-30 15:13:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 15:13:43 bertptrs (and go for the let _ option) 2021-06-30 15:15:03 <-- kmh (~kmh@p200300df5f069e00e4c314caf78672dd.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-06-30 15:15:38 Arnavion My preference is to use drop() for the case where I have some value created earlier that I now want to end its scope. So I'd drop(mutex_guard); but I would rather let _ = function_whose_value_I_want_to_ignore(); 2021-06-30 15:16:07 bertptrs true, let _ for dropping immediately, drop() for later 2021-06-30 15:16:28 bertptrs more clearly conveys intent. "this was useful but now it's not." 2021-06-30 15:16:34 Arnavion Yes, exactly 2021-06-30 15:16:40 cehteh ok 2021-06-30 15:17:39 ssbr yeah, but calling drop hygienically from a macro is annoying~ 2021-06-30 15:17:50 Arnavion dcz_: _ is special anyway. You can multiple _ pats at the same time but two _foo would conflict 2021-06-30 15:18:05 Arnavion You can *have* 2021-06-30 15:18:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-06-30 15:18:29 dcz_ isn't one _foo going to shadow the other? 2021-06-30 15:18:39 Arnavion I'm talking about two _foo in the same pat 2021-06-30 15:18:45 dcz_ or do you mean destructuring? 2021-06-30 15:18:48 Arnavion match (1, 2) { (_, _) => () } is valid 2021-06-30 15:18:54 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 15:18:55 Arnavion match (1, 2) { (_foo, _foo) => () } is not 2021-06-30 15:19:02 bertptrs not if used in the same pattern match, e.g. if let (Some(_foo), Some(_foo)) = bar 2021-06-30 15:19:40 dcz_ is the expectation that someone might actually want to use the _foo? 2021-06-30 15:19:47 Arnavion Yes 2021-06-30 15:19:51 ssbr happily, just checked, also true for function definitions. (Can define multiple _ parameters.) 2021-06-30 15:20:05 dcz_ I'm even more conflicted now 2021-06-30 15:20:06 Arnavion It's no different from `foo` other than it suppresses `unused` diagnostics 2021-06-30 15:20:24 cehteh matching on tuples allows pretty nice tight code, saves a lot nesting and special casing 2021-06-30 15:20:43 Arnavion ssbr: Yes, especially useful for trait implementations 2021-06-30 15:21:04 cehteh if let (Some(n), Some(m)) = (n, c.name(n.unwrap_or_default())) { .. just did that here :D 2021-06-30 15:21:06 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-30 15:21:20 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-06-30 15:21:55 dcz_ I usually end up matching on tuples with the pieces of the value computed before the match statement 2021-06-30 15:22:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 15:22:45 dcz_ basically as a way to avoid a mess of conditionals in favor of a lookup table 2021-06-30 15:23:50 --> kmh (~kmh@p200300df5f069e006c3a11393f66a20c.dip0.t-ipconnect.de) has joined ##rust 2021-06-30 15:24:25 cehteh yep 2021-06-30 15:24:52 <-- sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has quit (Read error: Permission denied) 2021-06-30 15:25:09 --> sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has joined ##rust 2021-06-30 15:26:55 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-06-30 15:27:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-06-30 15:28:07 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 15:28:49 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 15:30:14 --> fedalto (~fedalto@user/fedalto) has joined ##rust 2021-06-30 15:31:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 15:36:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-06-30 15:40:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-06-30 15:40:59 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 15:41:47 <-- johnw (~johnw@76-234-69-149.lightspeed.frokca.sbcglobal.net) has quit (Quit: ZNC - http://znc.in) 2021-06-30 15:45:48 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-06-30 15:47:13 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-06-30 15:47:26 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-06-30 15:48:12 --> dem (kyrias@archlinux/developer/demize) has joined ##rust 2021-06-30 15:49:34 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-30 15:49:37 <-- demize (kyrias@archlinux/developer/demize) has quit (Ping timeout: 272 seconds) 2021-06-30 15:50:21 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-30 15:53:13 -- dem is now known as demize 2021-06-30 15:54:42 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 240 seconds) 2021-06-30 15:56:59 --> FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-30 15:57:45 <-- OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Remote host closed the connection) 2021-06-30 16:02:55 <-- sm2n (~sm2n@user/sm2n) has quit (Read error: Connection reset by peer) 2021-06-30 16:03:17 --> sm2n (~sm2n@user/sm2n) has joined ##rust 2021-06-30 16:05:03 <-- unyu (~pyon@user/pyon) has quit (Ping timeout: 268 seconds) 2021-06-30 16:05:34 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-06-30 16:06:57 --> unyu (~pyon@user/pyon) has joined ##rust 2021-06-30 16:11:45 -- __jmcantrell__ is now known as jmcantrell 2021-06-30 16:15:06 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-06-30 16:15:39 <-- cehteh (~ct@i6DFA8712.versanet.de) has quit (Ping timeout: 256 seconds) 2021-06-30 16:15:59 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-06-30 16:17:20 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-06-30 16:26:21 <-- timemage (timemage@user/timemage) has quit (Remote host closed the connection) 2021-06-30 16:27:26 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 252 seconds) 2021-06-30 16:29:15 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 256 seconds) 2021-06-30 16:30:08 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 272 seconds) 2021-06-30 16:31:00 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 16:31:28 --> cehteh (~ct@164-69-142-46.pool.kielnet.net) has joined ##rust 2021-06-30 16:32:47 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-30 16:33:14 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 16:49:37 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 16:51:33 <-- Snaffu (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-06-30 16:51:58 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 16:53:15 --> se-sm-ca (~sean@user/se-sm-ca) has joined ##rust 2021-06-30 16:54:00 nemo Is https://slightknack.github.io/rust-abi-wiki/ dead? There's been no commits since last year 2021-06-30 16:54:15 nemo thought it'd be an interesting doc to understand the issues and plans 2021-06-30 16:54:20 nemo but it seems to kinda just petre out 2021-06-30 16:54:41 nemo *er 2021-06-30 16:54:42 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 16:54:50 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-30 16:55:37 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-06-30 16:56:19 bertptrs I didn't know there were plans to stabilize the ABI at all. People consider not having one a feature 2021-06-30 16:56:41 --> SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has joined ##rust 2021-06-30 16:57:19 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-06-30 16:57:40 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-06-30 16:58:38 <-- barnaby (~barnabywa@213-225-35-134.nat.highway.a1.net) has quit (Ping timeout: 272 seconds) 2021-06-30 16:58:47 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-30 16:58:49 dcz_ people also consider not having on an impediment :) 2021-06-30 16:59:27 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 16:59:52 --> barnaby (~barnabywa@213-225-2-177.nat.highway.a1.net) has joined ##rust 2021-06-30 17:00:13 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-30 17:00:13 bertptrs both side are sort of right, which is how you get in a stalemate 2021-06-30 17:00:20 --> FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-06-30 17:08:45 <-- SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has quit (Remote host closed the connection) 2021-06-30 17:09:14 <-- dcz_ (~dcz@dynamic-002-243-174-190.2.243.pool.telefonica.de) has quit (Ping timeout: 265 seconds) 2021-06-30 17:10:30 Arnavion Just make sure that both sides of the linkage are compiled with the same compiler and flags, same as C++, and you won't need a stable ABI 2021-06-30 17:11:03 bertptrs C++ has a de-facto ABI though 2021-06-30 17:11:27 Arnavion Not when both sides of the linkage are compiled with different compiles and flags 2021-06-30 17:11:28 bertptrs It's the reason for most terrible things in the stl 2021-06-30 17:11:57 Arnavion eg std::string in the API fails to link because one side compiled std::string with --std=c++11 and the other side with 17 2021-06-30 17:11:58 bertptrs IIRC mixing clang and gcc goes reasonably well as they both use the Itanium abi 2021-06-30 17:13:51 cehteh big parts of the llvm/clang success story is that they gone lengths to support nonstandard gcc stuff 2021-06-30 17:14:09 --> SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has joined ##rust 2021-06-30 17:14:37 Arnavion That doesn't change what I said 2021-06-30 17:14:46 Arnavion Also gcc and clang don't have the same definition of std::string in the first place 2021-06-30 17:14:51 <-- osa1 (~osa1@178.233.26.94) has quit (Read error: Connection reset by peer) 2021-06-30 17:16:11 --> groknull (~groknull@223.sub-174-242-79.myvzw.com) has joined ##rust 2021-06-30 17:16:51 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-06-30 17:18:45 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-06-30 17:21:50 -- mcint is now known as mci 2021-06-30 17:22:44 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 17:23:08 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 17:23:42 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-30 17:24:04 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-06-30 17:25:47 --> thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has joined ##rust 2021-06-30 17:26:04 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 17:27:04 <-- fooker (~fooker@2001:638:301:11a3::6) has quit (Ping timeout: 268 seconds) 2021-06-30 17:27:05 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 17:30:27 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-06-30 17:31:47 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:753f:cd64:2f73:8c3d) has quit (Quit: Leaving) 2021-06-30 17:33:06 <-- groknull (~groknull@223.sub-174-242-79.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 17:33:18 --> groknull (~groknull@223.sub-174-242-79.myvzw.com) has joined ##rust 2021-06-30 17:33:52 <-- groknull (~groknull@223.sub-174-242-79.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 17:35:00 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Ping timeout: 256 seconds) 2021-06-30 17:35:24 <-- roboguy (~roboguy@user/roboguy) has quit 2021-06-30 17:35:41 -- mci is now known as ay 2021-06-30 17:35:48 -- ay is now known as mcint 2021-06-30 17:37:52 <-- winter (~quassel@user/winter) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-06-30 17:38:27 <-- frostschutz (~frostschu@2a01:c23:7996:3e00:43c6:de01:9266:99ea) has quit (Quit: Leaving) 2021-06-30 17:40:05 --> fooker (~fooker@2001:638:301:11a3::6) has joined ##rust 2021-06-30 17:40:42 --> winter (~quassel@user/winter) has joined ##rust 2021-06-30 17:43:29 <-- death916 (~death916@user/death916) has quit (Ping timeout: 256 seconds) 2021-06-30 17:44:37 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 268 seconds) 2021-06-30 17:45:05 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-30 17:45:18 <-- fabienwang (~fabienwan@user/fabienwang) has quit (Quit: fabienwang) 2021-06-30 17:46:21 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 17:51:26 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 256 seconds) 2021-06-30 17:51:34 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-06-30 17:51:48 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Killed (tin.libera.chat (Nickname regained by services))) 2021-06-30 17:51:48 -- __jmcantrell__ is now known as jmcantrell 2021-06-30 17:53:49 --> groknull (~groknull@152.sub-174-196-210.myvzw.com) has joined ##rust 2021-06-30 17:54:40 --> spankytown83 (~spankytow@207.61.84.154) has joined ##rust 2021-06-30 17:55:00 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-30 17:55:24 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-06-30 17:56:07 <-- spankytown83 (~spankytow@207.61.84.154) has quit (Client Quit) 2021-06-30 18:04:23 --> tlaxkit (~hexchat@170.253.43.19) has joined ##rust 2021-06-30 18:07:26 <-- barnaby (~barnabywa@213-225-2-177.nat.highway.a1.net) has quit (Quit: barnaby) 2021-06-30 18:08:19 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-06-30 18:08:21 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Read error: Connection reset by peer) 2021-06-30 18:08:21 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Remote host closed the connection) 2021-06-30 18:08:22 <-- thecatster_ (~thecatste@user/thecatster) has quit (Remote host closed the connection) 2021-06-30 18:08:22 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Read error: Connection reset by peer) 2021-06-30 18:08:22 <-- siraben (~siraben@user/siraben) has quit (Write error: Connection reset by peer) 2021-06-30 18:08:23 <-- felinae (~felinae@user/felinae) has quit (Remote host closed the connection) 2021-06-30 18:08:23 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Remote host closed the connection) 2021-06-30 18:08:23 <-- psydroid (~psydroid@user/psydroid) has quit (Write error: Connection reset by peer) 2021-06-30 18:08:24 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Remote host closed the connection) 2021-06-30 18:08:24 <-- jai (~darkapex@user/darkapex) has quit (Read error: Connection reset by peer) 2021-06-30 18:08:25 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Write error: Connection reset by peer) 2021-06-30 18:08:25 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Write error: Connection reset by peer) 2021-06-30 18:08:25 <-- kadoban (~kadoban@user/kadoban) has quit (Write error: Connection reset by peer) 2021-06-30 18:08:27 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Remote host closed the connection) 2021-06-30 18:08:27 <-- Alex[m]123456712 (~randomstr@2001:470:69fc:105::47f6) has quit (Read error: Connection reset by peer) 2021-06-30 18:08:34 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Write error: Connection reset by peer) 2021-06-30 18:09:13 --> timemage (timemage@user/timemage) has joined ##rust 2021-06-30 18:09:30 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-06-30 18:09:59 <-- groknull (~groknull@152.sub-174-196-210.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 18:12:39 --> thing_ (~thing@user/thing) has joined ##rust 2021-06-30 18:13:17 <-- thing (~thing@user/thing) has quit (Ping timeout: 244 seconds) 2021-06-30 18:14:22 <-- sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has quit (Read error: Permission denied) 2021-06-30 18:14:39 --> sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has joined ##rust 2021-06-30 18:16:19 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-06-30 18:16:19 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-06-30 18:16:19 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-06-30 18:16:19 --> felinae (~felinae@user/felinae) has joined ##rust 2021-06-30 18:16:19 --> jai (~darkapex@user/darkapex) has joined ##rust 2021-06-30 18:16:19 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-06-30 18:16:19 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-06-30 18:16:19 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-06-30 18:16:19 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-06-30 18:16:19 --> siraben (~siraben@user/siraben) has joined ##rust 2021-06-30 18:16:19 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-06-30 18:16:19 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-06-30 18:16:19 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-06-30 18:16:34 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-06-30 18:16:39 --> Alex[m]123456789 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-06-30 18:18:48 --> blinky42 (~quassel@jabber.blinkylight.net) has joined ##rust 2021-06-30 18:18:49 <-- blinky42 (~quassel@jabber.blinkylight.net) has quit (Changing host) 2021-06-30 18:18:49 --> blinky42 (~quassel@user/blinky42) has joined ##rust 2021-06-30 18:20:04 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-06-30 18:21:14 <-- se-sm-ca (~sean@user/se-sm-ca) has quit (Quit: WeeChat 3.0.1) 2021-06-30 18:23:23 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-06-30 18:24:55 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-30 18:25:05 --> Zulikath (~zi@vmi584737.contaboserver.net) has joined ##rust 2021-06-30 18:29:24 <-- htd (~htd@095129203062.t4.akis.net) has quit (Read error: Connection reset by peer) 2021-06-30 18:30:27 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 258 seconds) 2021-06-30 18:30:36 --> htd (~htd@095129203062.t4.akis.net) has joined ##rust 2021-06-30 18:30:39 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-06-30 18:30:45 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 18:30:46 <-- lopsided98 (~quassel@2601:18a:0:85e0:a678:8e8c:16fd:4ff5) has quit (Quit: Disconnected) 2021-06-30 18:31:03 <-- tlaxkit (~hexchat@170.253.43.19) has quit (Quit: Saliendo...) 2021-06-30 18:32:09 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 18:32:12 meltyness 6 more chapters!! woo-hoo! 2021-06-30 18:32:52 cehteh when done start from the beginning, do that 3 times :D 2021-06-30 18:33:27 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-30 18:33:58 --> cjb (~cjb@user/cjb) has joined ##rust 2021-06-30 18:34:09 meltyness I'm kinda vaguely interested in the uhh intermediate representations and static analysis rust is undoubtedly really meant for 2021-06-30 18:34:12 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-30 18:35:21 meltyness yeah all that stuff in the rust-dev-guide looks pretty cool' 2021-06-30 18:38:21 <-- luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has quit (Remote host closed the connection) 2021-06-30 18:39:30 --> luna-is-here (~quassel@2a02:908:f761:2a3c::a) has joined ##rust 2021-06-30 18:42:39 --> Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-06-30 18:44:06 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 18:45:00 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 18:45:24 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:e4d7:c4d:9c1f:dab) has quit 2021-06-30 18:45:40 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-06-30 18:46:18 --> bsdbandit01 (~bsdbandit@172.58.187.210) has joined ##rust 2021-06-30 18:47:23 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-06-30 18:48:12 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-06-30 18:49:36 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-06-30 18:49:54 <-- Arnik (~arnik@31.59.224.146) has quit (Ping timeout: 240 seconds) 2021-06-30 18:50:23 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 18:55:12 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-30 18:55:40 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 18:56:08 <-- Trieste (T@user/pilgrim) has quit (Ping timeout: 258 seconds) 2021-06-30 18:56:43 --> Trieste (T@user/pilgrim) has joined ##rust 2021-06-30 18:57:43 --> lopsided98 (~quassel@c-73-149-219-1.hsd1.ma.comcast.net) has joined ##rust 2021-06-30 18:59:31 <-- bsdbandit01 (~bsdbandit@172.58.187.210) has quit (Read error: Connection reset by peer) 2021-06-30 19:03:31 <-- jkl (~jkl@user/jkl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 19:10:01 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-30 19:11:01 meltyness ........ what?! 2021-06-30 19:14:39 ssbr meltyness: what 2021-06-30 19:15:20 meltyness i've contrived a trivial test for how rust treats a wrapping add 2021-06-30 19:16:08 meltyness the optimizing steps taken in --release make my computer seem really really fast when I don't need to see any of its work 2021-06-30 19:16:45 --> groknull (~groknull@152.sub-174-196-210.myvzw.com) has joined ##rust 2021-06-30 19:17:02 <-- groknull (~groknull@152.sub-174-196-210.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 19:17:19 --> groknull (~groknull@152.sub-174-196-210.myvzw.com) has joined ##rust 2021-06-30 19:17:20 <-- jkl (~jkl@user/jkl) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 19:17:28 meltyness basically -- "count to u64::MAX and then print 0 when you're done" runs instantly 2021-06-30 19:17:36 <-- groknull (~groknull@152.sub-174-196-210.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 19:18:22 <-- thijsr (~Thunderbi@5070899E.static.ziggozakelijk.nl) has quit (Ping timeout: 258 seconds) 2021-06-30 19:18:42 j`ey no need to do that counting if there's no side effects! 2021-06-30 19:19:20 meltyness something like the elision rules, but for arithmetic? 2021-06-30 19:20:40 <-- Tacklebox (~mborden@s173-180-44-49.bc.hsia.telus.net) has quit (Ping timeout: 258 seconds) 2021-06-30 19:20:55 j`ey just normal optimisation 2021-06-30 19:22:43 --> bsdbandit01 (~bsdbandit@2607:fb90:a946:e716:a4ca:9849:411b:8407) has joined ##rust 2021-06-30 19:23:44 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-06-30 19:24:42 <-- lf (~quassel@p200300d21f000700022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-06-30 19:25:18 --> lf (~quassel@p200300d21f3adf00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-06-30 19:25:30 <-- bsdbandit01 (~bsdbandit@2607:fb90:a946:e716:a4ca:9849:411b:8407) has quit (Read error: Connection reset by peer) 2021-06-30 19:27:32 --> jkl (~jkl@user/jkl) has joined ##rust 2021-06-30 19:28:32 --> bsdbandit01 (~bsdbandit@172.58.187.210) has joined ##rust 2021-06-30 19:28:44 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-06-30 19:32:02 <-- bsdbandit01 (~bsdbandit@172.58.187.210) has quit (Read error: Connection reset by peer) 2021-06-30 19:33:39 --> bsdbandit01 (~bsdbandit@2607:fb90:a946:e716:a4ca:9849:411b:8407) has joined ##rust 2021-06-30 19:33:45 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 265 seconds) 2021-06-30 19:35:19 --> tims1 (~tims@123-243-10-176.static.tpgi.com.au) has joined ##rust 2021-06-30 19:35:57 <-- FlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Quit: Konversation terminated!) 2021-06-30 19:41:24 <-- EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has quit (Ping timeout: 272 seconds) 2021-06-30 19:42:44 <-- bsdbandit01 (~bsdbandit@2607:fb90:a946:e716:a4ca:9849:411b:8407) has quit (Read error: Connection reset by peer) 2021-06-30 19:43:30 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-06-30 19:45:28 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 19:50:11 --> arinov_ (~arinov@31.142.27.189) has joined ##rust 2021-06-30 19:50:34 --> groknull (~groknull@152.sub-174-196-210.myvzw.com) has joined ##rust 2021-06-30 19:50:50 <-- groknull (~groknull@152.sub-174-196-210.myvzw.com) has quit (Remote host closed the connection) 2021-06-30 19:54:24 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 258 seconds) 2021-06-30 20:00:33 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-06-30 20:01:42 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 20:09:23 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-06-30 20:14:42 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-30 20:20:56 --> EvanCarroll (~ecarroll@198-0-91-126-static.hfc.comcastbusiness.net) has joined ##rust 2021-06-30 20:21:22 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (Ping timeout: 252 seconds) 2021-06-30 20:22:58 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-06-30 20:23:02 <-- aeva (uid409031@id-409031.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 20:26:55 <-- arinov_ (~arinov@31.142.27.189) has quit (Ping timeout: 265 seconds) 2021-06-30 20:28:16 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 20:28:18 <-- sgift (~madison@2001:a61:35b8:2401:a848:d822:d4e1:a374) has quit (Ping timeout: 240 seconds) 2021-06-30 20:28:41 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-06-30 20:32:22 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 256 seconds) 2021-06-30 20:38:55 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-06-30 20:39:09 <-- emerent (~quassel@p200300cd5703bbbcba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-06-30 20:39:26 --> emerent (~quassel@p200300cd5703bb15ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-06-30 20:41:24 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 20:43:21 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-30 20:45:22 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 20:47:16 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:1749:70f2:c3b4:7591) has quit (Remote host closed the connection) 2021-06-30 20:50:04 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 20:51:08 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 20:52:58 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 20:55:50 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-06-30 20:56:46 <-- theBen (~ben@2001:16b8:ad54:dd00:e199:a243:bb1:c235) has quit (Quit: Leaving) 2021-06-30 20:58:17 <-- FluffyMask (~FluffyMas@user/fluffymask) has quit (Quit: WeeChat 2.9) 2021-06-30 20:58:20 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 20:58:55 --> willbush (~user@47.183.200.14) has joined ##rust 2021-06-30 20:58:55 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Read error: Connection reset by peer) 2021-06-30 20:59:18 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-06-30 20:59:40 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 21:00:22 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 21:00:27 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 21:02:03 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 21:04:42 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-06-30 21:05:00 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-30 21:05:13 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 256 seconds) 2021-06-30 21:06:09 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 21:06:26 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 21:06:50 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-30 21:09:26 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 21:09:50 <-- lopsided98 (~quassel@c-73-149-219-1.hsd1.ma.comcast.net) has quit (Quit: Disconnected) 2021-06-30 21:11:20 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-06-30 21:12:16 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-06-30 21:12:21 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 21:12:38 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-06-30 21:14:57 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 21:17:02 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 21:23:25 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 21:26:32 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-06-30 21:28:05 <-- Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-06-30 21:29:33 --> qaph (~weechat@user/qaph) has joined ##rust 2021-06-30 21:29:36 --> Fairy97 (~Fairy@2001:464a:4992:0:8091:ff37:2684:295) has joined ##rust 2021-06-30 21:29:40 <-- Fairy (~Fairy@2001:464a:4992:0:d9a:d5e9:381c:bc47) has quit (Read error: Connection reset by peer) 2021-06-30 21:30:38 --> starblue2 (~juergen@dslb-094-221-188-232.094.221.pools.vodafone-ip.de) has joined ##rust 2021-06-30 21:31:06 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 240 seconds) 2021-06-30 21:31:23 <-- towel_ (~towel@user/towel) has quit (Ping timeout: 252 seconds) 2021-06-30 21:31:27 --> penguwin2 (~penguwin@fribbledom.com) has joined ##rust 2021-06-30 21:32:12 --> binkers- (~binkers@user/binkers) has joined ##rust 2021-06-30 21:32:22 --> towel (~towel@user/towel) has joined ##rust 2021-06-30 21:32:27 <-- binkers (~binkers@user/binkers) has quit (Ping timeout: 268 seconds) 2021-06-30 21:32:43 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-06-30 21:32:47 <-- kron (~weechat@user/qaph) has quit (Ping timeout: 268 seconds) 2021-06-30 21:32:50 -- qaph is now known as kron 2021-06-30 21:33:02 <-- penguwin (~penguwin@fribbledom.com) has quit (Ping timeout: 252 seconds) 2021-06-30 21:33:02 -- penguwin2 is now known as penguwin 2021-06-30 21:33:15 --> est31 (~est31@user/est31) has joined ##rust 2021-06-30 21:33:33 <-- starblue1 (~juergen@dslb-188-109-104-173.188.109.pools.vodafone-ip.de) has quit (Ping timeout: 256 seconds) 2021-06-30 21:34:23 <-- edcragg (~edcragg@nomnomnomnom.co.uk) has quit (Quit: The Lounge - https://thelounge.github.io) 2021-06-30 21:34:23 <-- raoul (~raoul@nomnomnomnom.co.uk) has quit (Quit: The Lounge - https://thelounge.github.io) 2021-06-30 21:37:58 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 21:39:37 --> bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has joined ##rust 2021-06-30 21:39:58 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 21:41:41 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-06-30 21:42:03 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 256 seconds) 2021-06-30 21:42:24 <-- cods (~fred@82-65-232-44.subs.proxad.net) has quit (Ping timeout: 252 seconds) 2021-06-30 21:42:53 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-06-30 21:44:19 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 256 seconds) 2021-06-30 21:45:48 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 21:45:56 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-06-30 21:46:09 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 21:48:22 <-- snalty (~Shhh@user/snalty) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 21:48:39 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-06-30 21:49:16 --> cods (~fred@82-65-232-44.subs.proxad.net) has joined ##rust 2021-06-30 21:49:36 --> neurocyte43 (~neurocyte@45.14.191.41) has joined ##rust 2021-06-30 21:49:36 <-- neurocyte43 (~neurocyte@45.14.191.41) has quit (Changing host) 2021-06-30 21:49:36 --> neurocyte43 (~neurocyte@user/neurocyte) has joined ##rust 2021-06-30 21:50:18 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-06-30 21:50:19 --> lopsided98 (~quassel@c-73-149-219-1.hsd1.ma.comcast.net) has joined ##rust 2021-06-30 21:50:41 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 21:51:14 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 21:52:33 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-06-30 21:53:23 <-- neurocyte4 (~neurocyte@user/neurocyte) has quit (Ping timeout: 256 seconds) 2021-06-30 21:53:24 -- neurocyte43 is now known as neurocyte4 2021-06-30 21:53:33 --> frost (~frost@59.71.241.179) has joined ##rust 2021-06-30 21:55:45 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-06-30 21:55:51 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 21:59:07 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-06-30 22:01:19 <-- cjb (~cjb@user/cjb) has quit 2021-06-30 22:03:03 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-30 22:03:31 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-06-30 22:03:37 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-06-30 22:05:15 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 22:06:26 --> menace (~someone@ppp-93-104-109-239.dynamic.mnet-online.de) has joined ##rust 2021-06-30 22:08:18 <-- Deknos (~someone@user/menace) has quit (Ping timeout: 240 seconds) 2021-06-30 22:08:57 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 22:09:34 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 22:12:06 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-06-30 22:12:51 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 22:13:34 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-06-30 22:13:53 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 22:15:27 discipulus do people use gdb or lldb to debug rust code? 2021-06-30 22:15:51 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-06-30 22:17:56 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-06-30 22:18:30 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-06-30 22:18:33 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-06-30 22:19:18 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 22:20:05 cehteh how about assert & logging? 2021-06-30 22:20:16 sol ]/window 1 2021-06-30 22:21:25 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-06-30 22:22:32 -- tims1 is now known as tims 2021-06-30 22:22:47 cehteh + proper tests, start test driven, and one test for each bug thats not trivial to fix 2021-06-30 22:23:19 mike-burns Both rust-lldb and rust-gdb exist. So far as I can tell, use the one you're most comfortable with. 2021-06-30 22:23:39 mike-burns This channel is a funny mix of people who come from C++ and people who come from Haskell. 2021-06-30 22:24:22 cehteh i rarely use a debugger, in any language 2021-06-30 22:24:29 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 22:24:45 neshpion i only used a debugger a couple of weeks ago for the first time 2021-06-30 22:24:48 mike-burns The debugger is part of programming C, so I use it a lot. 2021-06-30 22:25:12 cehteh almost never used a debugger in C 2021-06-30 22:25:29 mike-burns That's a choice. 2021-06-30 22:25:48 cehteh yes sure, but saves a lot time when you dont have to 2021-06-30 22:26:34 mike-burns I don't mean "debugging with gdb is part of C", I mean that gdb is the C REPL. Using it is part of the programming process. 2021-06-30 22:26:49 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 22:27:02 mike-burns But if it works for you without, that's fine too. 2021-06-30 22:27:27 -- veegee_ is now known as veegee 2021-06-30 22:32:00 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-06-30 22:33:09 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-06-30 22:34:54 towel What's the recommended way to use recursive enums in Rust? I would like to avoid unsafe code and keep everything typed if possible. Looking to do something akin to this: `enum Expr { Plus(Expr, Expr), Sub(Expr, Expr) };` 2021-06-30 22:36:58 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-06-30 22:38:29 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-06-30 22:39:00 GreenJello towel, Box 2021-06-30 22:39:10 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-06-30 22:39:31 towel Sounds good, thanks for the recommendation GreenJello 2021-06-30 22:42:07 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 22:45:47 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 22:46:48 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 22:49:49 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 22:51:53 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 22:52:23 meltyness uhhhhhhhhhhhhhhhhhhh 2021-06-30 22:52:37 meltyness https://doc.rust-lang.org/std/hash/trait.Hasher.html what algorithm does this use by default and its not in the manual 2021-06-30 22:55:17 GreenJello meltyness, HashMap has a generic that defaults to this: https://doc.rust-lang.org/std/collections/hash_map/struct.RandomState.html 2021-06-30 22:55:27 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 22:56:00 GreenJello which references this: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html 2021-06-30 22:56:52 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-06-30 22:57:10 GreenJello it's currently SipHash (and has been for years) 2021-06-30 22:59:08 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-06-30 22:59:38 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-06-30 22:59:55 meltyness I guess the std hashing algorithm isn't really intended as part of a cryptographic or security library 2021-06-30 23:01:37 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 23:01:58 gggpkm_ https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c5499b7dc12d1a0e77ca157bd205c354 2021-06-30 23:01:59 GreenJello yeah, it's only really suitable for hash table collections 2021-06-30 23:03:09 GreenJello I can't immediately think of where else you'd use it, especially since it's only a 64 bit hash 2021-06-30 23:03:16 --> img (~img@user/img) has joined ##rust 2021-06-30 23:04:23 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-06-30 23:04:38 GreenJello gggpkm_, do you have a question? 2021-06-30 23:04:41 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-06-30 23:04:58 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-06-30 23:05:18 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 258 seconds) 2021-06-30 23:06:55 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-06-30 23:07:03 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-06-30 23:07:06 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-06-30 23:08:22 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-06-30 23:08:24 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-06-30 23:08:56 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-06-30 23:09:17 --> zeden (~zeden@user/zeden) has joined ##rust 2021-06-30 23:10:17 <-- jleightcap2 (~jleightca@user/jleightcap) has quit (Ping timeout: 265 seconds) 2021-06-30 23:11:12 <-- SignalWalker (~SignalWal@2601:901:200:5287:24cc:1fff:fe35:99f5) has quit (Remote host closed the connection) 2021-06-30 23:11:34 <-- zeden (~zeden@user/zeden) has quit (Client Quit) 2021-06-30 23:13:35 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 23:14:39 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 23:14:42 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 240 seconds) 2021-06-30 23:14:46 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-06-30 23:16:22 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-06-30 23:18:00 <-- zerotypic (~zerotypic@66.96.192.176) has quit (Ping timeout: 272 seconds) 2021-06-30 23:18:59 --> fancycade (~fancycade@2600:1700:eec0:8e80:8639:beff:fe6a:1bb3) has joined ##rust 2021-06-30 23:19:17 fancycade Does anyone know if there is a channel for gtk-rs? 2021-06-30 23:20:13 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-06-30 23:20:39 --> Guest65 (~Guest65@047-012-102-016.res.spectrum.com) has joined ##rust 2021-06-30 23:20:59 <-- Guest65 (~Guest65@047-012-102-016.res.spectrum.com) has quit (Client Quit) 2021-06-30 23:22:22 --> djapo (~archangel@user/djapo) has joined ##rust 2021-06-30 23:23:07 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 23:23:27 <-- i3d (~i3dmaster@c-73-42-171-203.hsd1.wa.comcast.net) has quit (Quit: leaving) 2021-06-30 23:23:30 jbg fancycade: https://gtk-rs.org/contact 2021-06-30 23:23:30 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-06-30 23:23:37 jbg there's a #rust on the gnome IRC server 2021-06-30 23:23:48 --> i3d (~i3dmaster@c-73-42-171-203.hsd1.wa.comcast.net) has joined ##rust 2021-06-30 23:24:03 jbg oh wait no that's matrix not IRC 2021-06-30 23:24:27 i3d Is there a way in rust to say Vec, meaning a collection of objects that impls a certain trait? 2021-06-30 23:24:28 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 23:24:44 jbg the term for objects that impl a certain trait is "Trait Object" 2021-06-30 23:24:55 i3d ok 2021-06-30 23:24:56 jbg and they look like &dyn Trait or Box 2021-06-30 23:25:15 i3d so something like Vec? 2021-06-30 23:25:15 jbg the values in the Vec need to be all the same size, so you can't directly do Vec since the stride would not necessarily be consistent 2021-06-30 23:25:19 jbg no 2021-06-30 23:25:32 jbg either Vec<&dyn Display> (a vec of references to things that impl Display) 2021-06-30 23:25:42 jbg or Vec> (a avec of owned things that impl Display) 2021-06-30 23:25:52 i3d oh... 2021-06-30 23:26:11 i3d am I understanding right that those are all just pointer types? 2021-06-30 23:26:28 jbg kind of depends what aspect of pointer you are talking about 2021-06-30 23:26:42 jbg they are, but the Box owns the data, you don't need other storage for the data 2021-06-30 23:26:57 jbg with Vec<&dyn Display> the values would need to be stored elsewhere outside the Vec 2021-06-30 23:27:10 i3d I see 2021-06-30 23:27:23 jbg but with Vec> the values are on the heap, the vec contains pointers to them, but the vec also owns them. they'll be dropped when the Vec is dropped 2021-06-30 23:27:31 i3d Does Box consider like a fat-pointer? 2021-06-30 23:27:41 jbg Box is a fat pointer yes 2021-06-30 23:28:05 jbg Vec would be impossible, because different things that impl Display might have different size 2021-06-30 23:28:18 <-- bonhoeffer (~tim@131-150-072-117.biz.spectrum.com) has quit (Ping timeout: 258 seconds) 2021-06-30 23:28:35 jbg so indexing into the vec would not be possible 2021-06-30 23:29:29 i3d ok great, thanks! So "Trait" as a thing doesn't have a known size at compile time... that's kinda interesting. In Go, the interface{} type is always a pointer of the actual object, so it's like a fat-pointer in Rust, so it can directly be used as the type in collections. 2021-06-30 23:29:47 Mutabah Yep 2021-06-30 23:29:53 Mutabah Rust is more explicit about pointers/indirection 2021-06-30 23:30:11 jbg if you consider e.g. the trait Display, and the variety of things that implement it, it's clear it can't have a known size at compile time 2021-06-30 23:30:21 jbg I can make an 8MB struct that impls Display yet "" also impls it 2021-06-30 23:30:32 i3d So can I consider that "Trait" doesn't really have memory representation? It's all about just contract? 2021-06-30 23:30:45 Mutabah Quick side note: Traits are interfaces, and you can either use them as trait objects OR as bounds to generics 2021-06-30 23:31:52 i3d The thing is if "Trait" is implemented as like a fat-pointer, then it would have a fixed known size (just a machine size pointer). 2021-06-30 23:32:11 jbg the fat pointers are like &dyn Trait or Box 2021-06-30 23:32:13 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-06-30 23:32:15 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 23:32:17 jbg the trait itself is just an interface 2021-06-30 23:32:34 jbg so Vec doesn't make sense (Vec of things that have a certain interface -- size is not known) 2021-06-30 23:32:38 cehteh enum DisplayObject {...} and Vec would be also an alternative 2021-06-30 23:32:50 jbg Vec<&dyn Trait> and Vec> make sense - vec of fat pointers 2021-06-30 23:32:53 i3d jbg: ok, it's still a bit hard to understand but I think I kinda get the idea 2021-06-30 23:33:42 i3d cehteh: true.. but it's a bit ugly as it's hard to emuerate all possibilities. 2021-06-30 23:34:04 cehteh yes depends on how dynamic you want it 2021-06-30 23:34:11 jbg in the Vec concept, the actual structs that implement the trait are supposed to be in the Vec 2021-06-30 23:34:17 jbg as opposed to pointers to them 2021-06-30 23:34:25 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-06-30 23:34:27 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-06-30 23:36:27 Mutabah Hackery - I can think of ways of making a `HVec` (an indexable list of all the same type), and I _have_ made a `Stack` (with different types, but you can only push/pop off one end, no indexing) 2021-06-30 23:36:33 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-06-30 23:36:40 --> jhulten_ (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-06-30 23:36:45 --> JanC_ (~janc@user/janc) has joined ##rust 2021-06-30 23:37:28 <-- Feuermagier_ (~Feuermagi@2a02:2488:4211:3400:5def:8486:9e4:b49a) has quit (Read error: Connection reset by peer) 2021-06-30 23:37:29 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Read error: Connection reset by peer) 2021-06-30 23:37:29 <-- kmh (~kmh@p200300df5f069e006c3a11393f66a20c.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-06-30 23:37:29 --> kmh (~kmh@p200300df5f069e006c3a11393f66a20c.dip0.t-ipconnect.de) has joined ##rust 2021-06-30 23:37:29 --> Feuermagier_ (~Feuermagi@2a02:2488:4211:3400:5def:8486:9e4:b49a) has joined ##rust 2021-06-30 23:37:29 <-- justache (~justache@user/justache) has quit (Quit: Ping timeout (120 seconds)) 2021-06-30 23:37:29 <-- mandeep (uid394387@id-394387.tooting.irccloud.com) has quit (Ping timeout: 240 seconds) 2021-06-30 23:37:29 <-- frost (~frost@59.71.241.179) has quit (Quit: Ping timeout (120 seconds)) 2021-06-30 23:37:30 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 258 seconds) 2021-06-30 23:37:32 --> justache (~justache@user/justache) has joined ##rust 2021-06-30 23:37:32 cehteh you could even have hybrid appoaches enum DisplayObject {Cursor(x,y), Box(x,y,width,height), Extension(Box)} (dont mind the wrong syntax here for easier reading) 2021-06-30 23:37:34 <-- JanC (~janc@user/janc) has quit (Read error: Connection reset by peer) 2021-06-30 23:37:40 i3d Am I understand right that there is so far no std Trait for numeric types right? e.g. I wanted to say creating a collection of all types that can support "+". 2021-06-30 23:37:44 --> mandeep (uid394387@id-394387.tooting.irccloud.com) has joined ##rust 2021-06-30 23:37:49 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-06-30 23:37:50 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-06-30 23:37:54 --> zmt00 (~zmt00@user/zmt00) has joined ##rust 2021-06-30 23:37:56 jbg https://doc.rust-lang.org/std/ops/trait.Add.html 2021-06-30 23:38:01 jbg there's also the num_traits crate 2021-06-30 23:38:38 i3d ah... std::ops.. cool, thanks! 2021-06-30 23:38:41 jbg it has to be a collection of all types that can support + with a given RHS and result type, not just all types that can support + 2021-06-30 23:38:42 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 240 seconds) 2021-06-30 23:38:42 <-- zmt01 (~zmt00@user/zmt00) has quit (Ping timeout: 240 seconds) 2021-06-30 23:39:28 jbg but num-traits has generic things like Num which is implemented for f* i* u* 2021-06-30 23:39:39 jbg as well by some numeric types in other crates 2021-06-30 23:40:00 i3d I see. will check that out. 2021-06-30 23:42:18 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 252 seconds) 2021-06-30 23:42:58 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-06-30 23:43:13 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-06-30 23:43:52 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-06-30 23:43:58 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-06-30 23:44:12 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-06-30 23:44:27 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-06-30 23:44:27 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-06-30 23:45:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-06-30 23:45:30 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-06-30 23:46:32 <-- asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has quit (Ping timeout: 265 seconds) 2021-06-30 23:46:53 fancycade jbg thanks, i need to connect to gnome irc server 2021-06-30 23:47:06 jbg gnome matrix I think actually 2021-06-30 23:47:12 jbg I mistook it for an IRC channel at first 2021-06-30 23:47:16 --> img (~img@user/img) has joined ##rust 2021-06-30 23:47:21 jbg maybe it's bridged though 2021-06-30 23:47:25 fancycade i think there is both 2021-06-30 23:47:33 --> lumgwada (~lumgwada@101.181.5.228) has joined ##rust 2021-06-30 23:47:50 --> meandi2 (~meandi4@dyndsl-178-142-250-229.ewe-ip-backbone.de) has joined ##rust 2021-06-30 23:47:52 fancycade ill try the matrix channel 2021-06-30 23:49:00 <-- lumgwada_ (~lumgwada@101.181.188.168) has quit (Ping timeout: 258 seconds) 2021-06-30 23:51:49 <-- meandi (~meandi4@dyndsl-178-142-253-071.ewe-ip-backbone.de) has quit (Ping timeout: 256 seconds) 2021-06-30 23:52:34 --> lumgwada_ (~lumgwada@101.181.107.40) has joined ##rust 2021-06-30 23:52:40 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-06-30 23:53:28 <-- lumgwada (~lumgwada@101.181.5.228) has quit (Ping timeout: 272 seconds) 2021-06-30 23:54:51 <-- fancycade (~fancycade@2600:1700:eec0:8e80:8639:beff:fe6a:1bb3) has left ##rust (WeeChat 3.2) 2021-07-01 00:00:52 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 00:01:20 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Remote host closed the connection) 2021-07-01 00:04:13 --> edcragg (~edcragg@nom4.xyz) has joined ##rust 2021-07-01 00:04:16 --> raoul (~raoul@nom4.xyz) has joined ##rust 2021-07-01 00:05:31 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-01 00:06:57 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 00:08:46 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-01 00:10:16 --> asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has joined ##rust 2021-07-01 00:10:23 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 00:11:42 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-01 00:13:07 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-01 00:19:49 -- thing_ is now known as thing 2021-07-01 00:31:32 <-- menace (~someone@ppp-93-104-109-239.dynamic.mnet-online.de) has quit (Quit: menace) 2021-07-01 00:36:45 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-01 00:38:26 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-01 00:46:42 --> trev (~trev@user/trev) has joined ##rust 2021-07-01 00:46:57 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-01 00:47:28 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-01 00:48:53 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-01 00:56:46 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 01:03:20 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-07-01 01:08:27 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 01:08:51 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 01:13:30 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-07-01 01:14:18 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-01 01:20:33 <-- ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-07-01 01:20:56 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-07-01 01:22:08 <-- neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has quit (Ping timeout: 272 seconds) 2021-07-01 01:23:16 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-01 01:23:22 --> dcz_ (~dcz@dynamic-078-049-018-181.78.49.pool.telefonica.de) has joined ##rust 2021-07-01 01:24:51 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-01 01:32:52 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-01 01:37:17 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-01 01:37:30 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-01 01:38:04 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-01 01:48:15 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-01 01:48:59 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-07-01 01:50:04 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-07-01 01:52:13 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 01:52:39 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 01:56:58 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-01 01:57:08 -- JanC_ is now known as JanC 2021-07-01 01:58:05 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-07-01 01:58:05 --> death916 (~death916@user/death916) has joined ##rust 2021-07-01 02:00:14 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 02:03:09 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-01 02:04:44 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 02:08:50 <-- gggp (~textual@36.112.135.215) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 02:10:05 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 256 seconds) 2021-07-01 02:11:43 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-01 02:17:14 <-- EvanCarroll (~ecarroll@198-0-91-126-static.hfc.comcastbusiness.net) has quit (Ping timeout: 272 seconds) 2021-07-01 02:27:13 --> ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has joined ##rust 2021-07-01 02:28:45 --> neirac (~neirac@pc-145-79-45-190.cm.vtr.net) has joined ##rust 2021-07-01 02:30:47 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 02:32:26 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-01 02:34:13 <-- willbush (~user@47.183.200.14) has quit (Remote host closed the connection) 2021-07-01 02:38:28 --> EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has joined ##rust 2021-07-01 02:38:29 --> zerotypic (~zerotypic@66.96.192.176) has joined ##rust 2021-07-01 02:42:18 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-01 02:42:50 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 02:45:25 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 02:47:10 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-01 02:49:58 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Client Quit) 2021-07-01 02:50:15 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 02:50:18 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-01 02:50:48 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-01 02:50:58 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-01 02:51:41 <-- darkstalker (~wolfie@186.148.12.159) has quit (Remote host closed the connection) 2021-07-01 02:52:22 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-07-01 02:52:31 <-- jhulten_ (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 02:53:09 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-01 02:54:33 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-01 02:54:38 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Read error: Connection reset by peer) 2021-07-01 02:55:24 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-01 02:56:16 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Client Quit) 2021-07-01 02:56:25 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-01 02:59:41 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 03:09:30 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-07-01 03:10:26 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 03:11:30 --> Guest45 (~Guest45@cpc158775-hari22-2-0-cust265.20-2.cable.virginm.net) has joined ##rust 2021-07-01 03:22:40 <-- kevr (~kevr@user/kevr) has quit (Ping timeout: 252 seconds) 2021-07-01 03:25:57 bertptrs silly idea with a use case: NonEmptyVec. Since an empty vec does not allocate, this creates a useful niche where size_of::>() couldequal size_of::() 2021-07-01 03:27:32 bertptrs Analogous to NonZeroX 2021-07-01 03:27:40 jbg but size_of::>() already == size_of::>>() 2021-07-01 03:27:54 bertptrs Is it? :o 2021-07-01 03:28:08 jbg a vec is struct with three fields: a pointer, a len and a capacity 2021-07-01 03:28:20 jbg the Option::None case can just set the pointer to 0 2021-07-01 03:28:41 bertptrs evalr2: std::mem::size_of::>(), std::mem::size_of::>>() 2021-07-01 03:28:44 -- Notice(evalr2): bertptrs: error: expected one of `.`, `;`, `?`, `}`, or an operator, found ... 2021-07-01 03:28:45 -- Notice(evalr2): bertptrs: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2b73569a7c4adcfa0d18d8dc1ebacf3a 2021-07-01 03:28:55 bertptrs evalr2: (std::mem::size_of::>(), std::mem::size_of::>>()) 2021-07-01 03:28:58 -- Notice(evalr2): bertptrs: (24, 24) 2021-07-01 03:29:01 bertptrs neat 2021-07-01 03:29:24 bertptrs Okay that's less of a use case. I still liked the implicit "this is not empty" but I can do without 2021-07-01 03:29:32 jbg it makes no difference to size_of::> whether the vec contains any elements or not 2021-07-01 03:30:12 jbg also you'd need a new way to initialise the vec right? 2021-07-01 03:30:45 jbg ah no, you could use from_elem or init it from a boxed slice 2021-07-01 03:30:46 bertptrs Same as you do for NonZeroX, yes 2021-07-01 03:30:58 bertptrs Or init from an actual vec and check 2021-07-01 03:31:00 jbg was just thinking you couldn't new() and then push but there are other ways 2021-07-01 03:31:07 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 03:31:25 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 03:32:53 bertptrs you could even write not_empty_vec![…] and make sure that the pattern disallows being empty 2021-07-01 03:34:39 jbg mm 2021-07-01 03:35:09 jbg one thing that constantly bugs me is that Vec::first() returns Option<&T> but Vec::remove(0) returns T and panics if the Vec is empty 2021-07-01 03:35:21 jbg your NotEmptyVec would solve that in some cases :) 2021-07-01 03:36:05 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-01 03:36:18 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-01 03:36:29 bertptrs NotEmptyVec also kind of has to panic if you remove element zero, but at least first() would work 2021-07-01 03:36:56 jbg well, what I really want is a method that consumes the vec and returns the first element 2021-07-01 03:36:57 bertptrs as would last 2021-07-01 03:37:04 bertptrs into_first() 2021-07-01 03:37:10 jbg I have to deal with a bunch of APIs that return arrays with exactly one element 2021-07-01 03:37:12 bertptrs and into_last() 2021-07-01 03:37:21 bertptrs oh that's super weird 2021-07-01 03:37:23 jbg of course NotEmptyVec is not ideal there; maybe the API returns an empty array one day 2021-07-01 03:38:41 jbg Vec could already have an into_first() -> Option, it just doesn't 2021-07-01 03:39:07 jbg I wonder what the rationale for remove() not returning an Option is 2021-07-01 03:39:24 bertptrs it has one, kinda. .drain().next() 2021-07-01 03:39:49 jbg .drain(..).next() yeah, but it's a little unclear at first to some people reading the code 2021-07-01 03:40:41 bertptrs alternatively into_iter().next() if you don't like the range in there 2021-07-01 03:42:41 <-- phundrak (~phundrak@82-65-91-105.subs.proxad.net) has quit (Ping timeout: 244 seconds) 2021-07-01 03:43:10 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 03:43:21 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 03:43:48 jbg yeah. there are various alternatives, it just seems inconsistent that remove panics rather than returning an Option 2021-07-01 03:44:01 jbg too late to change of course 2021-07-01 03:45:12 Arnavion What's the rationale for any of the slice methods that panic, really 2021-07-01 03:45:40 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-01 03:46:01 <-- euandreh (~euandreh@2804:14c:33:9fe5:fe7c:a1fa:94dc:c42a) has quit (Remote host closed the connection) 2021-07-01 03:46:25 --> euandreh (~euandreh@2804:14c:33:9fe5:af42:e045:e98b:4388) has joined ##rust 2021-07-01 03:47:20 Arnavion Also, perhaps you want VecDeque with its pop_front() instead (which also saves on moving everything behind it) 2021-07-01 03:48:23 jbg in most cases when I want to take the first element, I know there's at most one element and the stupid API I'm interfacing with just wraps it in an array, so the efficiency thing is not relevant, but that's a good tip on VecDeque, I can deserialise into that and use pop_front, it's certainly tidier 2021-07-01 03:48:25 Arnavion bertptrs: Not only does the compiler look inside multiple layers of structs to find niches, it also considers all fields and not just the first one. It can use niches from fields that aren't the first one even without reordering to make it the first one 2021-07-01 03:50:09 --> kevr (~kevr@user/kevr) has joined ##rust 2021-07-01 03:50:43 bertptrs Ah, I hadn't realized that Unique had a niche 2021-07-01 03:51:48 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 03:53:30 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-01 03:55:39 --> TheAceOfHearts_ (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-01 03:55:41 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-07-01 03:55:44 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Ping timeout: 268 seconds) 2021-07-01 03:56:06 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-01 03:56:37 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-01 03:57:35 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-07-01 04:04:34 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 04:06:08 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-07-01 04:08:58 <-- TheAceOfHearts_ (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-01 04:09:31 <-- hendursa1 (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-01 04:10:07 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-01 04:12:01 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-07-01 04:15:49 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-01 04:16:15 --> hegstal (~hegstal@2a02:c7f:7604:8a00:8d05:aaa6:8a87:6441) has joined ##rust 2021-07-01 04:18:09 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 256 seconds) 2021-07-01 04:18:10 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-01 04:18:34 --> mreznik (~mreznik@nat-pool-brq-t.redhat.com) has joined ##rust 2021-07-01 04:19:31 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 04:20:07 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-07-01 04:21:04 <-- death916 (~death916@user/death916) has quit (Ping timeout: 265 seconds) 2021-07-01 04:22:31 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-01 04:23:25 osa1 is there a way to get backtrace of a panic in a panic handler? I can't see anything relevant in PanicInfo docs 2021-07-01 04:25:44 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-01 04:26:26 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 04:26:38 osa1 hm, I think I can do Backtrace::capture(), but it's in std so I can't use it 2021-07-01 04:32:05 Arnavion backtrace::{trace,resolve,resolve_frame}_unsynchronized() work without the std feature enabled 2021-07-01 04:33:26 osa1 is that a crate? backtrace distributed with Rust is only available in std 2021-07-01 04:33:48 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-01 04:33:48 <-- BlackDex (~blackdex@ori.vyus.nl) has quit (Quit: ByeBye) 2021-07-01 04:33:53 osa1 if you mean https://crates.io/crates/backtrace, it requires alloc 2021-07-01 04:34:40 Arnavion You said nothing about disallowing alloc 2021-07-01 04:34:56 osa1 Yeah I'm saying it now 2021-07-01 04:35:07 osa1 I can only use core 2021-07-01 04:35:27 --> frost14 (~frost@59.71.241.179) has joined ##rust 2021-07-01 04:35:31 osa1 Perhaps I can allow alloc for debugging though 2021-07-01 04:36:53 Arnavion (And yes, I meant that crate, which predates libstd's API and is also what backs it) 2021-07-01 04:37:37 --> death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-01 04:37:55 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 04:38:21 <-- meandi2 (~meandi4@dyndsl-178-142-250-229.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-07-01 04:38:30 --> meandi (~meandi4@dyndsl-178-142-250-229.ewe-ip-backbone.de) has joined ##rust 2021-07-01 04:39:44 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 04:41:41 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 04:41:51 <-- frost14 (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-01 04:42:07 --> frost46 (~frost@59.71.241.179) has joined ##rust 2021-07-01 04:43:18 <-- frost46 (~frost@59.71.241.179) has quit (Client Quit) 2021-07-01 04:43:34 --> frost24 (~frost@59.71.241.179) has joined ##rust 2021-07-01 04:44:25 <-- jai (~darkapex@user/darkapex) has quit (Quit: node-irc says goodbye) 2021-07-01 04:45:21 <-- frost24 (~frost@59.71.241.179) has quit (Client Quit) 2021-07-01 04:45:40 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 04:46:10 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 04:47:40 <-- kron (~weechat@user/qaph) has quit (Quit: kron) 2021-07-01 04:53:02 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-01 04:54:35 -- gggpkm_ is now known as gggpkm 2021-07-01 04:54:48 gggpkm how can I get the type of variable at runtim 2021-07-01 04:54:50 gggpkm e 2021-07-01 04:55:01 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-01 04:55:26 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-07-01 04:55:49 jbg what for? 2021-07-01 04:55:59 --> mreznik_ (~mreznik@nat-pool-brq-u.redhat.com) has joined ##rust 2021-07-01 04:57:57 jbg gggpkm: if you have something like a Box or Box and want to find out what is behind the trait object, you want to look up "downcasting" 2021-07-01 04:58:20 jbg but the type of variables is known at compile time; in general there is no purpose in finding it out at runtime 2021-07-01 04:58:21 <-- mreznik (~mreznik@nat-pool-brq-t.redhat.com) has quit (Ping timeout: 258 seconds) 2021-07-01 05:01:48 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-01 05:03:36 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-07-01 05:06:30 <-- zerotypic (~zerotypic@66.96.192.176) has quit (Ping timeout: 265 seconds) 2021-07-01 05:09:46 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 05:09:57 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 05:10:39 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 05:12:18 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-07-01 05:14:15 --> nanoc (~nanocoast@p200300e1273bf000ccc6df24f323b7c2.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 05:18:38 <-- death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Read error: Connection reset by peer) 2021-07-01 05:18:59 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-07-01 05:19:15 --> death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-01 05:19:27 <-- quite (~quite@user/quite) has quit (Ping timeout: 272 seconds) 2021-07-01 05:21:15 --> BlackDex (~blackdex@ori.vyus.nl) has joined ##rust 2021-07-01 05:22:46 <-- death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-07-01 05:22:46 --> death916 (AdiIRC@user/death916) has joined ##rust 2021-07-01 05:23:03 --> a6a45081-2b83 (~aditya@223.235.222.167) has joined ##rust 2021-07-01 05:23:25 <-- Guest45 (~Guest45@cpc158775-hari22-2-0-cust265.20-2.cable.virginm.net) has quit (Remote host closed the connection) 2021-07-01 05:23:33 <-- chandlerbing (~oscar@81-206-221-72.fixed.kpn.net) has quit (Quit: Lost terminal) 2021-07-01 05:25:50 --> tglman1 (~tglman@46.233.83.249) has joined ##rust 2021-07-01 05:32:28 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 258 seconds) 2021-07-01 05:40:18 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 05:41:36 --> arinov_ (~arinov@213.14.161.121) has joined ##rust 2021-07-01 05:43:06 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-01 05:43:48 <-- raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Ping timeout: 250 seconds) 2021-07-01 05:44:59 --> raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-07-01 05:47:35 --> eduardas (~eduardas@93.93.57.5) has joined ##rust 2021-07-01 05:48:15 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-01 05:48:44 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 05:49:23 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 05:49:58 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Read error: Connection reset by peer) 2021-07-01 05:51:04 --> jimmy (~jimmy___@2607:fa49:4b00:7000:1d4b:242d:4ae5:9449) has joined ##rust 2021-07-01 05:53:55 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 05:54:34 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Killed (NickServ (GHOST command used by gggpkm_))) 2021-07-01 05:54:37 -- gggpkm_ is now known as gggpkm 2021-07-01 05:55:19 gggpkm impl Server ,what is () here 2021-07-01 05:55:51 trev "unit" 2021-07-01 05:55:58 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 05:56:06 trev https://doc.rust-lang.org/std/primitive.unit.html 2021-07-01 05:58:38 <-- raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Quit: WeeChat 3.1) 2021-07-01 05:58:54 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-01 06:01:00 --> raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-07-01 06:01:35 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-01 06:01:37 jbg colloquially, "nothing" 2021-07-01 06:02:10 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-01 06:02:31 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-01 06:03:12 --> starblue3 (~juergen@dslb-188-100-134-163.188.100.pools.vodafone-ip.de) has joined ##rust 2021-07-01 06:05:05 --> phundrak (~phundrak@82-65-91-105.subs.proxad.net) has joined ##rust 2021-07-01 06:05:14 <-- starblue2 (~juergen@dslb-094-221-188-232.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 272 seconds) 2021-07-01 06:05:30 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Read error: Connection reset by peer) 2021-07-01 06:06:37 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-01 06:07:13 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-01 06:08:22 --> gggpkm_ (~gggpkm@124.126.15.211) has joined ##rust 2021-07-01 06:11:16 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-01 06:12:09 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 06:12:50 --> gggpkm (~gggpkm@36.112.134.194) has joined ##rust 2021-07-01 06:14:16 <-- gggpkm_ (~gggpkm@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-07-01 06:14:19 <-- a6a45081-2b83 (~aditya@223.235.222.167) has quit (Remote host closed the connection) 2021-07-01 06:15:33 --> bsdbandit01 (~bsdbandit@2607:fb90:a944:5ada:6cfa:67f2:c070:f53) has joined ##rust 2021-07-01 06:16:04 <-- bsdbandit01 (~bsdbandit@2607:fb90:a944:5ada:6cfa:67f2:c070:f53) has quit (Read error: Connection reset by peer) 2021-07-01 06:16:24 --> capitol (~capitol@login.hackeriet.no) has joined ##rust 2021-07-01 06:16:43 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 06:16:46 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 06:17:54 bertptrs Formally, a tuple with zero elements 2021-07-01 06:18:19 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-01 06:18:40 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-01 06:19:22 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 06:19:31 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-01 06:21:18 --> zerotypic (~zerotypic@66.96.192.176) has joined ##rust 2021-07-01 06:21:47 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-07-01 06:25:53 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 06:25:54 --> quite (~quite@user/quite) has joined ##rust 2021-07-01 06:26:33 gggpkm_ how to let vim show out warning by ale 2021-07-01 06:26:34 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 06:28:12 <-- gggpkm (~gggpkm@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-07-01 06:28:47 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 06:28:48 --> genieliu_ (~genieliu@103.37.140.25) has joined ##rust 2021-07-01 06:29:34 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-01 06:30:15 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-01 06:30:48 <-- quite (~quite@user/quite) has quit (Read error: Connection reset by peer) 2021-07-01 06:30:51 <-- dannym (~dannym@2a02:8388:281:94f0:b958:b6e3:fc53:344d) has quit (Ping timeout: 268 seconds) 2021-07-01 06:31:07 --> quite (~quite@user/quite) has joined ##rust 2021-07-01 06:31:09 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 268 seconds) 2021-07-01 06:31:12 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Client Quit) 2021-07-01 06:32:41 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-01 06:35:06 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 06:35:37 --> Arnik (~arnik@31.59.224.146) has joined ##rust 2021-07-01 06:38:18 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 240 seconds) 2021-07-01 06:39:09 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 06:39:26 <-- tglman1 (~tglman@46.233.83.249) has quit (Ping timeout: 272 seconds) 2021-07-01 06:41:20 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-01 06:41:31 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-01 06:45:16 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-01 06:45:36 <-- quite (~quite@user/quite) has quit (Read error: Connection reset by peer) 2021-07-01 06:46:03 --> quite (~quite@user/quite) has joined ##rust 2021-07-01 06:47:31 <-- feirlane (~feirlane@37.228.209.66) has quit (Ping timeout: 265 seconds) 2021-07-01 06:49:25 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 06:50:12 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-01 06:50:36 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 256 seconds) 2021-07-01 06:51:03 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-01 06:51:30 --> tglman1 (~tglman@46.233.83.249) has joined ##rust 2021-07-01 06:51:52 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-01 06:53:39 bertptrs this channel is not google, mate 2021-07-01 06:54:36 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-01 06:55:32 la_mettrie this is infoseek 2021-07-01 06:57:25 --> feirlane (~feirlane@37.228.209.66) has joined ##rust 2021-07-01 06:58:16 <-- arinov_ (~arinov@213.14.161.121) has quit (Ping timeout: 252 seconds) 2021-07-01 07:02:19 --> arinov_ (~arinov@213.14.161.121) has joined ##rust 2021-07-01 07:04:05 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 258 seconds) 2021-07-01 07:04:30 <-- Arnik (~arnik@31.59.224.146) has quit (Remote host closed the connection) 2021-07-01 07:04:41 nox Nothing is actually 2021-07-01 07:04:49 nox Nothing is actually `!`, not `()` 2021-07-01 07:05:10 jbg well... yeah 2021-07-01 07:05:16 jbg () is a value so it's not really nothing 2021-07-01 07:05:26 jbg but ! is really never, not nothing 2021-07-01 07:05:36 jbg not returning is different from returning nothing 2021-07-01 07:05:45 j`ey Result 2021-07-01 07:05:56 jbg Result 2021-07-01 07:05:58 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-01 07:06:38 j`ey thats basically -> ! :P 2021-07-01 07:06:59 jbg I might never return successfully, or I might never return with an error 2021-07-01 07:08:47 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Read error: Connection reset by peer) 2021-07-01 07:10:29 Sobek I wonder what clippy and rustc make of -> Result 2021-07-01 07:10:41 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-07-01 07:13:30 <-- tglman1 (~tglman@46.233.83.249) has quit (Ping timeout: 240 seconds) 2021-07-01 07:15:19 --> Guest94 (~textual@194.62.169.65.ipv4.parknet.dk) has joined ##rust 2021-07-01 07:16:10 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-01 07:17:07 --> gggp (~textual@36.112.128.143) has joined ##rust 2021-07-01 07:17:17 j`ey Sobek: should be fine! 2021-07-01 07:19:27 bluss the never (!) type is not stable yet, so it's a feature that's yet to come (stable perspective) :) 2021-07-01 07:20:04 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-01 07:20:30 jbg I thought it was stable in return types 2021-07-01 07:21:08 jbg ah, only *as* the return type, not *in* return types 2021-07-01 07:21:25 j`ey yeah just -> ! 2021-07-01 07:21:32 <-- quite (~quite@user/quite) has quit (Quit: quite) 2021-07-01 07:22:04 bluss in stable Rust, ! is not really a type 2021-07-01 07:24:23 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 07:26:28 --> quite (~quite@user/quite) has joined ##rust 2021-07-01 07:27:20 <-- natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-01 07:27:21 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 07:28:57 <-- gggp (~textual@36.112.128.143) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 07:30:03 <-- quite (~quite@user/quite) has quit (Client Quit) 2021-07-01 07:30:13 --> quite (~quite@user/quite) has joined ##rust 2021-07-01 07:31:22 --> natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 07:36:41 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 07:36:48 bertptrs Which is why Result exists 2021-07-01 07:37:31 <-- chronon (~chronon@user/chronon) has left ##rust 2021-07-01 07:37:46 bihtori Why not just.. T? 2021-07-01 07:37:51 nox And Infallible is also nothing, just a different kind of nothing :p 2021-07-01 07:38:08 nox bihtori: For things that are infallible but must return Result<_, _>. 2021-07-01 07:38:11 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 256 seconds) 2021-07-01 07:38:19 nox bihtori: E.g. an infallible TryFrom implementation. 2021-07-01 07:38:40 bertptrs bihtori: because you might be implementing trait Foo { type ErrorType; fn bar() -> Result; } 2021-07-01 07:39:10 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-01 07:39:28 bihtori Oh, the associated types in traits force it for sure. 2021-07-01 07:40:43 trev the real question is, which is nicer looking "Infallible" or "!" ? 2021-07-01 07:41:06 bertptrs "!" imo, if only for consistency, but alas we're not there yet 2021-07-01 07:43:42 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-01 07:44:40 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-01 07:45:02 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 07:45:51 --> Snaffu (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has joined ##rust 2021-07-01 07:45:55 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 07:48:51 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 268 seconds) 2021-07-01 07:48:57 <-- jimmy (~jimmy___@2607:fa49:4b00:7000:1d4b:242d:4ae5:9449) has quit (Ping timeout: 256 seconds) 2021-07-01 07:52:03 --> jimmy (~jimmy___@2607:fa49:4b00:7000:41e0:47b8:75c1:9b24) has joined ##rust 2021-07-01 07:52:13 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 07:52:16 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 07:52:18 ssbr I have a procedural macro which wraps another procedural macro, but now users must depend on both, even though they only directly use one (the other is still used, but... behind a procedural macro). Is there any way around this, to e.g. make ::proc_macro2_crate available when you depend on ::proc_macro2_crate? 2021-07-01 07:52:35 ssbr this doesn't happen with normal macros, because they use $crate, not ::crate_name -- is there maybe an equivalent of $crate for proc macros? 2021-07-01 07:53:39 Rust Feuermagier_: aha! 2021-07-01 07:53:40 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 07:55:00 gggpkm what is the common name use of rt.rs 2021-07-01 07:57:34 j`ey gggpkm: I dont understand that question 2021-07-01 07:57:46 gggpkm rt.rs 2021-07-01 07:57:55 gggpkm name is common 2021-07-01 07:58:22 j`ey gggpkm: ive never seen that name before 2021-07-01 07:58:28 j`ey gggpkm: what makes you say it is common? 2021-07-01 07:59:40 gggpkm really :( 2021-07-01 08:00:11 j`ey gggpkm: where have you seen rt.rs? 2021-07-01 08:00:41 gggpkm hyper code 2021-07-01 08:01:28 trev you want to use the module in another file? 2021-07-01 08:01:30 j`ey rt = runtime, it says at the top: https://github.com/hyperium/hyper/blob/master/src/rt.rs#L1 2021-07-01 08:01:40 trev lol 2021-07-01 08:02:03 bertptrs can you please speak in complete sentences you are really hard to understand 2021-07-01 08:03:15 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 08:03:42 mike-burns (Their IP is not for an English-speaking country.) 2021-07-01 08:03:50 bertptrs Neither is mine 2021-07-01 08:04:15 gggpkm j`ey, at the top ? 2021-07-01 08:04:51 j`ey gggpkm: look at the line I linked to 2021-07-01 08:04:53 gggpkm j`ey, executor is for async ? 2021-07-01 08:04:59 j`ey //! Runtime components 2021-07-01 08:05:05 j`ey rt = runtime 2021-07-01 08:05:16 j`ey yeah Executor is for async 2021-07-01 08:05:49 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-01 08:08:01 gggpkm this file does not impoty Fut ,but it uses Fut 2021-07-01 08:08:16 j`ey gggpkm: line 9 2021-07-01 08:08:22 --> Shell (~shell@user/shell) has joined ##rust 2021-07-01 08:08:35 gggpkm what's the magic 2021-07-01 08:08:36 j`ey gggpkm: thats a generic 2021-07-01 08:08:43 j`ey no magic 2021-07-01 08:09:31 gggpkm pub trait Executor 2021-07-01 08:09:39 gggpkm where is the Fut from 2021-07-01 08:09:55 j`ey there 2021-07-01 08:10:03 j`ey thats declaring Fut 2021-07-01 08:10:08 j`ey its not from anywhere 2021-07-01 08:10:26 mike-burns https://doc.rust-lang.org/book/ch10-01-syntax.html - here's the book's chapter on generics, like Fut. 2021-07-01 08:12:28 jbg this will be the third time gggpkm has been linked to the book, not sure if they will read it this time either :) 2021-07-01 08:13:12 mike-burns Heh fair enough. 2021-07-01 08:13:12 j`ey https://doc.rust-lang.org/rust-by-example/generics.html might be better 2021-07-01 08:13:26 j`ey since its examples (apparently) 2021-07-01 08:14:12 gggpkm ah 2021-07-01 08:14:29 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 08:14:51 gggpkm I think it as the std's Fut 2021-07-01 08:15:15 gggpkm it's virtual indeed 2021-07-01 08:15:42 j`ey generic, not virtual 2021-07-01 08:16:00 <-- Snaffu (~Snaffu@c-174-60-107-126.hsd1.pa.comcast.net) has quit (Ping timeout: 252 seconds) 2021-07-01 08:16:11 gggpkm I think it just is a literal placeholder 2021-07-01 08:16:21 mike-burns Yup. 2021-07-01 08:17:30 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-01 08:18:06 --> sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has joined ##rust 2021-07-01 08:18:18 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has left ##rust 2021-07-01 08:18:35 jbg it's just a name, you can replace all occurrences of Fut there with Foo or F or Beeblebrox and nothing changes. 2021-07-01 08:18:35 <-- ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has quit (Read error: Connection reset by peer) 2021-07-01 08:19:04 j`ey jbg: even Zephod? 2021-07-01 08:19:26 jbg I think that would be a compile error, Zaphod would be ok though 2021-07-01 08:19:41 j`ey jbg: ouch, i failed 2021-07-01 08:21:32 gggpkm is vim lsp powerful ? 2021-07-01 08:21:52 jbg this channel is not google 2021-07-01 08:22:09 gggpkm is vim lsp for rust powerful ? 2021-07-01 08:22:14 jbg lol 2021-07-01 08:22:22 jbg touche 2021-07-01 08:22:41 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-01 08:22:47 mike-burns rust-analyzer is powerful. 2021-07-01 08:23:47 --> Cymew (~ante@host-217-213-69-246.mobileonline.telia.com) has joined ##rust 2021-07-01 08:27:25 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Read error: Connection reset by peer) 2021-07-01 08:27:59 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 08:28:53 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Client Quit) 2021-07-01 08:29:30 trev lol add "for rust" to anything to keep it on topic 2021-07-01 08:31:41 --> dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has joined ##rust 2021-07-01 08:33:57 --> varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has joined ##rust 2021-07-01 08:34:07 Shell are dogs heckin' good puppers, for rust? 2021-07-01 08:34:23 me any idea for a crate that can parse c-escaped strings? (something like "a\nhello\r\n\x33\x22") 2021-07-01 08:34:28 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-01 08:34:43 ssbr gggpkm: nice save 2021-07-01 08:40:04 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-01 08:46:09 --> bsdbandit01 (~bsdbandit@172.58.187.211) has joined ##rust 2021-07-01 08:47:00 <-- bsdbandit01 (~bsdbandit@172.58.187.211) has quit (Read error: Connection reset by peer) 2021-07-01 08:49:31 hoistbypetard hi all... in rust, is there a common way to initialize a HashMap from a literal? in python, i'd do this: `foo = { 'bar': 42, 'baz': 24 }` 2021-07-01 08:49:56 -- Rust is now known as ButtRs 2021-07-01 08:50:23 j`ey hoistbypetard: map-lit crate 2021-07-01 08:50:37 --> bsdbandit01 (~bsdbandit@2607:fb90:a948:2c38:281a:e62b:f10c:8194) has joined ##rust 2021-07-01 08:51:03 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 08:51:27 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-07-01 08:52:24 <-- bsdbandit01 (~bsdbandit@2607:fb90:a948:2c38:281a:e62b:f10c:8194) has quit (Read error: Connection reset by peer) 2021-07-01 08:52:35 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-01 08:52:57 hoistbypetard thanks. that looks like just what i want. 2021-07-01 08:53:19 jbg me: maybe overkill but I think nom can do it with nom::bytes::complete::escaped or so 2021-07-01 08:54:44 me I've found "unescape" crate, which is almost undiscoverable as it is not documented at all 2021-07-01 08:55:30 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-07-01 08:57:40 --> bsdbandit01 (~bsdbandit@2607:fb90:a948:2c38:281a:e62b:f10c:8194) has joined ##rust 2021-07-01 08:59:06 <-- Cymew (~ante@host-217-213-69-246.mobileonline.telia.com) has quit (Ping timeout: 240 seconds) 2021-07-01 09:01:17 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-01 09:02:22 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-01 09:04:57 <-- bsdbandit01 (~bsdbandit@2607:fb90:a948:2c38:281a:e62b:f10c:8194) has quit (Read error: Connection reset by peer) 2021-07-01 09:08:26 --> thing_ (~thing@user/thing) has joined ##rust 2021-07-01 09:08:44 <-- thing (~thing@user/thing) has quit (Quit: thing) 2021-07-01 09:17:51 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-01 09:20:42 <-- Fairy97 (~Fairy@2001:464a:4992:0:8091:ff37:2684:295) has quit (Quit: Leaving) 2021-07-01 09:22:21 -- thing_ is now known as thing 2021-07-01 09:23:28 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-07-01 09:23:35 <-- feirlane (~feirlane@37.228.209.66) has quit (Quit: WeeChat 3.1) 2021-07-01 09:26:25 --> feirlane (~feirlane@37.228.209.66) has joined ##rust 2021-07-01 09:35:12 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 09:36:40 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-01 09:37:27 <-- dmathieu (~textual@laubervilliers-659-1-148-137.w92-154.abo.wanadoo.fr) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 09:37:46 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 09:41:16 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 09:41:47 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-01 09:41:59 <-- Shell (~shell@user/shell) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-01 09:42:03 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Killed (NickServ (GHOST command used by gggpkm_))) 2021-07-01 09:42:26 -- gggpkm_ is now known as gggpkm 2021-07-01 09:42:51 gggpkm ping 2021-07-01 09:43:45 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-07-01 09:44:50 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 09:45:08 --> Shell (~shell@user/shell) has joined ##rust 2021-07-01 09:45:53 cehteh pong 2021-07-01 09:46:14 <-- genieliu_ (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-01 09:46:34 Sobek | . | 2021-07-01 09:47:22 cehteh | | . 2021-07-01 09:47:26 cehteh you loose 2021-07-01 09:47:30 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-01 09:47:39 Sobek :D 2021-07-01 09:48:58 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-01 09:49:41 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-01 09:51:11 <-- arinov_ (~arinov@213.14.161.121) has quit (Ping timeout: 265 seconds) 2021-07-01 09:54:25 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-01 09:54:28 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-07-01 09:58:50 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-07-01 09:59:28 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-01 09:59:29 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-07-01 10:00:18 <-- Feuermagier_ (~Feuermagi@2a02:2488:4211:3400:5def:8486:9e4:b49a) has quit (Ping timeout: 240 seconds) 2021-07-01 10:05:01 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-07-01 10:16:36 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-01 10:21:07 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-07-01 10:21:30 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-01 10:25:00 <-- mreznik_ (~mreznik@nat-pool-brq-u.redhat.com) has quit (Quit: Leaving) 2021-07-01 10:31:06 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-01 10:31:06 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 10:33:41 --> lichform (~lichform@2601:85:8200:5a80:5091:9b6e:ff76:c61a) has joined ##rust 2021-07-01 10:33:51 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Quit: Leaving) 2021-07-01 10:34:19 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-01 10:34:55 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-01 10:35:20 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 10:35:27 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-01 10:36:13 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-07-01 10:37:15 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-01 10:37:59 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 258 seconds) 2021-07-01 10:39:59 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 10:41:11 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 10:43:03 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 10:43:42 --> serra (~serra@user/serra) has joined ##rust 2021-07-01 10:44:39 <-- kmh (~kmh@p200300df5f069e006c3a11393f66a20c.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-07-01 10:51:48 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 10:54:12 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-01 10:59:44 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-01 11:02:22 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-01 11:02:33 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 11:02:47 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 11:08:25 <-- dmathieu (~textual@78.203.212.55) has quit (Ping timeout: 256 seconds) 2021-07-01 11:09:29 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 265 seconds) 2021-07-01 11:10:43 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Quit: WeeChat 3.2) 2021-07-01 11:11:13 --> dmathieu (~textual@2a01:e34:ecbd:4370:d09:6481:df3d:eadb) has joined ##rust 2021-07-01 11:12:25 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-01 11:13:05 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-01 11:17:18 --> kmh (~kmh@p200300df5f069e001103edbbdf5759c4.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 11:18:04 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-07-01 11:18:27 <-- nanoc (~nanocoast@p200300e1273bf000ccc6df24f323b7c2.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-07-01 11:19:08 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 268 seconds) 2021-07-01 11:23:36 <-- samuelbernardo (~samuelber@194.210.119.252) has quit (Ping timeout: 258 seconds) 2021-07-01 11:31:13 sol ]/window 21 2021-07-01 11:31:34 bertptrs I much prefer window 23 myself 2021-07-01 11:31:39 <-- sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has quit (Ping timeout: 256 seconds) 2021-07-01 11:33:23 --> Raito_Bezarius (~Raito@wireguard/tunneler/raito-bezarius) has joined ##rust 2021-07-01 11:37:19 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 256 seconds) 2021-07-01 11:37:26 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-07-01 11:38:42 --> arkscout (~arkscout@047-034-153-193.res.spectrum.com) has joined ##rust 2021-07-01 11:44:21 <-- eduardas (~eduardas@93.93.57.5) has quit (Quit: Konversation terminated!) 2021-07-01 11:44:30 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:ec8e:146:e5e:cc24) has joined ##rust 2021-07-01 11:44:37 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-01 11:44:45 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 11:47:11 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 265 seconds) 2021-07-01 11:47:14 <-- tims (~tims@123-243-10-176.static.tpgi.com.au) has quit (Ping timeout: 272 seconds) 2021-07-01 11:49:17 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 258 seconds) 2021-07-01 11:52:18 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 272 seconds) 2021-07-01 11:54:26 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-07-01 12:01:55 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 12:04:56 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 12:05:08 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 12:05:35 <-- kmh (~kmh@p200300df5f069e001103edbbdf5759c4.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-07-01 12:05:49 --> kmh (~kmh@p200300df5f069e001103edbbdf5759c4.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 12:06:52 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 272 seconds) 2021-07-01 12:11:31 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 12:14:03 <-- Momentum (momentum@tilde.team) has left ##rust (WeeChat 3.1) 2021-07-01 12:14:08 --> samuelbernardo (~samuelber@nata02.lip.pt) has joined ##rust 2021-07-01 12:16:04 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 12:17:30 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 12:18:36 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Ping timeout: 265 seconds) 2021-07-01 12:19:07 <-- serra (~serra@user/serra) has quit (Quit: WeeChat 3.2) 2021-07-01 12:21:15 <-- varioust (~varioust@72-46-48-28.lnk.ne.static.allophone.net) has quit (Remote host closed the connection) 2021-07-01 12:22:57 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-01 12:27:54 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 240 seconds) 2021-07-01 12:28:20 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-01 12:29:13 <-- arkscout (~arkscout@047-034-153-193.res.spectrum.com) has quit (Quit: Quit) 2021-07-01 12:31:39 --> bsdband29 (~bsdbandit@172.58.187.118) has joined ##rust 2021-07-01 12:34:44 --> maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-157.mrsn.at) has joined ##rust 2021-07-01 12:35:41 _Vi How do I get from `(u32, &String)` to `&(u32, String)` without a clone? Naive way leads to "cannot move out of ...". 2021-07-01 12:36:09 GreenJello you can't 2021-07-01 12:37:06 _Vi Is indexing HashMap by a tuple like `(u32, String)` a good idea in general? 2021-07-01 12:39:15 GreenJello if you're trying to use it as a two dimensional hashmap, I'd probably go with HashMap>, but I don't know that a tuple is always worse 2021-07-01 12:40:19 GreenJello it's probably worse if any part of the key isn't Copy, though 2021-07-01 12:43:54 _Vi Indeed, looks like `string_interner::DefaultSymbol` is a better choice. 2021-07-01 12:44:44 danieldg _Vi: this is the reason raw_entry exists for HashMap 2021-07-01 12:45:17 danieldg 2-dimensional hashmaps are a lot more wasteful of memory 2021-07-01 12:46:05 cehteh tuple (or enum) would be as good as hashing thereof is 2021-07-01 12:46:29 cehteh and Eq 2021-07-01 12:46:41 --> mmfood (~mmfood@194.103.157.64) has joined ##rust 2021-07-01 12:46:57 danieldg you can also kinda do this with a custom key - or in this case, having the type be (u32, Cow<'static, str>) 2021-07-01 12:47:44 danieldg that's a bit less efficient than (u32, String) but only one usize per entry; better than the layered hashmap 2021-07-01 12:48:13 cehteh do you expect hundreds, thousands, millions of keys? 2021-07-01 12:49:03 <-- bsdband29 (~bsdbandit@172.58.187.118) has quit (Read error: Connection reset by peer) 2021-07-01 12:49:09 cehteh i just did that in a non size/performance critical part, copying things and done, if that poses a problem its a implementation detail that can be changed later 2021-07-01 12:49:33 danieldg if you expect tons of keys, String is not as good a key as Box/Rc/Arc 2021-07-01 12:49:53 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-01 12:50:44 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 12:53:44 danieldg actually I'm not sure Cow would be good enough here - depends on how lifetime rules work 2021-07-01 12:53:46 --> sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has joined ##rust 2021-07-01 12:54:43 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 12:55:20 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-07-01 12:57:11 cehteh in a another thing i have something enum Entry {Free(usize), Used(Something)} ... and then a struct Stored { data: Vec, firstfree: usize} ... mapping Somethings to unique usize identifiers and then look that up in a hash map 2021-07-01 12:59:14 cehteh slightly special case here (even uses an Arc for other reasons) but with that you can decouple the actual data storage from the lookup 2021-07-01 13:00:04 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-07-01 13:05:02 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 13:07:08 <-- maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-157.mrsn.at) has quit (Ping timeout: 252 seconds) 2021-07-01 13:07:26 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 13:07:49 --> maxgoetsch (~maxgoetsc@clnet-p068-014.ikbnet.co.at) has joined ##rust 2021-07-01 13:09:41 --> menace (~someone@2001:a61:533:5a01:a49f:a81:6c54:19a4) has joined ##rust 2021-07-01 13:09:41 <-- menace (~someone@2001:a61:533:5a01:a49f:a81:6c54:19a4) has quit (Changing host) 2021-07-01 13:09:41 --> menace (~someone@user/menace) has joined ##rust 2021-07-01 13:14:11 --> sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has joined ##rust 2021-07-01 13:28:46 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 13:30:14 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 13:34:08 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 13:34:17 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 13:42:36 <-- dmathieu (~textual@2a01:e34:ecbd:4370:d09:6481:df3d:eadb) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 13:43:26 <-- sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has quit (Read error: Permission denied) 2021-07-01 13:43:43 --> sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has joined ##rust 2021-07-01 13:50:02 <-- i3d (~i3dmaster@c-73-42-171-203.hsd1.wa.comcast.net) has quit (Quit: Lost terminal) 2021-07-01 13:51:33 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 13:52:21 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-07-01 13:54:08 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-07-01 13:55:02 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-07-01 13:55:27 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-01 13:56:10 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-07-01 14:02:43 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 14:02:51 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-07-01 14:03:10 <-- maxgoetsch (~maxgoetsc@clnet-p068-014.ikbnet.co.at) has quit (Ping timeout: 268 seconds) 2021-07-01 14:05:42 --> maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-157.mrsn.at) has joined ##rust 2021-07-01 14:08:00 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-01 14:10:06 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-01 14:10:08 Polochon_street hi! I'm trying to have a function in a trait that returns an Iterator on something that depends on operations ran in different threads started in that function 2021-07-01 14:10:08 --> serra (~serra@user/serra) has joined ##rust 2021-07-01 14:10:14 --> kron (~weechat@user/qaph) has joined ##rust 2021-07-01 14:10:17 Polochon_street I have https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ca3526eb72a8d9842485e78674f6c21e, which seems to work, but was wondering if I left footguns there? 2021-07-01 14:10:35 Polochon_street like, what if my `do_something` panics? Should I worry about that? 2021-07-01 14:11:16 Shell you don't have to manually drop(tx_thread) 2021-07-01 14:12:40 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-07-01 14:12:58 Polochon_street but the rest looks good? I'm kind of worried that I never join the threads, but at the same time, I know the receiver.iter() will wait until all tx are dropped, so maybe it's good as it is 2021-07-01 14:13:17 --> cdown_ (~cdown@89.32.122.5) has joined ##rust 2021-07-01 14:14:15 Shell aside from that... if do_something panics or returns an Err, that thread will exit and not do anything. you can try it: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c91dca5491aada7c30c7b6404b6b7cc7 2021-07-01 14:15:42 <-- cdown (~cdown@163.114.131.1) has quit (Ping timeout: 252 seconds) 2021-07-01 14:17:53 Polochon_street there's no way to get an Err similarly to this https://doc.rust-lang.org/std/thread/struct.JoinHandle.html#method.join, right? 2021-07-01 14:18:24 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-01 14:20:47 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 14:21:45 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 14:21:54 <-- dwt_ (~dwt_@c-98-200-58-177.hsd1.tx.comcast.net) has left ##rust (Leaving) 2021-07-01 14:23:23 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-01 14:24:50 --> dolor_avis (~dolor_avi@user-5-173-11-128.play-internet.pl) has joined ##rust 2021-07-01 14:26:09 <-- dolor_avis (~dolor_avi@user-5-173-11-128.play-internet.pl) has quit (Client Quit) 2021-07-01 14:26:11 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 256 seconds) 2021-07-01 14:36:33 --> Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-07-01 14:36:46 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 14:41:53 --> elgraz (~elgraz@151.65.7.224) has joined ##rust 2021-07-01 14:43:30 <-- maxgoetsch (~maxgoetsc@mobiledyn-185-69-244-157.mrsn.at) has quit (Ping timeout: 240 seconds) 2021-07-01 14:44:01 <-- elgraz (~elgraz@151.65.7.224) has quit (Client Quit) 2021-07-01 14:44:11 --> elgraz (~elgraz@151.65.7.224) has joined ##rust 2021-07-01 14:46:24 --> maxgoetsch (~maxgoetsc@clnet-p068-014.ikbnet.co.at) has joined ##rust 2021-07-01 14:47:20 <-- jushur (~human@user/jushur) has quit (Quit: bork bork) 2021-07-01 14:47:44 --> jushur (~human@user/jushur) has joined ##rust 2021-07-01 14:47:55 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 14:48:00 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 14:52:21 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 14:56:27 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 14:57:26 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-07-01 14:57:49 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 14:59:05 <-- maxgoetsch (~maxgoetsc@clnet-p068-014.ikbnet.co.at) has quit (Quit: Quit) 2021-07-01 15:00:22 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-01 15:01:28 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 15:01:40 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-01 15:03:15 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-07-01 15:06:13 <-- serra (~serra@user/serra) has quit (Quit: WeeChat 3.2) 2021-07-01 15:07:45 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-01 15:10:11 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Quit: Well, off to Libera.) 2021-07-01 15:10:32 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-01 15:15:28 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-01 15:16:59 <-- sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has quit (Quit: WeeChat 3.2) 2021-07-01 15:18:27 <-- elgraz (~elgraz@151.65.7.224) has quit (Quit: Leaving) 2021-07-01 15:25:15 <-- raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Quit: WeeChat 3.1) 2021-07-01 15:26:19 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 15:26:39 --> raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-07-01 15:28:51 --> fivemillion (~user@p200300e7ff05bb89706971ff9a887d25.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 15:29:15 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 15:29:17 fivemillion I don't really understand how shared state concurrency is supposed to work under rust 2021-07-01 15:29:57 fivemillion suppose there's an image loader, which loads images incrementally, and the result is written to a shared memory "frame buffer" 2021-07-01 15:30:05 fivemillion what would this look like in rust? 2021-07-01 15:31:19 GreenJello fivemillion, https://doc.rust-lang.org/book/ch16-03-shared-state.html 2021-07-01 15:31:43 fivemillion yeah of course I tried to read this 2021-07-01 15:32:00 fivemillion but I don't really understand 2021-07-01 15:32:05 fivemillion I'm coming from C, if you wonder 2021-07-01 15:32:08 fivemillion in C this is very simple 2021-07-01 15:32:31 fivemillion you just have a pointer to the pixel data, and there are "implicit" rules how to access the pointer 2021-07-01 15:32:37 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-01 15:33:35 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 15:34:12 trev just wrap in Arc> and pass around 2021-07-01 15:34:19 trev what didn't you understand? 2021-07-01 15:34:43 fivemillion well, first, for a C programmer, double nested templates seem very roundabout 2021-07-01 15:35:07 fivemillion I have to look closer at this 2021-07-01 15:35:44 trev it's for your own safety:tm: 2021-07-01 15:38:23 <-- mmfood (~mmfood@194.103.157.64) has quit (Remote host closed the connection) 2021-07-01 15:38:40 fivemillion well it literally says Arc is Rc, but thread-safe, but is RwLock really needed? I'm sorry I'm just trying to get the big picture 2021-07-01 15:38:41 GreenJello I don't really understand the requirements here. Things don't always translate well 1:1 with C 2021-07-01 15:39:26 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 15:39:33 fivemillion C is often described as a portable assembler, and I expect that Rust as a systems programming language can achieve the same thing easily 2021-07-01 15:39:35 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 15:39:54 fivemillion C is just a thing layer over the mode the CPU/OS provides 2021-07-01 15:40:10 fivemillion the OS simply provides threads that can access the same memory 2021-07-01 15:40:11 GreenJello it can, but if you try to use it like C, then you get none of the benefits of Rust 2021-07-01 15:40:52 saati that's a dangerously inaccurate picture of C 2021-07-01 15:40:58 fivemillion that's OK, I'm fine with getting the benefits of rust in other areas 2021-07-01 15:41:09 fivemillion saati, I disagree 2021-07-01 15:41:25 fivemillion mostly because Unix is defined in terms of POSIX 2021-07-01 15:41:31 Karel C is portable assembly with an adversary in the middle that tries to prove as much of your code as undefined 2021-07-01 15:41:50 fivemillion true enough, but you could literally blame compiler vendors for this 2021-07-01 15:42:25 fivemillion I don't think the original C inventors imagined nasal demons 2021-07-01 15:43:12 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-01 15:43:54 fivemillion the thing about rwlocks I hate is that readers can't upgrade to writers atomically 2021-07-01 15:44:06 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-01 15:44:21 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 15:46:06 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 15:46:34 GreenJello the parking_lot crate has an RwLock with upgradable read locks 2021-07-01 15:47:40 fivemillion anyway in C I'd rarely consider rwlocks because they tend to be error prone, but that's not the point anyway and not what I wanted to ask 2021-07-01 15:50:03 trev GreenJello should i blindly convert all my RwLocks to the parking lot ones? 2021-07-01 15:50:09 pedrocr fivemillion: the rust primitives lead to much different code for use cases like you are describing 2021-07-01 15:50:33 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-01 15:50:38 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-01 15:50:40 fivemillion pedrocr, I'm trying to understand how, and what the consequences are 2021-07-01 15:50:52 pedrocr fivemillion: for my image viewer for example I wrap all the image loading into its own thread, that thread has a cache that gives out Arc references and those get passed to other threads through channels 2021-07-01 15:50:54 <-- sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has quit (Read error: Permission denied) 2021-07-01 15:51:11 --> sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has joined ##rust 2021-07-01 15:51:22 pedrocr fivemillion: so it ends up looking more like message passing than shared memory, but in the compiled binary it's all threads and shared memory 2021-07-01 15:52:32 GreenJello trev, probably not blindly 2021-07-01 15:52:44 fivemillion pedrocr, what if I want incremental image loading and display? 2021-07-01 15:53:02 fivemillion that seems to be like a typical "mutate shared memory" use case to me 2021-07-01 15:53:41 pedrocr fivemillion: if you're reading and writing to the same image you're probably going to need double-buffering, so it doesn't seem like shared memory to me 2021-07-01 15:53:44 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-01 15:53:49 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-01 15:54:18 fivemillion not sure why I'd waste memory on double buffering 2021-07-01 15:54:20 --> ubuntourist (~kjcole@pool-108-51-151-26.washdc.fios.verizon.net) has joined ##rust 2021-07-01 15:54:31 fivemillion and probably memcpy 2021-07-01 15:54:39 pedrocr fivemillion: because that's how displaying things on screen works anyway 2021-07-01 15:55:10 fivemillion I know enough about that but I can't say I agree 2021-07-01 16:00:47 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Quit: Leaving) 2021-07-01 16:04:05 --> menace_ (~someone@ppp-93-104-175-139.dynamic.mnet-online.de) has joined ##rust 2021-07-01 16:04:14 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Ping timeout: 252 seconds) 2021-07-01 16:04:29 --> JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has joined ##rust 2021-07-01 16:05:55 <-- menace (~someone@user/menace) has quit (Ping timeout: 256 seconds) 2021-07-01 16:08:44 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-07-01 16:12:05 --> GNUcifer (~ct@mue-88-130-72-233.dsl.tropolys.de) has joined ##rust 2021-07-01 16:12:17 <-- cehteh (~ct@164-69-142-46.pool.kielnet.net) has quit (Killed (NickServ (GHOST command used by GNUcifer!~ct@mue-88-130-72-233.dsl.tropolys.de))) 2021-07-01 16:12:29 -- GNUcifer is now known as cehteh 2021-07-01 16:12:44 <-- dmathieu (~textual@78.203.212.55) has quit (Client Quit) 2021-07-01 16:13:09 --> ryzenda (~ryzenda@pool-74-109-246-70.pitbpa.fios.verizon.net) has joined ##rust 2021-07-01 16:13:18 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-07-01 16:19:19 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-01 16:20:15 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-07-01 16:23:14 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 16:24:31 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-01 16:25:10 --> Ivyy (~Ivyy@2001:a62:41d:fa01:f36:8479:4134:98c8) has joined ##rust 2021-07-01 16:25:19 <-- fivemillion (~user@p200300e7ff05bb89706971ff9a887d25.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-07-01 16:27:35 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 258 seconds) 2021-07-01 16:32:53 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-01 16:33:07 <-- ubuntourist (~kjcole@pool-108-51-151-26.washdc.fios.verizon.net) has quit (Quit: Leaving) 2021-07-01 16:33:21 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-01 16:34:29 <-- EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-01 16:35:00 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-01 16:35:18 --> chance (~chance@user/chance) has joined ##rust 2021-07-01 16:37:26 chance curious question from a non-rust programmer. my search-fu is failing. i'm aware that rust "lacks" (more or less) the null pointer (not literally.) i've also seen the existence of None (and Some.) i'm just curious, at the literal, most basic, "this is eventually asm" level, i realize None isn't a pointer to 0x0, but what is it? just a struct that 2021-07-01 16:37:26 chance the language knows means "N/A"? does that mean there can hypothetically be more than one? as you can tell, this has done more (temporary) damage to my psyche than one would expect ;) 2021-07-01 16:38:16 chance the closest i got to an answer was "it's an enum" but that just moves the question a little to one side... 2021-07-01 16:39:17 j`ey chance: it is just an enum! 2021-07-01 16:39:30 j`ey enum Option { None, Some(T) } 2021-07-01 16:39:33 bertptrs but it is. it is an enum. rust enums can contain other values. One state is just None and the other is Some with a value within 2021-07-01 16:39:34 maurer chance: So, it is just an enum *but* there are also fancy representation tricks under the hood 2021-07-01 16:39:35 j`ey you can define your own version 2021-07-01 16:39:43 maurer For example, if you Option<&Foo> 2021-07-01 16:39:54 maurer Rust will figure out that 0 is not a valid bit pattern for &Foo 2021-07-01 16:39:59 maurer and will stick the None arm of Option in there 2021-07-01 16:41:31 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 16:41:45 chance so, if i did define my own version, if i understand you guys correctly, it's the type that makes it nullish. so as long as the thing resolves back into a *that*, it's usable as null? i appreciate the answers. i read the fact in passing and it completely took me out of what i was reading! 2021-07-01 16:41:49 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 16:42:11 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-07-01 16:42:22 j`ey well it's not nullish on the "language" level 2021-07-01 16:42:25 cehteh chance: rust can optmize things, for option it may use 'niche' values like null pointers under the hood, but it has to prove things are safe and never dereferenced 2021-07-01 16:42:30 la_mettrie isn't None/Some just a pretty normal variable construction in which one variable is simply used to indicate that there is no data in place X and the language is made so that this variable value is always strictly taken into account 2021-07-01 16:43:49 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-01 16:43:59 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 16:44:08 chance la_mettrie that's the bit that broke me, it sounded to me at first like there needed to be exactly one of this enum, at some particular address, and i couldn't get my head around that being any safer than a pointer to an arbitrary address, seems like it should be the compiler or interpreter's problem to say "don't dereference 0x0." but this 2021-07-01 16:44:08 chance fanciness does help explain it a bit 2021-07-01 16:44:36 j`ey there are many Nones 2021-07-01 16:44:39 j`ey no fixed address 2021-07-01 16:45:21 chance well, no universally fixed address, but surely when the thing is instantiated, something is keeping track? otherwise you'd have to name an instance before you could access the concept of "nothing" 2021-07-01 16:45:29 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-01 16:45:30 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-07-01 16:45:32 Karel chance, Are you coming from Java/Python or something by chance? The big difference with Rust and other C-like languages is that things can be "by value", in Java & co they are (almost always) pointers. 2021-07-01 16:45:56 cehteh note that pointers (no matter what) are not dangerous until you dereference them, then they *must* point to a valid object. rust ensures this at the language level 2021-07-01 16:46:20 Karel So if I say `let a = None` a is not a pointer to some predefined address where the "None" instance lives, it's literally just a value on the stack that represents None. 2021-07-01 16:46:52 j`ey chance: remember that None is not special, since you can define your own Option enum, that the compiler know nothing about 2021-07-01 16:47:03 la_mettrie a bit like a lock isn't it? 2021-07-01 16:47:21 chance I'm coming from a number of places, but Java? God no. the reason it made zero sense to me is that, "bare metal," *everything* is a pointer. "x" is a name for wherever "x" is. (duh) 2021-07-01 16:47:31 cehteh let a = None; is actually illegal becasue it cant infer the type 2021-07-01 16:47:36 chance so it sounded like some lunatic had made the entirely arbitrary decision that the language should not permit stupidity 2021-07-01 16:48:18 Karel Huh things are very much not always a pointer on bare metal? Things are in registers all the time, and None (for eg Option<&T>) can also just fit in a register without it being a pointer. 2021-07-01 16:48:58 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-07-01 16:49:03 --> witcher (~witcher@static.74.224.203.116.clients.your-server.de) has joined ##rust 2021-07-01 16:49:30 chance at which point it's an identifier for the register. one way or another you're just telling the computer where to get something. the null pointer is *fundamentally* just a universal something. my failed attempts to search for this language feature indicated that programmers can't accidentally try to dereference null, and that's pretty much it. 2021-07-01 16:49:33 cehteh Karel: not always Option for example has no way to represent None in a niche 2021-07-01 16:50:14 Karel cehteh, yeah I was careful to say it was Option<&T>::None :) 2021-07-01 16:50:18 chance and, fair enough, good feature. just *really* confusing if you're coming from literally anywhere where null is the historical null. certainly every other language does something equally jarring to protect programmers from themselves. 2021-07-01 16:50:41 j`ey chance: in c++ references cant be null either 2021-07-01 16:51:08 cehteh c++ goes only half of the road, you can have dangling references there 2021-07-01 16:51:08 j`ey rust has raw pointers, those can be null 2021-07-01 16:51:15 chance that's true, and part of our job has always been making sure we don't do that =P 2021-07-01 16:51:52 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 272 seconds) 2021-07-01 16:51:55 <-- Guest94 (~textual@194.62.169.65.ipv4.parknet.dk) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-01 16:52:25 pedrocr chance: Option is like a C struct { guard: bool, pointer: *Foo }, where the language doesn't allow you to access struct.pointer directly and just forces checking the guard first, so it's never possible to dereference the pointer when it's null/undefined 2021-07-01 16:52:44 pedrocr chance: you could do the same in C with functions or macros 2021-07-01 16:53:26 <-- arinov_ (~arinov@178.240.158.75) has quit (Read error: Connection reset by peer) 2021-07-01 16:53:26 j`ey pedrocr: it isnt, Option stores Foo, not *Foo 2021-07-01 16:53:43 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 16:54:08 pedrocr j`ey: sure, just simplifying, the important bit is the guard and syntatic sugar around that 2021-07-01 16:54:44 cehteh actually rust enums are discriminated unions in C 2021-07-01 16:54:56 chance makes perfect sense from a CS perspective. from a language design perspective, i'll get over it 2021-07-01 16:55:02 cehteh but with some smarter optimization opportunities 2021-07-01 16:55:13 <-- death916 (AdiIRC@user/death916) has quit (Ping timeout: 268 seconds) 2021-07-01 16:55:50 j`ey chance: makes perfect sense from a language design perspective too! 2021-07-01 16:56:04 j`ey chance: Im kinda confused, you *want* nullable references? 2021-07-01 16:57:05 chance i've never seen the fact that "null" is universally defined as a problem, nor as dangerous. i see the careful use of the null pointer as *competence*, and most compilers (and linters) catch most screw-ups. i see the value in what rust has done instead, just, yeah, not a choice i'd have made for my own toolkit 2021-07-01 16:57:12 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 16:57:26 chance paradigm shift mostly for your protection against yourself, valid choice, i was happy before *shrug* 2021-07-01 16:57:48 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-07-01 16:57:54 j`ey if you were going to check all pointers before, Option<&T> just makes sure you do 2021-07-01 16:58:05 j`ey or if you have &T, you dont need to check, it will never be null 2021-07-01 16:58:11 chance either way, i sincerely appreciate the explanation. the simple sentence "rust doesn't have the null pointer" was more effective than my coffee today 2021-07-01 16:58:30 j`ey rust has null raw pointers 2021-07-01 16:58:31 --> est31 (~est31@user/est31) has joined ##rust 2021-07-01 16:58:42 j`ey rust doesnt have null references 2021-07-01 16:58:45 chance yeah, they exist, they just aren't the idiomatic None, was my point (and ouch) 2021-07-01 16:59:45 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 256 seconds) 2021-07-01 17:00:06 <-- dcz_ (~dcz@dynamic-078-049-018-181.78.49.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-07-01 17:00:48 chance to be clear, when i say *the* null pointer, i most definitely mean "memory address nothin' is the idiomatic None," will all it's ever entailed. *not* the concept of *a* null pointer =P 2021-07-01 17:01:06 cehteh note that there is no signle 'None' it still needs a type, that is what makes let a = None; an error in rust (and in this case pointless because its immutable) 2021-07-01 17:01:26 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-01 17:01:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-07-01 17:02:00 j`ey chance: the reason I prefer Option, is that it doesnt work with just pointers 2021-07-01 17:02:12 j`ey null only works with pointers, Option can be 'null' for any type 2021-07-01 17:02:21 cehteh let mut a: Option = None; would be legal (or using the turbofish :)) 2021-07-01 17:03:15 cehteh https://turbo.fish/ 2021-07-01 17:06:31 pedrocr cehteh: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9513f99ae27fc4a7298fd4242d2fa540 2021-07-01 17:06:55 -- daimon is now known as TradeBoy 2021-07-01 17:07:06 -- TradeBoy is now known as CryptoBot 2021-07-01 17:07:09 pedrocr let a = None; works fine, the compiler just needs a way to do the type inference for it 2021-07-01 17:07:11 cehteh yeah in that case it can infer the type because you return it 2021-07-01 17:07:16 cehteh yes 2021-07-01 17:07:18 -- CryptoBot is now known as daemon 2021-07-01 17:09:46 --> nameless (~nameless@69.197.131.198) has joined ##rust 2021-07-01 17:09:46 <-- nameless (~nameless@69.197.131.198) has quit (Changing host) 2021-07-01 17:09:46 --> nameless (~nameless@user/nameless) has joined ##rust 2021-07-01 17:10:27 <-- Moomoc (~Moomoc@84.38.65.228) has left ##rust 2021-07-01 17:14:42 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 17:17:07 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-01 17:19:46 daemon if I was going to have a lot of rust processes chatting to each over, over TCP, lots of pretty damn small packets what would be the best serializer to use performance wise 2021-07-01 17:21:21 danieldg bincode, maybe? It really depends on which performance you care about 2021-07-01 17:21:28 <-- acid (~acid@user/acid) has quit (Read error: Connection reset by peer) 2021-07-01 17:21:30 daemon cpu overhead really 2021-07-01 17:21:33 daemon got plenty of ram 2021-07-01 17:21:36 --> acid (~acid@user/acid) has joined ##rust 2021-07-01 17:21:38 danieldg and bandwidth? 2021-07-01 17:21:54 daemon bandwidth is not so important either this will all be on the same dedicated server 2021-07-01 17:22:04 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Remote host closed the connection) 2021-07-01 17:22:22 danieldg bincode is pretty fast for cpu but it's bad on data size 2021-07-01 17:22:42 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 240 seconds) 2021-07-01 17:22:42 daemon what would be the next alternative to bincode, thinking a benchmark might be a good idea 2021-07-01 17:22:42 danieldg (because it's intended for localhost comms) 2021-07-01 17:22:53 danieldg something like protobufs, I guess 2021-07-01 17:22:59 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-01 17:23:03 daemon cool protobug vs bincode, thank you :) 2021-07-01 17:23:47 danieldg or adding actual compression to the stream with a fast compressor 2021-07-01 17:24:02 daemon lzo2 was pretty good from memory 2021-07-01 17:25:11 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-01 17:25:50 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-07-01 17:25:54 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-07-01 17:26:43 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-01 17:28:32 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:ec8e:146:e5e:cc24) has quit 2021-07-01 17:29:36 Tv_ I want to have a HashMap with entries in states Creating, Ready, i want thread #1 to allocate the key by inserting K: Creating, but then do the actual work of transforming Creating to Ready in another thread. MutexGuard is not Send so I can't just ship that over to the worker thread and unlock there. Any thoughts? 2021-07-01 17:30:39 Tv_ HashMap>> and lock again in the worker thread? 2021-07-01 17:32:10 cehteh yes 2021-07-01 17:32:15 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 17:32:35 cehteh but do you even need that in a shared hash map? cant you just make that implicit? 2021-07-01 17:33:09 daemon anyone think of a logging module (that is ideally compatible with syslog and windows event log) I can drag in without having to write it my self ^_^ 2021-07-01 17:33:10 cehteh looks pointless and a minor performance bottleneck to me 2021-07-01 17:33:14 Tv_ cehteh: unique IDs 2021-07-01 17:33:40 Tv_ cehteh: i mean, the worker thread might not need to touch the map, if all it needs is the entry inside the map 2021-07-01 17:34:28 cehteh then pass the entry to the worker, and when the worker is done with it then it gives it back 2021-07-01 17:34:52 cehteh do you have a single spawner or can any thread spawn work? 2021-07-01 17:35:22 Tv_ cehteh: single spawner 2021-07-01 17:36:08 Tv_ err, actually, one per incoming connection, but there's only ever supposed to be one connection. might need to deal with that, somewhere. 2021-07-01 17:36:10 cehteh then it could be as simple as having a HashSet in the spawner never shared 2021-07-01 17:36:18 Tv_ "supposed to be" ain't visible to the type system ;) 2021-07-01 17:36:43 Tv_ cehteh: i need to reach the Ready state by id later 2021-07-01 17:36:57 cehteh ready for what? 2021-07-01 17:37:07 Tv_ of the Creating vs Ready enum 2021-07-01 17:37:08 cehteh sounds somehow like a condvar or channel? 2021-07-01 17:37:28 cehteh yes but ready for what? ready for doing work? 2021-07-01 17:38:42 Tv_ to make this more concrete (but still simplfied): client says Create()->ID or Increment(ID). creating a new number slot takes say 1 second, so want to push that into a thread. 2021-07-01 17:39:25 Tv_ so main thread loops reading request, for Create allocates ID in state Creating, notifies worker thread 2021-07-01 17:39:40 Tv_ my initial attempt was to Send a MutexGuard to worker thread 2021-07-01 17:39:42 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 17:39:52 Tv_ but then rust mutexes are pthreads mutexes so that can't happen 2021-07-01 17:39:57 cehteh i dont get the purpose, creating an ID is already a task/piece of work? 2021-07-01 17:40:08 Tv_ cehteh: it's actually talking to a backend 2021-07-01 17:40:12 cehteh yes you never send mutex guards 2021-07-01 17:40:30 Tv_ in non-pthread land, that would have been doable ;) 2021-07-01 17:40:44 Tv_ but ok so i can send a Mutex, and have the worker re-obtain it 2021-07-01 17:40:50 danieldg Tv_: sounds like you should use a channel? 2021-07-01 17:40:58 cehteh in pthread land its doable too but its arguable a brittle design 2021-07-01 17:41:10 cehteh yeah i am thinking about channels too, or condvars 2021-07-01 17:41:15 Tv_ danieldg: channel will be used to send workers work, but each of these slots has just this one-time transition 2021-07-01 17:41:37 cehteh just play pingpong 2021-07-01 17:41:51 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: node-irc says goodbye) 2021-07-01 17:41:51 Tv_ so workers notify main thread of their completion 2021-07-01 17:41:56 cehteh sending messeages around with the state/id as payload 2021-07-01 17:42:12 Tv_ and main thread updates the map 2021-07-01 17:42:15 danieldg Tv_: re-acquire the lock in the worker thread and update the map 2021-07-01 17:42:16 cehteh then you have little to no locking/lock contention 2021-07-01 17:42:21 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 17:42:35 danieldg or do all the locking in main, that also works 2021-07-01 17:42:41 cehteh also any shared data even readonly isnt a great idea, only do when you really must do so 2021-07-01 17:42:42 danieldg that'll get you notification too 2021-07-01 17:43:08 cehteh just pass the ball, state machine 2021-07-01 17:43:57 cehteh when your main manager needs to know what balls are in the game then have a hashset there where it marks those, in his own privacy 2021-07-01 17:48:20 --> janik (~janik@oidentd/developer/janik) has joined ##rust 2021-07-01 17:53:04 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 17:53:45 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-01 17:55:02 <-- llorllale (~llorllale@2607:9880:3a18:69:4d8e:9dc8:8270:3ec1) has quit (Quit: WeeChat 3.2) 2021-07-01 17:56:44 --> davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has joined ##rust 2021-07-01 17:57:19 -- binkers- is now known as Binkers 2021-07-01 17:58:07 davros https://www.reddit.com/r/rust_gamedev/comments/obj38y/rust_shooter_another_little_update/ read the last few posts about maths library interop, and how it relates to the challenge of Rust matching Unreal Engine. 2021-07-01 17:58:31 davros you need a special caseable workaround for orphan rules to facilitate this IMO. 2021-07-01 18:07:53 <-- Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-07-01 18:08:12 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-01 18:08:56 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 18:09:14 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 18:10:29 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 18:13:18 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 252 seconds) 2021-07-01 18:17:41 <-- mattyb (~matt@user/mattyb) has quit (Ping timeout: 252 seconds) 2021-07-01 18:17:58 --> mattyb (~matt@user/mattyb) has joined ##rust 2021-07-01 18:19:43 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 18:20:14 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 18:24:18 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-07-01 18:25:53 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 256 seconds) 2021-07-01 18:30:10 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-01 18:30:17 <-- mattyb (~matt@user/mattyb) has quit (Read error: Connection reset by peer) 2021-07-01 18:30:37 --> mattyb (~matt@user/mattyb) has joined ##rust 2021-07-01 18:31:14 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-01 18:31:59 <-- lifeless (~robertc@168.92-220-19.customer.lyse.net) has quit (Ping timeout: 252 seconds) 2021-07-01 18:32:03 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 18:32:20 <-- ckie (~ckie@user/cookie) has quit (Ping timeout: 272 seconds) 2021-07-01 18:32:44 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 252 seconds) 2021-07-01 18:33:31 <-- mattyb (~matt@user/mattyb) has quit (Client Quit) 2021-07-01 18:34:15 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 18:36:45 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-01 18:36:58 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 18:38:10 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 18:38:14 --> ckie (~ckie@user/cookie) has joined ##rust 2021-07-01 18:38:42 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 240 seconds) 2021-07-01 18:41:10 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 252 seconds) 2021-07-01 18:41:26 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 272 seconds) 2021-07-01 18:42:25 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 18:43:10 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-01 18:43:40 --> lifeless (~robertc@168.92-220-19.customer.lyse.net) has joined ##rust 2021-07-01 18:44:55 cehteh eww .. Congratulations, you've earned the **New User of the Month award for June 2021**. :trophy: :) 2021-07-01 18:45:44 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-07-01 18:58:01 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 19:01:51 <-- Ivyy (~Ivyy@2001:a62:41d:fa01:f36:8479:4134:98c8) has quit (Remote host closed the connection) 2021-07-01 19:03:09 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-01 19:03:48 --> mattyb (~matt@user/mattyb) has joined ##rust 2021-07-01 19:05:16 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 19:09:30 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has quit (Remote host closed the connection) 2021-07-01 19:10:33 <-- ghost64 (~ghost64@user/ghost64) has quit (Quit: See you!) 2021-07-01 19:12:16 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-01 19:12:40 --> ghost64 (~ghost64@user/ghost64) has joined ##rust 2021-07-01 19:14:03 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (Ping timeout: 256 seconds) 2021-07-01 19:16:30 <-- ckie (~ckie@user/cookie) has quit (Quit: off I go~) 2021-07-01 19:17:34 --> ckie (~ckie@user/cookie) has joined ##rust 2021-07-01 19:20:31 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 19:21:10 <-- IanWizard (~ianwizard@user/ianwizard) has quit (Quit: Outta here) 2021-07-01 19:21:25 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 256 seconds) 2021-07-01 19:21:33 --> _eroux_ (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-07-01 19:22:52 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Ping timeout: 246 seconds) 2021-07-01 19:23:29 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-01 19:23:52 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-01 19:23:54 <-- lf (~quassel@p200300d21f3adf00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-01 19:24:27 --> lf (~quassel@p200300d21f3b6100022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 19:25:46 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-01 19:28:14 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-07-01 19:29:32 --> bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has joined ##rust 2021-07-01 19:31:01 <-- bsdbandit01 (~bsdbandit@wsip-70-164-45-56.dc.dc.cox.net) has quit (Read error: Connection reset by peer) 2021-07-01 19:34:28 --> tims (~tims@123-243-10-176.static.tpgi.com.au) has joined ##rust 2021-07-01 19:36:15 --> EvanCarroll (~ecarroll@c-73-255-101-166.hsd1.tx.comcast.net) has joined ##rust 2021-07-01 19:36:18 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-01 19:37:52 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 256 seconds) 2021-07-01 19:39:35 <-- darkapex (uid360049@user/darkapex) has quit (Quit: Connection closed for inactivity) 2021-07-01 19:39:37 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-01 19:40:48 --> death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-01 19:51:07 <-- chance (~chance@user/chance) has quit (Quit: Client closed) 2021-07-01 20:04:18 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-07-01 20:08:23 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-07-01 20:11:45 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-01 20:14:42 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 240 seconds) 2021-07-01 20:15:09 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-01 20:21:18 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 20:22:12 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 20:26:34 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-01 20:27:06 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-01 20:27:50 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-01 20:31:54 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-01 20:32:43 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-01 20:34:38 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:8d05:aaa6:8a87:6441) has quit (Remote host closed the connection) 2021-07-01 20:43:44 -- ckie is now known as cookie 2021-07-01 20:49:47 <-- EvanCarroll (~ecarroll@c-73-255-101-166.hsd1.tx.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-01 20:50:49 --> EvanCarroll (~ecarroll@c-73-255-101-166.hsd1.tx.comcast.net) has joined ##rust 2021-07-01 20:55:36 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-01 20:58:44 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 21:04:28 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-01 21:04:58 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 268 seconds) 2021-07-01 21:06:41 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-01 21:09:44 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-01 21:12:42 <-- CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has quit (Ping timeout: 240 seconds) 2021-07-01 21:13:35 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 21:14:42 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-01 21:15:29 --> Guest14 (~Guest14@2804:431:d77e:cc81:b87c:b893:76e8:8c62) has joined ##rust 2021-07-01 21:15:53 <-- emerent (~quassel@p200300cd5703bb15ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-07-01 21:15:58 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 21:16:15 <-- Guest14 (~Guest14@2804:431:d77e:cc81:b87c:b893:76e8:8c62) has quit (Client Quit) 2021-07-01 21:16:37 --> emerent (~quassel@p200300cd5703bb7eba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 21:16:53 --> richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has joined ##rust 2021-07-01 21:17:59 --> chance (~chance@user/chance) has joined ##rust 2021-07-01 21:18:01 <-- aquijoule_ (~richbridg@213-225-32-103.nat.highway.a1.net) has quit (Read error: Connection reset by peer) 2021-07-01 21:18:09 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-07-01 21:19:21 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-01 21:20:52 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-01 21:22:07 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 21:23:35 --> CensoredUsername (~TheNSA@217-122-115-248.cable.dynamic.v4.ziggo.nl) has joined ##rust 2021-07-01 21:24:42 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 268 seconds) 2021-07-01 21:25:30 --> anl[m] (~anlmatrix@2001:470:69fc:105::69de) has joined ##rust 2021-07-01 21:27:10 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-07-01 21:28:24 <-- CensoredUsername (~TheNSA@217-122-115-248.cable.dynamic.v4.ziggo.nl) has quit (Ping timeout: 268 seconds) 2021-07-01 21:29:39 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-07-01 21:29:54 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 21:29:54 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-07-01 21:33:35 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has quit (Remote host closed the connection) 2021-07-01 21:34:02 --> CensoredUsername (~TheNSA@2001:1c04:360b:dc00:efcf:f702:8342:9ef2) has joined ##rust 2021-07-01 21:34:18 <-- voker57_ (~quassel@2a06:1700:0:24::) has quit (Ping timeout: 240 seconds) 2021-07-01 21:35:21 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-01 21:38:21 --> xse (~xse@user/xse) has joined ##rust 2021-07-01 21:43:00 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Remote host closed the connection) 2021-07-01 21:44:15 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-01 21:44:19 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-01 21:50:31 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-01 21:50:35 --> neurocyte40 (~neurocyte@45.131.36.91) has joined ##rust 2021-07-01 21:50:35 <-- neurocyte40 (~neurocyte@45.131.36.91) has quit (Changing host) 2021-07-01 21:50:35 --> neurocyte40 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-01 21:52:25 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Client Quit) 2021-07-01 21:53:04 <-- neurocyte4 (~neurocyte@user/neurocyte) has quit (Ping timeout: 268 seconds) 2021-07-01 21:53:04 -- neurocyte40 is now known as neurocyte4 2021-07-01 21:55:09 --> gggp (~textual@36.112.128.143) has joined ##rust 2021-07-01 21:57:34 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-01 21:59:00 <-- gggp (~textual@36.112.128.143) has quit (Client Quit) 2021-07-01 22:00:18 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 22:01:23 --> starblue (~juergen@dslb-088-078-097-030.088.078.pools.vodafone-ip.de) has joined ##rust 2021-07-01 22:04:37 <-- starblue3 (~juergen@dslb-188-100-134-163.188.100.pools.vodafone-ip.de) has quit (Ping timeout: 256 seconds) 2021-07-01 22:12:23 --> osa1_ (~osa1@178.233.26.94) has joined ##rust 2021-07-01 22:13:17 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-01 22:14:15 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 256 seconds) 2021-07-01 22:15:34 <-- frost (~frost@59.71.241.179) has quit (Quit: Ping timeout (120 seconds)) 2021-07-01 22:22:02 --> img (~img@user/img) has joined ##rust 2021-07-01 22:23:13 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 22:23:17 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 22:24:31 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-07-01 22:27:46 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-07-01 22:37:49 cehteh hum .. i want to create a path from 2 components, 1 prefix '/foo/bar' and one user defined thing 'baz/barf.txt' shall give /foo/bar/baz/barf.txt 2021-07-01 22:39:06 cehteh the gotcha: the prefix can be .canonalize()'ed to ensure its absolute and exists, but the user part may not exist already and i need to ensure that it does not escape the prefix (../../) 2021-07-01 22:39:44 cehteh canonalize barfs for non existing things. any idea how to archive that? 2021-07-01 22:41:52 GreenJello cehteh, maybe https://docs.rs/cap-std/0.15.2/cap_std/ 2021-07-01 22:43:12 cehteh oh .. lemme check 2021-07-01 22:45:14 cehteh eh what does that more/different than std? 2021-07-01 22:45:39 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 22:46:51 GreenJello you'd create a Dir of /foo/bar, and then the methods of Dir will ensure they only operate inside /foo/bar 2021-07-01 22:47:18 GreenJello and you can just work with relative paths instead of needing to join your prefix everywhere 2021-07-01 22:48:02 GreenJello not sure if it's what you need 2021-07-01 22:48:26 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-01 22:48:54 cehteh ah no not really, later on yes, but this itself is a trait which should only work with names 2021-07-01 22:50:10 cehteh i guess i just implement a 'normalize' for pathbuf 2021-07-01 22:54:42 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-01 22:54:53 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-01 22:56:02 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-01 22:56:04 -- __jmcantrell__ is now known as jmcantrell 2021-07-01 22:56:25 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 23:00:22 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-01 23:01:17 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 256 seconds) 2021-07-01 23:03:39 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 23:03:59 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-07-01 23:05:33 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-01 23:06:45 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-01 23:07:09 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Quit: WeeChat 3.2) 2021-07-01 23:10:51 <-- thecatster_ (~thecatste@user/thecatster) has quit (Remote host closed the connection) 2021-07-01 23:10:52 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:52 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:52 <-- felinae (~felinae@user/felinae) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:52 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:52 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:53 <-- kadoban (~kadoban@user/kadoban) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:53 <-- psydroid (~psydroid@user/psydroid) has quit (Write error: Connection reset by peer) 2021-07-01 23:10:53 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:54 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Write error: Connection reset by peer) 2021-07-01 23:10:54 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:55 <-- anl[m] (~anlmatrix@2001:470:69fc:105::69de) has quit (Read error: Connection reset by peer) 2021-07-01 23:10:55 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Remote host closed the connection) 2021-07-01 23:10:56 <-- Alex[m]123456789 (~randomstr@2001:470:69fc:105::47f6) has quit (Read error: Connection reset by peer) 2021-07-01 23:11:04 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Write error: Connection reset by peer) 2021-07-01 23:11:05 <-- siraben (~siraben@user/siraben) has quit (Write error: Connection reset by peer) 2021-07-01 23:11:59 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 23:12:04 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-01 23:13:14 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-07-01 23:18:30 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-01 23:18:30 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-01 23:18:30 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-01 23:18:30 --> felinae (~felinae@user/felinae) has joined ##rust 2021-07-01 23:18:30 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-01 23:18:30 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-01 23:18:30 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-01 23:18:30 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-01 23:18:30 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-01 23:18:30 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-01 23:18:30 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-01 23:18:30 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-01 23:18:30 --> anl[m] (~anlmatrix@2001:470:69fc:105::69de) has joined ##rust 2021-07-01 23:18:30 --> Alex[m]1234567 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-07-01 23:18:43 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-07-01 23:22:18 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 23:23:41 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-01 23:25:14 <-- anl[m] (~anlmatrix@2001:470:69fc:105::69de) has left ##rust 2021-07-01 23:25:36 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-01 23:26:13 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 256 seconds) 2021-07-01 23:28:58 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-01 23:33:03 <-- siraben (~siraben@user/siraben) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:04 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:07 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:08 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:08 <-- kadoban (~kadoban@user/kadoban) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:36 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:38 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:55 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:56 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Quit: node-irc says goodbye) 2021-07-01 23:33:58 <-- psydroid (~psydroid@user/psydroid) has quit (Quit: node-irc says goodbye) 2021-07-01 23:34:18 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Quit: node-irc says goodbye) 2021-07-01 23:35:01 <-- thecatster_ (~thecatste@user/thecatster) has quit (Quit: node-irc says goodbye) 2021-07-01 23:37:35 <-- felinae (~felinae@user/felinae) has quit (Quit: node-irc says goodbye) 2021-07-01 23:39:49 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 256 seconds) 2021-07-01 23:40:59 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 268 seconds) 2021-07-01 23:42:41 <-- Alex[m]1234567 (~randomstr@2001:470:69fc:105::47f6) has quit (Quit: node-irc says goodbye) 2021-07-01 23:44:06 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Quit: node-irc says goodbye) 2021-07-01 23:45:06 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 240 seconds) 2021-07-01 23:45:20 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 23:46:44 --> meandi2 (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has joined ##rust 2021-07-01 23:47:30 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-01 23:50:44 <-- meandi (~meandi4@dyndsl-178-142-250-229.ewe-ip-backbone.de) has quit (Ping timeout: 265 seconds) 2021-07-01 23:51:46 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 272 seconds) 2021-07-01 23:52:00 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-01 23:52:19 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 23:53:30 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-01 23:53:33 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-01 23:54:34 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-01 23:56:52 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-01 23:57:06 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-01 23:57:44 jbg cehteh: one approach is to remove components from the end of the path until canonicalize() succeeds, then check that the path is within the tree you expect it to be, then put the components back 2021-07-02 00:01:22 <-- EvanCarroll (~ecarroll@c-73-255-101-166.hsd1.tx.comcast.net) has quit (Ping timeout: 265 seconds) 2021-07-02 00:01:36 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-07-02 00:04:06 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-02 00:07:12 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-02 00:08:52 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 272 seconds) 2021-07-02 00:17:54 --> EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has joined ##rust 2021-07-02 00:20:42 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-02 00:24:30 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 00:29:08 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-07-02 00:31:40 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-02 00:32:36 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-07-02 00:35:37 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-02 00:37:43 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Ping timeout: 268 seconds) 2021-07-02 00:42:18 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-02 00:43:06 <-- lichform (~lichform@2601:85:8200:5a80:5091:9b6e:ff76:c61a) has quit (Read error: Connection reset by peer) 2021-07-02 00:43:39 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 00:44:04 --> trev (~trev@user/trev) has joined ##rust 2021-07-02 00:46:58 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 00:47:57 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 00:50:02 --> img (~img@user/img) has joined ##rust 2021-07-02 00:52:31 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 268 seconds) 2021-07-02 00:52:34 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-02 00:57:14 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 01:02:37 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 01:03:14 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-07-02 01:07:16 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-02 01:08:21 --> Sunny (~Sunny@49.36.43.171) has joined ##rust 2021-07-02 01:09:15 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-02 01:10:36 <-- Sunny (~Sunny@49.36.43.171) has quit (Quit: Connection closed) 2021-07-02 01:10:59 --> Sunny (~Sunny@49.36.43.171) has joined ##rust 2021-07-02 01:11:54 <-- death916 (AdiIRC@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Ping timeout: 240 seconds) 2021-07-02 01:12:52 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 268 seconds) 2021-07-02 01:15:51 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-02 01:18:30 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-02 01:21:09 <-- barometz (~dvanb@i117058.upc-i.chello.nl) has quit (Remote host closed the connection) 2021-07-02 01:22:18 --> barometz (~dvanb@i117058.upc-i.chello.nl) has joined ##rust 2021-07-02 01:22:25 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-07-02 01:22:53 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-02 01:25:04 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-02 01:25:11 --> tmpm697 (~tmpm697@171.241.150.52) has joined ##rust 2021-07-02 01:25:17 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 01:25:43 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-02 01:26:58 <-- tmpm697 (~tmpm697@171.241.150.52) has quit (Quit: leaving) 2021-07-02 01:27:13 --> tmpm697 (~tmpm697@171.241.150.52) has joined ##rust 2021-07-02 01:27:30 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-02 01:30:00 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-07-02 01:30:42 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-02 01:34:07 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 01:35:25 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 256 seconds) 2021-07-02 01:36:24 -- alexxxey is now known as alexxey 2021-07-02 01:36:54 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 01:37:36 -- osa1_ is now known as osa1 2021-07-02 01:40:57 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-07-02 01:45:43 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 01:45:54 <-- sgift (~madison@2001:a61:35b8:2401:a95e:b5ff:5243:7a36) has quit (Read error: Permission denied) 2021-07-02 01:46:11 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 01:47:15 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-02 01:51:11 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-02 01:52:40 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-07-02 01:52:40 --> death916 (~death916@user/death916) has joined ##rust 2021-07-02 01:57:47 --> dcz_ (~dcz@dynamic-093-132-169-235.93.132.pool.telefonica.de) has joined ##rust 2021-07-02 01:58:10 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 02:01:46 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 02:03:30 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 02:03:37 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 02:03:45 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 256 seconds) 2021-07-02 02:08:36 --> Hans-Martin (~ignore@user/hans-martin) has joined ##rust 2021-07-02 02:08:46 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 02:09:29 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 02:09:36 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-07-02 02:10:42 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-02 02:14:02 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 02:16:40 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-02 02:18:02 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-02 02:18:36 <-- Sunny (~Sunny@49.36.43.171) has quit (Quit: Connection closed) 2021-07-02 02:19:07 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 265 seconds) 2021-07-02 02:20:52 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 02:21:01 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-02 02:22:07 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-02 02:23:54 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-02 02:24:26 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 265 seconds) 2021-07-02 02:24:29 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-07-02 02:26:19 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-02 02:26:56 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 02:29:22 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-02 02:30:08 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-07-02 02:31:07 bihtori Is the name of the "Clippy" linter based on the name of the old Microsoft Office assistant? 2021-07-02 02:32:05 Arnavion That's the reference, yes 2021-07-02 02:32:53 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-02 02:33:03 bihtori Wow it took me a couple of years to get that I'm dumb 2021-07-02 02:33:06 death916 why is this convo in 2 channels or am i trippin 2021-07-02 02:33:17 bihtori death916: blame me 2021-07-02 02:33:20 death916 haha 2021-07-02 02:33:25 death916 thought i was seein double 2021-07-02 02:33:57 trev is it also being discussed in the MS Word irc channel? 2021-07-02 02:34:05 death916 does that exist 2021-07-02 02:34:10 death916 is there a ir plugin for word 2021-07-02 02:34:13 death916 cuz that would b cool 2021-07-02 02:34:15 death916 irc* 2021-07-02 02:35:14 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Remote host closed the connection) 2021-07-02 02:35:37 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 02:37:52 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 02:38:00 --> fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 02:38:56 --> vire (~vire@136.185.211.83) has joined ##rust 2021-07-02 02:39:10 --> dmathieu (~textual@78.203.212.55) has joined ##rust 2021-07-02 02:39:46 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-07-02 02:40:23 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 02:41:09 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 02:43:24 <-- fabic_ (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 272 seconds) 2021-07-02 02:44:33 jbg I want an RLS integration for MS Word 2021-07-02 02:44:59 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-02 02:45:17 jbg it's really hard using it as a code editor without any autocomplete 2021-07-02 02:46:07 death916 ur better off using notepad++ than word 2021-07-02 02:46:58 <-- Hans-Martin (~ignore@user/hans-martin) has quit (Quit: I'm not an expert but I play one on IRC.) 2021-07-02 02:47:18 jbg does notepad++ support formatting? because I like to make my more important functions a larger font size 2021-07-02 02:47:37 trev jbg i once worked with someone who printed code out after pasting it into a word doc. he said he "could read it better on paper" 2021-07-02 02:47:39 jbg and sometimes embed pictures in the comments 2021-07-02 02:47:53 death916 jus like the old days trev 2021-07-02 02:47:53 jbg yeah I have worked with a few people who would print out entire codebases when first getting familiar with them 2021-07-02 02:48:01 jbg get a comfy chair and read through it 2021-07-02 02:48:05 jbg each to their own I guess 2021-07-02 02:48:19 death916 trev r u trev trev 2021-07-02 02:48:20 trev lol oh my...enjoying it like a fine novel 2021-07-02 02:48:29 trev death916 ? 2021-07-02 02:48:44 death916 do u like teams that are loosely base on beer 2021-07-02 02:48:47 jbg I could imagine doing it for something small but dense 2021-07-02 02:51:18 trev death916 i'm not following O_O 2021-07-02 02:57:43 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-02 03:03:22 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 03:03:43 rk4 pros of word for rust code: you won't have to learn how to write macros in each language, you can use vbscript for all of them 2021-07-02 03:05:26 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-02 03:06:01 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-07-02 03:06:35 --> arinov_ (~arinov@31.142.27.189) has joined ##rust 2021-07-02 03:07:41 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 03:08:11 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-07-02 03:09:44 --> mreznik (~mreznik@nat-pool-brq-u.redhat.com) has joined ##rust 2021-07-02 03:10:00 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-02 03:13:42 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-02 03:14:23 <-- veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has quit (Read error: Connection reset by peer) 2021-07-02 03:15:05 --> veegee (~veegee@ipagstaticip-469c2903-2b07-6dc3-3bc2-98748da5ca77.sdsl.bell.ca) has joined ##rust 2021-07-02 03:20:14 --> gggpkm_ (~gggpkm@36.112.135.215) has joined ##rust 2021-07-02 03:21:11 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 03:22:55 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 03:24:27 <-- neurocyte4 (~neurocyte@user/neurocyte) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-02 03:25:32 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-02 03:29:24 --> neurocyte40 (~neurocyte@45.131.36.91) has joined ##rust 2021-07-02 03:29:24 <-- neurocyte40 (~neurocyte@45.131.36.91) has quit (Changing host) 2021-07-02 03:29:24 --> neurocyte40 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-02 03:30:52 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-02 03:31:44 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-02 03:31:44 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-02 03:31:44 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-02 03:31:44 --> felinae (~felinae@user/felinae) has joined ##rust 2021-07-02 03:31:45 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-02 03:31:45 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-02 03:31:45 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-02 03:31:45 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-02 03:31:45 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-02 03:31:45 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-02 03:31:45 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-02 03:31:45 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-02 03:31:45 --> Alex[m]1234567 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-07-02 03:31:57 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-07-02 03:32:06 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-07-02 03:32:26 bertptrs is there a nicer way to unwrap a Result than unwrap_or_else(|e| e)? Seems needlessly clunky 2021-07-02 03:34:12 -- gggpkm_ is now known as gggpkm 2021-07-02 03:34:27 alip i want to write a wrapper for eprintln! which prints colour code before and after the string. how can i go about doing this? i think i need a macro right? 2021-07-02 03:35:23 --> voker57 (~quassel@2a06:1700:0:24::) has joined ##rust 2021-07-02 03:35:28 jbg bertptrs: into_ok_or_err() but it's unstable 2021-07-02 03:36:01 Arnavion Can you change the thing that created the Result in the first place to make it not do that? 2021-07-02 03:37:38 Arnavion alip: macro_rules! colored_eprintln! { $($s:expr, $($rest:tt)*) => { eprintln!(concat!("\e[...", $s, "\e[..."), $($rest)*) }; $($s:expr) => { eprintln!(concat!("\e[...", $s, "\e[...")) }; } 2021-07-02 03:38:18 Arnavion Well, \e should be \x0b, but you get the idea 2021-07-02 03:38:28 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 246 seconds) 2021-07-02 03:39:14 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 03:39:39 alip Arnavion: thank you! 2021-07-02 03:44:05 <-- vire (~vire@136.185.211.83) has quit (Quit: vire) 2021-07-02 03:45:43 <-- siraben (~siraben@user/siraben) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:45:51 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:45:59 <-- kadoban (~kadoban@user/kadoban) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:45:59 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:45:59 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:46:07 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-07-02 03:46:22 <-- psydroid (~psydroid@user/psydroid) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:46:39 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:46:46 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:46:49 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:47:10 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:47:22 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:48:15 <-- thecatster_ (~thecatste@user/thecatster) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:48:44 bertptrs Arnavion no, because it's slice::binary_search 2021-07-02 03:49:06 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-02 03:49:21 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-02 03:49:21 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-02 03:49:21 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-02 03:49:37 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-02 03:49:38 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 03:50:10 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-02 03:50:18 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-02 03:50:27 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-02 03:50:29 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-02 03:50:44 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-02 03:50:50 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-02 03:50:50 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-02 03:51:34 <-- felinae (~felinae@user/felinae) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 03:54:02 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 03:56:57 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 03:57:35 <-- arinov_ (~arinov@31.142.27.189) has quit (Ping timeout: 258 seconds) 2021-07-02 03:58:12 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-07-02 03:58:39 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:42 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Write error: Connection reset by peer) 2021-07-02 03:58:42 <-- Alex[m]1234567 (~randomstr@2001:470:69fc:105::47f6) has quit (Write error: Connection reset by peer) 2021-07-02 03:58:42 <-- kadoban (~kadoban@user/kadoban) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:47 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:47 <-- thecatster_ (~thecatste@user/thecatster) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:55 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:55 <-- siraben (~siraben@user/siraben) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:55 <-- psydroid (~psydroid@user/psydroid) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:56 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:57 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Read error: Connection reset by peer) 2021-07-02 03:58:57 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Read error: Connection reset by peer) 2021-07-02 03:59:23 alip 35 | macro_rules! say { $($s:expr, $($rest:tt)*) => { | ^ no rules expected this token in macro call 2021-07-02 03:59:27 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Read error: Connection reset by peer) 2021-07-02 03:59:29 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Read error: Connection reset by peer) 2021-07-02 03:59:48 alip Arnavion: it's not happy about the $($s:expr, points at the first parenthesis. 2021-07-02 03:59:57 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 04:00:04 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-02 04:00:14 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 04:00:43 Arnavion Oh, that first $ shouldn't be there, in both arms 2021-07-02 04:00:45 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-02 04:00:45 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-02 04:00:46 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-02 04:01:00 --> felinae (~felinae@user/felinae) has joined ##rust 2021-07-02 04:01:04 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:01:15 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-07-02 04:01:15 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-02 04:01:15 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-02 04:01:15 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-02 04:01:15 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-02 04:01:15 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-02 04:01:15 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-02 04:01:15 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-02 04:01:15 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-02 04:01:26 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-02 04:01:27 --> Alex[m] (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-07-02 04:02:54 <-- lumgwada_ (~lumgwada@101.181.107.40) has quit (Ping timeout: 252 seconds) 2021-07-02 04:03:10 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 04:03:38 alip thanks 2021-07-02 04:03:51 Arnavion evalr2: macro_rules! colored_print { ($s:expr, $($rest:tt)*) => { print!(concat!("[", $s, "]"), $($rest)*) }; ($s:expr) => { print!(concat!("[", $s, "]")) }; } colored_print!("a{}c", "b"); print!(" "); colored_print!("de "); 2021-07-02 04:03:56 -- Notice(evalr2): Arnavion: [abc] [de ]() 2021-07-02 04:05:28 <-- gggpkm (~gggpkm@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-07-02 04:06:22 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-02 04:06:39 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-02 04:07:05 --> lumgwada (~lumgwada@101.181.147.16) has joined ##rust 2021-07-02 04:07:52 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-02 04:07:53 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:08:57 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-02 04:10:19 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-02 04:10:28 <-- JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has quit (Ping timeout: 268 seconds) 2021-07-02 04:11:20 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-02 04:12:09 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:12:42 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 272 seconds) 2021-07-02 04:13:35 --> hegstal (~hegstal@2a02:c7f:7604:8a00:f7c8:886a:a9a5:ff17) has joined ##rust 2021-07-02 04:13:35 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-02 04:16:39 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-02 04:17:25 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 04:17:41 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 04:18:16 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-02 04:18:46 <-- meandi2 (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-07-02 04:18:58 --> meandi (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has joined ##rust 2021-07-02 04:19:03 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 258 seconds) 2021-07-02 04:19:31 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-02 04:20:05 <-- siraben (~siraben@user/siraben) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:15 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:21 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:23 <-- kadoban (~kadoban@user/kadoban) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:23 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:47 <-- psydroid (~psydroid@user/psydroid) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:20:55 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:21:11 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:21:11 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:21:21 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:21:30 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-02 04:22:29 <-- thecatster_ (~thecatste@user/thecatster) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:22:34 --> fe80 (~fe80@103.81.210.53) has joined ##rust 2021-07-02 04:23:04 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:25:12 <-- felinae (~felinae@user/felinae) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:26:01 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:26:57 <-- Alex[m] (~randomstr@2001:470:69fc:105::47f6) has quit (Quit: Client limit exceeded: 20000) 2021-07-02 04:29:48 --> eduardas (~eduardas@93.93.57.5) has joined ##rust 2021-07-02 04:32:04 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Remote host closed the connection) 2021-07-02 04:33:21 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-02 04:34:45 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-02 04:36:27 fe80 Hi guys, I was just wondering if there is any way to make certain part of my the output of my program invisible to the bash pipes 2021-07-02 04:36:34 fe80 like the password prompt 2021-07-02 04:36:35 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-02 04:36:35 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-02 04:36:35 --> felinae (~felinae@user/felinae) has joined ##rust 2021-07-02 04:36:35 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-02 04:36:45 bertptrs Usual method is printing to stderr 2021-07-02 04:36:49 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-07-02 04:36:49 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-02 04:36:49 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-02 04:36:49 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-02 04:36:49 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-02 04:36:49 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-02 04:36:49 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-02 04:36:49 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-02 04:36:49 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-02 04:37:02 --> Alex[m] (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-07-02 04:37:05 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:37:08 bertptrs there are more complicated options but this covers most cases 2021-07-02 04:37:08 fe80 Oh could it be that simple? haha 2021-07-02 04:37:10 fe80 thanks 2021-07-02 04:37:33 bertptrs sudo actually grabs the TTY directly but most things don't need that 2021-07-02 04:37:39 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-02 04:37:44 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-07-02 04:37:50 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-07-02 04:38:01 fe80 I just need it for the password prompt 2021-07-02 04:38:18 Arnavion The rpassword crate handles it for you already 2021-07-02 04:38:20 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Client Quit) 2021-07-02 04:38:42 fe80 i tried it with the prompt function but it pipes the prompt aswell 2021-07-02 04:39:11 fe80 i mean bash pipes it, maybe since it's still stdout 2021-07-02 04:39:16 Arnavion I don't know what you mean by "prompt function", but the function I'm referring to is read_password_from_tty 2021-07-02 04:39:58 fe80 prompt_password_stdout was the function i was refering to 2021-07-02 04:40:24 <-- kadoban (~kadoban@user/kadoban) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:25 <-- Alex[m] (~randomstr@2001:470:69fc:105::47f6) has quit (Remote host closed the connection) 2021-07-02 04:40:25 <-- saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has quit (Remote host closed the connection) 2021-07-02 04:40:25 <-- thecatster_ (~thecatste@user/thecatster) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:25 <-- xfix (~xfix@2001:470:69fc:105::302) has quit (Remote host closed the connection) 2021-07-02 04:40:25 <-- Sobek (~sobek@2001:470:69fc:105::225) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:26 <-- diegov (~diegov@2001:470:69fc:105::103f) has quit (Remote host closed the connection) 2021-07-02 04:40:26 <-- heftig[m] (~heftig@archlinux/developer/heftig) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:26 <-- felinae (~felinae@user/felinae) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:26 <-- psydroid (~psydroid@user/psydroid) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:26 <-- hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:26 <-- snover (~snover@2001:470:69fc:105::2bf) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:27 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Read error: Connection reset by peer) 2021-07-02 04:40:27 <-- carmysilna (~brightly-@2001:470:69fc:105::2190) has quit (Remote host closed the connection) 2021-07-02 04:40:31 <-- siraben (~siraben@user/siraben) has quit (Write error: Connection reset by peer) 2021-07-02 04:40:33 fe80 thanks for pinting me to that 2021-07-02 04:40:51 Arnavion The hint of what that function prints the prompt to is kind of in its name, not to mention the one and only line of its documentation :) 2021-07-02 04:43:58 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 252 seconds) 2021-07-02 04:44:49 fe80 i feel silly lol, thanks for the help 2021-07-02 04:46:10 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-02 04:47:18 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:49:17 --> JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has joined ##rust 2021-07-02 04:52:44 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-02 04:52:59 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Read error: Connection reset by peer) 2021-07-02 04:55:29 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Remote host closed the connection) 2021-07-02 04:55:58 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 04:56:52 --> johnw (~johnw@76-234-69-149.lightspeed.frokca.sbcglobal.net) has joined ##rust 2021-07-02 04:57:36 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-07-02 05:00:48 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-02 05:04:23 <-- dmathieu (~textual@78.203.212.55) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-02 05:05:52 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 05:06:03 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-02 05:06:23 <-- arinov_ (~arinov@178.240.158.75) has quit (Read error: Connection reset by peer) 2021-07-02 05:06:46 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-02 05:10:31 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 246 seconds) 2021-07-02 05:11:28 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-02 05:11:50 --> Sunny (~Sunny@49.36.43.171) has joined ##rust 2021-07-02 05:12:22 --> Sobek (~sobek@2001:470:69fc:105::225) has joined ##rust 2021-07-02 05:12:22 --> heftig[m] (~heftig@archlinux/developer/heftig) has joined ##rust 2021-07-02 05:12:22 --> snover (~snover@2001:470:69fc:105::2bf) has joined ##rust 2021-07-02 05:12:22 --> felinae (~felinae@user/felinae) has joined ##rust 2021-07-02 05:12:22 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-02 05:12:22 --> carmysilna (~brightly-@2001:470:69fc:105::2190) has joined ##rust 2021-07-02 05:12:22 --> thecatster_ (~thecatste@user/thecatster) has joined ##rust 2021-07-02 05:12:22 --> diegov (~diegov@2001:470:69fc:105::103f) has joined ##rust 2021-07-02 05:12:22 --> siraben (~siraben@user/siraben) has joined ##rust 2021-07-02 05:12:22 --> saarsec|jbushart (~saarsecjb@2001:470:69fc:105::87f) has joined ##rust 2021-07-02 05:12:22 --> hsiktas[m] (~hsiktasma@2001:470:69fc:105::30d4) has joined ##rust 2021-07-02 05:12:23 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-02 05:12:36 --> xfix (~xfix@2001:470:69fc:105::302) has joined ##rust 2021-07-02 05:12:40 <-- Sunny (~Sunny@49.36.43.171) has quit (Client Quit) 2021-07-02 05:12:42 --> Alex[m]123456789 (~randomstr@2001:470:69fc:105::47f6) has joined ##rust 2021-07-02 05:14:45 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-02 05:17:19 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-02 05:17:37 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 05:17:57 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-02 05:20:00 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-07-02 05:21:30 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 240 seconds) 2021-07-02 05:23:06 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-07-02 05:23:46 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 05:24:43 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 05:24:43 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 05:26:29 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-07-02 05:28:53 <-- gggp (~textual@60.10.23.171) has quit (Client Quit) 2021-07-02 05:30:14 <-- tmpm697 (~tmpm697@171.241.150.52) has quit (Quit: Lost terminal) 2021-07-02 05:30:27 --> tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-02 05:32:07 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 05:34:34 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-02 05:36:51 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 05:37:01 <-- arinov_ (~arinov@178.240.158.75) has quit (Quit: Konversation terminated!) 2021-07-02 05:37:15 --> arinov_ (~arinov@178.240.158.75) has joined ##rust 2021-07-02 05:38:31 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 246 seconds) 2021-07-02 05:42:22 <-- kron (~weechat@user/qaph) has quit (Quit: kron) 2021-07-02 05:45:30 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-02 05:46:35 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 05:46:41 <-- thing (~thing@user/thing) has quit (Quit: thing) 2021-07-02 05:48:37 --> thing (~thing@user/thing) has joined ##rust 2021-07-02 05:49:22 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-02 05:50:52 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-02 05:55:56 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 272 seconds) 2021-07-02 05:56:40 <-- jimmy (~jimmy___@2607:fa49:4b00:7000:41e0:47b8:75c1:9b24) has quit (Ping timeout: 256 seconds) 2021-07-02 06:00:18 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-02 06:02:04 --> arinov (~arinov@178.240.158.75) has joined ##rust 2021-07-02 06:06:00 <-- arinov_ (~arinov@178.240.158.75) has quit (Ping timeout: 258 seconds) 2021-07-02 06:06:07 <-- pyfisch (thelounge@user/pyfisch) has quit (Quit: the lounge - https://webirc.envs.net) 2021-07-02 06:06:39 --> pyfisch (thelounge@user/pyfisch) has joined ##rust 2021-07-02 06:07:12 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-07-02 06:10:52 <-- tglman1 (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-02 06:12:40 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-02 06:13:17 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 258 seconds) 2021-07-02 06:15:45 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 06:16:50 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-02 06:18:38 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-07-02 06:23:32 trev is there a way to group a bunch of imports under one #[cfg(feature = "foo")] ? 2021-07-02 06:24:36 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-07-02 06:24:57 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-07-02 06:28:51 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-02 06:31:49 --> tglman1 (~tglman@62.60.61.234) has joined ##rust 2021-07-02 06:32:07 bihtori trev: You could make a special module with a lot of "pub use"'s, usually called a "prelude", and use it under the attribute. 2021-07-02 06:32:21 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 256 seconds) 2021-07-02 06:34:02 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 06:39:06 trev bihtori thanks, that will work 2021-07-02 06:43:23 ssbr Does something functionally equivalent to the following proc-macro exist? `counter!(c, Foo{c: x, c: y, c: z})` -> `Foo{0: x, 1: y, 2: z}` -- I wouldn't even know how to find it, to be honest, so hoping someone knows :( 2021-07-02 06:43:53 ssbr right now for my macro-by-example which initializes a tuple, I had to hard-code tuples of length 0-7. Would be nice to just use a counting proc macro that can handle any number. 2021-07-02 06:45:53 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 06:46:09 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 06:48:33 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-02 06:48:49 <-- arinov (~arinov@178.240.158.75) has quit (Quit: Konversation terminated!) 2021-07-02 06:49:04 --> arinov (~arinov@178.240.158.75) has joined ##rust 2021-07-02 06:50:25 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 06:50:42 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 06:51:14 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-02 06:53:29 -- pie_bnc is now known as pie_ 2021-07-02 06:53:31 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 06:56:16 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-07-02 07:04:34 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-02 07:06:35 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 07:08:53 --> xsperry (~as@user/xsperry) has joined ##rust 2021-07-02 07:11:27 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-07-02 07:11:39 <-- tglman1 (~tglman@62.60.61.234) has quit (Quit: WeeChat 3.0.1) 2021-07-02 07:11:58 --> tglman (~tglman@62.60.61.234) has joined ##rust 2021-07-02 07:15:06 <-- arinov (~arinov@178.240.158.75) has quit (Ping timeout: 272 seconds) 2021-07-02 07:21:12 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-02 07:23:40 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-02 07:24:28 Lumpio- ssbr: Can't you just Foo(x, y, z) which you can do without a procmacro 2021-07-02 07:24:38 --> tmpm697 (~tmpm697@171.241.150.52) has joined ##rust 2021-07-02 07:24:54 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-02 07:25:39 ssbr Lumpio-: in this case, no, because I'm initializing in-place using addr_of_mut!() and the like. I realize this isn't obvious, sorry about the elision 2021-07-02 07:25:59 ssbr let me paste a snippet 2021-07-02 07:30:00 ssbr Lumpio-: not at all self-contained, but includes most of the right stuff: https://bpa.st/JE5A 2021-07-02 07:30:12 ssbr unfortunately under 100 lines is as long as it can get before I require official approvals 2021-07-02 07:30:33 ssbr the painful bit is that bit at the bottom where I literally used a Python script to generate the macro :( 2021-07-02 07:30:53 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 268 seconds) 2021-07-02 07:31:49 ssbr (also noticing some other things I can clean up / fix while I'm here... ah well!) 2021-07-02 07:31:50 <-- goldfish (~goldfish@user/goldfish) has quit (Ping timeout: 265 seconds) 2021-07-02 07:32:12 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 272 seconds) 2021-07-02 07:35:01 <-- fe80 (~fe80@103.81.210.53) has quit (Remote host closed the connection) 2021-07-02 07:42:17 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-02 07:43:04 Lumpio- There's a line number limit for showing code? lol 2021-07-02 07:43:08 Lumpio- Sounds like something a paper pusher came up with 2021-07-02 07:45:38 Lumpio- Anyways yeah, then it's proc macro time. Should be reasonable to do with syn/quote 2021-07-02 07:48:35 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-02 07:49:00 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-02 07:49:46 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-02 07:53:06 <-- tglman (~tglman@62.60.61.234) has quit (Ping timeout: 272 seconds) 2021-07-02 07:53:33 ssbr Lumpio-: https://opensource.google/docs/patching/#snippets 2021-07-02 07:53:46 ssbr yeah, I already need a proc macro crate for other things I want to do anyway, so, why not? 2021-07-02 07:53:52 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-02 07:58:13 Trollmann Can somebody please explain in beginner terms why this doesn't do what I expect? Or am I simply missing a call here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f711fc3a1cd25bc85b57e011992b4437 2021-07-02 08:03:31 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-02 08:07:02 <-- cross (~cross@spitfire.i.gajendra.net) has quit (Ping timeout: 272 seconds) 2021-07-02 08:07:11 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 08:07:40 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 272 seconds) 2021-07-02 08:08:10 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-02 08:08:32 --> cross (~cross@spitfire.i.gajendra.net) has joined ##rust 2021-07-02 08:08:38 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Read error: Connection reset by peer) 2021-07-02 08:10:52 necronian I had a match pattern that I needed to change to match a tuple, I have an issue with one of my arms now because or-patterns syntax is experimental 2021-07-02 08:11:01 necronian I fixed a similar arm by using a guard (t, _) if t == '[' || t == ']' but another arm uses ranges like 'A'..='Z' | 'a'..='z' is there a way to match a range in the guard? 2021-07-02 08:11:29 j`ey ('a'..'z').contains(&t) 2021-07-02 08:11:37 j`ey necronian: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains 2021-07-02 08:11:52 j`ey (but also paste the code, to see if there is a way using match patterns) 2021-07-02 08:11:54 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-02 08:12:03 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-07-02 08:12:18 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-02 08:12:22 necronian j`ey: Thank you... I tried something similar like 'a'..'z'.contains(t) but I see my error now 2021-07-02 08:14:32 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has quit (Remote host closed the connection) 2021-07-02 08:14:42 j`ey necronian: or maybe: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e1dc704e9bd06fb9b2f27413b4114f5e 2021-07-02 08:15:04 necronian j`ey: https://pastebin.com/beJEydsz is the match statement I have devoid of context... 2021-07-02 08:15:28 j`ey ok eyah, see my paste 2021-07-02 08:15:45 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-02 08:15:50 jbg ssbr: so if you need to do more than 100 lines, just put it on stackoverflow 2021-07-02 08:16:01 jbg gotta love arbitrary rules :D 2021-07-02 08:16:27 j`ey jbg: i think you got the precdence wrong 2021-07-02 08:17:06 jbg did I? the only way to parse that heading that leads to something that makes sense is (<= 100 lines of code) or (Stack Overflow) 2021-07-02 08:17:14 jbg since "lines of stack overflow" are not a thing 2021-07-02 08:17:34 j`ey heh 2021-07-02 08:17:55 j`ey Im reading it to mean 100 lines of code, where that means pastebins or stackoverflow 2021-07-02 08:18:19 j`ey just paste all of googles internal secret code to stackoverflow question "what is all of googles secret code?" :P 2021-07-02 08:19:40 jbg ssbr: I feel I should clarify at this point that what I wrote above is Not Legal Advice and I Am Not A Lawyer :D 2021-07-02 08:21:57 --> simao (simao@tilde.team) has joined ##rust 2021-07-02 08:22:19 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has quit (Remote host closed the connection) 2021-07-02 08:22:21 ssbr jbg: I once asked "if it's 101 lines, but I can collapse some whitespace to make it 99 lines, is that okay?" -- they didn't like that. Apparently one should not try too hard to bend the spirit of the rules when interacting with official people. :) 2021-07-02 08:22:47 jbg yeah I guess people don't like reminders that their arbitrary rules are arbitrary 2021-07-02 08:22:52 <-- simao (simao@tilde.team) has quit (Quit: WeeChat 3.1) 2021-07-02 08:23:00 --> simao (simao@tilde.team) has joined ##rust 2021-07-02 08:23:14 jbg of course, if you just said nothing and made it 99 lines, they'd have never known it started as 101 2021-07-02 08:23:39 ssbr jbg: yes, when they called my behavior dishonest, that's exactly what I told them in response. :) 2021-07-02 08:24:20 jbg lol, accused of being dishonest for asking a question 2021-07-02 08:26:04 --> jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has joined ##rust 2021-07-02 08:29:13 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-02 08:34:32 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-02 08:34:33 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 08:36:48 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 08:37:34 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-07-02 08:41:21 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-02 08:41:38 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Remote host closed the connection) 2021-07-02 08:42:26 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 08:42:53 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-02 08:48:12 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-02 08:54:36 --> cosmicennui (~cosmicenn@c-73-34-75-186.hsd1.co.comcast.net) has joined ##rust 2021-07-02 08:55:16 --> arinov (~arinov@85.104.57.247) has joined ##rust 2021-07-02 08:58:38 Lumpio- >As part of your employment agreement, Google most likely owns intellectual property (IP) you create while at the company. Because Google’s business interests are so wide and varied, this likely applies to any personal project you have. 2021-07-02 08:58:40 Lumpio- wow 2021-07-02 08:58:53 Lumpio- (Ended up reading google open source docs due to link) 2021-07-02 08:59:04 jbg intense eh 2021-07-02 08:59:17 capitol I have a similar crappy one at work 2021-07-02 08:59:34 Lumpio- I wouldn't sign that :-) 2021-07-02 08:59:34 capitol managed to get an exception added for open source things 2021-07-02 08:59:34 j`ey i think most do 2021-07-02 08:59:40 jbg I never worked somewhere where they try to control my out-of-work time or claim title to things I create outside of work 2021-07-02 08:59:42 Lumpio- That's just draconian 2021-07-02 08:59:45 jbg hopefully never will 2021-07-02 08:59:51 Lumpio- Yeah that's completely overreaching 2021-07-02 08:59:57 capitol agree 2021-07-02 09:00:04 capitol but the pay was good :P 2021-07-02 09:00:30 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-07-02 09:01:39 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-02 09:04:05 --> Fairy (~Fairy@2001:464a:4992:0:d195:ee35:7b5a:32e9) has joined ##rust 2021-07-02 09:05:44 ssbr It is, for what it's worth, despite even my poor experiences -- it's good stuff, we get to work on challenging and important things, and I wouldn't trade it for anything except owning my own business. I am getting to work on rust / C++ interp stuff full time now, that's pretty rad. :) 2021-07-02 09:07:20 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 09:07:21 ssbr (And yeah -- even if there's process etc., we still get to release open source things. I am hoping to open source the docs and crate for this, though obvs no promises.) 2021-07-02 09:08:43 j`ey ssbr: what are you working on, if you can say? 2021-07-02 09:09:43 ssbr j`ey: The main thing I'm doing right now is something similar to https://lib.rs/crates/moveit , except focusing on 1:1 compatibility with C++ -- so you ought to be able to e.g. store and pass around a C++ object the same way C++ could 2021-07-02 09:09:46 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Quit: Leaving) 2021-07-02 09:10:08 simcop2387 Lumpio-: thanks to california law though, that's actually likely a wrong interpretation. they'd have to show that your personal project was not only in line with their business interests, but also related to what you were being related to your work at the same time, or that you were using company resources to do the project. 2021-07-02 09:10:23 simcop2387 you'd still need a lawyer involved if such a discussion came up though 2021-07-02 09:10:39 ssbr It turns out to be broadly possible. You can store objects on the heap, on the stack, as a temporary, in a struct, in a union -- in an repr(C) enum, though implementing that is annoying -- etc. 2021-07-02 09:10:41 jbg yeah I think it's the classic thing where they word it as broadly as possible to discourage you from pushing it, but in reality there are legal restrictions on that kind of overreach 2021-07-02 09:10:49 capitol ssbr: wow, cool :) 2021-07-02 09:10:54 j`ey ssbr: oh right, youve mentioned that before yeah 2021-07-02 09:10:58 ssbr (but of course you do need to have a handful of traits similar to what moveit defines.) 2021-07-02 09:11:39 ssbr (NB I haven't implemented the repr(C) enum thing. If anyone knows a library that lets me decompose a repr(C) enum into a fieldless enum + union...) 2021-07-02 09:11:42 simcop2387 jbg: yep, thankfully california's 2870-2872 (i think those are the right ones) laws and case law cover it, but you'd still be out a decent amount of $$ to defend it properly 2021-07-02 09:12:01 simcop2387 some other states have similar laws but i don't think nearly the same amount of case law determining it all 2021-07-02 09:12:09 <-- mreznik (~mreznik@nat-pool-brq-u.redhat.com) has quit (Quit: Leaving) 2021-07-02 09:12:37 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 09:12:45 Lumpio- Yeah but then again in America doesn't the party with the most money win court cases always 2021-07-02 09:15:26 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 09:16:24 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Read error: Connection reset by peer) 2021-07-02 09:19:59 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-02 09:21:16 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-02 09:22:43 <-- osa1 (~osa1@178.233.26.94) has quit (Quit: osa1) 2021-07-02 09:22:56 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-07-02 09:23:02 <-- arinov (~arinov@85.104.57.247) has quit (Ping timeout: 272 seconds) 2021-07-02 09:24:55 -- gggpkm_ is now known as gggpkm 2021-07-02 09:27:12 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 09:28:32 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 09:29:46 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 09:29:47 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-02 09:34:29 --> SignalWalker (~SignalWal@110.sub-174-209-196.myvzw.com) has joined ##rust 2021-07-02 09:36:48 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 09:38:07 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 09:40:08 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 09:41:07 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 09:42:40 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-02 09:43:56 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 09:52:02 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-02 09:53:53 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 09:55:52 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 09:55:57 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-07-02 09:56:19 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-07-02 10:00:35 <-- xse (~xse@user/xse) has quit (Remote host closed the connection) 2021-07-02 10:01:00 --> xse (~xse@user/xse) has joined ##rust 2021-07-02 10:01:47 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-07-02 10:05:12 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:05:30 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 10:08:00 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:13:07 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:14:20 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:15:15 <-- twiclo (~twiclo@2604:7b80:2000:1069:52fc:cedd:fbeb:10c) has quit (Quit: WeeChat 2.9) 2021-07-02 10:15:15 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:17:05 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving.) 2021-07-02 10:17:23 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:18:08 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:20:02 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-07-02 10:21:41 --> mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 10:25:11 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving.) 2021-07-02 10:25:29 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:27:36 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Client Quit) 2021-07-02 10:28:14 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:29:16 --> Hans-Martin (~quassel@193.101.13.109) has joined ##rust 2021-07-02 10:30:47 <-- Hans-Martin (~quassel@193.101.13.109) has quit (Client Quit) 2021-07-02 10:31:36 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Client Quit) 2021-07-02 10:33:21 --> skunk1 (~skunk@pool-70-104-163-4.norf.east.verizon.net) has joined ##rust 2021-07-02 10:33:55 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:34:00 skunk1 Hello 2021-07-02 10:34:15 Midjak Hello 2021-07-02 10:35:01 --> Midjak1 (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:35:14 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-07-02 10:35:34 <-- np (~nerdypepp@user/nerdypepper) has quit (Quit: bye) 2021-07-02 10:35:50 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-02 10:36:30 <-- mpt (~tom@p57a56d37.dip0.t-ipconnect.de) has quit (Ping timeout: 272 seconds) 2021-07-02 10:38:11 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-02 10:38:16 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-02 10:38:35 <-- Midjak1 (~Midjak@82-65-111-221.subs.proxad.net) has quit (Client Quit) 2021-07-02 10:38:59 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-02 10:39:02 -- alexxxxxey is now known as alexxey 2021-07-02 10:39:13 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving) 2021-07-02 10:39:25 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:39:30 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 10:39:51 <-- skunk1 (~skunk@pool-70-104-163-4.norf.east.verizon.net) has left ##rust 2021-07-02 10:41:34 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:45:12 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:48:04 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 10:49:19 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-02 10:49:40 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:50:04 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-02 10:50:40 --> Hans-Martin (~quassel@193.101.13.109) has joined ##rust 2021-07-02 10:50:54 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-02 10:51:47 --> kron (~weechat@user/qaph) has joined ##rust 2021-07-02 10:52:02 <-- Hans-Martin (~quassel@193.101.13.109) has quit (Client Quit) 2021-07-02 10:53:22 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:54:34 <-- zeden (~zeden@user/zeden) has quit (Client Quit) 2021-07-02 10:55:30 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:55:37 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-02 10:57:23 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-02 10:58:15 --> dolor_avis (~dolor_avi@user-5-173-11-113.play-internet.pl) has joined ##rust 2021-07-02 10:58:40 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-02 10:59:00 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-07-02 10:59:47 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-02 11:02:27 --> Hans-Martin (~quassel@user/hans-martin) has joined ##rust 2021-07-02 11:05:28 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-02 11:05:38 <-- austy (~austy@212-166-59-246.win.be) has quit (Ping timeout: 272 seconds) 2021-07-02 11:06:54 --> Maker (~maker@70.18.215.45) has joined ##rust 2021-07-02 11:09:04 --> maelcum (~horst@2001:16b8:c18d:1200:9925:7e78:d6a4:7d4f) has joined ##rust 2021-07-02 11:10:33 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-07-02 11:10:43 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-07-02 11:16:39 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 11:17:25 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-02 11:19:18 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-02 11:19:58 <-- austy (~austy@212-166-59-246.win.be) has quit (Ping timeout: 252 seconds) 2021-07-02 11:21:52 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 258 seconds) 2021-07-02 11:22:06 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-02 11:22:06 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 11:22:10 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-07-02 11:26:48 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 11:27:52 <-- eduardas (~eduardas@93.93.57.5) has quit (Quit: Konversation terminated!) 2021-07-02 11:30:58 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Ping timeout: 252 seconds) 2021-07-02 11:32:12 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-02 11:33:30 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-07-02 11:33:32 <-- dolor_avis (~dolor_avi@user-5-173-11-113.play-internet.pl) has quit (Quit: dolor_avis) 2021-07-02 11:38:20 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 265 seconds) 2021-07-02 11:38:35 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 11:39:02 <-- SignalWalker (~SignalWal@110.sub-174-209-196.myvzw.com) has quit (Ping timeout: 252 seconds) 2021-07-02 11:42:28 <-- Hans-Martin (~quassel@user/hans-martin) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-07-02 11:42:29 cehteh jbg: do you know any crate that does that already? and seems to be somewhat expensive 2021-07-02 11:42:58 jbg I can't imagine it's very expensive unless you are _extremely_ constrained 2021-07-02 11:43:26 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-02 11:43:30 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-07-02 11:43:51 cehteh i am not, just feels a bit out of place to do that this way, ideally one does it the other way around 2021-07-02 11:43:53 jbg a path is just a bunch of bytes and the path separator is a known byte value 2021-07-02 11:43:59 jbg slicing and dicing paths is not even remotely expensive 2021-07-02 11:44:20 cehteh yeahm but the stat calls walking the path are, esp on remote filesystems 2021-07-02 11:44:48 jbg yeah, that is true, it would add up if the path was very deep 2021-07-02 11:44:57 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Ping timeout: 268 seconds) 2021-07-02 11:45:24 cehteh in one of my uberallfs apis i have another aproach returning a (path_found, leftovercomponets) tuple 2021-07-02 11:45:53 cehteh that wals the path left to right 2021-07-02 11:46:14 cehteh to bad that there is no such thing in the stdlib 2021-07-02 11:46:57 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-02 11:46:59 cehteh but i may just implement that this way 2021-07-02 11:47:17 jbg I guess one concern is that canonicalising a path that does not exist is a bit fraught with danger 2021-07-02 11:47:46 cehteh yes but somtimes its exactly what you need 2021-07-02 11:47:52 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-02 11:48:14 jbg sure but if you go ok, /foo/bar exists and someone asked for /foo/bar/baz/boo so I'm happy because it's within the tree I want it to be within 2021-07-02 11:48:21 jbg but /foo/bar/baz doesn't exist 2021-07-02 11:48:25 --> _rubik (~rubik@user/rubik/x-6853868) has joined ##rust 2021-07-02 11:48:32 jbg and then someone makes a symlink /foo/bar/baz -> /sys 2021-07-02 11:48:53 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-07-02 11:49:40 cehteh actually i have there the question/assertion "is the path the user supplies within the test dir" and further then "does that exist already" or "is it available" 2021-07-02 11:50:03 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Quit: penguino) 2021-07-02 11:50:23 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 11:50:33 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-02 11:50:52 jbg yeah but you can't determine whether it's in the test dir unless it already exists 2021-07-02 11:51:01 cehteh you can always shoot in your feet, and its not the libs responsibility to do access control, but it should be able to answer some things voluntary 2021-07-02 11:51:04 jbg unless you exclude symlinks 2021-07-02 11:51:52 jbg because an intermediate component of the path could be created as a symlink between you "semi-canonicalising" and you working with the final path 2021-07-02 11:52:41 jbg I assume footguns like this are (part of) the reason std doesn't provide a "canonicalise as if the path existed" function 2021-07-02 11:52:51 cehteh thats not really a problem here, if somone creates a symlink to the outside its prolly intentional, but if someone creates a file in testdir/../../foo it may be a mishap 2021-07-02 11:53:12 jbg if you only want to handle '..' and '.' then you can write that without any need to do stat() of course 2021-07-02 11:54:05 cehteh yes, thats the simple approach i am tihnking now: iterate over path components, panic on .. and remove . 2021-07-02 11:54:17 cehteh or maybe resolve .. (pop the last) 2021-07-02 11:55:00 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 11:55:06 cehteh i prolly do this as is .. its simple and good enough, and its only a voluntary protection against footguns, no security check 2021-07-02 11:56:02 --> SignalWalker (~SignalWal@183.sub-174-209-65.myvzw.com) has joined ##rust 2021-07-02 11:57:47 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-02 12:01:59 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 12:02:26 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-02 12:05:12 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-07-02 12:06:05 --> dolor_avis (~dolor_avi@user-5-173-11-113.play-internet.pl) has joined ##rust 2021-07-02 12:11:20 <-- luna-is-here (~quassel@2a02:908:f761:2a3c::a) has quit (Quit: luna-is-here) 2021-07-02 12:11:48 --> luna-is-here (~quassel@2a02:908:f761:2a3c::a) has joined ##rust 2021-07-02 12:19:30 <-- tims (~tims@123-243-10-176.static.tpgi.com.au) has quit (Ping timeout: 240 seconds) 2021-07-02 12:24:07 <-- tmpm697 (~tmpm697@171.241.150.52) has quit (Quit: Lost terminal) 2021-07-02 12:27:51 --> xse_ (~xse@user/xse) has joined ##rust 2021-07-02 12:29:21 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-02 12:30:55 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 12:31:12 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 12:31:46 <-- xse (~xse@user/xse) has quit (Ping timeout: 272 seconds) 2021-07-02 12:32:25 <-- chance (~chance@user/chance) has quit (Quit: Client closed) 2021-07-02 12:39:26 --> xse__ (~xse@user/xse) has joined ##rust 2021-07-02 12:42:57 <-- bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (Ping timeout: 256 seconds) 2021-07-02 12:43:06 <-- xse_ (~xse@user/xse) has quit (Ping timeout: 265 seconds) 2021-07-02 12:43:30 --> tarkah (~tarkah@user/tarkah) has joined ##rust 2021-07-02 12:50:19 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 12:50:51 --> bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-07-02 12:53:52 --> printf (~printf@user/printf) has joined ##rust 2021-07-02 13:00:11 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-02 13:01:53 --> lionkking (~lionkking@184.22.209.151) has joined ##rust 2021-07-02 13:02:18 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 13:05:49 <-- Binkers (~binkers@user/binkers) has quit (Quit: ZNC - https://znc.in) 2021-07-02 13:06:44 --> binkers (~binkers@user/binkers) has joined ##rust 2021-07-02 13:08:54 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-07-02 13:10:37 <-- lionkking (~lionkking@184.22.209.151) has quit (K-Lined) 2021-07-02 13:11:25 <-- binkers (~binkers@user/binkers) has quit (Client Quit) 2021-07-02 13:14:07 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-07-02 13:15:26 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Client Quit) 2021-07-02 13:15:55 --> binkers (~binkers@user/binkers) has joined ##rust 2021-07-02 13:16:52 --> tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-07-02 13:17:43 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-07-02 13:22:26 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-07-02 13:29:50 <-- SignalWalker (~SignalWal@183.sub-174-209-65.myvzw.com) has quit (Read error: No route to host) 2021-07-02 13:31:40 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-07-02 13:34:24 meltyness Is there a canonical way to do set-equality comparison? 2021-07-02 13:35:56 j`ey what's set-equality? 2021-07-02 13:36:25 j`ey there's a HashSet, which is a set data structure 2021-07-02 13:36:40 meltyness a collection is equal provided for every x in A, there exists x in B, and vice-versa. 2021-07-02 13:37:36 j`ey HashSet has a bunch of methods that would help, but not for generic collections 2021-07-02 13:39:29 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 13:40:16 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-07-02 13:40:45 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 256 seconds) 2021-07-02 13:41:18 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-07-02 13:42:44 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-07-02 13:44:48 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-02 13:46:13 -- cookie is now known as ckie 2021-07-02 13:46:18 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Ping timeout: 240 seconds) 2021-07-02 13:47:16 meltyness .any() might be elegant enough 2021-07-02 13:47:22 cehteh might be helful to use a BTreeSet in that case, using iterators to compare both sets 2021-07-02 13:47:53 cehteh do you need exact equality or can one set have more elements? 2021-07-02 13:50:07 meltyness The sets to be compared will only have 2 elements, guaranteed. 2021-07-02 13:50:18 cehteh how many sets do you have exactly 2, only a few, or dynamic? 2021-07-02 13:50:34 meltyness 3 benchmarks, and an input to be compared 2021-07-02 13:50:52 j`ey wait, they only have 2 elements in them? 2021-07-02 13:51:30 meltyness It's a very simple example I'm working through in this case 2021-07-02 13:51:52 meltyness https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9e328ba0b9d89d987732e94a81890239 2021-07-02 13:51:57 cehteh i ma just thinking about struct PresentIn {a: bool, b: bool, ....} (or some bitmap whatever floats the boat) and then HashMap 2021-07-02 13:52:53 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 13:53:04 cehteh if you want to performance optimize to the teeth, but prolly its better in that case to write more verbose slightly slower code only using std facilities rather inventing something on your own 2021-07-02 13:53:09 <-- maelcum (~horst@2001:16b8:c18d:1200:9925:7e78:d6a4:7d4f) has quit (Quit: Konversation terminated!) 2021-07-02 13:53:55 j`ey meltyness: i dont see what this has to do with sets? 2021-07-02 13:55:02 cehteh if PresentIn is just a u64 or so and you set/clear bits, remove the entry when the value becomes 0 it could be very efficient in space and cycles 2021-07-02 13:55:08 meltyness Both the input to mix() and the structures determining which secondary color are elegantly similar to mathematical sets. 2021-07-02 13:55:12 cehteh but premature optimization ;) 2021-07-02 13:55:39 -- dmc is now known as url 2021-07-02 13:55:50 <-- url (~dmc@archlinux/trusteduser/polyzen) has quit (Changing host) 2021-07-02 13:55:50 --> url (~dmc@user/polyzen/bot/url) has joined ##rust 2021-07-02 13:56:22 meltyness So the problem with a HashMap would be how to ensure that it's established before runtime 2021-07-02 13:56:22 cehteh otherwise if its not performance critical i often prefer BTree* things because sometimes later one finds a way to do things that benefit from ordering 2021-07-02 13:56:37 meltyness function runtime, I mean' 2021-07-02 13:56:45 cehteh huh? 2021-07-02 13:57:29 cehteh well you have to wrap it somehow behind an api and then maybe lazy_static is your friend .. not sure what you exactly mean thouh 2021-07-02 13:57:40 meltyness So there are three choices of the set -- yeah stackoverflow pointed to lazy_static 2021-07-02 13:57:46 -- url is now known as dmc 2021-07-02 13:57:57 <-- dmc (~dmc@user/polyzen/bot/url) has quit (Changing host) 2021-07-02 13:57:57 --> dmc (~dmc@archlinux/trusteduser/polyzen) has joined ##rust 2021-07-02 13:58:46 j`ey im confused now 2021-07-02 13:58:50 j`ey whats the hashmap for? 2021-07-02 13:59:05 j`ey for mapping (prim_colour, prim_colour) -> secondary_colour ? 2021-07-02 13:59:06 cehteh same here, but maybe less than you :) 2021-07-02 14:00:54 meltyness hashset -- not hashmap 2021-07-02 14:01:08 j`ey meltyness: can you write some example uses of this mix function? 2021-07-02 14:01:18 j`ey i dont understand how the set comes into play 2021-07-02 14:02:09 j`ey if you really only have PrimaryColor having 3 different values, you could just list all the combinations with a match 2021-07-02 14:02:54 meltyness The cominations aren't inherently two-sided, you'd end up writing code for the case of purple where, c1 can be red -- or c2 could have been red, and the other blue. 2021-07-02 14:03:06 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-02 14:03:25 j`ey well you could always sort the input 2021-07-02 14:03:55 --> sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has joined ##rust 2021-07-02 14:03:57 j`ey but even so, if this is your actual use case, i'd just write it all out 2021-07-02 14:04:52 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-02 14:05:54 meltyness :D I got it! 2021-07-02 14:07:13 --> bklo8 (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-07-02 14:07:28 j`ey (I also dont see how this relates to sets anyway, since it actually sounds like you wanted to have a mapping..) 2021-07-02 14:08:39 meltyness So i used iter().any() to avoid having to deal with handed-ness 2021-07-02 14:09:10 j`ey can you paste the code? 2021-07-02 14:09:15 <-- bklo (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (Ping timeout: 268 seconds) 2021-07-02 14:09:31 meltyness https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d061f039a759e78538fc876f95d59bfb 2021-07-02 14:09:47 j`ey hm 2021-07-02 14:10:53 cehteh looks somewhat ugly 2021-07-02 14:11:32 meltyness It may be the best you can do with the way the types are being defined 2021-07-02 14:11:43 j`ey meltyness: this doesnt work 2021-07-02 14:11:49 cehteh are the colors are simple enum? 2021-07-02 14:11:53 j`ey meltyness: what about mix(red, red) 2021-07-02 14:11:55 cehteh non structured? 2021-07-02 14:12:00 j`ey that returns Green 2021-07-02 14:12:11 j`ey oh nvm 2021-07-02 14:12:12 meltyness There's a panic, up top j`ey 2021-07-02 14:12:14 j`ey they have to be diff 2021-07-02 14:12:15 j`ey yeah 2021-07-02 14:12:23 <-- dolor_avis (~dolor_avi@user-5-173-11-113.play-internet.pl) has quit (Quit: dolor_avis) 2021-07-02 14:12:33 meltyness cehteh -- yes they are three element enums, deriving PartialEq 2021-07-02 14:12:56 meltyness I don't see a pretty way to do it with map either, since that doesn't solve the LHR/RHS problem 2021-07-02 14:12:58 j`ey meltyness: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=342a61a1c9c54db46e1847249bbdcc5e 2021-07-02 14:14:12 meltyness oh with pattern matching 2021-07-02 14:14:27 j`ey yes 2021-07-02 14:17:31 Arnavion It would less effort to just write (Red, Blue) | (Blue, Red) => Purple, (Red, Yellow) | (Yellow, Red) => Orange, 2021-07-02 14:17:42 j`ey yeah 2021-07-02 14:17:43 cehteh https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d061f039a759e78538fc876f95d59bfb 2021-07-02 14:17:59 j`ey cehteh: reclick share 2021-07-02 14:18:24 cehteh https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=32fa0d4255fa535bf1e45d55d99db483 2021-07-02 14:18:32 cehteh lol but pretty much the same than yours :) 2021-07-02 14:18:44 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-02 14:19:09 cehteh ah i hate the playgorund sharing 2021-07-02 14:19:47 cehteh now i lost my edits 2021-07-02 14:20:02 Arnavion But anyway, if you really want to rice it, make a u8, do a loop over [c1, c2] with three tests to set 0x1 / 0x2 / 0x4 in it, and match on the u8 2021-07-02 14:20:15 cehteh well i sorted c1/c2 first in a tuple and then match on that tuple 2021-07-02 14:20:43 Arnavion As a bonus that also contains the c1 == c2 check (for when the u8 is 0x1 / 0x2 / 0x4) so you don't need to do it separately 2021-07-02 14:21:58 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 272 seconds) 2021-07-02 14:23:02 Arnavion ie https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=22d12c04614a830aa475662cbd254eaf 2021-07-02 14:23:18 Arnavion (I don't suggest you actually do this) 2021-07-02 14:24:11 cehteh hehe i did some bitstuffing tricks for encoding a identifier type 2021-07-02 14:24:53 Arnavion Too bad you can't just do mix |= 0x1 << std::mem::discriminant(&c); 2021-07-02 14:25:25 cehteh https://github.com/cehteh/uberallfs/blob/master/objectstore/src/identifier_kind.rs << you can call that ugly too 2021-07-02 14:25:49 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-02 14:26:40 andi_ is it offtopic to ask if anybody does have experience with incredibuild on either C but prefered on rust? 2021-07-02 14:32:06 --> bklo83 (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has joined ##rust 2021-07-02 14:32:51 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-02 14:33:18 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 265 seconds) 2021-07-02 14:33:47 <-- bklo8 (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (Ping timeout: 265 seconds) 2021-07-02 14:38:31 <-- sapzk (~sapzk@user/sapzk) has quit (Quit: WeeChat 3.1) 2021-07-02 14:41:12 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 258 seconds) 2021-07-02 14:42:51 <-- printf (~printf@user/printf) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-02 14:43:12 --> printf (~printf@user/printf) has joined ##rust 2021-07-02 14:46:36 --> chddr (~Thunderbi@91.226.34.159) has joined ##rust 2021-07-02 14:48:17 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 265 seconds) 2021-07-02 14:48:28 meltyness cehteh, j`ey that's like 4 times faster :[ 2021-07-02 14:48:54 j`ey it's way more direct 2021-07-02 14:49:19 meltyness test tests::bench_iter_mix ... bench: 2,264 ns/iter (+/- 127) 2021-07-02 14:49:20 meltyness test tests::bench_match_mix ... bench: 504 ns/iter (+/- 15) 2021-07-02 14:51:04 <-- johnw (~johnw@76-234-69-149.lightspeed.frokca.sbcglobal.net) has quit (Ping timeout: 250 seconds) 2021-07-02 14:51:08 cehteh https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=b0dae7cb85b61936547a520357438793 2021-07-02 14:51:29 cehteh the path normalize, simple, should be good for now 2021-07-02 14:51:43 cehteh no idea how i handle this windows prefix handling 2021-07-02 14:51:52 cehteh (put aside and prefix later?) 2021-07-02 14:52:31 cehteh the types could been better/more generic but i dont need more at the moment 2021-07-02 14:52:40 dcz_ I want to build std::core using stable rust - am I on the right track looking into x.py? 2021-07-02 14:52:43 <-- menace_ (~someone@ppp-93-104-175-139.dynamic.mnet-online.de) has quit (Quit: menace_) 2021-07-02 14:52:59 meltyness @Arnavion running 3 tests 2021-07-02 14:53:00 meltyness test tests::bench_iter_mix ... bench: 2,263 ns/iter (+/- 130) 2021-07-02 14:53:00 meltyness test tests::bench_match_mix ... bench: 507 ns/iter (+/- 60) 2021-07-02 14:53:01 meltyness test tests::bench_match_u8 ... bench: 508 ns/iter (+/- 20) 2021-07-02 14:53:27 cehteh meltyness: too bad i lost my solution in the playgrund pasting crap 2021-07-02 14:53:36 cehteh whats your code now? 2021-07-02 14:56:29 meltyness all better x} 2021-07-02 14:56:30 cehteh meltyness: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=aaa77e664c995248741bf64edec5d84d 2021-07-02 14:56:31 <-- edk (edk@libera/staff/edk) has quit (Read error: Connection reset by peer) 2021-07-02 14:57:13 cehteh needs more cases wriitten out and a final _ => error case 2021-07-02 14:59:05 --> xahodo (~xander@2001:985:ed95:1:18d1:eba9:b85f:d3ee) has joined ##rust 2021-07-02 15:00:33 meltyness yeah I managed to hack it together 2021-07-02 15:01:03 meltyness needed to impl PartialOrd too, stands up with the other match-based implementations over the iter() based one I landed on 2021-07-02 15:02:50 --> edk (edk@libera/staff/edk) has joined ##rust 2021-07-02 15:02:56 <-- natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-07-02 15:03:22 cehteh mmh i'd with sometimes that rust had a trait Foo for Bar {...}, stating that one wants to extend only Bar nothing else 2021-07-02 15:05:51 cehteh actually Foo is even pointless 2021-07-02 15:06:17 cehteh extend Bar {} 2021-07-02 15:08:21 j`ey cehteh: https://rust-lang.github.io/api-guidelines/future-proofing.html might help? 2021-07-02 15:09:05 --> red1ynx (~Dzmitry@46.56.224.122) has joined ##rust 2021-07-02 15:09:10 cehteh j`ey: my intention was more something pleasant to the eye 2021-07-02 15:09:39 --> JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has joined ##rust 2021-07-02 15:09:46 cehteh not adding more code 2021-07-02 15:10:15 <-- JimMadge (~jim@host86-141-21-184.range86-141.btcentralplus.com) has quit (Client Quit) 2021-07-02 15:10:34 j`ey heh 2021-07-02 15:10:41 <-- sajuuk_ (~sajuuk@2a0a-a540-2f75-0-fa32-e4ff-fe89-4d82.ipv6dyn.netcologne.de) has quit (Quit: WeeChat 3.2) 2021-07-02 15:11:22 <-- Fairy (~Fairy@2001:464a:4992:0:d195:ee35:7b5a:32e9) has quit (Read error: Connection reset by peer) 2021-07-02 15:12:45 <-- jess (~jess@libera/staff/jess) has quit 2021-07-02 15:12:52 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-02 15:13:47 <-- tarkah (~tarkah@user/tarkah) has quit (Quit: Leaving) 2021-07-02 15:14:16 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-02 15:20:07 <-- meandi (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has quit (Read error: Connection reset by peer) 2021-07-02 15:22:33 cehteh and meh .. why doesnt PathBug::push() take a Component or at least have a ::push_component() would be more orthogonal 2021-07-02 15:27:12 <-- chddr (~Thunderbi@91.226.34.159) has quit (Ping timeout: 272 seconds) 2021-07-02 15:27:20 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-02 15:27:23 --> meandi (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has joined ##rust 2021-07-02 15:30:14 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-02 15:31:55 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 15:32:12 --> sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has joined ##rust 2021-07-02 15:33:12 -- xse__ is now known as xse 2021-07-02 15:36:07 parazyd What is this syntax/functionality called in Rust?: foo(|| "some string", |mut bar| { do_something(|| "another string", baz, || something() }) 2021-07-02 15:36:20 parazyd Specifically the foo(|| ...) and |mut bar| 2021-07-02 15:37:14 meltyness closures 2021-07-02 15:37:42 GreenJello between the ||s is the argument list 2021-07-02 15:38:20 GreenJello between the |s, I mean 2021-07-02 15:41:20 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-02 15:42:16 parazyd ah thanks 2021-07-02 15:42:21 parazyd Been looking for the doc 2021-07-02 15:42:55 danieldg the Fn trait (and others) have docs for them 2021-07-02 15:43:12 parazyd Yeah 2021-07-02 15:44:48 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 15:46:03 --> Fairy (~Fairy@2001:464a:4992:0:68c0:f021:7533:3c7e) has joined ##rust 2021-07-02 15:47:18 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 268 seconds) 2021-07-02 15:47:31 <-- austy (~austy@212-166-59-246.win.be) has quit (Ping timeout: 258 seconds) 2021-07-02 15:49:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 252 seconds) 2021-07-02 15:56:01 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 15:57:57 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-02 16:02:05 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-07-02 16:03:01 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 16:11:15 --> natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 16:13:26 <-- cehteh (~ct@mue-88-130-72-233.dsl.tropolys.de) has quit (Read error: Connection reset by peer) 2021-07-02 16:15:18 --> bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has joined ##rust 2021-07-02 16:15:29 <-- samuelbernardo (~samuelber@nata02.lip.pt) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-02 16:19:35 --> samuelbernardo (~samuelber@nata01.lip.pt) has joined ##rust 2021-07-02 16:24:22 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-02 16:28:22 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Remote host closed the connection) 2021-07-02 16:28:42 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-07-02 16:28:50 -- ButtRs is now known as aoei 2021-07-02 16:33:42 --> cehteh (~ct@i59F7259B.versanet.de) has joined ##rust 2021-07-02 16:34:40 <-- cehteh (~ct@i59F7259B.versanet.de) has quit (Client Quit) 2021-07-02 16:34:43 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 256 seconds) 2021-07-02 16:34:53 --> cehteh (~ct@i59F7259B.versanet.de) has joined ##rust 2021-07-02 16:40:15 bertptrs cehteh: PathBuf::push takes AsRef, which Component implements 2021-07-02 16:40:44 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-07-02 16:41:29 <-- bilegeek (~bilegeek@2600:1008:b015:3e96:6f34:1a42:6ac5:3b86) has quit (Quit: Leaving) 2021-07-02 16:42:41 cehteh bertptrs: oh ok makes things simpler 2021-07-02 16:45:34 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 16:46:22 * dcz_ just cross-compiled libcore using a stable compiler :) risc-v here I come 2021-07-02 16:47:00 dcz_ if only I knew about RUSTC_BOOTSTRAP two months ago, I'd have managed then 2021-07-02 16:47:20 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 16:50:02 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 256 seconds) 2021-07-02 16:50:48 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-02 16:51:02 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-07-02 16:51:49 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-02 16:52:14 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-02 16:53:04 cehteh normalized = normalized.canonicalize().unwrap_or(normalized); <<< feels a bit redneck :D 2021-07-02 16:53:27 cehteh total normalized! 2021-07-02 16:57:05 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-07-02 16:58:16 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-02 16:59:06 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:08:32 <-- dcz_ (~dcz@dynamic-093-132-169-235.93.132.pool.telefonica.de) has quit (Ping timeout: 272 seconds) 2021-07-02 17:09:58 <-- jwillikers (~jwilliker@2604:2800:2:a403:fe91:ac3e:5153:1290) has quit (Remote host closed the connection) 2021-07-02 17:10:08 --> chance (~chance@user/chance) has joined ##rust 2021-07-02 17:10:55 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving) 2021-07-02 17:11:15 meltyness cehteh: https://github.com/meltyness/art_benchmarks 2021-07-02 17:12:00 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-02 17:12:05 j`ey you should use black_box with the arguments to the mix() call 2021-07-02 17:12:32 cehteh meltyness: results? 2021-07-02 17:12:54 cehteh wondering if tuple vs array makes a difference 2021-07-02 17:13:04 meltyness not perceptably no 2021-07-02 17:13:22 meltyness I think you built it as tuple and I fooled with array to see if it was any different 2021-07-02 17:13:28 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-07-02 17:13:38 cehteh i men yes i expect it to be exactly the same 2021-07-02 17:13:41 --> Narrat (~omnius@p200300df5f0cf2de06ea56fffe2e7cdc.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 17:13:51 cehteh anyway can you pastbin the results 2021-07-02 17:14:44 cehteh i'd prefer tuples because of expressiviness 2021-07-02 17:15:04 meltyness https://gist.github.com/1b9d0e9f56d668acee596a4e5eecf8b6 2021-07-02 17:15:21 cehteh at least my code wins by lest lines :D 2021-07-02 17:16:03 meltyness One thing I considered for yours was to establish [Red,Blue] as a Const 2021-07-02 17:16:07 cehteh speed is pretty much the same 2021-07-02 17:16:27 meltyness yours is a little fragile though, changing "[Yellow, Blue]" to "[Blue, Yellow]" can cause a panic in unexpected situations 2021-07-02 17:16:32 cehteh thats optimmized by the compiler 2021-07-02 17:16:50 cehteh huh? 2021-07-02 17:16:58 cehteh you give the rules about ordering 2021-07-02 17:17:12 meltyness I just used the defaults established invisibly by PartialCmp 2021-07-02 17:17:17 cehteh you can also write out any other combination and leave out the sort step 2021-07-02 17:17:36 meltyness hehe 2021-07-02 17:18:25 cehteh [Yellow, Blue] | [Blue, Yellow] => Green, 2021-07-02 17:18:29 j`ey meltyness: as I expected, adding black_box() around the arguments to mix() changes things a lot 2021-07-02 17:19:50 meltyness what do you mean? 2021-07-02 17:20:34 j`ey mix(black_box(Red), black_box(Blue)) 2021-07-02 17:20:36 j`ey etc 2021-07-02 17:20:46 -- kchibisov_ is now known as kchibisov 2021-07-02 17:22:24 cehteh meltyness: how do i run those benches? cargo bench --toolchain? 2021-07-02 17:22:42 meltyness rustup toolchain default nightly 2021-07-02 17:22:44 meltyness cargo bench 2021-07-02 17:22:58 j`ey or cargo +nightly bench 2021-07-02 17:23:10 cehteh ah that was it, dont want to default to nightly 2021-07-02 17:23:27 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-02 17:23:51 cehteh https://gist.github.com/rust-play/1b9d0e9f56d668acee596a4e5eecf8b6 2021-07-02 17:24:10 cehteh haha there you see, sometiems throwing a faster hardware on the problem helps :D 2021-07-02 17:24:16 meltyness that's weird 2021-07-02 17:24:29 j`ey cehteh: yeah but the results dont mean much 2021-07-02 17:24:34 meltyness when I threw blackbox around all the arguments, my code's faster :x 2021-07-02 17:24:35 cehteh yes 2021-07-02 17:24:45 j`ey meltyness: yes, its just being optimised out 2021-07-02 17:24:53 j`ey without the blackbox 2021-07-02 17:25:28 --> Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has joined ##rust 2021-07-02 17:26:12 --> dzugaru (~dzugaru@188.124.242.45) has joined ##rust 2021-07-02 17:26:38 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Ping timeout: 252 seconds) 2021-07-02 17:27:36 meltyness so the match-code everyone else wrote can be optimized out for known parameters, but mine cant? 2021-07-02 17:28:26 tsdh Is there some crate which allows searching the XDG desktop database for the .desktop file by the application id and offers access to its contents, e.g., the app icon? 2021-07-02 17:28:29 j`ey meltyness: yeah 2021-07-02 17:29:35 Swahili Q: Going through basics. DateTime and Duration are different types, but I'm allowed to sum/add them. Why does it work? 2021-07-02 17:29:54 j`ey Swahili: because someone wrote an impl Add for DateTime and Duration 2021-07-02 17:30:10 * tsdh only found the desktopentries crate which is a binary with no lib. 2021-07-02 17:30:18 j`ey Swahili: for example adding String + &str https://doc.rust-lang.org/std/string/struct.String.html#impl-Add%3C%26%27_%20str%3E 2021-07-02 17:30:32 danieldg tsdh: I didn't find one, but would have use for it if it existed 2021-07-02 17:31:07 danieldg right now I'm just punting and assuming icon = appid because it's mostly true :) 2021-07-02 17:32:04 Swahili j`ey: thanks for replying back! Just noticed that almost all the solutions in exercism do the same, so wondering if this is the only way to do it as I didn't find this solution while going through the create doc for chrono 2021-07-02 17:32:07 Swahili https://paste.sh/V41dwXcw#_jE7wYt7XpeV9FtQOZFOuPw9 2021-07-02 17:32:33 Swahili https://exercism.io/tracks/rust/exercises/gigasecond/solutions?order=published_at_desc 2021-07-02 17:32:36 <-- jess (~jess@libera/staff/jess) has quit 2021-07-02 17:32:51 --> codepilot (~codepilot@dslb-178-006-236-182.178.006.pools.vodafone-ip.de) has joined ##rust 2021-07-02 17:32:56 j`ey Swahili: https://docs.rs/chrono/0.4.19/chrono/struct.DateTime.html#impl-Add%3CDuration%3E 2021-07-02 17:33:17 codepilot hi everybody! 2021-07-02 17:34:01 cehteh meltyness: now we get numbers: 2021-07-02 17:34:03 cehteh test tests::tests::bench_match_cmp ... bench: 2,057,548 ns/iter (+/- 32,441) 2021-07-02 17:34:03 cehteh test tests::tests::bench_match_cmp2 ... bench: 1,428,491 ns/iter (+/- 19,717) 2021-07-02 17:34:44 cehteh the 2nd one is with the sorting removed, using tuples and written the alternatives out (Red,Blue) | (Blue,Red) => 2021-07-02 17:35:26 codepilot I have the following issue: Can I make a macro that accepts something like my_macro!['A' => 'Z', '_', '0' => '9'] ? I tried to do it with macro_rules! but I only get a version to work with $from:expr => $to:expr, but not with mixed parameters. 2021-07-02 17:35:35 j`ey cehteh: are you using black_box around all the params now? 2021-07-02 17:35:42 cehteh yes 2021-07-02 17:36:39 cehteh https://gist.github.com/rust-play/1b9d0e9f56d668acee596a4e5eecf8b6 2021-07-02 17:36:51 cehteh se comment .. I win \o/ 2021-07-02 17:37:32 <-- Roughy (~mdaw45ns@user/roughy) has quit (Read error: No route to host) 2021-07-02 17:39:05 Swahili j`ey: could I use `add` as a method instead of the + operator? 2021-07-02 17:39:29 codepilot here is a playground link to my problem with the macro https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a46711c7d42f0080d455bc982fc3479a 2021-07-02 17:39:35 danieldg Swahili: you'd need to 'use' the trait first, but yes 2021-07-02 17:40:09 tsdh danieldg: Yeah, mostly. My firefox has the app_id firefoxdeveloperedition but desktop file and icon are named firefox-developer-edition... 2021-07-02 17:40:28 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 17:40:28 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-02 17:41:07 Swahili I'm going through the book and doing exercises as I find it easier to learn this way. Would you mind share how that'd look like danieldg? 2021-07-02 17:41:50 <-- llinguini (sid257922@id-257922.stonehaven.irccloud.com) has quit (Ping timeout: 252 seconds) 2021-07-02 17:41:55 <-- SanchayanMaity (sid478177@id-478177.stonehaven.irccloud.com) has quit (Ping timeout: 272 seconds) 2021-07-02 17:41:55 <-- ebel (sid431803@id-431803.stonehaven.irccloud.com) has quit (Ping timeout: 272 seconds) 2021-07-02 17:41:57 danieldg tsdh: --name can override it back on firefox anyway 2021-07-02 17:42:08 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Read error: Connection reset by peer) 2021-07-02 17:42:09 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Ping timeout: 256 seconds) 2021-07-02 17:42:10 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Ping timeout: 256 seconds) 2021-07-02 17:42:12 <-- elichai2 (sid212594@id-212594.stonehaven.irccloud.com) has quit (Read error: Connection reset by peer) 2021-07-02 17:42:14 <-- visl (sid453966@user/visl) has quit (Ping timeout: 250 seconds) 2021-07-02 17:42:16 <-- mindfreeze (sid250931@user/mindfreeze) has quit (Read error: Connection reset by peer) 2021-07-02 17:42:18 <-- dwt (sid69719@id-69719.stonehaven.irccloud.com) has quit (Read error: Connection reset by peer) 2021-07-02 17:42:19 danieldg Swahili: use std::ops::Add; 2021-07-02 17:42:22 <-- themaxdavitt (sid433050@user/themaxdavitt) has quit (Read error: Connection reset by peer) 2021-07-02 17:42:23 <-- bwolf (sid464866@stonehaven.irccloud.com) has quit (Ping timeout: 252 seconds) 2021-07-02 17:42:42 danieldg Swahili: you must 'use' a trait like that to be able to call functions on it using . 2021-07-02 17:43:49 Swahili danieldg: interesting! thank you very much! that worked https://paste.sh/PTWzT9VT#JuBZWxwU1wsIpS5DRlW4Eiff 2021-07-02 17:43:49 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-07-02 17:44:25 <-- Roughy (~mdaw45ns@user/roughy) has quit (Read error: No route to host) 2021-07-02 17:44:45 Swahili I don't know why everyone came up with the same solution in exercism, but if they are also beginners just by looking at the doc not sure how they found the same conclusion its not very evident in my opinion. Now, by `use std::ops::Add` 2021-07-02 17:44:58 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-07-02 17:45:11 Swahili makes more sense and cleared the path to understanding why the other solution works from my pov 2021-07-02 17:45:34 j`ey Swahili: why does .add() make more sense than +? 2021-07-02 17:45:55 <-- edm (sid147314@id-147314.stonehaven.irccloud.com) has quit (Ping timeout: 272 seconds) 2021-07-02 17:46:03 Dizidentu so I had a dream 2021-07-02 17:46:08 Swahili j`ey: from a perspective of just looking at the documentation, as a beginner. The doc mentions the impl trait as a method called add 2021-07-02 17:46:13 Dizidentu I was coding a query-based animation system for an engine 2021-07-02 17:46:17 Dizidentu not sure which engine as of yet 2021-07-02 17:46:22 meltyness most commonly-known languages have really sloppy type compatibility, see: excel 2021-07-02 17:46:23 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 17:46:36 j`ey Swahili: I see 2021-07-02 17:46:51 Dizidentu a system where you can query bone rotation, vertices etc from a pooled data structure 2021-07-02 17:47:16 Dizidentu so the data isnt attached to lets say CBone class 2021-07-02 17:47:25 Swahili j`ey: I'd like to make sure that when I look at the doc, I can come up with my own solutions. So, I might be absolutely wrong and its evident to everyone else but me, but in exercism all the solutions are exactly the same, I end up concluding that they might have copy each other. 2021-07-02 17:47:35 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-02 17:47:37 Dizidentu its in a pool, and you use QBone class to determine which bone you are querying 2021-07-02 17:47:49 Swahili but now that danieldg shared `use std::ops::Add`, it made a lot of sense 2021-07-02 17:47:53 j`ey Swahili: your solution is the same too! 2021-07-02 17:47:53 --> elichai2 (sid212594@stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:47:59 cehteh meltyness: i pasted the code into my comment .. have fun with that 2021-07-02 17:48:01 Swahili j`ey: yes same solution 2021-07-02 17:48:03 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:48:09 --> edm (sid147314@id-147314.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:48:36 --> visl (sid453966@user/visl) has joined ##rust 2021-07-02 17:48:40 Swahili j`ey: is there other ways of solving it? 2021-07-02 17:48:49 --> hnOsmium0001 (uid453710@stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:48:51 --> bwolf (sid464866@stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:49:03 meltyness cehteh: zErO-cOsT aBsTrAcTiOnZ 2021-07-02 17:49:04 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-02 17:49:11 Swahili j`ey: initially I thought I could offset the datetime, but couldn't find out how 2021-07-02 17:49:12 --> ebel (sid431803@id-431803.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:49:30 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 240 seconds) 2021-07-02 17:49:35 j`ey Swahili: dunno, but this looks "obvious" enough 2021-07-02 17:49:48 Swahili j`ey: you're right! 2021-07-02 17:49:50 --> mindfreeze (uid250931@user/mindfreeze) has joined ##rust 2021-07-02 17:51:10 Swahili The reason why Rust allowed me to .add in a DateTime, is because DateTime implements the trait Add. Otherwise this wouldn't work. So trait is similar to an interface in other languages, yah? 2021-07-02 17:51:14 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-07-02 17:51:22 j`ey yeah 2021-07-02 17:52:11 --> themaxdavitt (sid433050@user/themaxdavitt) has joined ##rust 2021-07-02 17:52:20 cehteh meltyness: i have an idea how to do it even faster :D 2021-07-02 17:52:29 cehteh hold my beer ... 2021-07-02 17:53:30 <-- red1ynx (~Dzmitry@46.56.224.122) has quit (Ping timeout: 272 seconds) 2021-07-02 17:53:41 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 17:53:42 --> SanchayanMaity (sid478177@id-478177.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:54:10 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Quit: ubert) 2021-07-02 17:54:23 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 17:54:25 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:54:46 --> llinguini (sid257922@id-257922.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:54:55 --> dwt (sid69719@id-69719.stonehaven.irccloud.com) has joined ##rust 2021-07-02 17:57:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-07-02 17:58:01 meltyness It looks like my iter solution isn't totally off the mark though, at least not on my machine 2021-07-02 17:58:44 j`ey I prefer the other solutions for readability 2021-07-02 17:59:10 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-07-02 17:59:13 <-- dzugaru (~dzugaru@188.124.242.45) has quit (Remote host closed the connection) 2021-07-02 17:59:17 meltyness Incorporating match is good, and I learned that you can use | for pattern matching 2021-07-02 18:01:48 cehteh test tests::tests::bench_match_cmp2 ... bench: 1,450,595 ns/iter (+/- 247,401) 2021-07-02 18:01:48 cehteh test tests::tests::bench_match_cmp3 ... bench: 1,283,054 ns/iter (+/- 8,777) 2021-07-02 18:02:01 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: This computer has gone to sleep) 2021-07-02 18:02:02 meltyness !!! 2021-07-02 18:03:29 cehteh oops bug ... moment 2021-07-02 18:06:01 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-02 18:07:24 cehteh ah ok not going faster :/ 2021-07-02 18:08:33 j`ey cehteh: show what you tried! 2021-07-02 18:09:08 cehteh make it repr(u8) and then match c1 | c2 <<4 2021-07-02 18:09:21 cehteh as u8 2021-07-02 18:09:34 j`ey heh 2021-07-02 18:09:49 cehteh something i've done on microcontrollers in C switch statements to have poor man tuples 2021-07-02 18:10:53 cehteh https://gist.github.com/cehteh/3c44f46f088f7723816ce98f8af53362 << noted that down for someone esle 2021-07-02 18:11:19 cehteh could be even more optimized, but thats for educational use 2021-07-02 18:11:40 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-02 18:12:08 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-02 18:12:27 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-02 18:16:16 --> brainzman (~brainzman@user/brainzman) has joined ##rust 2021-07-02 18:19:06 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-07-02 18:21:14 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-02 18:25:03 meltyness Learning rust in two weeks is pretty good right? I'm gonna make a pot of coffee and finish the last few chapters tonight! 2021-07-02 18:25:30 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 240 seconds) 2021-07-02 18:25:30 meltyness Thanks for your help and inspiration j`ey, cehteh, 2021-07-02 18:25:33 cehteh i am rather try to learn it since half a year 2021-07-02 18:25:55 meltyness I just mean the basics as captured by TRPL 2021-07-02 18:25:58 cehteh https://gist.github.com/cehteh/ea7d74231087776a290e02b8f071ccc3 btw the normalize as it is now, performance wise not perfect, but should work 2021-07-02 18:27:46 cehteh could be more generic taking anything that could be a path and return mhm Path? unsized, any better way to return a non dynamic result which can be cheaply turned into a PathBuf if required? 2021-07-02 18:29:36 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-02 18:36:57 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-02 18:37:00 --> Guest76 (~Guest76@c-174-58-3-149.hsd1.fl.comcast.net) has joined ##rust 2021-07-02 18:37:41 Guest76 hey guys just wanted to let u know that rust is the s**t 2021-07-02 18:38:34 la_mettrie meaning good or bad? 2021-07-02 18:38:45 Guest76 amazing 2021-07-02 18:38:47 j`ey good 2021-07-02 18:38:54 meltyness "the s**t" usually means good 2021-07-02 18:39:05 cehteh orly? :) 2021-07-02 18:39:16 j`ey shit = bad, the shit = good 2021-07-02 18:39:31 Guest76 lol exactly 2021-07-02 18:39:44 meltyness guest76 if you think rust is cool you should check out LISP 2021-07-02 18:40:19 cehteh https://paste.debian.net/1203192/ << i had to check :D 2021-07-02 18:40:38 Guest76 studying the book right now havent been able to do anything else just rust thats how great i think it is 2021-07-02 18:41:00 meltyness me too... what chapter are you on Guest76? 2021-07-02 18:41:06 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-07-02 18:41:23 Guest76 12 2021-07-02 18:41:33 meltyness oh dang we're close as heck 2021-07-02 18:41:38 meltyness i just started chapter 14 2021-07-02 18:41:49 Guest76 oooh cool 2021-07-02 18:41:51 meltyness 15 2021-07-02 18:44:18 Guest76 i was a python user not expert of course but the speed subject always bother me about it but rust syntax at least for me is way easier than c, c++ so solved both issues for me 2021-07-02 18:44:19 <-- jaix (~jaix@user/jaix) has quit (Remote host closed the connection) 2021-07-02 18:44:46 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-02 18:45:29 <-- hexfive (~eric@50.35.83.177) has quit (Client Quit) 2021-07-02 18:46:24 -- Guest76 is now known as quechon 2021-07-02 18:47:03 meltyness Somewhat related, I started using "TextMarker" and established some conventions for highlighting stuff -- Green "I get this." Gold "This is a new concept" Yellow "This is tricky" 2021-07-02 18:47:11 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 18:47:19 meltyness and now when I read other stuff, I find myself assessing these things -- even without the extension 2021-07-02 18:47:44 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-02 18:48:00 meltyness Like some sort of biofeedback, super cool 2021-07-02 18:48:15 <-- codepilot (~codepilot@dslb-178-006-236-182.178.006.pools.vodafone-ip.de) has quit (Quit: Client closed) 2021-07-02 18:49:11 davros meltyness LISP is elegant in many ways but can't handle the range of niches rust can 2021-07-02 18:50:03 davros cool lisp featurs in rust: expression based syntax, (good) lambda functions, AST macro system (not as powerful as lisp's but better than C's) 2021-07-02 18:51:45 --> jacks2 (~bc817c21@217.29.117.252) has joined ##rust 2021-07-02 18:52:24 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-02 18:54:57 meltyness When I was getting educated, LISP was an interesting aside, because the whole focus had been on OOP and imperative HLLs 2021-07-02 18:55:29 meltyness alas, my degree was focused less on the beauty of computation and analysis therein, but practicalities of computing 2021-07-02 18:56:15 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-02 18:56:52 quechon ok peeps cool to be part of this community i will be here ofter bothering u guys lol 2021-07-02 18:57:23 <-- quechon (~Guest76@c-174-58-3-149.hsd1.fl.comcast.net) has quit (Quit: Client closed) 2021-07-02 18:59:16 --> jimmy (~jimmy___@2607:fa49:4b00:7000:5515:7ca6:7a97:5491) has joined ##rust 2021-07-02 18:59:23 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 19:01:28 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-02 19:01:36 <-- EvanCarroll (~ecarroll@c-73-32-86-244.hsd1.tx.comcast.net) has quit (Remote host closed the connection) 2021-07-02 19:05:04 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-02 19:06:54 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-07-02 19:12:58 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-02 19:13:04 --> meeg_leeto (~miguelmur@user/miguelmurca) has joined ##rust 2021-07-02 19:13:41 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-02 19:13:59 <-- meeg_leeto (~miguelmur@user/miguelmurca) has left ##rust (ADHD) 2021-07-02 19:14:48 jeaye meltyness: Gold and yellow are very similar. 2021-07-02 19:14:48 <-- Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has quit (Read error: Connection reset by peer) 2021-07-02 19:15:17 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Quit: WeeChat 3.2) 2021-07-02 19:15:43 meltyness It's more orange really, but with more yellow than a linear approximation would end up producing, i think. 2021-07-02 19:19:54 ashafq Is it normal for Rust struct to be together with their impl? Or do you guys groups your structs together than all the impls together? 2021-07-02 19:21:18 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-07-02 19:22:18 <-- lf (~quassel@p200300d21f3b6100022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-02 19:23:05 --> lf (~quassel@p200300d21f3a6800022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 19:23:46 cehteh when a file contains too many structs/impls i rather put those in own files, for some smaller things and helper structs its ok to be clobbered together, but anything providing isolated functionality gets its own file, at least after some refactoring run 2021-07-02 19:24:08 cehteh (just now i notice i put too much stuff in a single file) 2021-07-02 19:25:16 GreenJello for me it's mostly a judgement call of whether someone needs to see the struct/enum declarations when they first visit the file for the next part of the file to make sense 2021-07-02 19:25:25 cehteh hum actually its traits .. but comes down to the same thing 2021-07-02 19:25:45 GreenJello and sometimes I'll put trait impls at the bottom or in a separate module if they're uninteresting 2021-07-02 19:25:50 cehteh yeah, but usually its the case that you want to see that together 2021-07-02 19:26:06 cehteh unless you have some data-hefty things maybe serde 2021-07-02 19:31:58 bwidawsk What's the best way to have cargo run certain tests only under certain conditions? Ideally it can autodetect based on the presence of a certain file, but if I have to pass a flag to cargo test, that's fine also. using name filtering is the best I can seem to find 2021-07-02 19:32:37 cehteh you can use feature flags for that or other config options 2021-07-02 19:34:35 bwidawsk cehteh: what's an example of "other config options"? 2021-07-02 19:34:59 bwidawsk also, can I do the same for doc tests? 2021-07-02 19:35:00 cehteh --config ... Override a configuration value (unstable) 2021-07-02 19:35:42 cehteh iirc doctests are in no way special except that they are extracted from the documentation 2021-07-02 19:36:16 bwidawsk oh cool, didn't bother checking until now that doc does allow features also... thanks 2021-07-02 19:36:38 cehteh well not 100% sure in every detail, just give it a try 2021-07-02 19:37:11 bwidawsk for the tests, that seems right 2021-07-02 19:37:12 cehteh building a library or a executable? 2021-07-02 19:37:18 bwidawsk I have both 2021-07-02 19:37:55 * cehteh just working on a test framework for executables 2021-07-02 19:37:59 bwidawsk good description on how to use features in a workspace 2021-07-02 19:38:01 bwidawsk https://stackoverflow.com/questions/48583049/run-additional-tests-by-using-a-feature-flag-to-cargo-test 2021-07-02 19:38:36 bwidawsk cehteh: what does it do above and beyond cargo's runner? 2021-07-02 19:40:19 cehteh calling cargo build to build the executables at test time (usually thats not a dependency) provide a way to launch them and what i am working on now, a lot helpers for tests, creating test directories, populating them, validating their content 2021-07-02 19:40:49 cehteh and of course you can also use the programs stdio itself, regex captures etc 2021-07-02 19:41:23 cehteh https://docs.rs/testcall/0.2.0/testcall/ 2021-07-02 19:44:59 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-02 19:45:19 bwidawsk the feature flag isn't seeming to work with doc examples 2021-07-02 19:45:25 bwidawsk but maybe I did something wrong 2021-07-02 19:47:58 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 19:49:55 bwidawsk cehteh: you were just thinking this, right? 2021-07-02 19:49:57 bwidawsk -/// ```no_run 2021-07-02 19:49:59 bwidawsk +/// ``` 2021-07-02 19:50:01 bwidawsk +/// #[cfg_attr(not(feature = "cxlhost"), ignore)] 2021-07-02 19:50:10 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-02 19:51:03 cehteh yes 2021-07-02 19:51:04 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 19:51:36 cehteh // #[cfg(feature = "cxlhost")] ? 2021-07-02 19:52:28 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-07-02 19:53:06 bwidawsk cehteh: that appears to work 2021-07-02 19:53:12 cehteh :) 2021-07-02 19:53:38 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-02 19:53:46 <-- Narrat (~omnius@p200300df5f0cf2de06ea56fffe2e7cdc.dip0.t-ipconnect.de) has quit (Quit: They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.) 2021-07-02 19:55:26 bwidawsk cehteh: thanks 2021-07-02 19:55:53 cehteh wlel .. i just guessed, but we had this a few days ago here 2021-07-02 20:03:58 --> ssbr_ (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-02 20:04:47 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Read error: Connection reset by peer) 2021-07-02 20:10:30 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-07-02 20:17:03 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Read error: Connection reset by peer) 2021-07-02 20:18:20 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 20:19:13 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-02 20:20:55 cehteh meltyness: zero cost abstactions in rust means that the abstraction costs (close to) zero, but it cant make the actual computation zero cost 2021-07-02 20:21:50 cehteh (or if it can do that its rather some other kind of optimization, const folding etc) 2021-07-02 20:22:20 <-- brainzman (~brainzman@user/brainzman) has quit (Ping timeout: 268 seconds) 2021-07-02 20:23:17 meltyness right, the problem though, and what i expect from functional languages would be for cmp to be exactly cmp2 performance-wise 2021-07-02 20:23:32 meltyness It's good that it's only a 5-10% margin 2021-07-02 20:24:29 meltyness It's at least a curiosity 2021-07-02 20:24:39 cehteh yes its somehow interesting, the compiler could optimize that 2021-07-02 20:24:52 meltyness But yeah, I get that there's a performance difference between what would be compiled down to branching versus const comparisons 2021-07-02 20:25:11 cehteh i havent checked the actual asm generated 2021-07-02 20:25:56 cehteh but cmp2 is pretty abstract and reads almost like a cooking receipe when you mix red with blue or blue with red then you get purple 2021-07-02 20:26:26 meltyness Notationally it's nice, but having to deal with the "handedness" was exactly what I was hoping to find a good way to avoid 2021-07-02 20:26:37 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 265 seconds) 2021-07-02 20:26:39 cehteh maybe its possible to remove this ordering constraint havent thought abut that yet 2021-07-02 20:27:19 cehteh maybe possible 2021-07-02 20:28:28 meltyness Architecturally, optimal is obviously SIMD, but it's not clear how to signal that in rust to the compiler -- maybe changing the header to include the datatype to be operated on 2021-07-02 20:28:58 cehteh then back to array and mix.contains(Red) && mix.contains(Blue) => Purple 2021-07-02 20:29:45 cehteh might be possible and maybe evne optimized nicely 2021-07-02 20:29:56 cehteh but i am doing other stuff now 2021-07-02 20:30:11 meltyness cehteh - that was what I did with iter, initially 2021-07-02 20:32:59 meltyness oh hey yeah so passing it as a reference to an array is faster 2021-07-02 20:33:00 --> P1RATEZ (piratez@user/p1ratez) has joined ##rust 2021-07-02 20:33:31 cehteh ayway i am out 2021-07-02 20:34:07 meltyness thanks again for letting me borrow your brain :] 2021-07-02 20:35:48 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-02 20:36:41 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-02 20:36:58 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-02 20:41:59 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-02 20:48:46 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 20:49:09 <-- emerent (~quassel@p200300cd5703bb7eba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-07-02 20:49:48 --> emerent (~quassel@p200300cd5703bb90ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-07-02 20:53:47 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 268 seconds) 2021-07-02 20:57:02 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-02 20:59:54 <-- ssbr_ (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 240 seconds) 2021-07-02 21:01:53 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-02 21:13:52 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-02 21:15:21 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-07-02 21:15:21 <-- _rubik (~rubik@user/rubik/x-6853868) has quit (Remote host closed the connection) 2021-07-02 21:15:39 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-02 21:15:44 --> _rubik (~rubik@2601:646:401:1b20::c4de) has joined ##rust 2021-07-02 21:18:42 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Ping timeout: 240 seconds) 2021-07-02 21:23:04 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-02 21:24:20 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-02 21:28:12 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-02 21:30:32 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-02 21:30:59 <-- _rubik (~rubik@2601:646:401:1b20::c4de) has quit (Changing host) 2021-07-02 21:30:59 --> _rubik (~rubik@user/rubik/x-6853868) has joined ##rust 2021-07-02 21:31:34 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-02 21:34:36 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-02 21:37:09 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-02 21:38:20 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-02 21:38:48 <-- frost (~frost@59.71.241.179) has quit (Ping timeout: 268 seconds) 2021-07-02 21:40:57 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-02 21:45:06 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 240 seconds) 2021-07-02 21:45:19 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-02 21:48:11 --> neurocyte407 (~neurocyte@195.80.54.53) has joined ##rust 2021-07-02 21:48:11 <-- neurocyte407 (~neurocyte@195.80.54.53) has quit (Changing host) 2021-07-02 21:48:11 --> neurocyte407 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-02 21:49:57 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 21:51:52 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 246 seconds) 2021-07-02 21:51:52 -- neurocyte407 is now known as neurocyte40 2021-07-02 21:53:11 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:f7c8:886a:a9a5:ff17) has quit (Ping timeout: 256 seconds) 2021-07-02 21:54:22 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 258 seconds) 2021-07-02 21:59:52 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-02 21:59:54 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 240 seconds) 2021-07-02 22:01:28 --> tsal (~tsal@user/tsal) has joined ##rust 2021-07-02 22:02:55 <-- JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has quit (Quit: WeeChat 1.6) 2021-07-02 22:04:34 --> JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has joined ##rust 2021-07-02 22:05:07 <-- JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has quit (Client Quit) 2021-07-02 22:18:15 meltyness ... hm ... is the mpsc Sender reference counted? 2021-07-02 22:19:41 meltyness I guess it must be, but probably implementation details should be backend / unstable 2021-07-02 22:19:48 --> lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has joined ##rust 2021-07-02 22:23:39 jbg meltyness: you can cheaply clone it, and the channel keeps working as long as at least one is alive. it doesn't promise *how* it achieves that (it probably just wraps an Arc) but you shouldn't generally need to care either 2021-07-02 22:24:35 meltyness jbg: it was easy enough to get at the source, in this case. it's just a matter of how it's built since that's how the spec is written 2021-07-02 22:26:20 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:27:50 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 22:28:22 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 272 seconds) 2021-07-02 22:28:29 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:30:51 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 22:31:09 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:36:50 <-- lotusflare (lotusflare@gateway/vpn/protonvpn/lotusflare) has quit (Quit: Quit) 2021-07-02 22:39:45 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-02 22:43:03 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 256 seconds) 2021-07-02 22:45:02 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-02 22:46:25 <-- sgift (~madison@2001:a61:35b8:2401:169:cd8d:915a:def7) has quit (Read error: Permission denied) 2021-07-02 22:46:42 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-02 22:46:46 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-02 22:47:56 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-02 22:49:23 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:49:43 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 22:50:06 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:50:22 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 22:50:35 --> Maxattax97 (~max@2603:900a:1501:a7ca::100) has joined ##rust 2021-07-02 22:53:04 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 22:53:17 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:54:16 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 22:55:36 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-02 22:55:43 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 22:58:06 --> Guest43 (~Guest43@2600:1007:b007:a13c:19cd:3f5b:e848:7aa5) has joined ##rust 2021-07-02 22:59:56 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 252 seconds) 2021-07-02 23:01:00 <-- raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Quit: WeeChat 3.2) 2021-07-02 23:02:25 --> raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has joined ##rust 2021-07-02 23:03:11 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-02 23:05:29 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-02 23:05:40 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-02 23:06:14 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:11:04 --> tims (~tims@123-243-10-176.static.tpgi.com.au) has joined ##rust 2021-07-02 23:13:08 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-07-02 23:13:16 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-02 23:15:02 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-02 23:16:56 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-07-02 23:17:26 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-02 23:17:58 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:22:43 <-- Guest43 (~Guest43@2600:1007:b007:a13c:19cd:3f5b:e848:7aa5) has quit (Quit: Client closed) 2021-07-02 23:27:09 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Quit: totenkoph) 2021-07-02 23:28:01 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-02 23:33:11 --> gggp (~textual@36.112.134.194) has joined ##rust 2021-07-02 23:33:28 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-02 23:38:48 --> Guest43 (~Guest43@2600:1007:b004:19f8:5d9a:b142:9874:36a) has joined ##rust 2021-07-02 23:39:57 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:40:17 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 268 seconds) 2021-07-02 23:40:33 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-02 23:40:47 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 23:41:31 <-- gggp (~textual@36.112.134.194) has quit (Ping timeout: 268 seconds) 2021-07-02 23:42:45 <-- Guest43 (~Guest43@2600:1007:b004:19f8:5d9a:b142:9874:36a) has quit (Client Quit) 2021-07-02 23:42:50 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:44:26 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-02 23:44:27 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-02 23:44:44 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-02 23:45:34 --> meandi2 (~meandi4@dyndsl-178-142-252-142.ewe-ip-backbone.de) has joined ##rust 2021-07-02 23:46:45 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 23:46:57 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:49:22 <-- meandi (~meandi4@dyndsl-178-142-255-171.ewe-ip-backbone.de) has quit (Ping timeout: 258 seconds) 2021-07-02 23:50:11 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-02 23:50:32 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 252 seconds) 2021-07-02 23:51:11 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-02 23:51:17 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-02 23:52:10 <-- jacks2 (~bc817c21@217.29.117.252) has quit (Quit: http://www.okay.uz/ (Session timeout)) 2021-07-02 23:52:26 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-07-02 23:52:28 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-02 23:52:49 --> est31 (~est31@user/est31) has joined ##rust 2021-07-02 23:54:01 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-02 23:55:06 --> tmpm697 (~tmpm697@171.241.150.52) has joined ##rust 2021-07-02 23:56:10 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 256 seconds) 2021-07-03 00:00:44 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 00:01:45 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-03 00:01:50 <-- P1RATEZ (piratez@user/p1ratez) has quit (Remote host closed the connection) 2021-07-03 00:01:56 --> gggp (~textual@124.126.15.211) has joined ##rust 2021-07-03 00:02:49 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-03 00:04:15 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 00:05:08 <-- tmpm697 (~tmpm697@171.241.150.52) has quit (Quit: Lost terminal) 2021-07-03 00:05:37 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 00:06:03 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-03 00:12:25 --> wirez (~wirez@user/wirez) has joined ##rust 2021-07-03 00:12:51 wirez why don't rust foundation take over servo? it's perfect flagship project to show off rust 2021-07-03 00:12:56 wirez !! 2021-07-03 00:12:59 <-- wirez (~wirez@user/wirez) has left ##rust 2021-07-03 00:17:22 jbg seems like a large distraction for a language foundation to take on a browser engine project 2021-07-03 00:17:23 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 00:18:08 jbg apart from the question of whether the servo project wants/needs to be "taken over" 2021-07-03 00:18:42 jbg lol whoops they left 10 seconds later 2021-07-03 00:19:58 --> jeho2 (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has joined ##rust 2021-07-03 00:20:02 <-- gggp (~textual@124.126.15.211) has quit (Remote host closed the connection) 2021-07-03 00:20:31 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Read error: Connection reset by peer) 2021-07-03 00:20:45 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 00:24:54 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-03 00:32:51 meltyness "After running the code, the precedence behavior is evident:" thats a yikes 2021-07-03 00:35:02 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-03 00:37:40 --> nerdypepper (~nerdypepp@user/nerdypepper) has joined ##rust 2021-07-03 00:40:52 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-03 00:42:24 <-- _rubik (~rubik@user/rubik/x-6853868) has quit (Quit: WeeChat 3.2) 2021-07-03 00:43:28 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 00:48:41 <-- Maxattax97 (~max@2603:900a:1501:a7ca::100) has quit (Quit: WeeChat 3.2) 2021-07-03 00:51:58 --> comatory_ (~ondrejsyn@217.11.241.69) has joined ##rust 2021-07-03 00:55:58 --> dcz_ (~dcz@dynamic-078-048-049-230.78.48.pool.telefonica.de) has joined ##rust 2021-07-03 00:56:48 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 00:57:12 <-- comatory_ (~ondrejsyn@217.11.241.69) has quit (Ping timeout: 272 seconds) 2021-07-03 00:58:13 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 01:01:04 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-07-03 01:07:14 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-03 01:08:29 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 01:12:33 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-07-03 01:12:55 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-03 01:13:12 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-03 01:13:48 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-03 01:17:43 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-07-03 01:23:48 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-03 01:26:10 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-03 01:29:21 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 01:31:18 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-03 01:34:45 --> tims1 (~tims@203.221.207.62) has joined ##rust 2021-07-03 01:37:06 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-03 01:37:52 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 01:37:53 <-- tims (~tims@123-243-10-176.static.tpgi.com.au) has quit (Ping timeout: 265 seconds) 2021-07-03 01:39:20 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 265 seconds) 2021-07-03 01:43:06 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-03 01:44:08 <-- jess (~jess@libera/staff/jess) has quit (Remote host closed the connection) 2021-07-03 01:47:01 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-07-03 01:47:55 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 01:55:36 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 01:57:18 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 01:58:11 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 02:00:46 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 02:02:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-03 02:03:01 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 02:07:46 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-03 02:09:59 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-03 02:10:41 <-- ThinkT510 (~auronanda@user/thinkt510) has quit (Quit: WeeChat 3.2) 2021-07-03 02:14:58 --> ThinkT510 (~auronanda@user/thinkt510) has joined ##rust 2021-07-03 02:15:07 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 02:15:45 <-- ThinkT510 (~auronanda@user/thinkt510) has quit (Client Quit) 2021-07-03 02:16:13 --> ThinkT510 (~auronanda@user/thinkt510) has joined ##rust 2021-07-03 02:18:15 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 02:19:23 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-03 02:19:32 -- aoei is now known as cocaine 2021-07-03 02:19:54 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-03 02:20:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 02:25:33 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 268 seconds) 2021-07-03 02:27:14 --> trev (~trev@user/trev) has joined ##rust 2021-07-03 02:37:27 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 02:47:08 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 02:48:32 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-03 02:50:40 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-03 02:50:52 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-03 02:51:32 --> red1ynx (~Dzmitry@46.56.203.93) has joined ##rust 2021-07-03 02:52:09 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 02:54:40 --> night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-07-03 02:56:39 <-- red1ynx (~Dzmitry@46.56.203.93) has quit (Quit: Konversation terminated!) 2021-07-03 02:57:03 --> red1ynx (~Dzmitry@46.56.203.93) has joined ##rust 2021-07-03 02:58:04 <-- night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 256 seconds) 2021-07-03 02:58:07 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 265 seconds) 2021-07-03 02:59:29 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-07-03 03:02:26 <-- cosmicennui (~cosmicenn@c-73-34-75-186.hsd1.co.comcast.net) has quit (Quit: WeeChat 2.8) 2021-07-03 03:02:27 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 03:03:11 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-03 03:03:59 --> arinov (~arinov@85.104.57.247) has joined ##rust 2021-07-03 03:10:12 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 272 seconds) 2021-07-03 03:14:46 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-07-03 03:15:12 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-03 03:17:27 <-- arinov (~arinov@85.104.57.247) has quit (Ping timeout: 265 seconds) 2021-07-03 03:17:27 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-07-03 03:19:40 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 03:20:52 --> dolor_avis (~dolor_avi@user-5-173-9-50.play-internet.pl) has joined ##rust 2021-07-03 03:21:46 --> jimmy_ (~jimmy___@2607:fa49:4b00:7000:ac5a:4dbc:2559:6762) has joined ##rust 2021-07-03 03:21:51 <-- gggp (~textual@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-07-03 03:23:22 <-- dolor_avis (~dolor_avi@user-5-173-9-50.play-internet.pl) has quit (Client Quit) 2021-07-03 03:23:33 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 03:25:49 <-- jimmy (~jimmy___@2607:fa49:4b00:7000:5515:7ca6:7a97:5491) has quit (Ping timeout: 256 seconds) 2021-07-03 03:33:41 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-07-03 03:35:42 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-07-03 03:36:33 --> vursc (~wangxm@219.137.140.171) has joined ##rust 2021-07-03 03:38:52 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 256 seconds) 2021-07-03 03:41:52 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-03 03:42:03 <-- red1ynx (~Dzmitry@46.56.203.93) has quit (Ping timeout: 258 seconds) 2021-07-03 03:42:29 <-- vursc (~wangxm@219.137.140.171) has quit (Read error: Connection reset by peer) 2021-07-03 03:43:33 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-03 03:44:20 --> serra (~serra@user/serra) has joined ##rust 2021-07-03 03:45:43 <-- discipulus (~discipulu@user/discipulus) has quit (Quit: discipulus) 2021-07-03 03:49:28 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 272 seconds) 2021-07-03 03:50:10 --> dolor_avis (~dolor_avi@user-5-173-9-50.play-internet.pl) has joined ##rust 2021-07-03 03:50:12 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 03:59:30 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 04:00:46 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 04:01:23 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-07-03 04:07:14 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-03 04:08:01 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-07-03 04:08:54 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-03 04:09:04 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-03 04:15:47 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-03 04:15:53 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 04:16:16 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 04:16:25 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-03 04:16:42 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-03 04:16:58 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-03 04:17:06 <-- dolor_avis (~dolor_avi@user-5-173-9-50.play-internet.pl) has quit (Ping timeout: 252 seconds) 2021-07-03 04:17:20 <-- hnOsmium0001 (uid453710@stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-03 04:20:00 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 258 seconds) 2021-07-03 04:20:00 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-03 04:21:57 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-03 04:22:24 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 04:25:07 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-07-03 04:26:18 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 04:31:39 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving) 2021-07-03 04:31:56 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-03 04:32:22 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 04:33:00 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 04:36:23 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-03 04:36:41 --> embik (~embik@user/embik) has joined ##rust 2021-07-03 04:37:05 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-07-03 04:38:03 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 04:38:09 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Read error: Connection reset by peer) 2021-07-03 04:39:29 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-03 04:39:52 --> soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has joined ##rust 2021-07-03 04:41:45 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-03 04:43:18 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 04:44:29 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 04:47:48 <-- embik (~embik@user/embik) has quit (Quit: WeeChat 3.2) 2021-07-03 04:48:22 --> unyu (~pyon@user/pyon) has joined ##rust 2021-07-03 04:48:25 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-03 04:48:42 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-03 04:51:17 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 05:00:20 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-07-03 05:20:53 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: Leaving) 2021-07-03 05:21:09 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-03 05:41:46 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 05:45:44 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-03 05:46:38 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-07-03 05:53:40 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-03 05:57:48 -- jimmy_ is now known as maury 2021-07-03 06:02:41 <-- meandi2 (~meandi4@dyndsl-178-142-252-142.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-07-03 06:02:50 --> meandi (~meandi4@dyndsl-178-142-252-142.ewe-ip-backbone.de) has joined ##rust 2021-07-03 06:03:13 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-03 06:07:38 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-03 06:08:01 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-07-03 06:11:05 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Remote host closed the connection) 2021-07-03 06:11:58 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 272 seconds) 2021-07-03 06:19:40 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 06:22:14 <-- gggp (~textual@60.10.194.47) has quit (Client Quit) 2021-07-03 06:23:13 <-- austy (~austy@212-166-59-246.win.be) has quit (Ping timeout: 246 seconds) 2021-07-03 06:29:27 <-- fpina (~fpina@2804:7f1:ea80:59b5:b90e:a18a:65fc:72a1) has quit (Remote host closed the connection) 2021-07-03 06:29:50 --> fpina (~fpina@2804:7f1:ea80:59b5:2417:f061:8b26:1346) has joined ##rust 2021-07-03 06:31:41 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-03 06:35:41 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-03 06:36:07 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 06:37:03 --> img (~img@user/img) has joined ##rust 2021-07-03 06:38:04 RedCrab Heya! I want to include a `/api/version` endpoint in my API, and want to include the git hash and version (from Cargo). The cargo version I'm thinking of deserializing from the Toml file and grabbing the version that way. The git part I'm a bit more stumped on. Is there a good way to go about this? 2021-07-03 06:38:41 j`ey RedCrab: https://docs.rs/git-version/0.3.4/git_version/ 2021-07-03 06:42:23 Arnavion And the crate version is already in the CARGO_PKG_VERSION env var 2021-07-03 06:43:06 j`ey (that you can read with env!(), not the std::env functions) 2021-07-03 06:43:28 RedCrab Oh, that's really nice! Thanks 2021-07-03 06:44:53 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-07-03 06:44:54 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-03 06:45:15 Arnavion You may also prefer to specify the git hash via a cargo-build wrapper (like a Makefile) that sets it as a regular env var also, so that you can read it the same as CARGO_PKG_VERSION 2021-07-03 06:46:07 j`ey if youre not already doing that, proc_macro is nicer :P 2021-07-03 06:47:42 RedCrab j`ey: I'm still stumbling over creating macros. I feel like I have a good handle on most other things. So for now I'll probably stick with the env var option 2021-07-03 06:47:56 Arnavion Yes, it mostly helps because it's easy to strip out, say if you're doing a dev release where you want the hash vs a proper release where you don't 2021-07-03 06:48:29 Arnavion Also it saves on a couple of deps, not in the least because that macro is just a long-winded way of writing std::process::Command::new("git").arg("rev-parse").output() 2021-07-03 06:48:38 j`ey RedCrab: well you dont need to create one, that git_version crate i linked you to, is doing it for you 2021-07-03 06:50:28 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 06:55:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 06:56:38 --> tglman (~tglman@78-33-90-50.static.enta.net) has joined ##rust 2021-07-03 06:56:48 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 06:59:15 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-07-03 06:59:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 06:59:47 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 07:04:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 07:05:03 rk4 suppose your program had parts A,B,C, there's a method of determining which part you should work on to optimize it that looks like this: to test if doubling the speed of A would make a difference, make B & C twice as slow. there's paper on this idea and a framework to automatically do it (by making your functions twice as fast)...anyone know what i'm talking about? be damned if i can remember 2021-07-03 07:05:25 rk4 *by making your functions twice as slow 2021-07-03 07:05:39 --> xsperry (~as@user/xsperry) has joined ##rust 2021-07-03 07:05:46 <-- gggp (~textual@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-07-03 07:06:34 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 07:08:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 07:08:57 discipulus I vaguely remember 2021-07-03 07:10:45 <-- canton7 (canton7@about/csharp/canton7) has quit (Quit: ZNC - http://znc.in) 2021-07-03 07:10:48 <-- alip (~alip@exherbo/developer/alip) has quit (Ping timeout: 256 seconds) 2021-07-03 07:12:53 <-- maury (~jimmy___@2607:fa49:4b00:7000:ac5a:4dbc:2559:6762) has quit (Read error: Connection reset by peer) 2021-07-03 07:13:24 --> canton7 (canton7@about/csharp/canton7) has joined ##rust 2021-07-03 07:13:29 --> snalty_ (~Shhh@user/snalty) has joined ##rust 2021-07-03 07:14:02 <-- soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has quit (Ping timeout: 272 seconds) 2021-07-03 07:14:48 <-- snalty (~Shhh@user/snalty) has quit (Ping timeout: 258 seconds) 2021-07-03 07:16:42 --> snalty (~Shhh@user/snalty) has joined ##rust 2021-07-03 07:17:07 saati i've read about it too 2021-07-03 07:18:14 <-- snalty_ (~Shhh@user/snalty) has quit (Ping timeout: 252 seconds) 2021-07-03 07:19:53 --> austy (~austy@212-166-59-246.win.be) has joined ##rust 2021-07-03 07:21:44 --> soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has joined ##rust 2021-07-03 07:23:13 -- austy is now known as austreelis 2021-07-03 07:27:43 <-- dcz_ (~dcz@dynamic-078-048-049-230.78.48.pool.telefonica.de) has quit (Ping timeout: 268 seconds) 2021-07-03 07:29:18 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-07-03 07:30:08 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-03 07:31:36 --> maelcum (~horst@2001:16b8:c1a4:f400:9206:72fb:b5e3:de34) has joined ##rust 2021-07-03 07:33:39 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 07:33:56 --> rustylerp (~linux@93.176.155.10) has joined ##rust 2021-07-03 07:35:23 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-03 07:42:33 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 07:43:48 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 272 seconds) 2021-07-03 07:43:59 <-- austreelis (~austy@212-166-59-246.win.be) has quit (Quit: WeeChat 3.1) 2021-07-03 07:45:42 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Ping timeout: 265 seconds) 2021-07-03 07:47:36 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 07:50:32 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-07-03 07:50:55 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-03 07:52:28 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 07:53:18 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 07:53:50 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 08:03:25 <-- _eroux_ (~eroux@102-65-81-156.ftth.web.africa) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-03 08:04:24 --> db48x____ (~user@96-86-171-70-static.hfc.comcastbusiness.net) has joined ##rust 2021-07-03 08:05:00 -- db48x____ is now known as db48x 2021-07-03 08:12:13 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-03 08:13:46 osa1 rk4: I think you're looking for coz: https://github.com/plasma-umass/coz 2021-07-03 08:14:21 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-03 08:14:22 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-07-03 08:19:54 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-03 08:20:26 --> dzugaru (~dzugaru@188.124.243.148) has joined ##rust 2021-07-03 08:24:27 <-- tglman (~tglman@78-33-90-50.static.enta.net) has quit (Ping timeout: 268 seconds) 2021-07-03 08:36:54 <-- fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has quit (Quit: WeeChat 3.2) 2021-07-03 08:38:43 <-- maerwald (~maerwald@mail.hasufell.de) has quit (Changing host) 2021-07-03 08:38:43 --> maerwald (~maerwald@user/maerwald) has joined ##rust 2021-07-03 08:41:57 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-03 08:42:29 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 08:47:53 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-03 08:53:22 <-- noonien (~noonien@user/noonien) has quit (Ping timeout: 265 seconds) 2021-07-03 08:53:38 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Remote host closed the connection) 2021-07-03 08:53:57 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-03 08:55:06 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 08:57:27 --> noonien (~noonien@user/noonien) has joined ##rust 2021-07-03 08:58:52 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-03 09:01:37 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 09:04:39 -- cocaine is now known as aOei 2021-07-03 09:07:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-07-03 09:09:01 <-- starblue (~juergen@dslb-088-078-097-030.088.078.pools.vodafone-ip.de) has quit (Quit: WeeChat 2.3) 2021-07-03 09:13:47 rk4 that's it, thanks! 2021-07-03 09:15:32 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-03 09:15:36 <-- rustylerp (~linux@93.176.155.10) has quit (Ping timeout: 265 seconds) 2021-07-03 09:17:54 <-- feliix42 (~felix@gibbs.uberspace.de) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-03 09:21:54 --> feliix42 (~felix@gibbs.uberspace.de) has joined ##rust 2021-07-03 09:30:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 09:32:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 09:32:58 --> varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-07-03 09:33:41 --> gggpkm (~gggpkm@60.10.23.171) has joined ##rust 2021-07-03 09:34:50 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-03 09:34:51 <-- xahodo (~xander@2001:985:ed95:1:18d1:eba9:b85f:d3ee) has quit (Quit: Konversation terminated!) 2021-07-03 09:35:21 --> alip (~alip@chesswob.org) has joined ##rust 2021-07-03 09:35:25 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 09:35:25 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-03 09:35:32 <-- alip (~alip@chesswob.org) has quit (Remote host closed the connection) 2021-07-03 09:35:42 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-03 09:35:59 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 09:36:06 --> alip (~alip@chesswob.org) has joined ##rust 2021-07-03 09:37:08 <-- alip (~alip@chesswob.org) has quit (Remote host closed the connection) 2021-07-03 09:37:45 --> alip (~alip@chesswob.org) has joined ##rust 2021-07-03 09:37:48 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 09:39:24 <-- alip (~alip@chesswob.org) has quit (Client Quit) 2021-07-03 09:39:42 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 09:40:15 <-- alip (~alip@exherbo/developer/alip) has quit (Remote host closed the connection) 2021-07-03 09:40:33 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 09:40:44 <-- alip (~alip@exherbo/developer/alip) has quit (Remote host closed the connection) 2021-07-03 09:41:26 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 09:41:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 09:42:25 <-- alip (~alip@exherbo/developer/alip) has quit (Remote host closed the connection) 2021-07-03 09:43:04 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 09:43:57 <-- alip (~alip@exherbo/developer/alip) has quit (Remote host closed the connection) 2021-07-03 09:46:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 09:46:53 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Read error: No route to host) 2021-07-03 09:50:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 09:54:24 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 09:55:43 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 09:56:32 <-- dzugaru (~dzugaru@188.124.243.148) has quit (Remote host closed the connection) 2021-07-03 09:56:49 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-03 09:56:50 <-- gggpkm (~gggpkm@60.10.23.171) has quit (Ping timeout: 256 seconds) 2021-07-03 10:00:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 10:01:54 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-03 10:05:32 <-- kungp (~kungp@h-46-59-2-200.a230.priv.bahnhof.se) has quit (Quit: Leaving) 2021-07-03 10:05:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 10:06:01 --> rustylerp (~linux@93.176.155.10) has joined ##rust 2021-07-03 10:08:40 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-03 10:09:53 <-- Notgnoshi (~nots@2001-48F8-8-40-2EF0-5DFF-FE04-24F7-dynamic.midco.net) has quit (Quit: Leaving) 2021-07-03 10:11:03 --> plsm_ (~plsm@host86-186-9-219.range86-186.btcentralplus.com) has joined ##rust 2021-07-03 10:11:34 <-- plsm_ (~plsm@host86-186-9-219.range86-186.btcentralplus.com) has quit (Changing host) 2021-07-03 10:11:34 --> plsm_ (~plsm@user/plsm) has joined ##rust 2021-07-03 10:13:26 -- aOei is now known as AoiE 2021-07-03 10:13:44 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 10:15:48 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 10:17:24 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-07-03 10:17:48 --> gggpkm_ (~gggpkm@36.112.128.143) has joined ##rust 2021-07-03 10:18:11 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 10:18:45 --> Helmholtz1 (Helmholtz@user/helmholtz) has joined ##rust 2021-07-03 10:19:08 Helmholtz1 Is there a way to measure complexity of a project? Like how difficult is it to write something like this ? https://github.com/dflemstr/rq 2021-07-03 10:19:33 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 10:20:21 nCrazed Helmholtz1: I am not following how rq connects to your question 2021-07-03 10:20:32 saati ther are various source line count tools that also give some (wildly inaccurate) estimations on development time 2021-07-03 10:20:48 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-07-03 10:20:52 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 10:21:18 Helmholtz1 nCrazed, as an example 2021-07-03 10:21:56 meltyness ...how many Traits does it define? 2021-07-03 10:21:57 Helmholtz1 saati, So in Rust roughly more lines of code => more complex ? 2021-07-03 10:22:16 nCrazed it sounds like you're asking about something like cyclomatic complexity of source code, but rq looks more about exploring data 2021-07-03 10:22:43 j`ey Helmholtz1: how are you measuring complexity of other languages? 2021-07-03 10:23:11 meltyness Helmholtz1: https://github.com/dflemstr/rq/blob/56f6314995ea9b5988b2f5e2fd547d8758eae523/src/value/mod.rs ... here's the rub. 2021-07-03 10:23:15 Helmholtz1 j`ey, In java, number of classes, number of methods 2021-07-03 10:23:23 j`ey then you can do a similar thing with rust 2021-07-03 10:23:32 j`ey number of structs, number of methods, number of traits etc 2021-07-03 10:23:46 j`ey (but that doesnt mean complexity, it just means size..) 2021-07-03 10:24:02 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-03 10:24:56 <-- serra (~serra@user/serra) has quit (Quit: WeeChat 3.2) 2021-07-03 10:27:50 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 10:28:31 Helmholtz1 I think rq is one of the coolest Rust projects out there? Is there something similar in Rust? 2021-07-03 10:28:52 Helmholtz1 s/?/. 2021-07-03 10:28:57 meltyness Helmholtz1: traits are kind of like an interface ... that can a proxy for the amount of complexity -- since each module implementing a trait doesn't really add any more complexity, just additional bulk 2021-07-03 10:29:28 hendursa1 ]' 2021-07-03 10:30:07 meltyness Helmholtz1: You mean like a tool for querying MIR / HIR? 2021-07-03 10:30:17 meltyness I mean cargo docs kinda does that 2021-07-03 10:30:49 Helmholtz1 meltyness, just format conversion 2021-07-03 10:31:04 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 10:31:06 j`ey format conversion of what? 2021-07-03 10:31:22 Helmholtz1 from json/MessagePack/XML to each other 2021-07-03 10:31:30 j`ey you said rq is a cool rust project,mand ask if there is something similar in rust..? 2021-07-03 10:31:34 Helmholtz1 structured data format conversion 2021-07-03 10:32:33 Helmholtz1 j`ey, I meant other famous projects with similar scope and functionality 2021-07-03 10:32:42 saati Helmholtz1: so god objects and methods with a lot of flags decrease complexity? 2021-07-03 10:32:58 nCrazed dota format converstion? so like serde? :D 2021-07-03 10:32:58 j`ey Helmholtz1: ripgrep 2021-07-03 10:33:03 jbg the question is pretty unclear but ripgrep is another quite famous rust project which also deals with data 2021-07-03 10:33:03 jbg snap 2021-07-03 10:33:22 jbg "which also deals with data" lol, like every program ever 2021-07-03 10:33:24 jbg but you know what I mean 2021-07-03 10:33:40 j`ey rg isn't structured data 2021-07-03 10:34:04 j`ey otherwise i don't know any similar projects to rq 2021-07-03 10:34:08 jbg while that's true, grep (and rg) are often used on structured data, they just don't actually operate on the structure ;) 2021-07-03 10:34:09 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Quit: WeeChat 3.2) 2021-07-03 10:35:55 meltyness yeah and that starts to get into language representation which is an extremely ugly matter in and of itself 2021-07-03 10:37:04 <-- jess (~jess@libera/staff/jess) has quit 2021-07-03 10:37:08 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-03 10:37:34 meltyness https://en.wikipedia.org/wiki/Regular_language 2021-07-03 10:37:42 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 10:38:05 meltyness OK 2 more chapters of TRPL... LETS GO!! 2021-07-03 10:38:25 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-03 10:38:42 --> sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has joined ##rust 2021-07-03 10:38:48 <-- gggpkm_ (~gggpkm@36.112.128.143) has quit (Ping timeout: 252 seconds) 2021-07-03 10:42:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 10:44:14 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Remote host closed the connection) 2021-07-03 10:44:51 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-03 10:44:56 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 10:45:08 --> eroux (~eroux@102-65-81-156.ftth.web.africa) has joined ##rust 2021-07-03 10:46:28 <-- varioust (~varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 265 seconds) 2021-07-03 10:46:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 10:51:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 10:52:16 --> trev (~trev@user/trev) has joined ##rust 2021-07-03 10:53:10 <-- Trieste (T@user/pilgrim) has quit (Ping timeout: 272 seconds) 2021-07-03 10:55:23 <-- Helmholtz1 (Helmholtz@user/helmholtz) has quit (Quit: Leaving) 2021-07-03 10:56:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 10:57:45 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 10:59:13 --> dcz_ (~dcz@dynamic-078-048-049-230.78.48.pool.telefonica.de) has joined ##rust 2021-07-03 10:59:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 11:03:28 meltyness lol "screaming snake case" 2021-07-03 11:03:51 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 11:05:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 11:07:56 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 11:08:40 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Read error: Connection reset by peer) 2021-07-03 11:09:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 11:10:57 --> rryan (~rryan@pool-68-160-165-252.bstnma.fios.verizon.net) has joined ##rust 2021-07-03 11:11:00 <-- rryan (~rryan@pool-68-160-165-252.bstnma.fios.verizon.net) has left ##rust 2021-07-03 11:12:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 11:13:08 --> Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has joined ##rust 2021-07-03 11:14:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 11:22:12 <-- rustylerp (~linux@93.176.155.10) has quit (Quit: ...) 2021-07-03 11:22:21 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-03 11:22:37 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-03 11:22:39 <-- Snaffu (Snaffu@gateway/vpn/protonvpn/snaffu) has quit (Quit: leaving) 2021-07-03 11:22:57 <-- tcole_ (~tcole@user/tcole) has quit (Ping timeout: 272 seconds) 2021-07-03 11:23:35 --> tcole (~tcole@user/tcole) has joined ##rust 2021-07-03 11:23:39 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-03 11:26:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 11:28:49 --> FlyingWaffle (~FlyingWaf@67.135.89.247) has joined ##rust 2021-07-03 11:30:52 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-03 11:31:38 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-03 11:34:16 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 11:34:16 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 11:39:17 --> OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-07-03 11:40:40 <-- FlyingWaffle (~FlyingWaf@67.135.89.247) has quit (Ping timeout: 272 seconds) 2021-07-03 11:43:30 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 11:43:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-07-03 11:45:59 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-07-03 11:47:22 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-03 11:47:42 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 11:52:32 --> Helmholtz1 (Helmholtz@user/helmholtz) has joined ##rust 2021-07-03 11:53:00 Helmholtz1 Is there a Webscraper with JS engine built-in CLI tool> 2021-07-03 11:58:58 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-07-03 11:59:03 <-- gggp (~textual@106.37.74.209) has quit (Ping timeout: 268 seconds) 2021-07-03 11:59:50 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-07-03 12:00:17 <-- Helmholtz1 (Helmholtz@user/helmholtz) has quit (Ping timeout: 268 seconds) 2021-07-03 12:08:05 <-- cnsvc (cnsvc@2600:3c01::f03c:92ff:fedc:1df9) has quit (Quit: %bye%) 2021-07-03 12:08:09 <-- soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has quit (Ping timeout: 265 seconds) 2021-07-03 12:10:22 --> cnsvc (~cnsvc@li541-179.members.linode.com) has joined ##rust 2021-07-03 12:10:56 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-03 12:12:19 <-- simcop2387 (~simcop238@perlbot/patrician/simcop2387) has quit (Ping timeout: 268 seconds) 2021-07-03 12:12:22 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-03 12:15:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 12:20:20 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 12:21:43 --> simcop2387 (~simcop238@perlbot/patrician/simcop2387) has joined ##rust 2021-07-03 12:23:25 --> lamawithonel (~lamawitho@c-73-133-248-198.hsd1.md.comcast.net) has joined ##rust 2021-07-03 12:23:49 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-03 12:25:51 <-- hendursaga (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-07-03 12:27:26 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-07-03 12:31:22 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-03 12:32:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 12:33:05 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-07-03 12:34:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 12:34:46 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-03 12:36:30 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-07-03 12:36:54 <-- hays (rootvegeta@fsf/member/hays) has quit (Remote host closed the connection) 2021-07-03 12:38:56 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-03 12:39:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 12:39:33 --> hays (~rootveget@fsf/member/hays) has joined ##rust 2021-07-03 12:40:13 --> skade[m] (~skadematr@2001:470:69fc:105::b546) has joined ##rust 2021-07-03 12:41:35 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-03 12:41:41 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Client Quit) 2021-07-03 12:43:14 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 12:43:53 meltyness never has a programming language tutorial handed the AST on a silver platter to me before. wow 2021-07-03 12:46:08 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 12:46:49 <-- timemage (timemage@user/timemage) has quit (Ping timeout: 256 seconds) 2021-07-03 12:46:55 --> bonominus (~bonominus@85.108.139.39) has joined ##rust 2021-07-03 12:46:59 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-03 12:47:57 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-03 12:49:30 <-- alip (~alip@exherbo/developer/alip) has quit (Read error: Connection reset by peer) 2021-07-03 12:52:19 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 12:57:18 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 12:59:52 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 265 seconds) 2021-07-03 13:01:09 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-03 13:01:13 <-- bonominus (~bonominus@85.108.139.39) has left ##rust (Leaving) 2021-07-03 13:01:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:01:34 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-03 13:03:20 <-- lord| (~lordpipe@user/lordpipe) has quit (Read error: Connection reset by peer) 2021-07-03 13:05:12 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-07-03 13:05:27 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-07-03 13:05:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 13:07:00 --> kungp (~kungp@h-46-59-2-200.A230.priv.bahnhof.se) has joined ##rust 2021-07-03 13:09:03 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 265 seconds) 2021-07-03 13:10:35 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:10:55 --> timemage (timemage@user/timemage) has joined ##rust 2021-07-03 13:11:25 --> soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has joined ##rust 2021-07-03 13:11:57 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 13:14:23 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 13:14:42 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 13:15:18 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-07-03 13:15:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 13:16:02 --> est31 (~est31@user/est31) has joined ##rust 2021-07-03 13:19:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:20:10 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 13:22:52 <-- soupladler (~soupladle@ip2504fb98.dynamic.kabel-deutschland.de) has quit (Read error: Connection reset by peer) 2021-07-03 13:23:04 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-03 13:24:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 13:24:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 13:26:48 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-03 13:28:21 --> ioxzev1z (~ioxzev1z@user/ioxzev1z) has joined ##rust 2021-07-03 13:28:30 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 13:28:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:28:58 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-03 13:29:40 <-- alip (~alip@exherbo/developer/alip) has quit (Quit: The Way is limitless, so nature is limitless, so the world is limitless, and so I am limitless. For I am abstracted from the world, the world from nature, nature from the Way, and the Way from what is beneath abstraction.) 2021-07-03 13:29:50 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-03 13:29:54 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-03 13:30:46 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-07-03 13:31:07 <-- gggp (~textual@60.10.194.47) has quit (Client Quit) 2021-07-03 13:33:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 13:33:52 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 256 seconds) 2021-07-03 13:37:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:38:28 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-03 13:41:00 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-03 13:42:23 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-07-03 13:42:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 13:46:58 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 268 seconds) 2021-07-03 13:47:20 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-03 13:47:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 13:48:24 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 13:51:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 13:57:16 --> dunderprotos (~textual@117.254.176.228) has joined ##rust 2021-07-03 13:57:39 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-07-03 13:58:36 <-- dunderprotos (~textual@117.254.176.228) has quit (Client Quit) 2021-07-03 13:58:41 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 268 seconds) 2021-07-03 14:01:05 <-- snild (~snild@user/snild) has quit (Ping timeout: 272 seconds) 2021-07-03 14:01:54 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 14:03:37 <-- death916 (~death916@user/death916) has quit (Ping timeout: 268 seconds) 2021-07-03 14:05:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 14:09:58 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-03 14:10:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 14:12:40 <-- tims1 (~tims@203.221.207.62) has quit (Ping timeout: 272 seconds) 2021-07-03 14:13:13 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-07-03 14:14:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 14:19:39 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 14:21:41 --> MarderIII (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has joined ##rust 2021-07-03 14:25:24 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Read error: No route to host) 2021-07-03 14:26:32 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-03 14:27:38 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 14:30:00 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-03 14:36:42 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 240 seconds) 2021-07-03 14:37:39 --> happy-dude (~happy-dud@2001:470:69fc:105::b4d7) has joined ##rust 2021-07-03 14:43:16 --> Mateon2 (~Thunderbi@user/mateon1) has joined ##rust 2021-07-03 14:44:27 <-- Mateon1 (~Thunderbi@user/mateon1) has quit (Ping timeout: 258 seconds) 2021-07-03 14:44:27 -- Mateon2 is now known as Mateon1 2021-07-03 14:46:16 <-- MarderIII (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has quit (Ping timeout: 250 seconds) 2021-07-03 14:48:24 Tv_ i want to test a component that uses and unsets environment variables. fixed names. is there an easy way to mock that, e.g. some trait that i can implement with os env and a HashMap or such 2021-07-03 14:48:36 Tv_ (or do i get to shave that yak first) 2021-07-03 14:51:37 Tv_ an easy way out would be to just use a prefix on all the variables it touches.. can a test figure out its own name, or do i need to create safe prefixes some other way? 2021-07-03 14:51:45 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-03 14:51:53 --> xse_ (~xse@user/xse) has joined ##rust 2021-07-03 14:54:24 Tv_ ehh maybe just serial_test and use the real environment 2021-07-03 14:54:48 <-- xse (~xse@user/xse) has quit (Ping timeout: 268 seconds) 2021-07-03 14:56:25 trev do unit tests setting env vars interfere with each other? maybe you can do the trick where you use Command to launch the current test (since you can get the name of the current test executable) 2021-07-03 14:57:02 Tv_ trev: they all want to touch the same few env vars 2021-07-03 14:57:50 Tv_ i could pass in a prefix, but then i need to manage unique prefixes somewhere 2021-07-03 14:58:25 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 14:58:46 trev i think that using Command to re-launch the test executable and passing in the env might work 2021-07-03 14:58:57 Tv_ i guess a static mutex and a prefix that's something like TEST__ would be fine 2021-07-03 14:59:49 Tv_ static atomic i guess 2021-07-03 15:01:10 cehteh Tv_: we had/have some discussion about env var setting which turns out to be a minefield 2021-07-03 15:01:19 <-- happy-dude (~happy-dud@2001:470:69fc:105::b4d7) has quit (Quit: Reconnecting) 2021-07-03 15:01:48 cehteh https://internals.rust-lang.org/t/why-should-std-var-panic/14847 2021-07-03 15:03:00 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-07-03 15:03:01 cehteh Tv_: when you test a command then you can use my new testcall stuff, i am working on it, the env var api isnt defined yet, but its on the todo list really soon, you may as well do it and send me a PR :D 2021-07-03 15:03:14 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-07-03 15:03:40 Tv_ cehteh: this is a library not a command though 2021-07-03 15:03:40 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-03 15:03:53 Tv_ systemd socket activation; couldn't find a good enough one already written 2021-07-03 15:04:29 cehteh i recommend reading the discussion of the link above 2021-07-03 15:04:58 cehteh and i am just back from a bike tour, need to rehydrate and a shower be back in a half an hour 2021-07-03 15:06:09 cehteh when you are interested in creating a test directory/fixtures/assertions i'd like if you take a look at the stuff i am currently working on (testcall crate, but newest things on master are not released, i'll work on that later seeing to complete that later today) 2021-07-03 15:08:59 Tv_ i'm not clear on why you think that to be very relevant 2021-07-03 15:09:07 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-07-03 15:09:40 Tv_ i mean, apart from the fact that unix environment is global process state without anything guarding it? that doesn't smell like my problem, really... 2021-07-03 15:10:21 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-03 15:10:21 --> MarderIII (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has joined ##rust 2021-07-03 15:11:37 capitol Tv_: are you using glibc? You might be walking into a minefield: http://rachelbythebay.com/w/2017/01/30/env/ 2021-07-03 15:12:26 Tv_ this is a startup time action 2021-07-03 15:12:32 cehteh then its ok 2021-07-03 15:12:41 Tv_ if glibc wrecks a process without being asked to, that's a glibc problem ;) 2021-07-03 15:12:57 cehteh as long you have no threads that do ffi calls its ok 2021-07-03 15:13:08 capitol well, it's your unit tests that will be flappy :P 2021-07-03 15:13:14 Tv_ the only non-startup time call to this are the tests 2021-07-03 15:13:31 Tv_ and i sure hope they don't go around resolving DNS names for no reason 2021-07-03 15:14:02 cehteh also setenv/environ at startup is ok .. but 'at startup' implies that you call some executable, maybe the test harness linking your lib and tests 2021-07-03 15:14:03 Tv_ though maybe i should shove these links into the docs 2021-07-03 15:14:15 cehteh anyway ... bbl 2021-07-03 15:16:05 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 15:20:13 --> red1ynx (~Dzmitry@46.56.204.255) has joined ##rust 2021-07-03 15:20:52 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-07-03 15:21:19 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-03 15:21:36 <-- HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has quit (Ping timeout: 244 seconds) 2021-07-03 15:22:23 --> HotblackDesiato (~HotblackD@gateway/tor-sasl/hotblackdesiato) has joined ##rust 2021-07-03 15:23:20 <-- hexfive (~eric@50.35.83.177) has quit (Read error: Connection reset by peer) 2021-07-03 15:23:23 --> hexfifty (~eric@50.35.83.177) has joined ##rust 2021-07-03 15:23:30 <-- hexfifty (~eric@50.35.83.177) has quit (Client Quit) 2021-07-03 15:23:47 meltyness I wrote 2,815 lines of rust learning Rust :O 2021-07-03 15:24:42 <-- darkstalker (~wolfie@186.148.12.159) has quit (Ping timeout: 240 seconds) 2021-07-03 15:25:38 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-07-03 15:26:41 -- xse_ is now known as xse 2021-07-03 15:32:25 <-- darkstalker (~wolfie@186.148.12.159) has quit (Ping timeout: 268 seconds) 2021-07-03 15:32:55 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-07-03 15:33:01 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-03 15:37:32 <-- red1ynx (~Dzmitry@46.56.204.255) has quit (Ping timeout: 272 seconds) 2021-07-03 15:38:08 <-- natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Quit: WeeChat 2.9) 2021-07-03 15:39:05 <-- maelcum (~horst@2001:16b8:c1a4:f400:9206:72fb:b5e3:de34) has quit (Ping timeout: 256 seconds) 2021-07-03 15:39:44 --> maelcum (~horst@2001:16b8:c1a4:f400:d66a:ff99:a8d6:6b83) has joined ##rust 2021-07-03 15:43:14 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-07-03 15:43:22 <-- meltyness (~meltyness@user/meltyness) has quit (Quit: Client closed) 2021-07-03 15:47:31 cehteh so re 2021-07-03 15:52:51 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-03 15:54:36 --> chrysanthematic (~chrysanth@user/chrysanthematic) has joined ##rust 2021-07-03 15:58:00 --> starblue (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 15:59:12 kee Rust LTO works with statically-linked C code, right? 2021-07-03 16:00:55 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-03 16:01:18 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-03 16:01:21 cehteh would be interesting if it could LTO those C things .. even when build with gcc lto, and no i dont know, but i'd expect to 'work' as in not introducing bugs at least 2021-07-03 16:01:29 --> red1ynx (~Dzmitry@46.56.204.255) has joined ##rust 2021-07-03 16:02:00 kee Ah, I have the wrong clang version for my Rust version. That explains it. 2021-07-03 16:02:02 kee https://doc.rust-lang.org/rustc/linker-plugin-lto.html#toolchain-compatibility 2021-07-03 16:02:30 cehteh ah .. yes lto is kindof black magic :) 2021-07-03 16:03:02 cehteh gcc lto on microcontroller, then looking at the generated asm gave me big WTF's 2021-07-03 16:03:58 cehteh puts all your code into a blender, sifting it, and glues the fragments back together :) 2021-07-03 16:04:18 --> Warkruid (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has joined ##rust 2021-07-03 16:05:09 kee The huge 0.001% performance improvement is worth the minor increase in debugging difficulty. 2021-07-03 16:05:52 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:06:58 <-- red1ynx (~Dzmitry@46.56.204.255) has quit (Ping timeout: 252 seconds) 2021-07-03 16:07:06 cehteh actually in some cases it can have pretty decent performance improvements and even more space savings, but it depends extremely on the actualy project 2021-07-03 16:07:33 cehteh things like 40% faster and 50% smaller is what i've seen in some corner cases 2021-07-03 16:07:45 <-- MarderIII (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has quit (Ping timeout: 250 seconds) 2021-07-03 16:08:03 cehteh (usually less, but still significant) 2021-07-03 16:08:28 cehteh while you shouldnt debug a lto build anyway 2021-07-03 16:08:39 kee What if the bugs only show up when LTO is enabled? 2021-07-03 16:08:47 cehteh if normal build works and lto fails its another problem 2021-07-03 16:08:59 cehteh file a bug to the compiler team 2021-07-03 16:09:04 kee Fortunately this is ##rust so that will never happen. 2021-07-03 16:09:10 cehteh lol 2021-07-03 16:09:21 kee I imagine some badly-written C code could have an issue with LTO without it being a compiler bug. 2021-07-03 16:09:28 kee Undefined Behaviour is the bane of my existence. 2021-07-03 16:09:34 cehteh lto isnt rust stuff its deeper in the llvm guts 2021-07-03 16:11:00 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 16:11:44 kee Did you know that the standard library isn't LTO'd any more (unless you set lto=true)? 2021-07-03 16:12:08 cehteh i know that lto isnt default 2021-07-03 16:12:21 cehteh but i dont know how the stdlib is compiled 2021-07-03 16:13:02 cehteh also incremental build got disabled becasue of bugs, that actually happend to me (in nightly where its still on , i had to turn incremental off) 2021-07-03 16:13:31 --> transistor (~trans@S01060011329d4e55.vc.shawcable.net) has joined ##rust 2021-07-03 16:13:36 j`ey it's back on now, are you sure it isnt fixed for you? 2021-07-03 16:14:25 --> GNUcifer (~ct@i59F7259B.versanet.de) has joined ##rust 2021-07-03 16:14:39 <-- cehteh (~ct@i59F7259B.versanet.de) has quit (Killed (NickServ (GHOST command used by GNUcifer))) 2021-07-03 16:14:49 -- GNUcifer is now known as cehteh 2021-07-03 16:15:03 cehteh [22:12] i know that lto isnt default 2021-07-03 16:15:05 cehteh [22:12] but i dont know how the stdlib is compiled 2021-07-03 16:15:07 cehteh [22:13] also incremental build got disabled becasue of bugs, that actually happend to me (in nightly where its still on , i had to turn incremental off) 2021-07-03 16:15:10 cehteh [22:13] managed to improve test build times from 1m20s to <5sec :D 2021-07-03 16:15:12 cehteh [22:13] w/o incremental .. haha 2021-07-03 16:15:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:15:37 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 265 seconds) 2021-07-03 16:15:53 j`ey it's back on now, are you sure it isnt fixed for you? 2021-07-03 16:17:01 cehteh havnt tried (still nightly) but i do some ugly stuff which wont make me wonder if its stil broken 2021-07-03 16:18:39 --> sh9 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-07-03 16:18:41 cehteh creating a directory for the test build, prime that with the prev build by cp -lr, then unpack the current source on top of that. that confused cargos file signatures somehow in incremetal builds 2021-07-03 16:19:28 cehteh https://github.com/cehteh/uberallfs/blob/master/.githooks/pre-commit 2021-07-03 16:19:55 --> red1ynx (~Dzmitry@46.56.204.255) has joined ##rust 2021-07-03 16:21:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 16:24:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:25:36 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-03 16:29:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-03 16:30:13 kee Hmm. Unsafety in the standard library isn't a cause for breaking changes? 2021-07-03 16:30:57 j`ey you mean something that is unsound or? 2021-07-03 16:31:20 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-03 16:31:24 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Client Quit) 2021-07-03 16:32:23 <-- Forkk (forkk@2600:3c00::f03c:91ff:fe84:de4d) has quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) 2021-07-03 16:33:07 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-07-03 16:33:32 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:33:38 --> Forkk (forkk@2600:3c00::f03c:91ff:fe84:de4d) has joined ##rust 2021-07-03 16:37:06 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 240 seconds) 2021-07-03 16:37:13 --> gnomesort (~gnomesort@user/gnomesort) has joined ##rust 2021-07-03 16:38:18 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 16:39:45 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-07-03 16:39:45 --> death916 (~death916@user/death916) has joined ##rust 2021-07-03 16:40:35 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-03 16:42:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:46:06 --> natechan (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 16:46:06 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-07-03 16:46:18 <-- starblue (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-03 16:47:30 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 16:47:59 --> starblue (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 16:49:04 <-- darkapex (uid360049@user/darkapex) has quit (Quit: Connection closed for inactivity) 2021-07-03 16:49:13 --> sciencentistguy (~sciencent@hacksoc/ordinary-member) has joined ##rust 2021-07-03 16:52:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 16:55:07 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-03 16:56:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 16:59:23 <-- dcz_ (~dcz@dynamic-078-048-049-230.78.48.pool.telefonica.de) has quit (Ping timeout: 258 seconds) 2021-07-03 16:59:36 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 265 seconds) 2021-07-03 17:00:34 <-- chrysanthematic (~chrysanth@user/chrysanthematic) has quit (Quit: chrysanthematic) 2021-07-03 17:02:59 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 265 seconds) 2021-07-03 17:07:11 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-03 17:07:54 <-- starblue (~juergen@p200300c13f1c090091ceb33c99451b8d.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-03 17:10:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:11:57 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-03 17:12:56 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-03 17:14:21 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-03 17:15:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 17:16:46 --> nicks (~igloo@host81-154-239-215.range81-154.btcentralplus.com) has joined ##rust 2021-07-03 17:16:52 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 17:19:00 <-- nicks (~igloo@host81-154-239-215.range81-154.btcentralplus.com) has quit (Remote host closed the connection) 2021-07-03 17:19:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:19:38 kee j`ey: Yeah, unsoundness, sorry. 2021-07-03 17:19:50 kee A safe API that isn't safe. 2021-07-03 17:20:31 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-03 17:21:46 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-03 17:23:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 17:25:15 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-03 17:28:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:28:24 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-03 17:31:50 --> meltyness (~meltyness@mobile-107-77-209-100.mobile.att.net) has joined ##rust 2021-07-03 17:32:03 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-03 17:32:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 17:33:00 --> starblue (~juergen@dslb-088-078-097-030.088.078.pools.vodafone-ip.de) has joined ##rust 2021-07-03 17:33:01 --> keyvan (sid7672@id-7672.brockwell.irccloud.com) has joined ##rust 2021-07-03 17:33:36 keyvan hi. i am embarking on my rust journey today. very excited. 2021-07-03 17:34:37 la_mettrie no need to be excited, it's gonna be a safe journey 2021-07-03 17:34:39 <-- red1ynx (~Dzmitry@46.56.204.255) has quit (Ping timeout: 258 seconds) 2021-07-03 17:35:01 keyvan haha! :) 2021-07-03 17:35:29 --> red1ynx (~Dzmitry@46.56.227.108) has joined ##rust 2021-07-03 17:35:42 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-03 17:37:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:39:13 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-03 17:39:23 j`ey kee: that can break stability yeaj 2021-07-03 17:39:38 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 258 seconds) 2021-07-03 17:40:04 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Ping timeout: 268 seconds) 2021-07-03 17:40:41 <-- sciencentistguy (~sciencent@hacksoc/ordinary-member) has quit (Ping timeout: 268 seconds) 2021-07-03 17:41:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-03 17:42:12 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 17:44:40 <-- starblue (~juergen@dslb-088-078-097-030.088.078.pools.vodafone-ip.de) has quit (Quit: WeeChat 2.3) 2021-07-03 17:46:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:48:32 --> JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has joined ##rust 2021-07-03 17:49:54 <-- Warkruid (~MarderIII@2001:985:e889:1:10cc:e538:764:8883) has quit (Quit: Leaving) 2021-07-03 17:51:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 17:51:10 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 17:52:57 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-03 17:54:15 --> u0_a662 (~Bendi11@2600:380:8472:cf9f:c8f6:ea20:98d5:8999) has joined ##rust 2021-07-03 17:54:43 meltyness jesus h christ: https://www.kernel.org/doc/html/latest/networking/kapi.html#network-device-support 2021-07-03 17:55:32 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 17:59:10 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Ping timeout: 252 seconds) 2021-07-03 17:59:30 Tv_ meltyness: what about it? looks like pretty typical "OOP in C" that linux does. (i know linux kernel better than i know rust ;) 2021-07-03 18:00:01 meltyness so i need to make a regex to turn the flat functions into a hierarchy or something? 2021-07-03 18:00:20 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Ping timeout: 258 seconds) 2021-07-03 18:00:27 j`ey meltyness: did you paste the wrong link? 2021-07-03 18:00:30 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 18:00:33 Tv_ meltyness: it's, there's no hierarchy anyway? these sorts of bindings are usually handwritten 2021-07-03 18:00:37 Tv_ *it's C 2021-07-03 18:00:54 <-- koishi (uid160860@wikimedia/Stang) has quit (Quit: Connection closed for inactivity) 2021-07-03 18:00:55 Tv_ assuming you're trying to write rust for linux kernel 2021-07-03 18:01:00 Tv_ if not, then no idea what's going on 2021-07-03 18:01:43 j`ey unless you mean youre writing bindings and are talking about the fact that dev_remove_pack has a __ infront of it? 2021-07-03 18:01:43 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-03 18:01:45 Tv_ meltyness: what *are* you doing? 2021-07-03 18:01:57 Tv_ __ is the linux convention for "caller holds lock" 2021-07-03 18:02:17 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-03 18:02:22 meltyness I'm entertaining the prospect of building ... uh a network thing 2021-07-03 18:02:58 meltyness so grabbing from coreutils output is obviously wrong 2021-07-03 18:03:06 <-- waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has quit (Remote host closed the connection) 2021-07-03 18:03:07 meltyness and grabbing from KAPIs is apparently impenetrable 2021-07-03 18:03:25 Tv_ those two are.. very different 2021-07-03 18:03:30 Tv_ KAPI = *kernel* api 2021-07-03 18:03:59 Tv_ meltyness: what information are you trying to grab? 2021-07-03 18:04:28 meltyness ip link 2021-07-03 18:04:38 meltyness i guess i could look at the source for ip link huh? 2021-07-03 18:04:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:05:20 Tv_ meltyness: netlink 2021-07-03 18:05:34 Tv_ https://github.com/little-dude/netlink or such 2021-07-03 18:06:08 Tv_ i guess https://github.com/jbaublitz/neli might be better 2021-07-03 18:08:00 --> waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined ##rust 2021-07-03 18:08:42 <-- red1ynx (~Dzmitry@46.56.227.108) has quit (Ping timeout: 240 seconds) 2021-07-03 18:09:19 meltyness hmm Tv_ thanks for the food for thought 2021-07-03 18:09:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 18:09:58 <-- u0_a662 (~Bendi11@2600:380:8472:cf9f:c8f6:ea20:98d5:8999) has quit (Quit: WeeChat 3.0.1) 2021-07-03 18:10:57 --> red1ynx (~Dzmitry@46.56.227.108) has joined ##rust 2021-07-03 18:13:52 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:18:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 18:19:06 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 240 seconds) 2021-07-03 18:22:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:27:57 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-03 18:31:04 <-- red1ynx (~Dzmitry@46.56.227.108) has quit (Ping timeout: 272 seconds) 2021-07-03 18:32:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:36:45 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 18:37:06 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-03 18:39:08 <-- ioxzev1z (~ioxzev1z@user/ioxzev1z) has quit (Quit: Leaving) 2021-07-03 18:41:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:45:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 18:46:15 meltyness today i learned: ctags 2021-07-03 18:46:37 --> Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has joined ##rust 2021-07-03 18:47:38 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-03 18:50:09 Swahili Q: Output from print statements fail to stdout when `cargo test`. Found that `cargo test -- --nocapture` solves it. Is there a reason why its omitted and is there another way to show it when running tests? 2021-07-03 18:50:41 Lumpio- Probably because unit tests aren't really meant to print stuff 2021-07-03 18:50:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 18:50:42 danieldg it's shown for failing tests 2021-07-03 18:50:46 j`ey Swahili: that is the way to show it 2021-07-03 18:50:48 Lumpio- All the time 2021-07-03 18:51:14 Lumpio- If you have a test that does something like benchmarking or whatever instead of unit testing and you want to see the results when you it every time, you can make a test without the harness 2021-07-03 18:51:17 danieldg the goal is that you have a bunch of debug output to help determine why a test fails 2021-07-03 18:51:18 Swahili danieldg: that's correct, it does show when fail 2021-07-03 18:51:22 Swahili j`ey: thanks! 2021-07-03 18:51:27 Lumpio- Then it's just a normal program that can print stuff, but it will still run when you run tests 2021-07-03 18:51:38 Swahili Lumpio-: ok :) 2021-07-03 18:51:45 Swahili Thank you very much! 2021-07-03 18:55:18 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 18:56:31 --> Notgnoshi (~nots@2001-48F8-8-40-D54D-A979-AEE-17D9-dynamic.midco.net) has joined ##rust 2021-07-03 18:56:55 --> nots (~nots@2001-48F8-8-40-D54D-A979-AEE-17D9-dynamic.midco.net) has joined ##rust 2021-07-03 18:57:01 <-- nots (~nots@2001-48F8-8-40-D54D-A979-AEE-17D9-dynamic.midco.net) has quit (Remote host closed the connection) 2021-07-03 18:58:57 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 272 seconds) 2021-07-03 19:00:15 --> dzugaru (~dzugaru@188.124.243.148) has joined ##rust 2021-07-03 19:00:23 <-- dzugaru (~dzugaru@188.124.243.148) has quit (Client Quit) 2021-07-03 19:00:29 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-03 19:05:55 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 256 seconds) 2021-07-03 19:07:48 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-03 19:08:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:12:02 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 265 seconds) 2021-07-03 19:13:18 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-03 19:14:57 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-07-03 19:17:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:21:30 <-- lf (~quassel@p200300d21f3a6800022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-03 19:22:17 --> lf (~quassel@p200300d21f10ef00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 19:23:00 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 19:25:35 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-03 19:26:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:31:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 19:34:27 --> sciencentistguy (~sciencent@hacksoc/ordinary-member) has joined ##rust 2021-07-03 19:36:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:40:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 19:45:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:46:45 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 19:49:30 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-03 19:49:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 19:50:44 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-03 19:52:08 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 272 seconds) 2021-07-03 19:52:26 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-03 19:54:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 19:55:29 meltyness Tv_ made it all the way from ip link of iproute2 to netlink -- all by myself 2021-07-03 19:56:28 <-- deepy (deepy@user/deepy) has quit (Read error: Connection reset by peer) 2021-07-03 19:57:03 --> deepy (deepy@user/deepy) has joined ##rust 2021-07-03 19:57:39 <-- Dijky (~Dijky@user/dijky) has quit (Ping timeout: 272 seconds) 2021-07-03 19:58:10 <-- wolfshappen (~waff@irc.furworks.de) has quit (Remote host closed the connection) 2021-07-03 19:58:22 --> Dijky (~Dijky@user/dijky) has joined ##rust 2021-07-03 19:58:42 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 19:58:55 <-- lambda (~weechat@cyka.blyat.vodka) has quit (Ping timeout: 272 seconds) 2021-07-03 19:59:03 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-07-03 19:59:03 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-07-03 19:59:24 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-03 19:59:26 --> wolfshappen (~waff@irc.furworks.de) has joined ##rust 2021-07-03 19:59:33 --> est31 (~est31@user/est31) has joined ##rust 2021-07-03 19:59:58 --> lambda (~weechat@cyka.blyat.vodka) has joined ##rust 2021-07-03 20:00:08 --> happy-dude (~happy-dud@2001:470:69fc:105::b4d7) has joined ##rust 2021-07-03 20:01:32 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-03 20:03:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:05:28 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 20:08:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 20:12:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:14:52 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-03 20:15:06 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 240 seconds) 2021-07-03 20:17:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 20:20:10 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 20:20:15 <-- canton7 (canton7@about/csharp/canton7) has quit (Quit: ZNC - http://znc.in) 2021-07-03 20:20:52 --> canton7 (~canton7@about/csharp/canton7) has joined ##rust 2021-07-03 20:21:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:25:38 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Remote host closed the connection) 2021-07-03 20:26:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 20:26:44 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 20:28:43 --> rjframe (~rjframe@c-68-38-42-188.hsd1.in.comcast.net) has joined ##rust 2021-07-03 20:28:46 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Remote host closed the connection) 2021-07-03 20:29:28 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 20:30:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:31:33 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-03 20:32:29 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 20:35:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-03 20:39:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:43:00 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 20:44:01 <-- sciencentistguy (~sciencent@hacksoc/ordinary-member) has quit (Ping timeout: 258 seconds) 2021-07-03 20:44:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 20:46:46 <-- Swahili (~Swahili@cpc153693-lewi20-2-0-cust508.2-4.cable.virginm.net) has quit (Remote host closed the connection) 2021-07-03 20:46:54 -- alip is now known as hayaliali 2021-07-03 20:47:05 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Remote host closed the connection) 2021-07-03 20:47:50 -- hayaliali is now known as alip-tmp 2021-07-03 20:48:42 <-- emerent (~quassel@p200300cd5703bb90ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-03 20:48:46 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-03 20:48:53 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 20:49:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 20:49:29 --> emerent (~quassel@p200300cd5703bb84ba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 20:53:34 -- alip-tmp is now known as alip 2021-07-03 20:53:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 20:55:27 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-03 20:56:08 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-03 20:56:30 --> willbush (~user@47.183.200.14) has joined ##rust 2021-07-03 20:56:47 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 268 seconds) 2021-07-03 20:58:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:02:43 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 21:04:11 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 268 seconds) 2021-07-03 21:07:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:09:46 <-- maelcum (~horst@2001:16b8:c1a4:f400:d66a:ff99:a8d6:6b83) has quit (Quit: Konversation terminated!) 2021-07-03 21:12:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 21:16:48 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:18:43 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-03 21:20:07 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 265 seconds) 2021-07-03 21:21:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-03 21:22:44 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-03 21:24:39 <-- meltyness (~meltyness@mobile-107-77-209-100.mobile.att.net) has quit (Quit: Client closed) 2021-07-03 21:25:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:28:21 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 21:30:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 21:33:49 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 256 seconds) 2021-07-03 21:34:51 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:35:12 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Quit: TK4E) 2021-07-03 21:35:37 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-03 21:36:36 --> TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has joined ##rust 2021-07-03 21:37:52 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-03 21:38:09 <-- TK4E (~TK4E@2409:8a55:4f12:3080:b73d:e613:5833:561) has quit (Client Quit) 2021-07-03 21:39:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-03 21:40:13 <-- jushur (~human@user/jushur) has quit (Quit: jushur) 2021-07-03 21:43:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:48:05 <-- lamawithonel (~lamawitho@c-73-133-248-198.hsd1.md.comcast.net) has quit (Quit: Konversation terminated!) 2021-07-03 21:48:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-03 21:48:44 --> neurocyte409 (~neurocyte@46.243.82.20) has joined ##rust 2021-07-03 21:48:44 <-- neurocyte409 (~neurocyte@46.243.82.20) has quit (Changing host) 2021-07-03 21:48:44 --> neurocyte409 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-03 21:50:58 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 21:51:03 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 268 seconds) 2021-07-03 21:51:03 -- neurocyte409 is now known as neurocyte40 2021-07-03 21:53:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-03 21:54:06 --> jushur (~human@user/jushur) has joined ##rust 2021-07-03 21:56:30 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 256 seconds) 2021-07-03 21:57:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-03 21:59:50 <-- rjframe (~rjframe@c-68-38-42-188.hsd1.in.comcast.net) has quit (Quit: Leaving) 2021-07-03 22:00:42 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 272 seconds) 2021-07-03 22:02:02 --> tsal (~tsal@user/tsal) has joined ##rust 2021-07-03 22:04:09 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-07-03 22:06:02 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-03 22:16:26 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-03 22:17:02 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-03 22:17:29 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-03 22:19:21 --> fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has joined ##rust 2021-07-03 22:21:34 <-- fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has quit (Client Quit) 2021-07-03 22:23:07 --> fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has joined ##rust 2021-07-03 22:25:24 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 272 seconds) 2021-07-03 22:26:43 <-- _________ (~nobody@user//x-7881368) has quit (Changing host) 2021-07-03 22:26:43 --> _________ (~nobody@user/noodly) has joined ##rust 2021-07-03 22:27:42 <-- jushur (~human@user/jushur) has quit (Quit: jushur) 2021-07-03 22:35:22 --> tims1 (~tims@203.221.207.62) has joined ##rust 2021-07-03 22:41:23 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-03 22:43:58 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-03 22:44:40 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 22:48:49 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-03 22:49:45 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 258 seconds) 2021-07-03 22:50:08 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 258 seconds) 2021-07-03 22:51:12 --> jushur (~human@user/jushur) has joined ##rust 2021-07-03 22:52:52 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-03 22:54:17 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Read error: Connection reset by peer) 2021-07-03 22:58:58 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 272 seconds) 2021-07-03 23:04:31 <-- Nixx (~quassel@bulbasaur.sjorsgielen.nl) has quit (Quit: No Ping reply in 180 seconds.) 2021-07-03 23:04:58 <-- skipwich (~skipwich@user/skipwich) has quit (Read error: Connection reset by peer) 2021-07-03 23:05:43 --> Nixx (~quassel@bulbasaur.sjorsgielen.nl) has joined ##rust 2021-07-03 23:08:54 --> xse_ (~xse@user/xse) has joined ##rust 2021-07-03 23:10:30 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-07-03 23:10:53 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-03 23:12:27 <-- xse (~xse@user/xse) has quit (Ping timeout: 268 seconds) 2021-07-03 23:22:53 --> gggp (~textual@106.37.74.209) has joined ##rust 2021-07-03 23:23:37 <-- gnomesort (~gnomesort@user/gnomesort) has quit (Quit: Goodbye, cruel world!) 2021-07-03 23:23:52 --> gnomesort (~gnomesort@user/gnomesort) has joined ##rust 2021-07-03 23:27:02 --> bahamat_ (~bahamat@64.30.129.150) has joined ##rust 2021-07-03 23:27:20 <-- gggp (~textual@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-07-03 23:28:04 <-- bahamat (~bahamat@64.30.129.150) has quit (Ping timeout: 252 seconds) 2021-07-03 23:28:04 -- bahamat_ is now known as bahamat 2021-07-03 23:28:36 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 23:31:02 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-03 23:34:07 --> Nyeogmi (~Nyeogmi@user/nyeogmi) has joined ##rust 2021-07-03 23:34:14 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-03 23:35:54 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-03 23:36:25 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-03 23:40:17 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-03 23:44:24 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-03 23:44:31 --> meandi2 (~meandi4@dyndsl-178-142-249-188.ewe-ip-backbone.de) has joined ##rust 2021-07-03 23:48:07 <-- meandi (~meandi4@dyndsl-178-142-252-142.ewe-ip-backbone.de) has quit (Ping timeout: 256 seconds) 2021-07-03 23:48:16 --> nate1 (~nate@108.233.125.227) has joined ##rust 2021-07-03 23:48:21 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-03 23:53:23 <-- nate1 (~nate@108.233.125.227) has quit (Ping timeout: 258 seconds) 2021-07-03 23:53:48 <-- timemage (timemage@user/timemage) has quit (Ping timeout: 256 seconds) 2021-07-03 23:53:57 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Remote host closed the connection) 2021-07-03 23:56:03 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-03 23:56:15 <-- gggp (~textual@60.10.194.47) has quit (Client Quit) 2021-07-03 23:59:58 <-- OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 252 seconds) 2021-07-04 00:06:15 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-04 00:10:36 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-07-04 00:11:46 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 00:27:29 --> saatii (~s@86FF52CD.dsl.pool.telekom.hu) has joined ##rust 2021-07-04 00:31:06 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 240 seconds) 2021-07-04 00:31:31 <-- saati (~s@86FF518C.dsl.pool.telekom.hu) has quit (Ping timeout: 265 seconds) 2021-07-04 00:36:28 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-04 00:39:07 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-04 00:41:53 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-04 00:44:44 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-04 00:44:47 -- alexxxxxey is now known as alexxey 2021-07-04 00:53:52 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-04 00:54:14 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-04 00:55:18 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-04 00:56:00 <-- gggp (~textual@36.112.135.215) has quit (Client Quit) 2021-07-04 00:56:18 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-04 01:01:54 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-04 01:03:34 <-- willbush (~user@47.183.200.14) has quit (Quit: ERC (IRC client for Emacs 28.0.50)) 2021-07-04 01:04:22 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 01:05:09 <-- cjb (~cjb@user/cjb) has quit (Client Quit) 2021-07-04 01:07:09 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 268 seconds) 2021-07-04 01:08:06 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-04 01:11:20 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-04 01:17:38 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-04 01:25:43 --> dcz_ (~dcz@dynamic-093-135-052-028.93.135.pool.telefonica.de) has joined ##rust 2021-07-04 01:28:26 <-- sgift (~madison@2001:a61:35b8:2401:add6:f278:97ee:e857) has quit (Read error: Permission denied) 2021-07-04 01:28:43 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 01:34:38 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-04 01:35:47 --> red1ynx (~Dzmitry@46.56.224.178) has joined ##rust 2021-07-04 01:37:18 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-04 01:43:01 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-07-04 01:47:53 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 265 seconds) 2021-07-04 01:49:03 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 01:54:00 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-04 01:57:55 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 02:02:01 --> trev (~trev@user/trev) has joined ##rust 2021-07-04 02:02:26 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-07-04 02:02:32 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 02:03:31 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-04 02:04:20 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-04 02:06:24 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 258 seconds) 2021-07-04 02:06:27 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-04 02:07:42 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-04 02:08:09 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 02:14:38 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-04 02:14:50 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 258 seconds) 2021-07-04 02:15:22 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-04 02:15:32 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Remote host closed the connection) 2021-07-04 02:18:22 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-04 02:21:57 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 02:22:54 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-04 02:23:29 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 02:27:29 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-04 02:34:37 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-07-04 02:37:00 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 02:44:26 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-04 02:46:56 --> gggp (~textual@36.112.134.194) has joined ##rust 2021-07-04 02:49:30 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 272 seconds) 2021-07-04 02:50:46 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 272 seconds) 2021-07-04 02:52:04 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-04 02:52:36 <-- gggp (~textual@36.112.134.194) has quit (Ping timeout: 268 seconds) 2021-07-04 02:57:44 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-04 02:57:48 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 03:04:17 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-04 03:10:24 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-04 03:17:57 <-- Fairy (~Fairy@2001:464a:4992:0:68c0:f021:7533:3c7e) has quit (Read error: Connection reset by peer) 2021-07-04 03:27:49 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 03:31:23 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-04 03:33:50 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-04 03:38:45 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-07-04 03:40:02 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-07-04 03:40:34 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-04 03:47:43 --> tmpm697 (~tmpm697@171.241.19.174) has joined ##rust 2021-07-04 03:48:18 --> Fairy (~Fairy@2001:464a:4992:0:cd20:3286:3c6e:4a1e) has joined ##rust 2021-07-04 03:49:08 <-- gggp (~textual@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-07-04 03:49:26 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 03:54:06 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-04 03:59:46 <-- red1ynx (~Dzmitry@46.56.224.178) has quit (Ping timeout: 252 seconds) 2021-07-04 04:03:36 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-04 04:04:34 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 04:12:30 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-07-04 04:13:37 <-- zaszi (~zaszi@user/zaszi) has quit (Quit: zaszi) 2021-07-04 04:14:04 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-07-04 04:14:51 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-07-04 04:15:09 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 04:18:52 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-04 04:20:07 <-- gggp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-04 04:21:20 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 272 seconds) 2021-07-04 04:21:20 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-04 04:22:48 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-04 04:34:31 <-- tmpm697 (~tmpm697@171.241.19.174) has quit (Quit: Lost terminal) 2021-07-04 04:48:21 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-04 04:53:35 --> ur5us_ (~ur5us@203.86.198.200) has joined ##rust 2021-07-04 04:54:43 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-04 04:58:38 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-04 05:00:01 --> img (~img@user/img) has joined ##rust 2021-07-04 05:00:21 <-- Nyeogmi (~Nyeogmi@user/nyeogmi) has quit (Ping timeout: 256 seconds) 2021-07-04 05:00:58 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 05:01:15 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 05:01:31 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-04 05:05:21 <-- img (~img@user/img) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-04 05:06:13 <-- Arnavion (arnavion@user/arnavion) has quit (Quit: Arnavion) 2021-07-04 05:06:44 --> img (~img@user/img) has joined ##rust 2021-07-04 05:09:54 <-- img (~img@user/img) has quit (Client Quit) 2021-07-04 05:11:16 --> img (~img@user/img) has joined ##rust 2021-07-04 05:11:18 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 05:15:02 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Remote host closed the connection) 2021-07-04 05:18:27 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-04 05:19:24 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-07-04 05:20:04 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (Ping timeout: 265 seconds) 2021-07-04 05:20:30 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-04 05:21:13 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-07-04 05:23:13 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-04 05:28:18 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-04 05:32:51 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-04 05:33:43 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-04 05:39:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 05:45:12 --> hegstal (~hegstal@2a02:c7f:7604:8a00:5760:9bdb:910c:2812) has joined ##rust 2021-07-04 05:47:12 <-- ur5us_ (~ur5us@203.86.198.200) has quit (Ping timeout: 252 seconds) 2021-07-04 05:53:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 05:57:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:01:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 06:05:02 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 06:06:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:08:42 <-- xsperry (~as@user/xsperry) has quit (Remote host closed the connection) 2021-07-04 06:09:16 --> xsperry (~as@user/xsperry) has joined ##rust 2021-07-04 06:11:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 06:15:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:20:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 06:21:22 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-04 06:24:28 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:29:00 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-04 06:33:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:38:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 06:41:56 <-- gggp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-04 06:42:26 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 06:42:43 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 06:42:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:44:09 --> gggp (~textual@60.10.194.47) has joined ##rust 2021-07-04 06:47:08 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-04 06:47:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 06:48:15 <-- gggp (~textual@60.10.194.47) has quit (Remote host closed the connection) 2021-07-04 06:49:44 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-04 06:49:47 --> gggp (~textual@60.10.23.171) has joined ##rust 2021-07-04 06:51:52 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 06:52:26 --> koishi (uid160860@wikimedia/Stang) has joined ##rust 2021-07-04 06:52:37 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-04 06:55:08 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-04 06:56:18 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-04 06:59:11 <-- gggp (~textual@60.10.23.171) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-04 07:01:00 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:05:01 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 258 seconds) 2021-07-04 07:05:26 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 07:05:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-04 07:05:43 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 07:07:05 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-04 07:07:54 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Read error: Connection reset by peer) 2021-07-04 07:10:01 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-07-04 07:10:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:14:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 07:16:36 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-07-04 07:19:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:20:00 --> frostschutz (~frostschu@2a01:c23:804b:7800:838d:9dc5:8f51:a644) has joined ##rust 2021-07-04 07:24:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 07:28:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:28:27 --> mpt (~tom@2a02:908:1862:49e0::8) has joined ##rust 2021-07-04 07:28:31 --> zack (~zack@softwareheritage/zack) has joined ##rust 2021-07-04 07:33:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 07:36:23 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-04 07:37:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:38:59 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-04 07:39:04 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-04 07:40:26 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 07:40:43 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 07:41:28 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-04 07:42:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-04 07:43:26 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-04 07:46:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:48:00 --> bikeshedder (~bikeshedd@2001:a62:15f0:e501:f02b:9c99:7ef1:aff5) has joined ##rust 2021-07-04 07:48:10 --> OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has joined ##rust 2021-07-04 07:49:34 --> maelcum (~horst@2001:16b8:c1bc:ee00:ec89:8726:36df:6e3) has joined ##rust 2021-07-04 07:51:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 07:55:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 07:57:41 --> gggp (~textual@36.112.135.215) has joined ##rust 2021-07-04 07:58:45 <-- gggp (~textual@36.112.135.215) has quit (Client Quit) 2021-07-04 08:00:30 <-- lord| (~lordpipe@user/lordpipe) has quit (Quit: https://i.imgur.com/xacQ09F.mp4) 2021-07-04 08:00:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-04 08:04:13 --> Trieste (T@user/pilgrim) has joined ##rust 2021-07-04 08:04:28 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-07-04 08:04:42 --> DRG (~dev@2a02-a454-4540-1-dc23-16be-3eed-f6c0.fixed6.kpn.net) has joined ##rust 2021-07-04 08:04:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:05:52 DRG Hi! Can someone help me with serde? I'm working with an API, and it returns a JSON, like this "p": {"SOME_ID": "succes"}, that ID, is known at run time, but not at compile time, how would i deserialize that with serde? 2021-07-04 08:06:18 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 240 seconds) 2021-07-04 08:06:38 DRG That JSON is obviously way more complex, but that's the simplest relevant part, and i really need to desrialize that part 2021-07-04 08:06:41 Mutabah Probably just using `serde_json` 2021-07-04 08:06:50 DRG duhh 2021-07-04 08:07:03 DRG It's about deserializing that ID 2021-07-04 08:07:09 Mutabah Or, maybe `#[serde(deserialize_with)]`? 2021-07-04 08:07:19 Mutabah Depends on what structure you want to put it int 2021-07-04 08:09:07 DRG the simplest way i could name the JSON is "SOMEID": "a random string", the problem is, that with serde, if you want to deserialize, you'd make a struct or something, and in that struct you'd have the content of that ID to deserialize. 2021-07-04 08:09:10 DRG So that would be: 2021-07-04 08:09:16 DRG Struct Deser {} 2021-07-04 08:09:19 DRG F 2021-07-04 08:09:27 DRG Struct deser {id343: String} 2021-07-04 08:09:37 DRG but that only works if you know the ID at compile time 2021-07-04 08:09:48 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 08:11:04 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-04 08:11:06 Mutabah Is that ID dynamic, or runtime static? Is it alone in the structure? 2021-07-04 08:11:37 bikeshedder DRG, the easiest way would be to use `serde_json::Value` for that. 2021-07-04 08:11:53 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-04 08:11:58 DRG That Id is know at runtime, but not static 2021-07-04 08:12:02 Mutabah You could have `#[serde(inline)] some_id_value: SomeId,` and have a custom `Deserialize` impl for `SomeId` 2021-07-04 08:12:26 DRG I make 10k requests to an API, with 10k different ID's, but the ID in the response is equal to the ID i send to the apI 2021-07-04 08:12:26 Mutabah s/inline/flatten/ 2021-07-04 08:12:38 bikeshedder Ah, I see what your problem is (and what the API is doing) 2021-07-04 08:12:42 <-- mpt (~tom@2a02:908:1862:49e0::8) has quit (Ping timeout: 240 seconds) 2021-07-04 08:12:43 DRG but that Id is different each request, because I want different data 2021-07-04 08:13:32 bikeshedder DRG, the easiest way would be use a `HashMap` for that. 2021-07-04 08:13:53 DRG Lets say it's an api which returns the type of tree, i'd request "api.tree.org/tree?id=ID" and it would return ""id": {"spec 1": {"id": id, "type": birch} } 2021-07-04 08:14:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:14:43 Mutabah Is it just the top level? In which case, grab as a `serde_json::Value`, get the member you want, then deserialise 2021-07-04 08:15:34 <-- osa1 (~osa1@178.233.26.94) has quit (Quit: osa1) 2021-07-04 08:15:47 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-07-04 08:15:52 bikeshedder DRG, I'd opt for a `HashMap` and at the code level assert that it just contains one entry. If you don't like the extra HashMap allocation you need to create a custom struct and implement the Deserialize trait for it. 2021-07-04 08:16:10 <-- fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has quit (Quit: WeeChat 3.2) 2021-07-04 08:17:37 -- alexxxxxey is now known as alexxey 2021-07-04 08:17:38 DRG I though about using a hashmap, but the API is even worse, Let me make a full example, because you can (and have to) use multiple Id's per request: api.tree.org/tree?idOne=id1&idTwo=id2&idThree=id3. Then the JSON wil return a response with "RESPONSE": {Leaftype: {"id1": {name: "leafType", values: {"id1": {"veins": false, "color":green}}}}} 2021-07-04 08:17:56 DRG and then that repeats for every ID 2021-07-04 08:18:06 cehteh mhm dunno serde that much, but i'd expected that you can do something like struct Identifier { id: String, success: bool } and create some custom serializer for that? 2021-07-04 08:18:25 cehteh (or maybe even u64 or whatever works for identifier) 2021-07-04 08:18:28 DRG no you can't, because then id would actually have to be named ID in th JSON 2021-07-04 08:18:47 DRG but its named "2324243" or "24254" or "24098" or "97843" 2021-07-04 08:18:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 08:18:58 cehteh cant you define custom serializers for single structs? 2021-07-04 08:19:13 DRG You can, but I'm lazy :P 2021-07-04 08:19:14 --> red1ynx (~Dzmitry@46.56.228.28) has joined ##rust 2021-07-04 08:19:21 cehteh lol well 2021-07-04 08:19:55 cehteh when it needs to be done then you have to do it, or at least give crates.io a search, i bet someone did that before 2021-07-04 08:20:58 DRG That API is just pure trash, maybe I'm better of trying to discover some private API they use, which returns usable json 2021-07-04 08:23:12 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:24:55 --> starblue (~juergen@dslb-094-221-178-013.094.221.pools.vodafone-ip.de) has joined ##rust 2021-07-04 08:27:35 --> chddr (~Thunderbi@91.226.35.178) has joined ##rust 2021-07-04 08:28:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 08:28:37 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 08:28:40 Mutabah Custom deserialiser (you just need one), or go though a HashMap to start with 2021-07-04 08:32:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:37:01 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 08:38:55 <-- kmh (~kmh@p200300df5f069e001103edbbdf5759c4.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-07-04 08:38:57 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-04 08:39:13 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 08:41:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:42:00 --> cdown (~cdown@89.32.122.5) has joined ##rust 2021-07-04 08:44:14 --> varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has joined ##rust 2021-07-04 08:46:13 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 08:48:31 --> kmh (~kmh@p200300df5f069e00d0e5bde3844d0c37.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 08:50:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 08:50:55 -- AoiE is now known as aoei 2021-07-04 08:54:05 --> Guest9474 (~Guest94@mobile-107-77-209-100.mobile.att.net) has joined ##rust 2021-07-04 08:54:13 <-- Guest9474 (~Guest94@mobile-107-77-209-100.mobile.att.net) has quit (Client Quit) 2021-07-04 08:54:34 --> meltyness (~meltyness@user/meltyness) has joined ##rust 2021-07-04 08:55:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 08:57:04 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-07-04 08:59:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:05:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 09:08:32 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-04 09:08:49 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:12:28 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 268 seconds) 2021-07-04 09:13:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 09:13:53 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-04 09:18:00 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:18:42 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-04 09:20:18 <-- varioust (varioust@cpe-108-167-11-88.neb.res.rr.com) has quit (Ping timeout: 240 seconds) 2021-07-04 09:22:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-04 09:23:18 <-- Hafydd (~Hafydd@user/hafydd) has quit (Quit: WeeChat 3.2) 2021-07-04 09:23:27 --> Hafydd (jc@user/hafydd) has joined ##rust 2021-07-04 09:25:58 <-- OneFlyingWaffle (FlyingWaff@gateway/vpn/protonvpn/flyingwaffle) has quit (Ping timeout: 272 seconds) 2021-07-04 09:27:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:27:32 <-- Hafydd (jc@user/hafydd) has quit (Client Quit) 2021-07-04 09:27:40 --> Hafydd (jc@user/hafydd) has joined ##rust 2021-07-04 09:29:48 <-- Hafydd (jc@user/hafydd) has quit (Client Quit) 2021-07-04 09:29:55 --> Hafydd (jc@user/hafydd) has joined ##rust 2021-07-04 09:31:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-04 09:36:16 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:36:18 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-07-04 09:37:21 <-- Hafydd (jc@user/hafydd) has quit (Quit: WeeChat 3.2) 2021-07-04 09:37:29 --> Hafydd (~Hafydd@user/hafydd) has joined ##rust 2021-07-04 09:37:55 bikeshedder DRG, just use a `HashMap` if you're lazy. It will always contain just one entry... call it the day then. ;-) 2021-07-04 09:39:01 <-- bikeshedder (~bikeshedd@2001:a62:15f0:e501:f02b:9c99:7ef1:aff5) has quit (Quit: Leaving) 2021-07-04 09:40:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-04 09:45:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:45:46 <-- red1ynx (~Dzmitry@46.56.228.28) has quit (Ping timeout: 268 seconds) 2021-07-04 09:48:45 --> red1ynx (~Dzmitry@46.56.228.28) has joined ##rust 2021-07-04 09:50:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 09:52:55 --> varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has joined ##rust 2021-07-04 09:53:19 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-04 09:54:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 09:58:22 <-- ibigbug (~thelounge@115.130.21.65) has quit (Ping timeout: 246 seconds) 2021-07-04 09:58:36 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-04 09:58:45 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-04 09:59:03 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 09:59:50 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-04 10:02:53 <-- varioust (~varioust@72-46-56-102.lnk.ne.static.allophone.net) has quit (Remote host closed the connection) 2021-07-04 10:03:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:07:10 --> night_wulfe_ (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has joined ##rust 2021-07-04 10:07:31 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-04 10:08:15 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 10:10:56 <-- night_wulfe (~wulfe@cpe-174-103-156-213.cinci.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-07-04 10:11:26 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 10:11:34 <-- chddr (~Thunderbi@91.226.35.178) has quit (Ping timeout: 272 seconds) 2021-07-04 10:11:43 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 10:12:49 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:16:20 --> ibigbug (~thelounge@115.128.165.72) has joined ##rust 2021-07-04 10:17:27 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 10:17:48 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 252 seconds) 2021-07-04 10:20:04 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 10:21:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:22:27 cehteh test result: FAILED. 13 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s 2021-07-04 10:22:33 cehteh break even!!! 2021-07-04 10:22:53 meltyness are we refactoring? 2021-07-04 10:23:10 cehteh no TDD :) just written the tests 2021-07-04 10:23:30 --> ElsieHupp[m] (~elsiehupp@2001:470:69fc:105::b5cc) has joined ##rust 2021-07-04 10:23:40 cehteh now the real work begins 2021-07-04 10:24:38 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 268 seconds) 2021-07-04 10:26:25 --> chddr (~Thunderbi@91.226.35.178) has joined ##rust 2021-07-04 10:26:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 10:28:18 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-04 10:30:11 <-- red1ynx (~Dzmitry@46.56.228.28) has quit (Ping timeout: 268 seconds) 2021-07-04 10:31:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:31:12 --> red1ynx (~Dzmitry@46.56.240.87) has joined ##rust 2021-07-04 10:34:51 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 10:35:50 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-07-04 10:36:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 10:36:43 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-04 10:39:35 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-04 10:40:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:41:30 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Ping timeout: 256 seconds) 2021-07-04 10:45:03 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 10:49:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:49:34 <-- cdown (~cdown@89.32.122.5) has quit (Quit: https://chrisdown.name) 2021-07-04 10:51:59 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-04 10:53:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 10:56:11 <-- zaszi (~zaszi@user/zaszi) has quit (Read error: Connection reset by peer) 2021-07-04 10:58:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 10:59:03 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-04 10:59:59 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-07-04 11:03:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 11:07:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:08:06 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Read error: Connection reset by peer) 2021-07-04 11:12:25 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 11:15:31 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 11:16:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:17:16 <-- red1ynx (~Dzmitry@46.56.240.87) has quit (Quit: Konversation terminated!) 2021-07-04 11:17:49 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 11:20:09 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-04 11:21:36 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 11:23:06 <-- Notgnoshi (~nots@2001-48F8-8-40-D54D-A979-AEE-17D9-dynamic.midco.net) has quit (Quit: Leaving) 2021-07-04 11:23:54 --> Trieste_ (T@user/pilgrim) has joined ##rust 2021-07-04 11:24:32 <-- Trieste (T@user/pilgrim) has quit (Ping timeout: 258 seconds) 2021-07-04 11:25:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:26:00 <-- eroux (~eroux@102-65-81-156.ftth.web.africa) has quit (Ping timeout: 252 seconds) 2021-07-04 11:30:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-04 11:32:28 <-- chddr (~Thunderbi@91.226.35.178) has quit (Ping timeout: 268 seconds) 2021-07-04 11:32:39 --> eroux (~eroux@102-65-85-71.ftth.web.africa) has joined ##rust 2021-07-04 11:33:05 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 268 seconds) 2021-07-04 11:34:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:35:32 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-04 11:39:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-04 11:44:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:44:41 <-- maelcum (~horst@2001:16b8:c1bc:ee00:ec89:8726:36df:6e3) has quit (Quit: Konversation terminated!) 2021-07-04 11:45:49 --> maelcum (~horst@2001:16b8:c1bc:ee00:85c9:c41:69d3:d30a) has joined ##rust 2021-07-04 11:47:42 --> Notgnoshi (~nots@2001-48F8-8-40-3080-B2E0-C715-A48E-dynamic.midco.net) has joined ##rust 2021-07-04 11:49:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 11:49:18 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-04 11:49:37 --> ibigbug1 (~thelounge@115.131.11.47) has joined ##rust 2021-07-04 11:50:27 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-04 11:50:36 <-- ibigbug (~thelounge@115.128.165.72) has quit (Ping timeout: 265 seconds) 2021-07-04 11:50:36 -- ibigbug1 is now known as ibigbug 2021-07-04 11:51:12 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-04 11:51:33 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-04 11:52:22 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-04 11:52:53 --> jinsun_ (~quassel@user/jinsun) has joined ##rust 2021-07-04 11:53:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 11:53:17 <-- eroux (~eroux@102-65-85-71.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-07-04 11:53:28 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 256 seconds) 2021-07-04 11:54:31 --> eroux (~eroux@102-65-85-216.ftth.web.africa) has joined ##rust 2021-07-04 11:56:19 --> timemage (timemage@user/timemage) has joined ##rust 2021-07-04 11:57:51 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 12:00:13 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-04 12:02:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:07:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-04 12:09:07 --> meeg_leeto (~miguelmur@user/miguelmurca) has joined ##rust 2021-07-04 12:09:29 <-- meeg_leeto (~miguelmur@user/miguelmurca) has left ##rust 2021-07-04 12:11:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:14:03 --> quechon (~Android@c-174-58-3-149.hsd1.fl.comcast.net) has joined ##rust 2021-07-04 12:14:44 quechon wat up good people 2021-07-04 12:16:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-04 12:20:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:25:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-04 12:26:24 <-- mike-burns (~mike-burn@safeword.mike-burns.com) has quit (Quit: WeeChat 2.8) 2021-07-04 12:28:38 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-04 12:29:00 <-- tims1 (~tims@203.221.207.62) has quit (Ping timeout: 272 seconds) 2021-07-04 12:30:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:30:31 db48x the daystar, some clouds 2021-07-04 12:30:47 --> mike-burns (~mike-burn@safeword.mike-burns.com) has joined ##rust 2021-07-04 12:30:58 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 12:31:23 <-- plsm_ (~plsm@user/plsm) has quit (Quit: leaving) 2021-07-04 12:33:50 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-07-04 12:34:45 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-04 12:35:16 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 12:39:12 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:39:42 --> Nyeogmi (~Nyeogmi@2601:645:8700:bea0:bcb8:b9ef:af27:7b7c) has joined ##rust 2021-07-04 12:41:34 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-07-04 12:43:03 -- jinsun_ is now known as jinsun 2021-07-04 12:43:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-04 12:44:03 <-- Nyeogmi (~Nyeogmi@2601:645:8700:bea0:bcb8:b9ef:af27:7b7c) has quit (Remote host closed the connection) 2021-07-04 12:44:15 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-04 12:44:26 --> Nyeogmi (~Nyeogmi@2601:645:8700:bea0:bcb8:b9ef:af27:7b7c) has joined ##rust 2021-07-04 12:45:40 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-04 12:47:51 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 12:53:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 12:55:46 <-- Nyeogmi (~Nyeogmi@2601:645:8700:bea0:bcb8:b9ef:af27:7b7c) has quit (Changing host) 2021-07-04 12:55:46 --> Nyeogmi (~Nyeogmi@user/nyeogmi) has joined ##rust 2021-07-04 12:56:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 13:01:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-04 13:04:23 --> zikey (~zikey@196.112.59.208) has joined ##rust 2021-07-04 13:05:58 <-- zikey (~zikey@196.112.59.208) has quit (Client Quit) 2021-07-04 13:06:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-04 13:06:31 <-- jinsun (~quassel@user/jinsun) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-07-04 13:06:52 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-04 13:07:54 <-- jinsun (~quassel@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-04 13:08:17 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-04 13:08:42 <-- jinsun (~quassel@user/jinsun) has quit (Client Quit) 2021-07-04 13:09:03 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-04 13:10:05 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Read error: No route to host) 2021-07-04 13:11:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-04 13:11:26 --> diophantoz (~dz@user/diophantoz) has joined ##rust 2021-07-04 13:12:03 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-04 13:14:32 <-- mwehner (~mwehner@li910-8.members.linode.com) has quit (Ping timeout: 252 seconds) 2021-07-04 13:15:01 --> mwehner (~mwehner@li910-8.members.linode.com) has joined ##rust 2021-07-04 13:15:16 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-07-04 13:25:21 --> Yruama (~Yruama@lfbn-gre-1-204-8.w90-112.abo.wanadoo.fr) has joined ##rust 2021-07-04 13:25:32 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Ping timeout: 252 seconds) 2021-07-04 13:30:08 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-04 13:30:49 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-07-04 13:40:45 -- CommunistWolf is now known as MrWolf 2021-07-04 13:42:44 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 265 seconds) 2021-07-04 13:45:46 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-04 13:46:16 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 272 seconds) 2021-07-04 13:47:05 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 265 seconds) 2021-07-04 13:47:46 -- MrWolf is now known as CommunistWolf 2021-07-04 13:48:57 <-- quechon (~Android@c-174-58-3-149.hsd1.fl.comcast.net) has quit (Quit: -a- IRC for Android 2.1.59) 2021-07-04 14:03:14 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-04 14:13:44 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-04 14:16:34 -- night_wulfe_ is now known as night_wulfe 2021-07-04 14:31:56 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 14:32:13 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 14:33:19 meltyness does runtime reflection equate to bad design? :< 2021-07-04 14:35:43 mike-burns It has tradeoffs, and you have to evaluate those tradeoffs for your project. 2021-07-04 14:38:54 dcz_ is there anyone from the risc-v working group here? I'm wondering how easy/hard it is to implement an USB abstraction for gd32v103 2021-07-04 14:39:10 dcz_ thinking about copy-pasting the stm32 code 2021-07-04 14:39:45 --> r[]n|n (~r]n|n@2601:283:4602:43e0:4ce:9c21:cd23:be90) has joined ##rust 2021-07-04 14:40:33 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 14:43:07 <-- r[]n|n (~r]n|n@2601:283:4602:43e0:4ce:9c21:cd23:be90) has quit (Client Quit) 2021-07-04 14:43:15 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-04 14:45:37 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-04 14:50:48 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 14:52:02 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: This computer has gone to sleep) 2021-07-04 14:53:09 -- jmcantrell is now known as Guest4023 2021-07-04 14:53:09 -- __jmcantrell__ is now known as jmcantrell 2021-07-04 14:53:49 <-- gnomesort (~gnomesort@user/gnomesort) has quit (Quit: Goodbye, cruel world!) 2021-07-04 14:54:02 <-- Guest4023 (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-04 15:02:16 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Ping timeout: 272 seconds) 2021-07-04 15:05:17 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-04 15:05:55 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-04 15:11:06 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-07-04 15:13:25 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-04 15:14:05 --> safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has joined ##rust 2021-07-04 15:19:03 safinaskar is case of first letter of identificator important in rust? 2021-07-04 15:20:09 j`ey safinaskar: https://rust-lang.github.io/api-guidelines/naming.html 2021-07-04 15:20:56 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 15:21:13 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 15:21:50 safinaskar j`ey: thanks, but this is merely advice, and if i violate it, my programs will still compile? 2021-07-04 15:22:26 j`ey yes 2021-07-04 15:22:27 danieldg all naming policies are just advisory, yes 2021-07-04 15:24:07 safinaskar and all this conventions are checked by compiler in default warning level? 2021-07-04 15:24:29 j`ey yeah 2021-07-04 15:24:40 safinaskar j`ey: danieldg: ok, thanks 2021-07-04 15:25:02 <-- safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has left ##rust 2021-07-04 15:25:06 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-04 15:27:06 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-07-04 15:27:43 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-04 15:31:23 <-- mike-burns (~mike-burn@safeword.mike-burns.com) has quit (Quit: WeeChat 2.8) 2021-07-04 15:33:15 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-04 15:36:48 --> safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has joined ##rust 2021-07-04 15:37:13 safinaskar is it possible to iterate over HashMap using for-loop? 2021-07-04 15:37:25 j`ey safinaskar: yes 2021-07-04 15:37:50 j`ey safinaskar: https://doc.rust-lang.org/std/collections/struct.HashMap.html example near the top of the page 2021-07-04 15:37:58 j`ey sorry https://doc.rust-lang.org/std/collections/struct.HashMap.html#examples near the bottom 2021-07-04 15:38:39 safinaskar j`ey: thanks 2021-07-04 15:38:48 <-- safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has left ##rust 2021-07-04 15:39:27 <-- eroux (~eroux@102-65-85-216.ftth.web.africa) has quit (Ping timeout: 258 seconds) 2021-07-04 15:40:39 --> eroux (~eroux@102-65-82-79.ftth.web.africa) has joined ##rust 2021-07-04 15:47:53 <-- dcz_ (~dcz@dynamic-093-135-052-028.93.135.pool.telefonica.de) has quit (Ping timeout: 258 seconds) 2021-07-04 15:49:46 --> treere (~treere@93-42-46-7.ip85.fastwebnet.it) has joined ##rust 2021-07-04 15:52:02 <-- treere (~treere@93-42-46-7.ip85.fastwebnet.it) has quit (Client Quit) 2021-07-04 15:52:15 --> treere (~treere@93-42-46-7.ip85.fastwebnet.it) has joined ##rust 2021-07-04 15:54:23 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-04 15:55:26 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 256 seconds) 2021-07-04 15:57:12 --> betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has joined ##rust 2021-07-04 16:00:22 <-- treere (~treere@93-42-46-7.ip85.fastwebnet.it) has quit (Quit: Leaving) 2021-07-04 16:03:13 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-07-04 16:07:56 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 16:08:13 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 16:10:03 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 16:13:50 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-04 16:15:06 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-04 16:15:08 --> paule (~paule@ppp-93-104-177-28.dynamic.mnet-online.de) has joined ##rust 2021-07-04 16:16:46 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 252 seconds) 2021-07-04 16:17:26 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-04 16:17:59 <-- cehteh (~ct@i59F7259B.versanet.de) has quit (Ping timeout: 268 seconds) 2021-07-04 16:18:40 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-04 16:19:18 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 16:19:43 --> anchorite (~anchorite@93.123.50.44) has joined ##rust 2021-07-04 16:22:37 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 256 seconds) 2021-07-04 16:27:19 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-04 16:27:30 <-- euandreh (~euandreh@2804:14c:33:9fe5:af42:e045:e98b:4388) has quit (Ping timeout: 240 seconds) 2021-07-04 16:28:43 --> euandreh (~euandreh@2804:14c:33:9fe5:5705:7057:8694:6ccc) has joined ##rust 2021-07-04 16:34:33 --> cehteh (~ct@i59F7259B.versanet.de) has joined ##rust 2021-07-04 16:35:59 <-- euandreh (~euandreh@2804:14c:33:9fe5:5705:7057:8694:6ccc) has quit (Quit: WeeChat 3.2) 2021-07-04 16:37:34 --> euandreh (~euandreh@2804:14c:33:9fe5:5705:7057:8694:6ccc) has joined ##rust 2021-07-04 16:40:29 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-04 16:41:54 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 240 seconds) 2021-07-04 16:43:24 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 16:46:35 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 16:46:43 --> sklv (~sklv@gateway/tor-sasl/sklv) has joined ##rust 2021-07-04 16:54:18 --> mike-burns (~mike-burn@safeword.mike-burns.com) has joined ##rust 2021-07-04 16:58:42 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-04 16:59:46 <-- anchorite (~anchorite@93.123.50.44) has quit (Remote host closed the connection) 2021-07-04 17:01:48 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 17:02:59 --> jleightcap2 (~jleightca@user/jleightcap) has joined ##rust 2021-07-04 17:05:33 meltyness when the borrow checker lets you win 2021-07-04 17:06:15 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 256 seconds) 2021-07-04 17:06:38 meltyness is there a good way to tell if lifetimes let me create a memory leak? 2021-07-04 17:07:09 GreenJello they don't impact behavior 2021-07-04 17:07:31 meltyness hm? 2021-07-04 17:07:52 GreenJello lifetimes just determine whether the code compiles or not 2021-07-04 17:09:15 --> jleightcap (~jleightca@user/jleightcap) has joined ##rust 2021-07-04 17:09:25 GreenJello if you use them incorrectly, but it still compiles, then it's the same as using them correctly (except that it'll be overly restrictive when you try to change the code later) 2021-07-04 17:09:34 danieldg meltyness: memory leaks only happen when ownership changes, lifetimes are all about borrows 2021-07-04 17:11:39 saatii is there anything else that can cause a leak apart from (a)rc circles and intententional use of leak methods? 2021-07-04 17:12:30 <-- jleightcap2 (~jleightca@user/jleightcap) has quit (Ping timeout: 252 seconds) 2021-07-04 17:13:05 GreenJello with a fairly strict definition of memory leaks, it's that and other things similar to leak, like various into_raw methods 2021-07-04 17:13:28 GreenJello (if you never rebuild the things and drop it properly) 2021-07-04 17:14:52 meltyness hmm -- well it doesn't seem to leak the way it's written 2021-07-04 17:15:22 meltyness I guess I just need to trace the code to understand why those lifetimes were being required of the compiler 2021-07-04 17:15:29 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-04 17:15:41 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Read error: Connection reset by peer) 2021-07-04 17:17:20 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 265 seconds) 2021-07-04 17:19:11 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-04 17:23:49 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 256 seconds) 2021-07-04 17:23:50 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 256 seconds) 2021-07-04 17:24:15 --> safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has joined ##rust 2021-07-04 17:25:19 safinaskar is there some concise article on placing "&" in for loop syntax and performance implications of that? 2021-07-04 17:26:34 danieldg safinaskar: into_iter vs iter (or &T's into_iter) 2021-07-04 17:27:20 danieldg ownership vs borrows; for things like vec of Copy data it's likely to optimize to the same thing 2021-07-04 17:28:44 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-04 17:29:18 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 17:29:58 <-- a7rs (~a7rs@86.10.115.139) has quit (Client Quit) 2021-07-04 17:30:21 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 17:30:39 <-- a7rs (~a7rs@86.10.115.139) has quit (Client Quit) 2021-07-04 17:31:44 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-04 17:34:33 --> jleightcap2 (~jleightca@user/jleightcap) has joined ##rust 2021-07-04 17:36:20 <-- kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-04 17:37:30 <-- jleightcap (~jleightca@user/jleightcap) has quit (Ping timeout: 240 seconds) 2021-07-04 17:38:21 --> kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has joined ##rust 2021-07-04 17:38:28 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-04 17:39:28 --> Guest3143 (~Guest31@122-151-246-107.sta.wbroadband.net.au) has joined ##rust 2021-07-04 17:42:15 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-04 17:45:50 Guest3143 coming from a c# background, would you recommend writing rust with a LINQ equivalent or to adopt a different mindset? 2021-07-04 17:47:20 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-04 17:50:52 safinaskar is there a way to indicate in source itself that this is rust 2018? 2021-07-04 17:51:21 est31 no 2021-07-04 17:51:37 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-04 17:52:06 est31 it's either indicated by a parameter to rustc 2021-07-04 17:52:33 est31 or by some incantation in your build system (that then passes that param) 2021-07-04 17:52:57 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-04 17:53:08 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-04 17:53:14 --> sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has joined ##rust 2021-07-04 17:54:00 jpds It's also set in Cargo.toml ? 2021-07-04 17:54:23 j`ey that's the incantation in the build system :P 2021-07-04 17:56:09 <-- Guest3143 (~Guest31@122-151-246-107.sta.wbroadband.net.au) has quit (Quit: Client closed) 2021-07-04 17:56:33 est31 yup 2021-07-04 17:59:44 est31 in fuchsia, it's in the build.gn https://fuchsia.googlesource.com/fuchsia/+/cb1ce55ac9ff4abd13a7ae8ac1a5ff9f3056d9e8/src/power/battery-manager/battery-cli/BUILD.gn#11 2021-07-04 18:02:00 saatii what's a .gn? 2021-07-04 18:02:49 j`ey gn build system 2021-07-04 18:02:56 j`ey like a makefile 2021-07-04 18:03:16 j`ey (well gn is a meta build system since it generates ninja, but close enough) 2021-07-04 18:04:12 jpds Needs more gin 2021-07-04 18:04:44 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-04 18:21:55 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-04 18:27:07 safinaskar is there a way to specify rustc params at the top of source? 2021-07-04 18:27:18 safinaskar in haskell i can do this using OPTIONS_GHC 2021-07-04 18:27:26 --> meeg_leeto (~miguelmur@user/miguelmurca) has joined ##rust 2021-07-04 18:27:51 danieldg I think you have to use Cargo.toml for that 2021-07-04 18:28:50 j`ey .cargo/config.toml 2021-07-04 18:30:49 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 18:32:45 --> mountolive (~mountoliv@255.pool213-77-197.dynamic.orange.es) has joined ##rust 2021-07-04 18:33:01 safinaskar ok 2021-07-04 18:35:24 <-- safinaskar (~safinaska@109-252-90-89.nat.spd-mgts.ru) has left ##rust 2021-07-04 18:38:13 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-04 18:45:00 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-04 18:47:44 <-- meeg_leeto (~miguelmur@user/miguelmurca) has quit (Quit: The treasure, it's in-) 2021-07-04 18:51:21 <-- betelgeuse (~john2gb@94-225-47-8.access.telenet.be) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-04 19:09:27 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 19:10:58 jeho2 just wrote and rewrote an implementation for an AVL tree about 5 times until I figured out the cleanest least noisy way of doing it. 2021-07-04 19:11:29 -- jeho2 is now known as jeho 2021-07-04 19:11:44 <-- jeho (~jehoshaph@c-24-21-32-6.hsd1.or.comcast.net) has quit (Quit: Leaving) 2021-07-04 19:12:00 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-04 19:12:51 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 265 seconds) 2021-07-04 19:13:08 jeho got rid of all the unnecessary overhead with shared smart pointers.. implemented my own safe pointer type 2021-07-04 19:13:51 jeho eliminated the extra verbosity that I usually have with rust 2021-07-04 19:16:58 meltyness I've got an extra Rc strong bouncing around but I'm not sure where :( 2021-07-04 19:17:26 --> gcd (gd@104-9-69-236.lightspeed.nsvltn.sbcglobal.net) has joined ##rust 2021-07-04 19:18:39 --> tims1 (~tims@110-174-254-159.static.tpgi.com.au) has joined ##rust 2021-07-04 19:20:42 <-- lf (~quassel@p200300d21f10ef00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-04 19:20:54 meltyness oh hey -- found it! 2021-07-04 19:21:25 --> lf (~quassel@p200300d21f3e9b00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 19:21:51 jeho in C++ i used to override the new keyword to create an entry in a vector for each new invoked with other metadata, and override delete to remove the entries from the vector.. and put some extra code in to list all the un deleted pointers when closing the app to find memory leaks 2021-07-04 19:24:09 meltyness Isn't access in a vector O(N) ? 2021-07-04 19:24:39 jeho no.. O(1) for accesses 2021-07-04 19:24:48 jeho O(N) for insertions and deletions 2021-07-04 19:25:33 jeho i used a debug flag so new/delete wouldn't be overridden in release builds 2021-07-04 19:27:26 meltyness I got a neatly extensible shell put together that doesn't have any dependencies, so that's kind of a victory. 2021-07-04 19:29:00 jeho well done 2021-07-04 19:31:16 jeho i suppose if ever Rc was driving me nuts with a leak somewhere I'd just take the Rc code and put in its own .clone() method to track where the new instances are coming from 2021-07-04 19:33:20 meltyness I was struggling with downcasting 2021-07-04 19:34:11 meltyness since part of that neat extensibility means some commands can have attached functions, and other commands change an outer state, based on the message. 2021-07-04 19:34:20 jeho for my avl tree i got away with only needing Box<>.. with the Tree being an enum of Filled(Box>) or Empty.. and implemented Deref on Tree so I could access the fields of Node without extra code 2021-07-04 19:35:03 jeho each node is Node<> { key, value, left: Tree, right: Tree } 2021-07-04 19:36:13 meltyness is Filled your custom pointer? 2021-07-04 19:36:55 jeho yeah.. Tree is.. it's not technically a pointer, it just represents the presence of another node or absence 2021-07-04 19:37:18 jeho but since I implemented Deref for Tree.. I guess it's very much like a pointer 2021-07-04 19:37:54 jeho with that approach i got rid of a lot of extra verbosity.. and was able to implement it in about as many lines as it would take in C++ 2021-07-04 19:38:50 jeho the implementation looks really clean.. i'm overjoyed 2021-07-04 19:39:46 jeho https://github.com/ttappr/avl-tree/blob/main/src/tree.rs 2021-07-04 19:41:13 jeho the rotate methods were the pieces that benefitted most from the reduction in verbosity 2021-07-04 19:43:40 --> fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has joined ##rust 2021-07-04 19:47:02 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 268 seconds) 2021-07-04 19:47:30 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 240 seconds) 2021-07-04 19:48:03 db48x meltyness: what kind of shell are you building? 2021-07-04 19:51:52 <-- Yruama (~Yruama@lfbn-gre-1-204-8.w90-112.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-07-04 19:53:01 meltyness ... what kind of shell are you interested in >:) 2021-07-04 19:54:44 meltyness honestly, i'm trying to port netsh 2021-07-04 19:54:49 meltyness that old windows thing 2021-07-04 19:55:17 meltyness probably already been done in some capacity, assuredly not well 2021-07-04 19:56:43 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-04 19:57:46 db48x ah 2021-07-04 19:58:49 db48x I’ve not used Windows in a while, and never used netsh, but I see what you mean 2021-07-04 19:59:22 <-- tims1 (~tims@110-174-254-159.static.tpgi.com.au) has quit (Ping timeout: 268 seconds) 2021-07-04 19:59:44 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 258 seconds) 2021-07-04 20:00:06 db48x I spent some time prototyping a shell in Rust too 2021-07-04 20:00:12 db48x http://db48x.net/reposurgeon/repl-demo-4/ 2021-07-04 20:00:27 cehteh meltyness: you develop rust on windows? 2021-07-04 20:00:58 --> tims1 (~tims@61.69.187.9) has joined ##rust 2021-07-04 20:00:59 meltyness my environment is in virtualbox 2021-07-04 20:01:04 meltyness on debian 2021-07-04 20:01:23 cehteh heh ... lol 2021-07-04 20:01:44 cehteh i havent found a rust developer using windows yet :D 2021-07-04 20:02:06 db48x they supposedly exist 2021-07-04 20:02:12 meltyness i broke my windows install lol 2021-07-04 20:03:00 meltyness db48x that's really nice shell interaction, is that all custom logic or is there a crate? 2021-07-04 20:03:02 jeho i live in a virtual box 2021-07-04 20:03:39 jeho I absolutely HATE mac OS.. so I do everything on linux in virtualbox on my system 2021-07-04 20:03:51 cehteh well eventually i would like when someone tests and ports some things i am working on to windows since i dont have windows, i may setup the github actions but thats pretty ugly when you dont really develop on it, 2021-07-04 20:04:52 meltyness I'm still on windows cause I couldn't figure out how to boot from RAID -- so instead my linux drive is a .vdi on my RAID 0 2021-07-04 20:05:13 cehteh those crappy hardware raids? 2021-07-04 20:05:33 cehteh eh moment raid0? like living on the dangerous side? 2021-07-04 20:05:54 cehteh who/why would anyone use that as boot drive 2021-07-04 20:06:12 meltyness someone whose motherboard was reviewed on LTT episode #3 2021-07-04 20:06:27 cehteh LTT is what? 2021-07-04 20:07:04 cehteh and no, never ever use raid on consumer motherboards 2021-07-04 20:07:19 meltyness a youtube channel thats been around since 2008 -- oh i benched it, the bandwidth is good 2021-07-04 20:07:27 cehteh thats just for crappy OS'es it wont improve performance or reliability 2021-07-04 20:07:44 cehteh benchmarked it against what? 2021-07-04 20:08:01 cehteh and raid0 is a call for desaster 2021-07-04 20:08:44 meltyness I'm well aware, it's only for stuff that's already backed up 2021-07-04 20:09:07 jeho you are well protected from the dangers of cosmic rays corrupting your data 2021-07-04 20:09:28 cehteh lol ... earlier today: https://groups.google.com/a/chromium.org/g/ct-policy/c/PCkKU357M2Q/?pli=1 2021-07-04 20:13:28 cehteh back to rust: anyone of you can recommend a crate for copying directories and files? 2021-07-04 20:13:58 db48x meltyness: I use the Rucline crate, and implemented that specific UI on top of it 2021-07-04 20:14:09 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-04 20:17:25 <-- maelcum (~horst@2001:16b8:c1bc:ee00:85c9:c41:69d3:d30a) has quit (Quit: Konversation terminated!) 2021-07-04 20:22:19 --> maelcum (~horst@2001:16b8:c1bc:ee00:3de3:3f6d:ff09:216b) has joined ##rust 2021-07-04 20:25:59 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-04 20:27:07 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 268 seconds) 2021-07-04 20:27:44 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 268 seconds) 2021-07-04 20:30:16 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 256 seconds) 2021-07-04 20:31:13 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-04 20:32:03 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-07-04 20:38:42 <-- hexfive (~eric@50.35.83.177) has quit (Quit: WeeChat 3.0) 2021-07-04 20:48:25 --> wirez (~wirez@user/wirez) has joined ##rust 2021-07-04 20:48:38 <-- cjb (~cjb@user/cjb) has quit (Quit: brb) 2021-07-04 20:49:06 <-- emerent (~quassel@p200300cd5703bb84ba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-04 20:49:08 wirez https://blog.rust-lang.org/inside-rust/2021/07/01/What-the-error-handling-project-group-is-working-towards.html talks about adding a Report type but that sounds too generic to just use for errors. like maybe you want a performance report later? 2021-07-04 20:49:19 <-- wirez (~wirez@user/wirez) has left ##rust (part) 2021-07-04 20:49:49 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-04 20:50:10 --> emerent (~quassel@p200300cd5703bb1aba27ebfffed28a59.dip0.t-ipconnect.de) has joined ##rust 2021-07-04 20:50:25 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:5760:9bdb:910c:2812) has quit (Remote host closed the connection) 2021-07-04 20:56:05 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-04 20:58:45 --> Guest13 (~Guest13@bras-base-toroon0628w-grc-25-174-95-163-90.dsl.bell.ca) has joined ##rust 2021-07-04 20:59:28 --> zmt01 (~zmt00@user/zmt00) has joined ##rust 2021-07-04 21:00:42 <-- zmt00 (~zmt00@user/zmt00) has quit (Ping timeout: 240 seconds) 2021-07-04 21:01:30 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 240 seconds) 2021-07-04 21:02:14 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 21:05:32 --> tims2 (~tims@123-243-90-116.tpgi.com.au) has joined ##rust 2021-07-04 21:05:48 <-- tims1 (~tims@61.69.187.9) has quit (Ping timeout: 272 seconds) 2021-07-04 21:09:00 -- __jmcantrell__ is now known as jmcantrell 2021-07-04 21:10:17 <-- tims2 (~tims@123-243-90-116.tpgi.com.au) has quit (Ping timeout: 268 seconds) 2021-07-04 21:11:40 <-- Guest13 (~Guest13@bras-base-toroon0628w-grc-25-174-95-163-90.dsl.bell.ca) has quit (Quit: Client closed) 2021-07-04 21:13:10 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-04 21:13:31 --> tims2 (~tims@203.206.242.140) has joined ##rust 2021-07-04 21:15:29 <-- cjb (~cjb@user/cjb) has quit (Quit: brb, trying rcirc SASL again) 2021-07-04 21:16:37 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-04 21:20:45 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-04 21:24:01 --> mpt (~tom@2a02:908:1862:49e0::8) has joined ##rust 2021-07-04 21:25:13 <-- paule (~paule@ppp-93-104-177-28.dynamic.mnet-online.de) has quit (Ping timeout: 256 seconds) 2021-07-04 21:27:22 --> TK4E (~TK4E@2409:8a55:4f14:9fa0:57f:312f:bc8f:3557) has joined ##rust 2021-07-04 21:29:40 <-- TK4E (~TK4E@2409:8a55:4f14:9fa0:57f:312f:bc8f:3557) has quit (Client Quit) 2021-07-04 21:34:24 <-- darkstalker (~wolfie@186.148.12.159) has quit (Read error: Connection reset by peer) 2021-07-04 21:37:28 <-- tims2 (~tims@203.206.242.140) has quit (Ping timeout: 272 seconds) 2021-07-04 21:37:41 <-- maelcum (~horst@2001:16b8:c1bc:ee00:3de3:3f6d:ff09:216b) has quit (Ping timeout: 256 seconds) 2021-07-04 21:37:44 --> maelcum|konv (~horst@2001:16b8:c1d5:1100:5ace:88ef:6841:79a2) has joined ##rust 2021-07-04 21:38:50 --> tims2 (~tims@203.221.127.131) has joined ##rust 2021-07-04 21:41:44 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 268 seconds) 2021-07-04 21:44:53 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-07-04 21:45:48 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-07-04 21:47:58 --> neurocyte402 (~neurocyte@46.243.85.68) has joined ##rust 2021-07-04 21:47:58 <-- neurocyte402 (~neurocyte@46.243.85.68) has quit (Changing host) 2021-07-04 21:47:58 --> neurocyte402 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-04 21:50:22 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 268 seconds) 2021-07-04 21:50:22 -- neurocyte402 is now known as neurocyte40 2021-07-04 21:56:16 --> starblue1 (~juergen@dslb-094-221-185-171.094.221.pools.vodafone-ip.de) has joined ##rust 2021-07-04 21:59:20 <-- starblue (~juergen@dslb-094-221-178-013.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 258 seconds) 2021-07-04 21:59:37 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 268 seconds) 2021-07-04 22:04:26 --> tsal (~tsal@user/tsal) has joined ##rust 2021-07-04 22:06:01 <-- amk (~amk@176.61.106.150) has quit (Ping timeout: 256 seconds) 2021-07-04 22:06:12 --> amk (~amk@176.61.106.150) has joined ##rust 2021-07-04 22:16:02 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-04 22:17:03 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-04 22:21:19 <-- mpt (~tom@2a02:908:1862:49e0::8) has quit (Ping timeout: 256 seconds) 2021-07-04 22:21:45 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-04 22:31:04 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 268 seconds) 2021-07-04 22:34:09 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Ping timeout: 268 seconds) 2021-07-04 22:37:30 <-- frostschutz (~frostschu@2a01:c23:804b:7800:838d:9dc5:8f51:a644) has quit (Ping timeout: 240 seconds) 2021-07-04 22:40:59 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-04 22:41:45 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-04 22:41:50 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 22:42:41 <-- cjb (~cjb@user/cjb) has quit (Client Quit) 2021-07-04 22:44:58 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 22:49:02 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Ping timeout: 272 seconds) 2021-07-04 22:50:24 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-07-04 22:51:28 --> frostschutz (~frostschu@2a01:c23:8030:e500:b448:b491:81dc:6b65) has joined ##rust 2021-07-04 22:56:01 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-04 22:57:20 <-- osa1 (~osa1@178.233.26.94) has quit (Ping timeout: 268 seconds) 2021-07-04 23:02:58 <-- tims2 (~tims@203.221.127.131) has quit (Ping timeout: 272 seconds) 2021-07-04 23:03:28 --> tims2 (~tims@220.240.22.247) has joined ##rust 2021-07-04 23:16:54 --> imm__ (~imm_@user/imm/x-3405860) has joined ##rust 2021-07-04 23:17:54 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 265 seconds) 2021-07-04 23:23:51 <-- cjb (~cjb@user/cjb) has quit (Quit: rcirc on GNU Emacs 28.0.50) 2021-07-04 23:23:58 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-04 23:25:33 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-07-04 23:30:20 <-- mike-burns (~mike-burn@safeword.mike-burns.com) has quit (Quit: WeeChat 2.9) 2021-07-04 23:31:25 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-04 23:34:38 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 272 seconds) 2021-07-04 23:37:23 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-04 23:43:26 --> meandi3 (~meandi4@dyndsl-178-142-255-137.ewe-ip-backbone.de) has joined ##rust 2021-07-04 23:43:31 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-04 23:46:55 <-- meandi2 (~meandi4@dyndsl-178-142-249-188.ewe-ip-backbone.de) has quit (Ping timeout: 268 seconds) 2021-07-04 23:47:26 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 258 seconds) 2021-07-04 23:51:31 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has left ##rust (Leaving) 2021-07-04 23:56:03 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 00:02:02 --> dmgk (~dmgk@user/dmgk) has joined ##rust 2021-07-05 00:03:42 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Quit: WeeChat 3.2) 2021-07-05 00:03:59 <-- meltyness (~meltyness@user/meltyness) has quit (Remote host closed the connection) 2021-07-05 00:06:15 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-05 00:06:57 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 00:08:32 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-05 00:08:54 <-- tims2 (~tims@220.240.22.247) has quit (Ping timeout: 258 seconds) 2021-07-05 00:09:17 --> tims2 (~tims@220.240.106.233) has joined ##rust 2021-07-05 00:12:21 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 258 seconds) 2021-07-05 00:12:33 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-05 00:14:12 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 00:16:23 --> snappy (~snappy@user/snappy) has joined ##rust 2021-07-05 00:16:26 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-05 00:23:20 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-05 00:31:57 <-- sgift (~madison@2001:a61:35b8:2401:7c0f:ed50:9995:1a3) has quit (Read error: Permission denied) 2021-07-05 00:32:14 --> sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has joined ##rust 2021-07-05 00:35:07 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Remote host closed the connection) 2021-07-05 00:35:28 --> mike-burns (~mike-burn@safeword.mike-burns.com) has joined ##rust 2021-07-05 00:38:28 <-- djapo (~archangel@user/djapo) has quit (Remote host closed the connection) 2021-07-05 00:38:49 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-05 00:40:49 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-05 00:43:58 <-- cjb (~cjb@user/cjb) has quit (Quit: rcirc on GNU Emacs 28.0.50) 2021-07-05 00:48:11 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-05 00:49:29 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-05 00:50:35 --> fl0kk (~fl0kk@49.205.229.251) has joined ##rust 2021-07-05 00:50:51 <-- fl0kk (~fl0kk@49.205.229.251) has quit (Client Quit) 2021-07-05 00:51:04 --> fl0kk (~fl0kk@49.205.229.251) has joined ##rust 2021-07-05 00:51:11 <-- fl0kk (~fl0kk@49.205.229.251) has quit (Client Quit) 2021-07-05 01:01:55 <-- kline (~freedom0@libera/staff/kline) has quit (*.net *.split) 2021-07-05 01:01:55 <-- southerntofu (southernto@thunix.net) has quit (*.net *.split) 2021-07-05 01:01:55 <-- mjsir911 (~bnc@user/mjsir911) has quit (*.net *.split) 2021-07-05 01:01:55 <-- Xe (~cadey@tailscale/xe) has quit (*.net *.split) 2021-07-05 01:01:55 <-- cmagina (uid286142@user/cmagina) has quit (*.net *.split) 2021-07-05 01:01:55 <-- greizgh (~quassel@2001:41d0:8:5025::1) has quit (*.net *.split) 2021-07-05 01:01:55 <-- faxlore (sid505520@id-505520.highgate.irccloud.com) has quit (*.net *.split) 2021-07-05 01:01:55 <-- phryk (~totallyno@user/phryk) has quit (*.net *.split) 2021-07-05 01:01:55 <-- swinnenb (~swinnenb@user/swinnenb) has quit (*.net *.split) 2021-07-05 01:01:55 <-- darxun (sid504814@id-504814.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:01:55 <-- ding (~ding@2001:19f0:5:14c2:5400:2ff:fee0:a42c) has quit (*.net *.split) 2021-07-05 01:01:55 <-- chiastre (~chiastre@user/chiastre) has quit (*.net *.split) 2021-07-05 01:01:55 <-- jwardy (sid454028@id-454028.highgate.irccloud.com) has quit (*.net *.split) 2021-07-05 01:01:56 <-- t^ (~thomas@2001:41d0:2:a84:1::6) has quit (*.net *.split) 2021-07-05 01:01:56 <-- paradaux (~quassel@2a01:4f8:c2c:be8b::1) has quit (*.net *.split) 2021-07-05 01:01:56 <-- redj (~quassel@bras-base-bchmpq5707w-grc-24-76-69-197-62.dsl.bell.ca) has quit (*.net *.split) 2021-07-05 01:01:56 <-- jds (rpc@2600:3c00::f03c:91ff:fed5:10aa) has quit (*.net *.split) 2021-07-05 01:01:56 <-- plluksie (~plluksie@89-75-127-15.dynamic.chello.pl) has quit (*.net *.split) 2021-07-05 01:01:56 <-- kkd (~kkd@2400:8902::f03c:92ff:feac:6d1) has quit (*.net *.split) 2021-07-05 01:01:56 <-- totoro (~totoro@user/totoro) has quit (*.net *.split) 2021-07-05 01:01:56 <-- osse (~osse@zsh/user/osse) has quit (*.net *.split) 2021-07-05 01:01:56 <-- [code] (~Trey@www.td.wtf) has quit (*.net *.split) 2021-07-05 01:01:56 <-- dvu (~danielvu@168.235.66.22) has quit (*.net *.split) 2021-07-05 01:01:56 <-- habnabit_ (habnabit@python/site-packages/habnabit) has quit (*.net *.split) 2021-07-05 01:01:56 <-- Polochon_street (~polochon@2001:41d0:a:64a5::1) has quit (*.net *.split) 2021-07-05 01:01:56 <-- landerblom (~landerblo@45.77.66.162) has quit (*.net *.split) 2021-07-05 01:01:56 <-- eau (~chat@user/eau) has quit (*.net *.split) 2021-07-05 01:02:01 --> paradaux (~quassel@2a01:4f8:c2c:be8b::1) has joined ##rust 2021-07-05 01:02:03 --> plluksie_ (~plluksie@89-75-127-15.dynamic.chello.pl) has joined ##rust 2021-07-05 01:02:04 --> kkd (~kkd@2400:8902::f03c:92ff:feac:6d1) has joined ##rust 2021-07-05 01:02:04 --> cmagina_ (sid286142@user/cmagina) has joined ##rust 2021-07-05 01:02:07 --> mjsir911 (~bnc@2001:19f0:5:4de7:bcd8:54fd:695b:5fa0) has joined ##rust 2021-07-05 01:02:07 <-- mjsir911 (~bnc@2001:19f0:5:4de7:bcd8:54fd:695b:5fa0) has quit (Changing host) 2021-07-05 01:02:07 --> mjsir911 (~bnc@user/mjsir911) has joined ##rust 2021-07-05 01:02:08 --> darxun (sid504814@id-504814.tinside.irccloud.com) has joined ##rust 2021-07-05 01:02:08 --> jds (rpc@2600:3c00::f03c:91ff:fed5:10aa) has joined ##rust 2021-07-05 01:02:10 --> southerntofu (southernto@thunix.net) has joined ##rust 2021-07-05 01:02:23 --> jwardy (sid454028@id-454028.highgate.irccloud.com) has joined ##rust 2021-07-05 01:02:23 --> t^ (~thomas@2001:41d0:2:a84:1::6) has joined ##rust 2021-07-05 01:02:23 --> totoro (~totoro@173.82.187.126) has joined ##rust 2021-07-05 01:02:24 --> [code] (~Trey@www.td.wtf) has joined ##rust 2021-07-05 01:02:30 --> chiastre (~chiastre@2a02:8388:8003:c180:77a:699e:3ef5:d0a4) has joined ##rust 2021-07-05 01:02:30 --> Xe (~cadey@lufta.cetacean.club) has joined ##rust 2021-07-05 01:02:30 --> dvu (~danielvu@168.235.66.22) has joined ##rust 2021-07-05 01:02:32 --> swinnenb (~swinnenb@2a02:a03f:8469:a00:4db0:5d86:f229:3f4e) has joined ##rust 2021-07-05 01:02:32 --> eau (~chat@194.182.165.230) has joined ##rust 2021-07-05 01:02:33 --> osse (~osse@150.37-191-137.fiber.lynet.no) has joined ##rust 2021-07-05 01:02:43 --> faxlore (sid505520@id-505520.highgate.irccloud.com) has joined ##rust 2021-07-05 01:03:01 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-05 01:03:58 <-- brb (~brb@user/brb) has quit (*.net *.split) 2021-07-05 01:03:58 <-- rk4 (~r@user/rk4) has quit (*.net *.split) 2021-07-05 01:03:58 <-- Blub\w (~wry@eperm.errno.eu) has quit (*.net *.split) 2021-07-05 01:03:58 <-- SoF (~skius@user/skius) has quit (*.net *.split) 2021-07-05 01:03:58 <-- chromis (sid150893@id-150893.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:03:58 <-- ninjin (~ninjin@user/ninjin) has quit (*.net *.split) 2021-07-05 01:03:58 <-- Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has quit (*.net *.split) 2021-07-05 01:03:58 <-- shan (shan@user/shan) has quit (*.net *.split) 2021-07-05 01:03:58 <-- nemo (nemo@hedgewars/dev/nemo) has quit (*.net *.split) 2021-07-05 01:03:59 <-- Gaelan (~gaelan@user/gaelan) has quit (*.net *.split) 2021-07-05 01:03:59 <-- pragma- (~chaos@user/pragmatic-chaos) has quit (*.net *.split) 2021-07-05 01:03:59 <-- crest (~quassel@user/crest) has quit (*.net *.split) 2021-07-05 01:03:59 <-- WeaselSoup (~bigorneau@user/weaselsoup) has quit (*.net *.split) 2021-07-05 01:03:59 <-- edr (~edr@user/edr) has quit (*.net *.split) 2021-07-05 01:03:59 <-- Kabouik (~Kabouik@user/kabouik) has quit (*.net *.split) 2021-07-05 01:03:59 <-- rtpg (sid443069@id-443069.charlton.irccloud.com) has quit (*.net *.split) 2021-07-05 01:03:59 <-- avu (~jan@user/avu) has quit (*.net *.split) 2021-07-05 01:03:59 <-- hubvu (sid495858@id-495858.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:03:59 <-- extmind (~lars@quasar.extmind.de) has quit (*.net *.split) 2021-07-05 01:03:59 <-- asynkron (sid433195@id-433195.charlton.irccloud.com) has quit (*.net *.split) 2021-07-05 01:03:59 <-- peng0in (~peng0in@skyoasis.de) has quit (*.net *.split) 2021-07-05 01:04:00 <-- _0x1d3 (sid43116@id-43116.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:04:00 <-- thican (~thican@megaman.thican.net) has quit (*.net *.split) 2021-07-05 01:04:00 <-- koon (johan@slash24.se) has quit (*.net *.split) 2021-07-05 01:04:00 <-- spooky_d (sid268013@id-268013.charlton.irccloud.com) has quit (*.net *.split) 2021-07-05 01:04:00 <-- hoistbypetard (hoistbypet@user/hoistbypetard) has quit (*.net *.split) 2021-07-05 01:04:00 <-- bronsen (~bronsen@2a04:d480:0:1::3) has quit (*.net *.split) 2021-07-05 01:04:05 --> nemo_ (nemo@c-73-212-126-29.hsd1.md.comcast.net) has joined ##rust 2021-07-05 01:04:05 --> koon (johan@slash24.se) has joined ##rust 2021-07-05 01:04:08 --> hoistbypetard_ (hoistbypet@2600:3c00::f03c:91ff:fe50:6ee6) has joined ##rust 2021-07-05 01:04:08 --> edr (~edr@enlo.co) has joined ##rust 2021-07-05 01:04:11 --> ninjin (~ninjin@momey.cs.ucl.ac.uk) has joined ##rust 2021-07-05 01:04:17 --> hubvu (sid495858@id-495858.tinside.irccloud.com) has joined ##rust 2021-07-05 01:04:18 --> rtpg (sid443069@id-443069.charlton.irccloud.com) has joined ##rust 2021-07-05 01:04:21 --> _0x1d3 (sid43116@id-43116.tinside.irccloud.com) has joined ##rust 2021-07-05 01:04:28 --> avu (~jan@pg.afoo.at) has joined ##rust 2021-07-05 01:04:32 --> Kabouik (~Kabouik@2a03:4000:4d:fbd:4fe:b1ff:fee3:35d) has joined ##rust 2021-07-05 01:04:35 --> Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has joined ##rust 2021-07-05 01:04:42 --> chromis (sid150893@id-150893.tinside.irccloud.com) has joined ##rust 2021-07-05 01:04:42 --> asynkron (sid433195@id-433195.charlton.irccloud.com) has joined ##rust 2021-07-05 01:04:45 --> spooky_d (sid268013@id-268013.charlton.irccloud.com) has joined ##rust 2021-07-05 01:04:52 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-05 01:05:16 <-- RedCrab (~Red_Crab@user/redcrab) has quit (*.net *.split) 2021-07-05 01:05:16 <-- lisq (~quassel@lis.moe) has quit (*.net *.split) 2021-07-05 01:05:16 <-- farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has quit (*.net *.split) 2021-07-05 01:05:16 <-- underscore (bouncerku@user/underscore) has quit (*.net *.split) 2021-07-05 01:05:16 <-- cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has quit (*.net *.split) 2021-07-05 01:05:16 <-- dmc (~dmc@archlinux/trusteduser/polyzen) has quit (*.net *.split) 2021-07-05 01:05:16 <-- DTE (~DTE@nat-pool-fab-t.redhat.com) has quit (*.net *.split) 2021-07-05 01:05:16 <-- roguelazer (~jbrown@sietchtabr.roguelazer.net) has quit (*.net *.split) 2021-07-05 01:05:16 <-- dalcde (dec41@pip.srcf.societies.cam.ac.uk) has quit (*.net *.split) 2021-07-05 01:05:16 <-- ruru4143 (~quassel@vmi444754.contaboserver.net) has quit (*.net *.split) 2021-07-05 01:05:17 <-- asm (~alexander@user/asm) has quit (*.net *.split) 2021-07-05 01:05:17 <-- p2-mate (~p2@emantra.psychaos.be) has quit (*.net *.split) 2021-07-05 01:05:17 <-- j`ey (~joey@user/jey/x-2681904) has quit (*.net *.split) 2021-07-05 01:05:17 <-- bsdbandit (~bwell@users.757.org) has quit (*.net *.split) 2021-07-05 01:05:17 <-- magik (~green@ec2-35-163-132-133.us-west-2.compute.amazonaws.com) has quit (*.net *.split) 2021-07-05 01:05:17 <-- chlvr (~chlvr@li1384-148.members.linode.com) has quit (*.net *.split) 2021-07-05 01:05:17 <-- Gottox (~Gottox@vm3.s01.de) has quit (*.net *.split) 2021-07-05 01:05:17 <-- mwbrown (~mwbrown@user/mwbrown) has quit (*.net *.split) 2021-07-05 01:05:17 <-- vivia (~vivia@coaxion.net) has quit (*.net *.split) 2021-07-05 01:05:17 <-- sensille (~arne@dsnsi.rzone.de) has quit (*.net *.split) 2021-07-05 01:05:17 <-- audron (~audron@jupiter.cocaine.farm) has quit (*.net *.split) 2021-07-05 01:05:17 <-- SIben (~SIben@ns3106586.ip-5-135-191.eu) has quit (*.net *.split) 2021-07-05 01:05:17 <-- mrus (~mrus@149.28.61.155) has quit (*.net *.split) 2021-07-05 01:05:17 <-- nitrix (~nitrix@user/nitrix) has quit (*.net *.split) 2021-07-05 01:05:17 <-- res0nat0r (~Fletch@dia.whatbox.ca) has quit (*.net *.split) 2021-07-05 01:05:17 <-- remedan (~remedan@balak.me) has quit (*.net *.split) 2021-07-05 01:05:17 <-- alxbl (~alex@cortex.segfault.me) has quit (*.net *.split) 2021-07-05 01:05:17 <-- murr4y (ali@user/murr4y) has quit (*.net *.split) 2021-07-05 01:05:17 <-- mgocobachi (~m@ancrae.com) has quit (*.net *.split) 2021-07-05 01:05:17 <-- nCrazed (~nCrazed@edvin.io) has quit (*.net *.split) 2021-07-05 01:05:18 <-- Aorimn (tc@giboulees.net) has quit (*.net *.split) 2021-07-05 01:05:18 <-- mauli (~mauli@maulware.com) has quit (*.net *.split) 2021-07-05 01:05:18 <-- parazyd (~parazyd@devuan/developer/parazyd) has quit (*.net *.split) 2021-07-05 01:05:18 <-- pingiun (~jelle@user/pingiun) has quit (*.net *.split) 2021-07-05 01:05:18 <-- gbmor (ben@gbmor.dev) has quit (*.net *.split) 2021-07-05 01:05:18 <-- SergioB (~Sergio@2001:19f0:ac01:371:5400:ff:fe5b:d2b1) has quit (*.net *.split) 2021-07-05 01:05:18 <-- r3v2d0g (sid478327@highgate.irccloud.com) has quit (*.net *.split) 2021-07-05 01:05:18 <-- glowcoil (sid3405@id-3405.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:05:18 <-- taktoa[c] (sid282096@id-282096.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:05:18 <-- Byteflux (~byte@byteflux.net) has quit (*.net *.split) 2021-07-05 01:05:18 <-- Jazzah (~jazz@user/jazzah) has quit (*.net *.split) 2021-07-05 01:05:18 <-- nox (sid3872@highgate.irccloud.com) has quit (*.net *.split) 2021-07-05 01:05:18 <-- substack (~substack@104.131.0.235) has quit (*.net *.split) 2021-07-05 01:05:18 <-- pupskuchen (~pupskuche@user/pupskuchen) has quit (*.net *.split) 2021-07-05 01:05:18 <-- coffeejunk (~coffeejun@static.200.0.21.65.clients.your-server.de) has quit (*.net *.split) 2021-07-05 01:05:18 <-- ystreet01 (~ystreet00@user/ystreet00) has quit (*.net *.split) 2021-07-05 01:05:23 --> glowcoil (sid3405@id-3405.tinside.irccloud.com) has joined ##rust 2021-07-05 01:05:24 --> res0nat0r (~Fletch@dia.whatbox.ca) has joined ##rust 2021-07-05 01:05:24 --> ruru4143 (~quassel@vmi444754.contaboserver.net) has joined ##rust 2021-07-05 01:05:24 --> SIben (~SIben@ns3106586.ip-5-135-191.eu) has joined ##rust 2021-07-05 01:05:24 --> [TC] (tc@giboulees.net) has joined ##rust 2021-07-05 01:05:24 --> vivia_ (~vivia@coaxion.net) has joined ##rust 2021-07-05 01:05:25 --> Jazzah (~jazz@stolen.plutonium.dk) has joined ##rust 2021-07-05 01:05:27 --> Gottox (~Gottox@vm3.s01.de) has joined ##rust 2021-07-05 01:05:27 --> sensille (~arne@dsnsi.rzone.de) has joined ##rust 2021-07-05 01:05:27 --> chlvr_ (chlvr@2a01:7e00::f03c:92ff:fe13:e095) has joined ##rust 2021-07-05 01:05:28 --> alxbl (~alex@cortex.segfault.me) has joined ##rust 2021-07-05 01:05:28 --> bsdbandit (~bwell@users.757.org) has joined ##rust 2021-07-05 01:05:28 --> p2-mate (~p2@emantra.psychaos.be) has joined ##rust 2021-07-05 01:05:33 --> SergioB (~SergioB@2001:19f0:ac01:371:5400:ff:fe5b:d2b1) has joined ##rust 2021-07-05 01:05:33 --> murr4y (ali@38.95.231.35.bc.googleusercontent.com) has joined ##rust 2021-07-05 01:05:37 --> mauli (~mauli@maulware.com) has joined ##rust 2021-07-05 01:05:38 --> cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-07-05 01:05:38 --> r3v2d0g (sid478327@id-478327.highgate.irccloud.com) has joined ##rust 2021-07-05 01:05:39 --> taktoa[c] (sid282096@id-282096.tinside.irccloud.com) has joined ##rust 2021-07-05 01:05:39 --> asm (~alexander@burner.asm89.io) has joined ##rust 2021-07-05 01:05:50 --> farn (~farn@2a03:4000:7:3cd:d4ab:85ff:feeb:f505) has joined ##rust 2021-07-05 01:06:00 --> nox (sid3872@id-3872.highgate.irccloud.com) has joined ##rust 2021-07-05 01:06:17 <-- faern (~faern@h-98-128-172-186.A785.priv.bahnhof.se) has quit (*.net *.split) 2021-07-05 01:06:17 <-- hogarius (hogarius@id-222644.highgate.irccloud.com) has quit (*.net *.split) 2021-07-05 01:06:17 <-- scav (sid309693@id-309693.brockwell.irccloud.com) has quit (*.net *.split) 2021-07-05 01:06:17 <-- fullermd (~fullermd@c-174-50-4-214.hsd1.ms.comcast.net) has quit (*.net *.split) 2021-07-05 01:06:17 <-- chowmeined (~chowmeine@user/chowmeined) has quit (*.net *.split) 2021-07-05 01:06:17 <-- jdt (~jdt@38.77.195.50) has quit (*.net *.split) 2021-07-05 01:06:17 <-- Luker (~Luker@2a01:4f8:150:3211:17::17) has quit (*.net *.split) 2021-07-05 01:06:18 <-- jthistle (~jthistle@user/jthistle) has quit (*.net *.split) 2021-07-05 01:06:18 <-- majors (~majors@user/majors) has quit (*.net *.split) 2021-07-05 01:06:18 <-- daemon (znc@about/web/TheBeardedBSDer) has quit (*.net *.split) 2021-07-05 01:06:18 <-- stigz (sid371747@id-371747.tinside.irccloud.com) has quit (*.net *.split) 2021-07-05 01:06:18 <-- raekye (~raekye@creatifcubed.com) has quit (*.net *.split) 2021-07-05 01:06:18 <-- seanBE_ (~seanBE@ec2-34-243-193-160.eu-west-1.compute.amazonaws.com) has quit (*.net *.split) 2021-07-05 01:06:18 <-- Techcable (~Techcable@168.235.93.147) has quit (*.net *.split) 2021-07-05 01:06:18 <-- wess (~wess@188.166.99.85) has quit (*.net *.split) 2021-07-05 01:06:18 <-- monke (~monke@user/monke) has quit (*.net *.split) 2021-07-05 01:06:18 <-- pinpox (~pinpox@v2202101107577140883.nicesrv.de) has quit (*.net *.split) 2021-07-05 01:06:18 <-- Silver_Golden (~Silver_Go@static.34.165.202.116.clients.your-server.de) has quit (*.net *.split) 2021-07-05 01:06:18 <-- avakand (~root@static.164.226.201.195.clients.your-server.de) has quit (*.net *.split) 2021-07-05 01:06:18 <-- jkhsjdhjs (jkhsjdhjs@totally.rip) has quit (*.net *.split) 2021-07-05 01:06:18 <-- averell (~averell@user/averell) has quit (*.net *.split) 2021-07-05 01:06:19 <-- GreenJello (~GreenJell@user/greenjello) has quit (*.net *.split) 2021-07-05 01:06:19 <-- mort (~mort@188.166.114.29) has quit (*.net *.split) 2021-07-05 01:06:19 <-- tdeo (~tdeo@user/tdeo) has quit (*.net *.split) 2021-07-05 01:06:19 <-- uovobw (~uovobw@user/uovobw) has quit (*.net *.split) 2021-07-05 01:06:19 <-- el_kevino (~mote@2604:a880:400:d1::901:5001) has quit (*.net *.split) 2021-07-05 01:06:19 <-- peterandre (peterandre@2605:6400:c847:1524::4251) has quit (*.net *.split) 2021-07-05 01:06:19 <-- bendemctl (~bendem@irc.bendem.be) has quit (*.net *.split) 2021-07-05 01:06:19 <-- bwidawsk (caa3a604@zangief.bwidawsk.net) has quit (*.net *.split) 2021-07-05 01:06:19 <-- vinky (~vinky@2a03:b0c0:2:d0::9a0:8001) has quit (*.net *.split) 2021-07-05 01:06:19 <-- bw (sid2730@user/betawaffle) has quit (*.net *.split) 2021-07-05 01:06:19 <-- termos (sid18647@id-18647.brockwell.irccloud.com) has quit (*.net *.split) 2021-07-05 01:06:19 <-- seed0 (~seed0@user/seed0) has quit (*.net *.split) 2021-07-05 01:06:19 <-- TimWolla (~timwolla@2a01:4f8:150:6153:beef::6667) has quit (*.net *.split) 2021-07-05 01:06:19 <-- allan_ (allan@3dfx.se) has quit (*.net *.split) 2021-07-05 01:06:20 <-- povilas (~povilas@2a03:b0c0:2:d0::517:7001) has quit (*.net *.split) 2021-07-05 01:06:20 <-- nerdopoly (~nerdopoly@dianahacksoc.york.ac.uk) has quit (*.net *.split) 2021-07-05 01:06:20 <-- tgy (~choucaval@user/choucavalier) has quit (*.net *.split) 2021-07-05 01:06:20 <-- kpcyrd (~kpcyrd@archlinux/trusteduser/kpcyrd) has quit (*.net *.split) 2021-07-05 01:06:20 <-- yongxiang (sid437863@user/yongxiang) has quit (*.net *.split) 2021-07-05 01:06:20 <-- jbg (sid494673@user/jbg) has quit (*.net *.split) 2021-07-05 01:06:20 <-- pulec (~pulec@user/pulec) has quit (*.net *.split) 2021-07-05 01:06:20 <-- aismallard (~quassel@about/werewolf/aismallard) has quit (*.net *.split) 2021-07-05 01:06:20 <-- mnem (sid316106@sourcehut/user/mnem) has quit (*.net *.split) 2021-07-05 01:06:20 <-- EliDupree (~quassel@2604:a880:400:d0::9bb:2001) has quit (*.net *.split) 2021-07-05 01:06:20 <-- xfz (~xperi0@185.21.217.78) has quit (*.net *.split) 2021-07-05 01:06:20 <-- gchristensen (~grahamc@user/gchristensen) has quit (*.net *.split) 2021-07-05 01:06:20 <-- arch3y (~arch3y@user/arch3y) has quit (*.net *.split) 2021-07-05 01:06:20 <-- fingercomp (~fingercom@fomalhaut.me) has quit (*.net *.split) 2021-07-05 01:06:20 <-- x56 (0x56@user/x56) has quit (*.net *.split) 2021-07-05 01:06:20 <-- bkhl (~bkhl@user/bkhl) has quit (*.net *.split) 2021-07-05 01:06:20 <-- oz (~oz@crystal/user/oz) has quit (*.net *.split) 2021-07-05 01:06:23 --> xfz_ (~xperi0@185.21.217.78) has joined ##rust 2021-07-05 01:06:26 --> nitrix (~nitrix@ns569831.ip-51-79-81.net) has joined ##rust 2021-07-05 01:06:26 --> TimWolla_ (~timwolla@2a01:4f8:150:6153:beef::6667) has joined ##rust 2021-07-05 01:06:26 --> jdt_ (~jdt@38.77.195.50) has joined ##rust 2021-07-05 01:06:27 --> seed0_ (~seed0@li1647-214.members.linode.com) has joined ##rust 2021-07-05 01:06:30 --> pulec_ (~pulec@2a01:7c8:aabf:229:a8ad:c144:ead8:663) has joined ##rust 2021-07-05 01:06:31 --> Luker (~Luker@2a01:4f8:150:3211:17::17) has joined ##rust 2021-07-05 01:06:34 --> choucavalier (~choucaval@peanutbuttervibes.com) has joined ##rust 2021-07-05 01:06:34 --> averell (~averell@irc.nf3.eu) has joined ##rust 2021-07-05 01:06:37 --> allan_ (allan@3dfx.se) has joined ##rust 2021-07-05 01:06:41 --> faern (~faern@h-98-128-172-186.a785.priv.bahnhof.se) has joined ##rust 2021-07-05 01:06:49 --> termos (sid18647@2001:67c:2f08:5::48d7) has joined ##rust 2021-07-05 01:06:51 -- jdt_ is now known as jdt 2021-07-05 01:06:53 --> arch3y (~arch3y@arch3y.com) has joined ##rust 2021-07-05 01:06:53 --> avakand (~root@static.164.226.201.195.clients.your-server.de) has joined ##rust 2021-07-05 01:06:57 --> uovobw (~uovobw@node8.sas.hu) has joined ##rust 2021-07-05 01:06:58 --> gchristensen (~grahamc@flexo.gsc.io) has joined ##rust 2021-07-05 01:07:00 --> DTE (~DTE@nat-pool-fab-t.redhat.com) has joined ##rust 2021-07-05 01:07:10 --> mnem (sid316106@2001:67c:2f08:5::4:d2ca) has joined ##rust 2021-07-05 01:07:16 --> stigz (sid371747@id-371747.tinside.irccloud.com) has joined ##rust 2021-07-05 01:07:18 --> yongxiang (sid437863@id-437863.brockwell.irccloud.com) has joined ##rust 2021-07-05 01:07:18 --> jbg (sid494673@id-494673.tooting.irccloud.com) has joined ##rust 2021-07-05 01:07:20 --> hogarius (hogarius@id-222644.highgate.irccloud.com) has joined ##rust 2021-07-05 01:07:21 --> scav (sid309693@id-309693.brockwell.irccloud.com) has joined ##rust 2021-07-05 01:07:40 --> bw_ (sid2730@id-2730.charlton.irccloud.com) has joined ##rust 2021-07-05 01:09:59 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-05 01:10:28 --> fingercomp (~fingercom@fomalhaut.me) has joined ##rust 2021-07-05 01:10:28 --> bouncerku (bouncerku@here.and.ready-to.party) has joined ##rust 2021-07-05 01:10:35 <-- ChanServ (ChanServ@services.libera.chat) has quit (*.net *.split) 2021-07-05 01:10:37 --> peterandre (peterandre@2605:6400:c847:1524::4251) has joined ##rust 2021-07-05 01:10:48 --> majors (~majors@li119-50.members.linode.com) has joined ##rust 2021-07-05 01:10:48 <-- mountolive (~mountoliv@255.pool213-77-197.dynamic.orange.es) has quit (Remote host closed the connection) 2021-07-05 01:10:49 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Remote host closed the connection) 2021-07-05 01:10:49 --> daemon (znc@paulwebster.org) has joined ##rust 2021-07-05 01:10:50 --> greizgh (~quassel@2001:41d0:8:5025::1) has joined ##rust 2021-07-05 01:10:50 --> mwbrown (~mwbrown@cpe-71-72-240-78.insight.res.rr.com) has joined ##rust 2021-07-05 01:10:51 --> peng0in (~peng0in@2a01:4f8:160:1228::2) has joined ##rust 2021-07-05 01:10:53 --> phryk (~totallyno@alkahest.phryk.net) has joined ##rust 2021-07-05 01:10:55 --> ding (~ding@2001:19f0:5:14c2:5400:2ff:fee0:a42c) has joined ##rust 2021-07-05 01:10:58 <-- Xe (~cadey@lufta.cetacean.club) has quit (Changing host) 2021-07-05 01:10:58 --> Xe (~cadey@tailscale/xe) has joined ##rust 2021-07-05 01:10:59 <-- avu (~jan@pg.afoo.at) has quit (Changing host) 2021-07-05 01:10:59 --> avu (~jan@user/avu) has joined ##rust 2021-07-05 01:11:18 --> ChanServ (ChanServ@services.libera.chat) has joined ##rust 2021-07-05 01:11:18 -- Mode ##rust [+o ChanServ] by copper.libera.chat 2021-07-05 01:11:31 <-- jbg (sid494673@id-494673.tooting.irccloud.com) has quit (Changing host) 2021-07-05 01:11:31 --> jbg (sid494673@user/jbg) has joined ##rust 2021-07-05 01:11:36 -- nitrix is now known as Guest9590 2021-07-05 01:11:36 -- arch3y is now known as Guest3148 2021-07-05 01:11:36 -- cheakoirccloud is now known as Guest3349 2021-07-05 01:11:36 -- eau is now known as Guest4267 2021-07-05 01:11:36 <-- mnem (sid316106@2001:67c:2f08:5::4:d2ca) has quit (Changing host) 2021-07-05 01:11:36 --> mnem (sid316106@sourcehut/user/mnem) has joined ##rust 2021-07-05 01:11:37 -- daemon is now known as Guest7838 2021-07-05 01:11:38 <-- yongxiang (sid437863@id-437863.brockwell.irccloud.com) has quit (Changing host) 2021-07-05 01:11:38 --> yongxiang (sid437863@user/yongxiang) has joined ##rust 2021-07-05 01:11:50 <-- Guest9590 (~nitrix@ns569831.ip-51-79-81.net) has quit (Changing host) 2021-07-05 01:11:50 --> Guest9590 (~nitrix@user/nitrix) has joined ##rust 2021-07-05 01:11:56 <-- edr (~edr@enlo.co) has quit (Changing host) 2021-07-05 01:11:56 --> edr (~edr@user/edr) has joined ##rust 2021-07-05 01:11:58 <-- Jazzah (~jazz@stolen.plutonium.dk) has quit (Changing host) 2021-07-05 01:11:58 --> Jazzah (~jazz@user/jazzah) has joined ##rust 2021-07-05 01:12:15 <-- Guest3349 (uid293319@id-293319.charlton.irccloud.com) has quit 2021-07-05 01:12:31 --> Gaelan (~gaelan@user/gaelan) has joined ##rust 2021-07-05 01:12:34 --> lisq (~quassel@lis.moe) has joined ##rust 2021-07-05 01:12:38 --> Guest3349 (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-07-05 01:12:39 --> kline (~freedom0@libera/staff/kline) has joined ##rust 2021-07-05 01:12:45 --> crest (~quassel@user/crest) has joined ##rust 2021-07-05 01:12:55 --> roguelazer (~jbrown@sietchtabr.roguelazer.net) has joined ##rust 2021-07-05 01:12:57 --> ox (~oz@crystal/user/oz) has joined ##rust 2021-07-05 01:12:58 --> chowmeined (~chowmeine@user/chowmeined) has joined ##rust 2021-07-05 01:12:59 --> audron (~audron@jupiter.cocaine.farm) has joined ##rust 2021-07-05 01:13:03 --> tdeo (~tdeo@user/tdeo) has joined ##rust 2021-07-05 01:13:20 --> seanBE (~seanBE@ec2-34-243-193-160.eu-west-1.compute.amazonaws.com) has joined ##rust 2021-07-05 01:13:31 --> Polochon_street (~polochon@2001:41d0:a:64a5::1) has joined ##rust 2021-07-05 01:13:34 --> EliDupree (~quassel@2604:a880:400:d0::9bb:2001) has joined ##rust 2021-07-05 01:13:35 <-- Guest3349 (uid293319@id-293319.charlton.irccloud.com) has quit (Client Quit) 2021-07-05 01:13:35 --> bwidawsk (b46eed1a@zangief.bwidawsk.net) has joined ##rust 2021-07-05 01:13:37 --> jkhsjdhjs (jkhsjdhjs@totally.rip) has joined ##rust 2021-07-05 01:13:42 --> GreenJello (~GreenJell@user/greenjello) has joined ##rust 2021-07-05 01:13:42 --> remedan (~remedan@balak.me) has joined ##rust 2021-07-05 01:13:43 --> redj (~quassel@bras-base-bchmpq5707w-grc-24-76-69-197-62.dsl.bell.ca) has joined ##rust 2021-07-05 01:13:43 --> aismallard (~quassel@about/werewolf/aismallard) has joined ##rust 2021-07-05 01:13:47 --> pingiun (~jelle@user/pingiun) has joined ##rust 2021-07-05 01:13:48 --> wess (~wess@188.166.99.85) has joined ##rust 2021-07-05 01:13:50 --> WeaselSoup (~bigorneau@user/weaselsoup) has joined ##rust 2021-07-05 01:13:52 --> habnabit_ (~habnabit@python/site-packages/habnabit) has joined ##rust 2021-07-05 01:13:55 --> landerblom (~landerblo@45.77.66.162) has joined ##rust 2021-07-05 01:13:55 --> bkhl (~bkhl@user/bkhl) has joined ##rust 2021-07-05 01:13:57 --> jthistle (~jthistle@user/jthistle) has joined ##rust 2021-07-05 01:13:57 --> mrus (~mrus@2001:19f0:5:3fd4:5400:3ff:fe48:1820) has joined ##rust 2021-07-05 01:13:58 --> mgocobachi (~m@ancrae.com) has joined ##rust 2021-07-05 01:14:00 --> cheakoirccloud (uid293319@id-293319.charlton.irccloud.com) has joined ##rust 2021-07-05 01:14:01 --> ystreet00 (~ystreet00@user/ystreet00) has joined ##rust 2021-07-05 01:14:07 --> Blub\0 (~wry@eperm.errno.eu) has joined ##rust 2021-07-05 01:14:07 --> thican (~thican@megaman.thican.net) has joined ##rust 2021-07-05 01:14:13 --> rk4 (~r@user/rk4) has joined ##rust 2021-07-05 01:14:38 --> shantaram (shan@user/shan) has joined ##rust 2021-07-05 01:15:19 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-05 01:15:22 --> j`ey (~joey@user/jey/x-2681904) has joined ##rust 2021-07-05 01:15:26 --> nCrazed (~nCrazed@edvin.io) has joined ##rust 2021-07-05 01:15:26 --> dalcde (dec41@pip.srcf.societies.cam.ac.uk) has joined ##rust 2021-07-05 01:15:29 --> substack (~substack@104.131.0.235) has joined ##rust 2021-07-05 01:15:42 --> caitp (~green@ec2-35-163-132-133.us-west-2.compute.amazonaws.com) has joined ##rust 2021-07-05 01:15:43 --> darkapex (uid360049@user/darkapex) has joined ##rust 2021-07-05 01:16:01 --> brb (~brb@user/brb) has joined ##rust 2021-07-05 01:16:33 --> fullermd (~fullermd@c-174-50-4-214.hsd1.ms.comcast.net) has joined ##rust 2021-07-05 01:17:09 --> Techcable (~Techcable@168.235.93.147) has joined ##rust 2021-07-05 01:17:16 --> gbmor (ben@gbmor.dev) has joined ##rust 2021-07-05 01:17:44 --> dmc (~dmc@archlinux/trusteduser/polyzen) has joined ##rust 2021-07-05 01:17:49 --> RedCrab (~Red_Crab@user/redcrab) has joined ##rust 2021-07-05 01:18:09 --> el_kevino (~mote@2604:a880:400:d1::901:5001) has joined ##rust 2021-07-05 01:18:21 --> kpcyrd (~kpcyrd@archlinux/trusteduser/kpcyrd) has joined ##rust 2021-07-05 01:19:05 --> x56 (0x56@user/x56) has joined ##rust 2021-07-05 01:20:23 --> SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has joined ##rust 2021-07-05 01:22:21 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-05 01:24:34 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-07-05 01:24:42 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-05 01:25:06 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-07-05 01:25:59 --> anchorite (~anchorite@93.123.50.44) has joined ##rust 2021-07-05 01:26:16 <-- Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has quit (Quit: Leaving) 2021-07-05 01:26:40 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-05 01:26:40 --> Pjerky (~Pjerky@81-234-143-135-no58.tbcn.telia.com) has joined ##rust 2021-07-05 01:28:18 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-07-05 01:31:54 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-05 01:33:22 <-- anchorite (~anchorite@93.123.50.44) has quit (Ping timeout: 240 seconds) 2021-07-05 01:35:09 <-- cjb (~cjb@user/cjb) has quit (Quit: rcirc on GNU Emacs 28.0.50) 2021-07-05 01:35:25 --> johnw (~johnw@2600:1700:cf00:db0:580c:2973:6ceb:6156) has joined ##rust 2021-07-05 01:39:48 -- Guest9590 is now known as nitrix 2021-07-05 01:40:39 --> Guest64 (~Guest64@117.222.183.122) has joined ##rust 2021-07-05 01:40:49 Guest64 hello 2021-07-05 01:41:36 --> errhammr (~errhammr@185.209.196.180) has joined ##rust 2021-07-05 01:41:57 <-- errhammr (~errhammr@185.209.196.180) has quit (Quit: Quit) 2021-07-05 01:43:55 Guest64 guys what is the rust equivalent of python requests ? 2021-07-05 01:44:29 --> gggpkm (~gggpkm@106.37.74.209) has joined ##rust 2021-07-05 01:44:48 mike-burns Probably the reqwest crate. 2021-07-05 01:45:24 Guest64 alright bro mike-burns 2021-07-05 01:49:32 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-05 01:49:35 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-07-05 01:49:55 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-05 01:49:59 <-- SignalWalker (~SignalWal@128.sub-174-209-102.myvzw.com) has quit (Remote host closed the connection) 2021-07-05 01:52:19 <-- Guest64 (~Guest64@117.222.183.122) has quit (Quit: Client closed) 2021-07-05 01:54:31 --> trev (~trev@user/trev) has joined ##rust 2021-07-05 01:56:03 --> dcz_ (~dcz@dynamic-093-135-052-028.93.135.pool.telefonica.de) has joined ##rust 2021-07-05 02:01:01 <-- cjb (~cjb@user/cjb) has quit (Quit: rcirc on GNU Emacs 28.0.50) 2021-07-05 02:04:14 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-05 02:04:18 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-05 02:04:46 --> Byteflux (~byte@byteflux.net) has joined ##rust 2021-07-05 02:05:28 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-05 02:06:44 <-- gggpkm (~gggpkm@106.37.74.209) has quit (Ping timeout: 252 seconds) 2021-07-05 02:09:02 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-05 02:10:31 --> osa1 (~osa1@178.233.26.94) has joined ##rust 2021-07-05 02:11:55 --> parazyd (~parazyd@devuan/developer/parazyd) has joined ##rust 2021-07-05 02:17:10 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-05 02:19:18 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-05 02:20:07 --> gggpkm (~gggpkm@36.112.134.194) has joined ##rust 2021-07-05 02:20:22 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-05 02:25:04 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-05 02:25:10 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-05 02:32:42 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-07-05 02:33:15 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-05 02:37:17 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-05 02:38:27 --> raekye (~raekye@creatifcubed.com) has joined ##rust 2021-07-05 02:48:38 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-05 02:49:39 --> gggpkm_ (~gggpkm@124.126.15.211) has joined ##rust 2021-07-05 02:52:29 <-- gggpkm (~gggpkm@36.112.134.194) has quit (Ping timeout: 252 seconds) 2021-07-05 02:52:58 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 258 seconds) 2021-07-05 02:57:38 --> paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 02:59:45 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 265 seconds) 2021-07-05 03:03:04 -- imm__ is now known as imm_ 2021-07-05 03:06:11 <-- ruru4143 (~quassel@vmi444754.contaboserver.net) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-07-05 03:06:21 --> ruru4143 (~quassel@vmi444754.contaboserver.net) has joined ##rust 2021-07-05 03:07:09 <-- _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-05 03:07:55 --> _0x5fc3 (~0x5fc3@wireguard/tunneler/-0x5fc3) has joined ##rust 2021-07-05 03:09:32 tomboy64 i want to create a Vec> from an Iterator, where the nested Vec's length is determined. 2021-07-05 03:09:46 tomboy64 i noticed advance_by for iterators is experimental 2021-07-05 03:10:14 tomboy64 suggestions on how to do it without restarting the Iterator over and over again? 2021-07-05 03:10:31 tomboy64 all nested Vec's are of the same length 2021-07-05 03:15:09 Mutabah Hmm... 2021-07-05 03:15:27 --> mort (~mort@188.166.114.29) has joined ##rust 2021-07-05 03:15:42 tomboy64 i thought about using the .flatten() function from iterator 2021-07-05 03:15:55 Mutabah `let mut it = get_iterator; while it.peek().is_some() { rv.push( it.by_ref().take(inner_size).collect() ); }` 2021-07-05 03:16:32 Mutabah Something like that maybe 2021-07-05 03:17:36 tomboy64 hmm 2021-07-05 03:19:24 rk4 Mutabah: was wondering this morning, was your mrustc work funded? 2021-07-05 03:19:52 --> gggpkm (~gggpkm@111.63.14.116) has joined ##rust 2021-07-05 03:20:46 <-- gggpkm (~gggpkm@111.63.14.116) has quit (Remote host closed the connection) 2021-07-05 03:21:12 --> gggpkm (~gggpkm@111.63.14.116) has joined ##rust 2021-07-05 03:21:38 <-- gggpkm_ (~gggpkm@124.126.15.211) has quit (Ping timeout: 252 seconds) 2021-07-05 03:25:35 <-- bklo83 (~bklo@c-67-164-91-68.hsd1.ca.comcast.net) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-05 03:29:29 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 03:30:08 <-- Guest4267 (~chat@194.182.165.230) has quit (Quit: bleh!) 2021-07-05 03:30:22 --> eau (~chat@user/eau) has joined ##rust 2021-07-05 03:33:10 --> gggpkm_ (~gggpkm@60.10.23.171) has joined ##rust 2021-07-05 03:33:12 Mutabah rk4: nope 2021-07-05 03:34:42 --> Guest56 (~Guest56@117.222.183.122) has joined ##rust 2021-07-05 03:34:44 Guest56 hello 2021-07-05 03:35:08 rk4 interesting, so why'd you do it? sizable amount of work, pretty niche, i have no doubt you can make a lot more money per hour than i if you had decided to do something else 2021-07-05 03:35:22 <-- gggpkm (~gggpkm@111.63.14.116) has quit (Ping timeout: 240 seconds) 2021-07-05 03:35:44 Mutabah Well, I was a student when I started... but the main reason was "fun" 2021-07-05 03:36:20 Guest56 i would like to know how to use reqwest from importing it a program to performing http requests 2021-07-05 03:36:40 Mutabah There's something enjoyable about working on something because you want to - and being able to just bail for a few months if it gets too hard/boring 2021-07-05 03:37:16 capitol etu[m]: yeah, that's how i do hobby programming also :) 2021-07-05 03:37:45 osa1 with const generics can I pass a const bool argument and check it in compile time? 2021-07-05 03:38:00 <-- sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has quit (Read error: Permission denied) 2021-07-05 03:38:12 rk4 Guest56: https://github.com/seanmonstar/reqwest has an example, i'd start there 2021-07-05 03:38:18 --> sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has joined ##rust 2021-07-05 03:38:41 Guest56 ok @rk4 i will look at it 2021-07-05 03:39:18 -- pulec_ is now known as pulec 2021-07-05 03:39:54 <-- Nyeogmi (~Nyeogmi@user/nyeogmi) has quit (Ping timeout: 240 seconds) 2021-07-05 03:40:12 <-- pulec (~pulec@2a01:7c8:aabf:229:a8ad:c144:ead8:663) has quit (Changing host) 2021-07-05 03:40:12 --> pulec (~pulec@user/pulec) has joined ##rust 2021-07-05 03:41:04 <-- Guest56 (~Guest56@117.222.183.122) has quit (Quit: Client closed) 2021-07-05 03:43:59 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Read error: Connection reset by peer) 2021-07-05 03:51:52 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-05 03:56:15 --> fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has joined ##rust 2021-07-05 03:56:46 --> pupskuchen (~pupskuche@user/pupskuchen) has joined ##rust 2021-07-05 04:02:30 <-- sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has quit (Read error: Permission denied) 2021-07-05 04:02:46 --> sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has joined ##rust 2021-07-05 04:06:45 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-05 04:07:12 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-05 04:09:16 --> mpt (~tom@2a02:908:1862:49e0::8) has joined ##rust 2021-07-05 04:09:42 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 04:10:20 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-05 04:11:27 <-- cjb (~cjb@user/cjb) has quit (Ping timeout: 256 seconds) 2021-07-05 04:12:56 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-05 04:14:39 <-- meandi3 (~meandi4@dyndsl-178-142-255-137.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-07-05 04:14:47 --> meandi (~meandi4@dyndsl-178-142-255-137.ewe-ip-backbone.de) has joined ##rust 2021-07-05 04:15:48 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-07-05 04:18:37 --> pinpox (~pinpox@v2202101107577140883.nicesrv.de) has joined ##rust 2021-07-05 04:20:14 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-05 04:21:18 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 252 seconds) 2021-07-05 04:21:27 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-05 04:32:13 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-05 04:35:05 -- TimWolla_ is now known as TimWolla 2021-07-05 04:38:06 --> hegstal (~hegstal@2a02:c7f:7604:8a00:1a67:2b79:31fc:1012) has joined ##rust 2021-07-05 04:39:29 --> LeDragonDev (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has joined ##rust 2021-07-05 04:39:30 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-05 04:43:32 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 04:45:48 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-05 04:49:31 --> bronsen (~bronsen@2a04:d480:0:1::3) has joined ##rust 2021-07-05 04:53:51 <-- phryk (~totallyno@alkahest.phryk.net) has quit (Changing host) 2021-07-05 04:53:51 --> phryk (~totallyno@user/phryk) has joined ##rust 2021-07-05 04:54:11 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-05 04:54:57 <-- uovobw (~uovobw@node8.sas.hu) has quit (Changing host) 2021-07-05 04:54:57 --> uovobw (~uovobw@user/uovobw) has joined ##rust 2021-07-05 04:55:58 <-- gggpkm_ (~gggpkm@60.10.23.171) has quit (Read error: Connection reset by peer) 2021-07-05 04:56:36 <-- frostschutz (~frostschu@2a01:c23:8030:e500:b448:b491:81dc:6b65) has quit (Remote host closed the connection) 2021-07-05 05:13:34 <-- mpt (~tom@2a02:908:1862:49e0::8) has quit (Ping timeout: 246 seconds) 2021-07-05 05:16:10 bertptrs osa1: kind of but it's not like C++'s "constexpr if" and both the if and else should be valid 2021-07-05 05:16:42 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-05 05:17:47 <-- Xe (~cadey@tailscale/xe) has quit (Quit: WeeChat 3.1) 2021-07-05 05:17:48 osa1 that's good enough, thanks 2021-07-05 05:18:07 --> Xe (~cadey@tailscale/xe) has joined ##rust 2021-07-05 05:19:22 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 240 seconds) 2021-07-05 05:22:15 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-05 05:23:30 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-05 05:24:51 -- Guest7838 is now known as daemon 2021-07-05 05:25:22 -- daemon is now known as Guest734 2021-07-05 05:34:06 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-05 05:36:37 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-05 05:37:48 <-- Guest734 (znc@paulwebster.org) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-05 05:38:04 --> Alchemy (znc@about/web/TheBeardedBSDer) has joined ##rust 2021-07-05 05:38:32 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 05:40:16 --> tglman (~tglman@46.233.83.249) has joined ##rust 2021-07-05 05:40:49 -- Alchemy is now known as daemon 2021-07-05 05:41:06 <-- luna-is-here (~quassel@2a02:908:f761:2a3c::a) has quit (Quit: luna-is-here) 2021-07-05 05:41:34 --> luna-is-here (~quassel@2a02:908:f761:2a3c::a) has joined ##rust 2021-07-05 05:51:00 <-- swinnenb (~swinnenb@2a02:a03f:8469:a00:4db0:5d86:f229:3f4e) has quit (Changing host) 2021-07-05 05:51:00 --> swinnenb (~swinnenb@user/swinnenb) has joined ##rust 2021-07-05 05:51:08 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-05 05:57:38 rk4 Mutabah: nice :) 2021-07-05 05:58:42 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-07-05 05:59:02 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-05 05:59:35 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 252 seconds) 2021-07-05 05:59:49 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 06:00:23 --> SoF (~skius@user/skius) has joined ##rust 2021-07-05 06:04:23 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-07-05 06:09:53 --> chrysanthematic (~chrysanth@user/chrysanthematic) has joined ##rust 2021-07-05 06:09:53 <-- chrysanthematic (~chrysanth@user/chrysanthematic) has quit (Client Quit) 2021-07-05 06:11:53 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-05 06:12:04 totenkoph + /allpv 2021-07-05 06:12:13 totenkoph buffer clear 2021-07-05 06:13:52 <-- Trieste_ (T@user/pilgrim) has quit (Ping timeout: 252 seconds) 2021-07-05 06:15:52 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-05 06:15:56 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-07-05 06:19:04 --> Feuermagier_ (~Feuermagi@154.28.188.87) has joined ##rust 2021-07-05 06:21:30 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 240 seconds) 2021-07-05 06:23:58 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 06:24:37 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 246 seconds) 2021-07-05 06:25:49 --> travisshears (~travisshe@v2202007125557122958.megasrv.de) has joined ##rust 2021-07-05 06:28:04 osa1 clamp for i32/i64/etc. when? 2021-07-05 06:29:24 <-- travisshears (~travisshe@v2202007125557122958.megasrv.de) has quit (Client Quit) 2021-07-05 06:29:37 j`ey https://doc.rust-lang.org/std/cmp/trait.Ord.html#method.clamp osa1 2021-07-05 06:29:55 j`ey evalr2: 10.clamp(0, 5) 2021-07-05 06:29:59 -- Notice(evalr2): j`ey: 5 2021-07-05 06:30:11 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-05 06:31:39 osa1 j`ey: ahh, f32/f64 have it as methods as they're not Ord. makes sense, thanks! 2021-07-05 06:31:52 j`ey yeah 2021-07-05 06:32:02 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-05 06:33:40 --> gggpkm (~gggpkm@36.112.135.215) has joined ##rust 2021-07-05 06:44:52 <-- bw_ (sid2730@id-2730.charlton.irccloud.com) has quit (Changing host) 2021-07-05 06:44:52 --> bw_ (sid2730@user/betawaffle) has joined ##rust 2021-07-05 06:45:14 -- bw_ is now known as bw 2021-07-05 06:45:37 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 246 seconds) 2021-07-05 06:48:03 <-- kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has quit (Quit: WeeChat 3.1) 2021-07-05 06:53:44 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-05 06:58:34 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-05 07:02:32 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-05 07:12:18 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 07:12:26 --> kvn (~weechat@cpc115982-dals23-2-0-cust605.20-2.cable.virginm.net) has joined ##rust 2021-07-05 07:16:34 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-05 07:20:28 <-- Allegretto (~allegrett@91-83-34-167.pool.digikabel.hu) has quit (Ping timeout: 268 seconds) 2021-07-05 07:25:44 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-05 07:26:09 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-05 07:26:38 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 07:28:21 --> birchturtle (~birchturt@0xc2138a5f.hc.customer.dk.telia.net) has joined ##rust 2021-07-05 07:28:32 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 07:33:07 --> Allegretto (~allegrett@84-236-93-61.pool.digikabel.hu) has joined ##rust 2021-07-05 07:33:34 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 246 seconds) 2021-07-05 07:33:48 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-05 07:33:55 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-05 07:34:00 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-05 07:38:45 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-05 07:39:26 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-05 07:41:37 <-- tglman (~tglman@46.233.83.249) has quit (Ping timeout: 246 seconds) 2021-07-05 07:48:54 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-05 07:49:02 <-- gggpkm (~gggpkm@36.112.135.215) has quit (Ping timeout: 252 seconds) 2021-07-05 07:52:35 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-05 08:00:09 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 08:03:17 --> extmind (~lars@quasar.extmind.de) has joined ##rust 2021-07-05 08:04:27 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 08:13:01 <-- cmagina_ (sid286142@user/cmagina) has quit 2021-07-05 08:13:17 --> cmagina_ (sid286142@id-286142.highgate.irccloud.com) has joined ##rust 2021-07-05 08:14:38 --> rooferz (~ptonderea@76.107.21.93.rev.sfr.net) has joined ##rust 2021-07-05 08:15:21 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Remote host closed the connection) 2021-07-05 08:15:37 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-05 08:15:38 <-- rooferz (~ptonderea@76.107.21.93.rev.sfr.net) has quit (Client Quit) 2021-07-05 08:15:43 --> Feuermagier (~Feuermagi@user/feuermagier) has joined ##rust 2021-07-05 08:16:58 <-- Feuermagier_ (~Feuermagi@154.28.188.87) has quit (Ping timeout: 246 seconds) 2021-07-05 08:18:40 --> genieliu_ (~genieliu@103.37.140.25) has joined ##rust 2021-07-05 08:20:34 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-05 08:22:33 --> sord937_ (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-05 08:24:06 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Remote host closed the connection) 2021-07-05 08:26:22 <-- oaken-source (~oaken-sou@user/oaken-source) has left ##rust 2021-07-05 08:28:35 -- shantaram is now known as shan 2021-07-05 08:29:04 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-05 08:34:50 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Remote host closed the connection) 2021-07-05 08:35:42 --> coffeejunk (~coffeejun@static.200.0.21.65.clients.your-server.de) has joined ##rust 2021-07-05 08:36:42 --> paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 08:40:05 <-- Kabouik (~Kabouik@2a03:4000:4d:fbd:4fe:b1ff:fee3:35d) has quit (Changing host) 2021-07-05 08:40:05 --> Kabouik (~Kabouik@user/kabouik) has joined ##rust 2021-07-05 08:41:47 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Remote host closed the connection) 2021-07-05 08:43:36 --> paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 08:44:05 <-- emerent (~quassel@p200300cd5703bb1aba27ebfffed28a59.dip0.t-ipconnect.de) has quit (Ping timeout: 256 seconds) 2021-07-05 08:44:40 --> psftw (sid440508@id-440508.highgate.irccloud.com) has joined ##rust 2021-07-05 08:44:49 --> emerent (~quassel@p54a3ed3c.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 08:47:47 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 252 seconds) 2021-07-05 08:49:19 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-05 08:49:28 <-- starblue1 (~juergen@dslb-094-221-185-171.094.221.pools.vodafone-ip.de) has quit (Quit: WeeChat 2.3) 2021-07-05 08:56:28 <-- sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has quit (Read error: Permission denied) 2021-07-05 08:56:49 --> sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has joined ##rust 2021-07-05 08:57:01 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 09:01:06 <-- euandreh (~euandreh@2804:14c:33:9fe5:5705:7057:8694:6ccc) has quit (Ping timeout: 240 seconds) 2021-07-05 09:02:06 --> euandreh (~euandreh@2804:14c:33:9fe5:4933:b786:844d:bba5) has joined ##rust 2021-07-05 09:02:15 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-05 09:03:29 --> paule_ (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 09:03:31 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Ping timeout: 246 seconds) 2021-07-05 09:03:39 -- paule_ is now known as paule 2021-07-05 09:07:03 <-- asm (~alexander@burner.asm89.io) has quit (Changing host) 2021-07-05 09:07:03 --> asm (~alexander@user/asm) has joined ##rust 2021-07-05 09:07:37 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 09:08:03 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Read error: Connection reset by peer) 2021-07-05 09:08:19 --> paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 09:11:46 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-05 09:24:03 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-05 09:24:52 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-07-05 09:25:14 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 09:25:36 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-05 09:30:06 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-05 09:31:16 <-- gchristensen (~grahamc@flexo.gsc.io) has quit (Quit: WeeChat 2.9) 2021-07-05 09:31:52 --> gchristensen (~grahamc@user/gchristensen) has joined ##rust 2021-07-05 09:38:10 --> jelle (~jelle@archlinux/developer/jelle) has joined ##rust 2021-07-05 09:42:21 janik majors: 2021-07-05 09:42:43 janik note to self: don't cycle through user list by pressing tab. Sorry. 2021-07-05 09:43:25 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-07-05 09:43:53 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-07-05 09:44:25 -- hoistbypetard_ is now known as hoistbypetard 2021-07-05 09:45:08 <-- hoistbypetard (hoistbypet@2600:3c00::f03c:91ff:fe50:6ee6) has quit (Changing host) 2021-07-05 09:45:08 --> hoistbypetard (hoistbypet@user/hoistbypetard) has joined ##rust 2021-07-05 09:46:44 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 09:47:16 <-- genieliu_ (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-05 09:51:21 --> Guest37 (~Guest37@117.222.183.122) has joined ##rust 2021-07-05 09:54:58 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-07-05 09:55:24 Guest37 my reqwest code: 2021-07-05 09:55:44 Guest37 extern crate reqwest; 2021-07-05 09:55:44 Guest37 pub async fn request(){ 2021-07-05 09:55:45 Guest37 let response=reqwest::get("https://junaidbashir-kernel.github.io/dropsofmyheart.github.io/") 2021-07-05 09:55:45 Guest37 .await 2021-07-05 09:55:46 Guest37 .expect("read error") 2021-07-05 09:55:46 Guest37 .text() 2021-07-05 09:55:47 Guest37 .await 2021-07-05 09:55:47 Guest37 .expect("read error"); 2021-07-05 09:55:48 Guest37 println!(" body = {:?}",response); 2021-07-05 09:55:48 Guest37 } 2021-07-05 09:55:52 Guest37 my main code: 2021-07-05 09:56:01 j`ey Guest37: dont post code! 2021-07-05 09:56:28 j`ey Guest37: use https://play.rust-lang.org/?version=stable&mode=debug&edition=2018 2021-07-05 09:56:42 Guest37 ok 2021-07-05 09:56:43 <-- hendursa1 (~weechat@user/hendursaga) has quit (Quit: hendursa1) 2021-07-05 09:56:59 Guest37 thnaks@j `ey 2021-07-05 09:57:14 --> hendursaga (~weechat@user/hendursaga) has joined ##rust 2021-07-05 09:58:42 cehteh and hit share there when you want to share it haha :D 2021-07-05 10:00:14 bertptrs (and don't @ people on IRC) 2021-07-05 10:00:56 --> meeg_leeto (~miguelmur@user/miguelmurca) has joined ##rust 2021-07-05 10:01:10 Guest37 yes but the problem is i have a external file with actual code in it how can i create another file in rust playground and then call that from main ? 2021-07-05 10:01:16 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-07-05 10:01:48 lambda just put it all in there, surrounded by a `mod xyz {}` scope if necessary 2021-07-05 10:01:48 cehteh no 2021-07-05 10:02:00 Guest37 because you wouldnt be able to see the output 2021-07-05 10:02:12 Lumpio- You can paste the output too 2021-07-05 10:02:22 j`ey well it's no worse than pasting it into irc directly :P 2021-07-05 10:02:42 Guest37 ok wait 2021-07-05 10:03:17 cehteh most importantly: whats your problem? 2021-07-05 10:04:22 Guest37 this is the link to my actual code file :https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=d9bedc6b45ec22420cf9752ae02b0d49 2021-07-05 10:04:49 Lumpio- You already pasted that here, and you still haven't pasted the error message 2021-07-05 10:04:56 Guest37 this is link to main file containing main function:https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=8b73ac37ca143f3af28935f0e57016b8 2021-07-05 10:05:03 Guest37 wait 2021-07-05 10:05:04 <-- meeg_leeto (~miguelmur@user/miguelmurca) has left ##rust (ADHD) 2021-07-05 10:05:09 jbg (we're not psychic, so we don't know *why* you're showing us all this code!) 2021-07-05 10:05:18 Lumpio- There might not even be an error 2021-07-05 10:05:25 Guest37 well i dont get any output 2021-07-05 10:05:25 Lumpio- You never use the future returned by your web::request 2021-07-05 10:05:36 Lumpio- Rust futures are inert unless polled 2021-07-05 10:05:36 <-- unyu (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-07-05 10:05:45 jbg request().await 2021-07-05 10:05:48 Lumpio- You need to choose a runtime too 2021-07-05 10:06:00 jbg it's not like javascript with a magical implicit runtime that polls every future that ever gets made 2021-07-05 10:06:22 Lumpio- The compiler should've given you a warning about this when you compile 2021-07-05 10:06:51 Guest37 well i m new to rust ,just learning it so i have no idea about these 2021-07-05 10:07:14 Lumpio- tokio is one popular async runtime 2021-07-05 10:07:52 Lumpio- https://rust-lang-nursery.github.io/rust-cookbook/web/clients/requests.html#async here's how to use tokio (mainly look at tokio::main) 2021-07-05 10:08:57 Guest37 alright thanks i will look at it 2021-07-05 10:10:51 <-- Guest37 (~Guest37@117.222.183.122) has quit (Quit: Client closed) 2021-07-05 10:12:41 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 10:13:24 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-05 10:15:22 --> saschagrunert (~saschagru@46.128.124.113) has joined ##rust 2021-07-05 10:16:29 --> antonym (uid432694@user/antonym) has joined ##rust 2021-07-05 10:16:32 <-- fkaa (~fkaa@81-226-20-99-no256.tbcn.telia.com) has quit (Remote host closed the connection) 2021-07-05 10:17:24 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 10:17:44 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-05 10:17:46 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-05 10:18:55 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Client Quit) 2021-07-05 10:20:56 <-- crest (~quassel@user/crest) has quit (Read error: Connection reset by peer) 2021-07-05 10:21:05 --> crest (~quassel@user/crest) has joined ##rust 2021-07-05 10:24:54 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-05 10:32:15 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 10:32:41 <-- sord937_ (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-05 10:34:52 --> sord937_ (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-05 10:36:47 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 10:37:01 --> starblue (~juergen@dslb-094-221-185-171.094.221.pools.vodafone-ip.de) has joined ##rust 2021-07-05 10:43:06 <-- goldfish (~goldfish@user/goldfish) has quit (Remote host closed the connection) 2021-07-05 10:43:20 --> _42large (~user@37.120.197.42) has joined ##rust 2021-07-05 10:45:04 <-- _42large (~user@37.120.197.42) has quit (Client Quit) 2021-07-05 10:45:18 --> _42large (~user@37.120.197.42) has joined ##rust 2021-07-05 10:46:08 -- ox is now known as oz 2021-07-05 10:49:35 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-05 10:49:39 <-- nemo_ (nemo@c-73-212-126-29.hsd1.md.comcast.net) has quit (Changing host) 2021-07-05 10:49:39 --> nemo_ (nemo@hedgewars/dev/nemo) has joined ##rust 2021-07-05 10:49:42 -- nemo_ is now known as nemo 2021-07-05 10:49:44 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Quit: WeeChat 3.0.1) 2021-07-05 10:52:10 <-- euandreh (~euandreh@2804:14c:33:9fe5:4933:b786:844d:bba5) has quit (Ping timeout: 240 seconds) 2021-07-05 10:53:25 --> euandreh (~euandreh@2804:14c:33:9fe5:af84:7945:9a52:2fce) has joined ##rust 2021-07-05 10:54:26 <-- chowmeined (~chowmeine@user/chowmeined) has quit (Read error: Connection reset by peer) 2021-07-05 10:54:46 --> chowmeined (~chowmeine@user/chowmeined) has joined ##rust 2021-07-05 10:55:27 <-- DRG (~dev@2a02-a454-4540-1-dc23-16be-3eed-f6c0.fixed6.kpn.net) has quit (Quit: WeeChat 2.9) 2021-07-05 10:56:00 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-05 10:58:27 j`ey anyone get a better idea? https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=ecc88f6d67ad0286f4413d4862e36416 https://stackoverflow.com/questions/60074639/swapping-two-entries-of-a-hashmap 2021-07-05 11:00:30 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-05 11:01:09 <-- noonien (~noonien@user/noonien) has quit (Ping timeout: 265 seconds) 2021-07-05 11:03:04 --> Feuermagier_ (~Feuermagi@213.178.26.41) has joined ##rust 2021-07-05 11:05:56 <-- Feuermagier (~Feuermagi@user/feuermagier) has quit (Ping timeout: 252 seconds) 2021-07-05 11:08:16 --> amvc (~amvc@89.36.78.212) has joined ##rust 2021-07-05 11:10:13 danieldg j`ey: looks about as good as it gets. ptr::swap is OK with a == b. 2021-07-05 11:11:04 j`ey i suggested just removing and re-inserting, theyre going with that, since it requires no unsafe 2021-07-05 11:11:14 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-05 11:17:08 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-05 11:17:57 danieldg a general multi-get-mut on hashmap might be interesting, especially if via the entry API 2021-07-05 11:17:58 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-05 11:18:08 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Remote host closed the connection) 2021-07-05 11:18:57 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-05 11:19:10 --> r[]n|n (~r]n|n@2601:283:4602:43e0:fc0b:5bb0:47d0:16a9) has joined ##rust 2021-07-05 11:19:53 --> paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has joined ##rust 2021-07-05 11:22:49 <-- r[]n|n (~r]n|n@2601:283:4602:43e0:fc0b:5bb0:47d0:16a9) has quit (Client Quit) 2021-07-05 11:31:35 <-- Feuermagier_ (~Feuermagi@213.178.26.41) has quit (Remote host closed the connection) 2021-07-05 11:34:59 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 252 seconds) 2021-07-05 11:35:06 <-- tha (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: tha) 2021-07-05 11:37:31 <-- _42large (~user@37.120.197.42) has quit (Ping timeout: 246 seconds) 2021-07-05 11:37:40 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-05 11:38:43 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 11:39:08 <-- djapo (~archangel@user/djapo) has quit (Client Quit) 2021-07-05 11:39:24 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-05 11:40:31 --> _42large (~user@37.120.197.48) has joined ##rust 2021-07-05 11:45:12 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-07-05 11:47:20 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 11:48:06 Yruama hello 2021-07-05 11:48:08 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 11:49:19 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Client Quit) 2021-07-05 11:49:30 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-07-05 11:49:52 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 11:50:21 --> kericsson (~kericsson@user/kericsson) has joined ##rust 2021-07-05 11:51:38 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-05 11:51:40 --> pwnd_sfw1 (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-07-05 11:52:36 --> luca0N_ (~luca0N@nautilus.luca0n.com) has joined ##rust 2021-07-05 11:52:58 <-- _42large (~user@37.120.197.48) has quit (Ping timeout: 240 seconds) 2021-07-05 11:53:06 <-- dvu (~danielvu@168.235.66.22) has quit (Ping timeout: 272 seconds) 2021-07-05 11:53:06 <-- luca0N (~luca0N@nautilus.luca0n.com) has quit (Ping timeout: 272 seconds) 2021-07-05 11:53:13 --> Ellipsis753 (~shanee@193.138.218.216) has joined ##rust 2021-07-05 11:53:25 Yruama i'd like to know how you handle post build action ? i tried the xtask method, but i quickly ended by writing a lot of code 2021-07-05 11:53:27 --> _42large (~user@37.120.197.48) has joined ##rust 2021-07-05 11:53:44 <-- mwbrown (~mwbrown@cpe-71-72-240-78.insight.res.rr.com) has quit (Ping timeout: 272 seconds) 2021-07-05 11:53:44 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 272 seconds) 2021-07-05 11:53:44 -- pwnd_sfw1 is now known as pwnd_sfw 2021-07-05 11:53:58 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 246 seconds) 2021-07-05 11:54:07 --> dvu (~danielvu@168.235.66.22) has joined ##rust 2021-07-05 11:55:54 <-- saschagrunert (~saschagru@46.128.124.113) has quit (Remote host closed the connection) 2021-07-05 11:55:58 --> Vhagar (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-07-05 11:56:02 Ellipsis753 Hi. Rocket has macros like #[get("/")]. How do these work internally? You'd think they might append to a list of routes, but I don't know how this is done outside of a function at compile time? (I tried looking at the Rocket source, but it was beyond me) 2021-07-05 11:56:08 <-- birchturtle (~birchturt@0xc2138a5f.hc.customer.dk.telia.net) has quit (Quit: leaving) 2021-07-05 11:56:37 SergioB You can watch my RustConf talk on Rocket where I explain exactly how this works. 2021-07-05 11:56:41 danieldg I think there's a cargo-expand, try that 2021-07-05 11:57:44 SergioB Cargo expand is a fairly poor teaching tool. 2021-07-05 11:58:01 --> mightypork_ (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 11:58:10 <-- _42large (~user@37.120.197.48) has quit (Ping timeout: 240 seconds) 2021-07-05 11:58:10 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Ping timeout: 246 seconds) 2021-07-05 11:58:28 SergioB Ellipsis753: https://youtube.com/watch?v=t_FUZ34ahBE 2021-07-05 11:58:40 <-- tims2 (~tims@220.240.106.233) has quit (Ping timeout: 265 seconds) 2021-07-05 11:58:47 --> mwbrown (~mwbrown@user/mwbrown) has joined ##rust 2021-07-05 11:59:04 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 11:59:17 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-07-05 12:00:06 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 12:00:37 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 246 seconds) 2021-07-05 12:00:52 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-05 12:01:02 --> _42large (~user@37.120.197.42) has joined ##rust 2021-07-05 12:02:15 Ellipsis753 Ok. I'll take a look at the talk and cargo expand. Thanks. 2021-07-05 12:04:10 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-07-05 12:04:52 --> bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-05 12:07:56 <-- smarton (~smarton@121407.xyz) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-07-05 12:11:32 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 12:11:58 --> smarton (~smarton@2a01:4f9:c010:4e92::1) has joined ##rust 2021-07-05 12:12:35 <-- smarton (~smarton@2a01:4f9:c010:4e92::1) has quit (Client Quit) 2021-07-05 12:13:22 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 240 seconds) 2021-07-05 12:13:51 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 12:16:44 --> smarton (~smarton@121407.xyz) has joined ##rust 2021-07-05 12:17:35 Ellipsis753 Watched the talk. Very interesting. Thank you. 2021-07-05 12:17:54 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-05 12:18:25 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Quit: CodeSpelunker) 2021-07-05 12:18:39 <-- fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has quit (Quit: WeeChat 3.2) 2021-07-05 12:20:05 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-05 12:20:34 -- smarton is now known as brown121407 2021-07-05 12:21:26 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-05 12:21:58 -- alexxxxxey is now known as alexxey 2021-07-05 12:22:03 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-05 12:23:56 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-05 12:27:43 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-05 12:28:18 <-- LeDragonDev (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has quit (Quit: Client closed) 2021-07-05 12:30:26 <-- Ellipsis753 (~shanee@193.138.218.216) has quit (Quit: Leaving) 2021-07-05 12:31:21 --> safinaskar (~user@109-252-90-89.nat.spd-mgts.ru) has joined ##rust 2021-07-05 12:31:28 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-05 12:31:31 safinaskar https://doc.rust-lang.org/std/index.html lists keywords 2021-07-05 12:31:41 safinaskar so, keywords are defined by "std" crate? 2021-07-05 12:31:50 safinaskar so i can define my own keywords in my crate?! 2021-07-05 12:32:34 GreenJello I think it's just convenient to document them here 2021-07-05 12:32:51 GreenJello you can't define your own keywords 2021-07-05 12:33:01 GreenJello and they're not part of std 2021-07-05 12:33:02 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 12:33:36 safinaskar GreenJello: thanks 2021-07-05 12:33:50 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-05 12:36:53 <-- safinaskar (~user@109-252-90-89.nat.spd-mgts.ru) has left ##rust 2021-07-05 12:38:14 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 12:38:41 --> gnomesort (~gnomesort@user/gnomesort) has joined ##rust 2021-07-05 12:40:12 <-- Rayke (rayke@user/rayke) has quit (Quit: WeeChat 3.2) 2021-07-05 12:40:53 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-05 12:42:20 --> Rayke (rayke@user/rayke) has joined ##rust 2021-07-05 12:42:44 <-- Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has quit (Remote host closed the connection) 2021-07-05 12:43:12 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 12:47:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 12:49:34 --> Natch (~natch@c-e070e255.014-297-73746f25.bbcust.telenor.se) has joined ##rust 2021-07-05 12:52:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 12:52:52 --> remirol (~lorimer@user/lorimer) has joined ##rust 2021-07-05 12:52:52 <-- lorimer (~lorimer@user/lorimer) has quit (Killed (NickServ (GHOST command used by remirol))) 2021-07-05 12:53:01 -- remirol is now known as lorimer 2021-07-05 12:56:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 13:01:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:01:42 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-05 13:03:54 kupi if I .get(index) a value from a Vec the pointer inside the option points to the heap? 2021-07-05 13:04:30 j`ey yeah 2021-07-05 13:04:51 j`ey although we say reference, rather than pointer 2021-07-05 13:04:57 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 13:05:16 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-07-05 13:05:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 13:06:47 <-- vicfred (~vicfred@user/vicfred) has quit (Remote host closed the connection) 2021-07-05 13:07:55 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-07-05 13:07:57 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-05 13:10:12 --> Nyeogmi (~Nyeogmi@2601:645:8700:bea0:e1aa:9208:9924:f739) has joined ##rust 2021-07-05 13:10:14 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:10:20 <-- Nyeogmi (~Nyeogmi@2601:645:8700:bea0:e1aa:9208:9924:f739) has quit (Changing host) 2021-07-05 13:10:20 --> Nyeogmi (~Nyeogmi@user/nyeogmi) has joined ##rust 2021-07-05 13:11:46 --> safinaskar (~user@109-252-90-89.nat.spd-mgts.ru) has joined ##rust 2021-07-05 13:11:53 safinaskar how to compare references for equality? 2021-07-05 13:13:53 hotcoffee safinaskar: would you need that, if they are owned? You want to compare the reference or the value it points to? 2021-07-05 13:14:23 <-- timemage (timemage@user/timemage) has quit (Ping timeout: 256 seconds) 2021-07-05 13:14:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 13:14:59 GreenJello there's std::ptr::eq which works for most references 2021-07-05 13:15:33 GreenJello but you have to be pretty careful to not pass it a reference to a reference or whatever 2021-07-05 13:18:20 safinaskar hotcoffee: GreenJello: thanks 2021-07-05 13:19:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:19:23 --> timemage (timemage@user/timemage) has joined ##rust 2021-07-05 13:21:07 <-- safinaskar (~user@109-252-90-89.nat.spd-mgts.ru) has quit (Quit: leaving) 2021-07-05 13:21:51 --> safinaskar (~user@109.252.90.89) has joined ##rust 2021-07-05 13:22:08 <-- xse_ (~xse@user/xse) has quit (Ping timeout: 252 seconds) 2021-07-05 13:22:15 safinaskar is there a way to quickly find documentation for combination "type + method name"? 2021-07-05 13:22:32 safinaskar for example, i am trying to find docs for "iter" method of array 2021-07-05 13:22:36 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-05 13:22:55 safinaskar this should work for all methods, both intristic methods and methods from generic traits 2021-07-05 13:23:13 <-- kericsson (~kericsson@user/kericsson) has quit (Quit: My Mac Mini has gone to sleep. ZZZzzz…) 2021-07-05 13:23:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 13:25:01 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 13:28:02 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Client Quit) 2021-07-05 13:28:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:29:23 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 13:29:50 j`ey I dont think there is 2021-07-05 13:31:40 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Client Quit) 2021-07-05 13:33:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 13:35:12 safinaskar ok 2021-07-05 13:35:44 safinaskar how to create HashMap from static data? 2021-07-05 13:36:03 safinaskar docs show this way: [("a", 0), ("b", 1)].iter().cloned().collect() 2021-07-05 13:36:06 safinaskar is there shorter way? 2021-07-05 13:37:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:38:35 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 13:39:14 --> bread (uid502657@id-502657.brockwell.irccloud.com) has joined ##rust 2021-07-05 13:40:55 j`ey not really 2021-07-05 13:41:06 j`ey there's a crate clled map-lit that has a macro for it 2021-07-05 13:42:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 13:44:10 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-05 13:46:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:48:28 safinaskar j`ey: thanks 2021-07-05 13:48:45 <-- safinaskar (~user@109.252.90.89) has left ##rust 2021-07-05 13:49:05 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-05 13:50:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 13:51:20 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-05 13:51:56 SergioB Lots of crates have a map! macro of sorts, if you want sugar. 2021-07-05 13:52:28 --> safinaskar (~user@109.252.90.89) has joined ##rust 2021-07-05 13:52:51 safinaskar i installed rustc using rustup. My OS is debian stretch. How to compile source using rust 2021? 2021-07-05 13:53:02 safinaskar preferably without creating config 2021-07-05 13:53:09 safinaskar i. e. simply by calling rustc from command line 2021-07-05 13:53:34 safinaskar i tried "rustc --edition 2021", but i got message "error: the crate requires edition 2021, but the latest edition supported by this Rust version is 2018" 2021-07-05 13:53:44 j`ey safinaskar: there is no 2021 edition yet 2021-07-05 13:54:06 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-05 13:54:22 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-05 13:54:39 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-05 13:54:54 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-05 13:55:40 kupi https://gist.github.com/theqp/51e48dd87ef97901807cd5f3440d0c9b 2021-07-05 13:55:52 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 13:55:57 kupi am I doing too many copies and dereferences, or is this fine? 2021-07-05 13:55:58 <-- _42large (~user@37.120.197.42) has quit (Quit: Konversation terminated!) 2021-07-05 13:58:46 SpaceManiac kupi: if you work entirely with references than the cloning is unnecessary 2021-07-05 13:59:36 <-- jinie (~jimmy@188.114.173.37) has quit (Quit: ZNC 1.8.2 - https://znc.in) 2021-07-05 13:59:58 --> jinie (~jimmy@188.114.173.37) has joined ##rust 2021-07-05 14:00:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:00:41 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-05 14:00:43 --> xse (~xse@user/xse) has joined ##rust 2021-07-05 14:01:48 kupi SpaceManiac: I want to make a generic implementation in functional style 2021-07-05 14:02:43 SpaceManiac it only becomes more generic by removing the T:Clone bound: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1bf20f25255d665d5c376da8a3488e59 2021-07-05 14:04:13 kupi SpaceManiac: [T] means array for which the size is known at compile time? 2021-07-05 14:04:45 SpaceManiac it's a slice: https://doc.rust-lang.org/std/primitive.slice.html 2021-07-05 14:04:54 SpaceManiac &Vec coerces to &[T] 2021-07-05 14:05:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:06:56 <-- diophantoz (~dz@user/diophantoz) has left ##rust 2021-07-05 14:07:37 bertptrs it's sice is explicitly unknown 2021-07-05 14:07:43 bertptrs (at compile time) 2021-07-05 14:07:50 bertptrs size dang it 2021-07-05 14:10:44 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 252 seconds) 2021-07-05 14:11:15 kupi type of T in .iter() is &T, doesn't that mean it's an iterator of references? 2021-07-05 14:11:29 bertptrs The iterator yields references, correct 2021-07-05 14:11:59 safinaskar j`ey: ok 2021-07-05 14:12:03 <-- safinaskar (~user@109.252.90.89) has left ##rust 2021-07-05 14:12:24 j`ey why dont they just leave their client open :P 2021-07-05 14:12:34 bertptrs .iter() does not consume the underlying thing (into_iterator does) so it can't hand you a copy unless the thing is Copy 2021-07-05 14:13:10 --> menace (~someone@2001:a61:3423:8801:5458:d25b:bc1c:1df3) has joined ##rust 2021-07-05 14:13:10 <-- menace (~someone@2001:a61:3423:8801:5458:d25b:bc1c:1df3) has quit (Changing host) 2021-07-05 14:13:10 --> menace (~someone@user/menace) has joined ##rust 2021-07-05 14:13:23 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-05 14:13:23 kupi if that's the case why does `vec![1.clone(), 1.clone()]).iter().counts()` return `{1: 2}`? 2021-07-05 14:13:36 kupi the references are unique due to clone or not? 2021-07-05 14:14:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:14:08 bertptrs references don't use pointer comparisons but value comparisons 2021-07-05 14:15:32 j`ey kupi: why the clones there? 2021-07-05 14:15:34 --> Guest21 (~Guest21@de01-6ae1-1636-3939-2880-8c5d-07d0-2001.dyn.estpak.ee) has joined ##rust 2021-07-05 14:15:42 bertptrs kupi: https://doc.rust-lang.org/std/primitive.reference.html 2021-07-05 14:15:50 kupi j`ey: because I wanted a T iterator 2021-07-05 14:16:06 bertptrs then use into_iterator 2021-07-05 14:16:17 j`ey kupi: but that's cloning the 1.. 2021-07-05 14:16:59 <-- menace (~someone@user/menace) has left ##rust 2021-07-05 14:17:41 Alexendoo kupi: &1 will debug print as 1, it's still a HashMap<&T, usize> 2021-07-05 14:17:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:18:10 Alexendoo also yeah when you clone 1 you just get the same 1, it doesn't do anything in that example 2021-07-05 14:21:44 --> Trieste (~T@user/pilgrim) has joined ##rust 2021-07-05 14:21:47 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 14:22:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 14:25:05 <-- Guest21 (~Guest21@de01-6ae1-1636-3939-2880-8c5d-07d0-2001.dyn.estpak.ee) has quit (Quit: Client closed) 2021-07-05 14:26:10 <-- Trieste (~T@user/pilgrim) has quit (Ping timeout: 240 seconds) 2021-07-05 14:26:23 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Client Quit) 2021-07-05 14:27:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:27:46 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-05 14:29:44 --> Trieste (T@user/pilgrim) has joined ##rust 2021-07-05 14:31:17 kupi so &a == &b deferenced both a and b, but what about &&a == &&b? 2021-07-05 14:31:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:34:47 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 14:35:36 <-- fingercomp (~fingercom@fomalhaut.me) has quit (*.net *.split) 2021-07-05 14:35:37 <-- jelle (~jelle@archlinux/developer/jelle) has quit (*.net *.split) 2021-07-05 14:35:37 <-- faern (~faern@h-98-128-172-186.a785.priv.bahnhof.se) has quit (*.net *.split) 2021-07-05 14:35:37 <-- jdt (~jdt@38.77.195.50) has quit (*.net *.split) 2021-07-05 14:35:37 <-- xfz_ (~xperi0@185.21.217.78) has quit (*.net *.split) 2021-07-05 14:35:37 <-- murr4y (ali@38.95.231.35.bc.googleusercontent.com) has quit (*.net *.split) 2021-07-05 14:35:37 <-- p2-mate (~p2@emantra.psychaos.be) has quit (*.net *.split) 2021-07-05 14:35:37 <-- edr (~edr@user/edr) has quit (*.net *.split) 2021-07-05 14:35:37 <-- gcd (gd@104-9-69-236.lightspeed.nsvltn.sbcglobal.net) has quit (*.net *.split) 2021-07-05 14:35:37 <-- eroux (~eroux@102-65-82-79.ftth.web.africa) has quit (*.net *.split) 2021-07-05 14:35:37 <-- ibigbug (~thelounge@115.131.11.47) has quit (*.net *.split) 2021-07-05 14:35:37 <-- SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has quit (*.net *.split) 2021-07-05 14:35:37 <-- Arnavion (arnavion@user/arnavion) has quit (*.net *.split) 2021-07-05 14:35:37 <-- LucaTM (~LucaTM@user/lucatm) has quit (*.net *.split) 2021-07-05 14:35:37 <-- deepy (deepy@user/deepy) has quit (*.net *.split) 2021-07-05 14:35:38 <-- printf (~printf@user/printf) has quit (*.net *.split) 2021-07-05 14:35:38 <-- richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has quit (*.net *.split) 2021-07-05 14:35:38 <-- nameless (~nameless@user/nameless) has quit (*.net *.split) 2021-07-05 14:35:38 <-- raoul (~raoul@nom4.xyz) has quit (*.net *.split) 2021-07-05 14:35:38 <-- edcragg (~edcragg@nom4.xyz) has quit (*.net *.split) 2021-07-05 14:35:38 <-- me (~thement@user/me) has quit (*.net *.split) 2021-07-05 14:35:38 <-- croax (9593c976ee@ghost.pepta.net) has quit (*.net *.split) 2021-07-05 14:35:38 <-- cultpony (~cultpony@user/cultpony) has quit (*.net *.split) 2021-07-05 14:35:38 <-- xkr47 (xkr47@91-150-59-18.customer.karistelefon.fi) has quit (*.net *.split) 2021-07-05 14:35:39 <-- LogicAside (~LogicAsid@user/logicaside) has quit (*.net *.split) 2021-07-05 14:35:39 <-- dirbaio2 (~dirbaio@nsmbhd.net) has quit (*.net *.split) 2021-07-05 14:35:39 <-- willcl_ark (~quassel@user/willcl-ark/x-8282106) has quit (*.net *.split) 2021-07-05 14:35:39 <-- LawnGnome (~LawnGnome@user/lawngnome) has quit (*.net *.split) 2021-07-05 14:35:39 <-- flynn (~mcbloch@user/flynn) has quit (*.net *.split) 2021-07-05 14:35:39 <-- ColdKeyboard (~ColdKeybo@user/coldkeyboard) has quit (*.net *.split) 2021-07-05 14:35:39 <-- swistak (~swistak@185.21.216.141) has quit (*.net *.split) 2021-07-05 14:35:39 <-- fbernier (~fbernier@149.248.62.56) has quit (*.net *.split) 2021-07-05 14:35:39 <-- ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has quit (*.net *.split) 2021-07-05 14:35:40 <-- Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has quit (*.net *.split) 2021-07-05 14:35:40 <-- mattgirv (quassel@apps.fossgalaxy.com) has quit (*.net *.split) 2021-07-05 14:35:40 <-- trh (~trh@hera.debugco.de) has quit (*.net *.split) 2021-07-05 14:35:40 <-- HappyMan (~HappyMan@user/happyman) has quit (*.net *.split) 2021-07-05 14:35:40 <-- jngbsn (~jngbsn@user/jngbsn) has quit (*.net *.split) 2021-07-05 14:35:40 <-- RayS (~raysl@sdf1.xen.prgmr.com) has quit (*.net *.split) 2021-07-05 14:35:40 <-- talin (~unknown@hydra.org) has quit (*.net *.split) 2021-07-05 14:35:40 <-- synthmeat (~synthmeat@user/synthmeat) has quit (*.net *.split) 2021-07-05 14:35:40 <-- jermz (~jermz@user/jermz) has quit (*.net *.split) 2021-07-05 14:35:40 <-- Evergreen (~me@user/evergreen) has quit (*.net *.split) 2021-07-05 14:35:40 <-- zyeri (~zyeri@tilde.team) has quit (*.net *.split) 2021-07-05 14:35:40 <-- avakand (~root@static.164.226.201.195.clients.your-server.de) has quit (*.net *.split) 2021-07-05 14:35:40 <-- Jazzah (~jazz@user/jazzah) has quit (*.net *.split) 2021-07-05 14:35:40 <-- SIben (~SIben@ns3106586.ip-5-135-191.eu) has quit (*.net *.split) 2021-07-05 14:35:40 <-- res0nat0r (~Fletch@dia.whatbox.ca) has quit (*.net *.split) 2021-07-05 14:35:40 <-- [TC] (tc@giboulees.net) has quit (*.net *.split) 2021-07-05 14:35:40 <-- vivia_ (~vivia@coaxion.net) has quit (*.net *.split) 2021-07-05 14:35:40 <-- ninjin (~ninjin@momey.cs.ucl.ac.uk) has quit (*.net *.split) 2021-07-05 14:35:41 <-- koon (johan@slash24.se) has quit (*.net *.split) 2021-07-05 14:35:41 <-- cehteh (~ct@i59F7259B.versanet.de) has quit (*.net *.split) 2021-07-05 14:35:41 <-- zaszi (~zaszi@user/zaszi) has quit (*.net *.split) 2021-07-05 14:35:41 <-- lord| (~lordpipe@user/lordpipe) has quit (*.net *.split) 2021-07-05 14:35:41 <-- WinterStar (~IceLight@user/icelight) has quit (*.net *.split) 2021-07-05 14:35:41 <-- JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has quit (*.net *.split) 2021-07-05 14:35:41 <-- death916 (~death916@user/death916) has quit (*.net *.split) 2021-07-05 14:35:41 <-- kungp (~kungp@h-46-59-2-200.A230.priv.bahnhof.se) has quit (*.net *.split) 2021-07-05 14:35:41 <-- cnsvc (~cnsvc@li541-179.members.linode.com) has quit (*.net *.split) 2021-07-05 14:35:41 <-- discipulus (~discipulu@user/discipulus) has quit (*.net *.split) 2021-07-05 14:35:41 <-- Vonter (~Vonter@user/vonter) has quit (*.net *.split) 2021-07-05 14:35:42 <-- barometz (~dvanb@i117058.upc-i.chello.nl) has quit (*.net *.split) 2021-07-05 14:35:42 <-- davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has quit (*.net *.split) 2021-07-05 14:35:42 <-- BlackDex (~blackdex@ori.vyus.nl) has quit (*.net *.split) 2021-07-05 14:35:42 <-- asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has quit (*.net *.split) 2021-07-05 14:35:42 <-- maerwald (~maerwald@user/maerwald) has quit (*.net *.split) 2021-07-05 14:35:42 <-- snappy (~snappy@user/snappy) has quit (*.net *.split) 2021-07-05 14:35:42 <-- rodd (~zrod@user/rodd) has quit (*.net *.split) 2021-07-05 14:35:42 <-- dmgk (~dmgk@user/dmgk) has quit (*.net *.split) 2021-07-05 14:35:42 <-- kev009 (~quassel@69.160.37.57) has quit (*.net *.split) 2021-07-05 14:35:42 <-- duckonomy (~duckonomy@177.ip-144-217-84.net) has quit (*.net *.split) 2021-07-05 14:35:42 <-- kai (~kai@x50d24799.cust.hiper.dk) has quit (*.net *.split) 2021-07-05 14:35:42 <-- st (~ts@46.101.20.9) has quit (*.net *.split) 2021-07-05 14:35:42 <-- w1gz (~do@159.89.11.133) has quit (*.net *.split) 2021-07-05 14:35:42 <-- spirit (~spirit@user/spirit) has quit (*.net *.split) 2021-07-05 14:35:43 <-- maurer (~maurer@user/maurer) has quit (*.net *.split) 2021-07-05 14:35:43 <-- mteo (francis@user/francis) has quit (*.net *.split) 2021-07-05 14:35:43 <-- ozarker (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has quit (*.net *.split) 2021-07-05 14:35:43 <-- francis (francis@user/francis) has quit (*.net *.split) 2021-07-05 14:35:43 <-- RemiYuko (~licht@user/akechishiro) has quit (*.net *.split) 2021-07-05 14:35:43 <-- Disconsented (~quassel@107.170.227.20) has quit (*.net *.split) 2021-07-05 14:35:43 <-- rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has quit (*.net *.split) 2021-07-05 14:35:43 <-- javivf (~javivf@79.108.212.152.dyn.user.ono.com) has quit (*.net *.split) 2021-07-05 14:35:43 <-- Maxdamantus (~Maxdamant@user/maxdamantus) has quit (*.net *.split) 2021-07-05 14:35:44 <-- Mutabah (~tpg@124.189.161.194) has quit (*.net *.split) 2021-07-05 14:36:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:39:52 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 246 seconds) 2021-07-05 14:40:03 --> jelle (~jelle@archlinux/developer/jelle) has joined ##rust 2021-07-05 14:40:03 --> fingercomp (~fingercom@fomalhaut.me) has joined ##rust 2021-07-05 14:40:03 --> avakand (~root@static.164.226.201.195.clients.your-server.de) has joined ##rust 2021-07-05 14:40:03 --> faern (~faern@h-98-128-172-186.a785.priv.bahnhof.se) has joined ##rust 2021-07-05 14:40:03 --> jdt (~jdt@38.77.195.50) has joined ##rust 2021-07-05 14:40:03 --> xfz_ (~xperi0@185.21.217.78) has joined ##rust 2021-07-05 14:40:03 --> murr4y (ali@38.95.231.35.bc.googleusercontent.com) has joined ##rust 2021-07-05 14:40:03 --> p2-mate (~p2@emantra.psychaos.be) has joined ##rust 2021-07-05 14:40:03 --> Jazzah (~jazz@user/jazzah) has joined ##rust 2021-07-05 14:40:03 --> vivia_ (~vivia@coaxion.net) has joined ##rust 2021-07-05 14:40:03 --> [TC] (tc@giboulees.net) has joined ##rust 2021-07-05 14:40:03 --> SIben (~SIben@ns3106586.ip-5-135-191.eu) has joined ##rust 2021-07-05 14:40:03 --> res0nat0r (~Fletch@dia.whatbox.ca) has joined ##rust 2021-07-05 14:40:03 --> ninjin (~ninjin@momey.cs.ucl.ac.uk) has joined ##rust 2021-07-05 14:40:03 --> edr (~edr@user/edr) has joined ##rust 2021-07-05 14:40:03 --> koon (johan@slash24.se) has joined ##rust 2021-07-05 14:40:03 --> snappy (~snappy@user/snappy) has joined ##rust 2021-07-05 14:40:03 --> dmgk (~dmgk@user/dmgk) has joined ##rust 2021-07-05 14:40:03 --> gcd (gd@104-9-69-236.lightspeed.nsvltn.sbcglobal.net) has joined ##rust 2021-07-05 14:40:03 --> cehteh (~ct@i59F7259B.versanet.de) has joined ##rust 2021-07-05 14:40:03 --> eroux (~eroux@102-65-82-79.ftth.web.africa) has joined ##rust 2021-07-05 14:40:03 --> ibigbug (~thelounge@115.131.11.47) has joined ##rust 2021-07-05 14:40:03 --> zaszi (~zaszi@user/zaszi) has joined ##rust 2021-07-05 14:40:03 --> lord| (~lordpipe@user/lordpipe) has joined ##rust 2021-07-05 14:40:03 --> SpaceManiac (~SpaceMani@c-73-116-110-236.hsd1.ca.comcast.net) has joined ##rust 2021-07-05 14:40:03 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-07-05 14:40:03 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-05 14:40:03 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-05 14:40:03 --> deepy (deepy@user/deepy) has joined ##rust 2021-07-05 14:40:03 --> JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has joined ##rust 2021-07-05 14:40:03 --> death916 (~death916@user/death916) has joined ##rust 2021-07-05 14:40:03 --> kungp (~kungp@h-46-59-2-200.A230.priv.bahnhof.se) has joined ##rust 2021-07-05 14:40:03 --> cnsvc (~cnsvc@li541-179.members.linode.com) has joined ##rust 2021-07-05 14:40:03 --> discipulus (~discipulu@user/discipulus) has joined ##rust 2021-07-05 14:40:03 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-07-05 14:40:03 --> printf (~printf@user/printf) has joined ##rust 2021-07-05 14:40:03 --> barometz (~dvanb@i117058.upc-i.chello.nl) has joined ##rust 2021-07-05 14:40:03 --> richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has joined ##rust 2021-07-05 14:40:03 --> davros (~davros@host86-185-61-40.range86-185.btcentralplus.com) has joined ##rust 2021-07-05 14:40:03 --> nameless (~nameless@user/nameless) has joined ##rust 2021-07-05 14:40:03 --> BlackDex (~blackdex@ori.vyus.nl) has joined ##rust 2021-07-05 14:40:03 --> asmodai (~asmodai@31-151-100-72.dynamic.upc.nl) has joined ##rust 2021-07-05 14:40:03 --> raoul (~raoul@nom4.xyz) has joined ##rust 2021-07-05 14:40:03 --> edcragg (~edcragg@nom4.xyz) has joined ##rust 2021-07-05 14:40:03 --> duckonomy (~duckonomy@177.ip-144-217-84.net) has joined ##rust 2021-07-05 14:40:03 --> maerwald (~maerwald@user/maerwald) has joined ##rust 2021-07-05 14:40:03 --> me (~thement@user/me) has joined ##rust 2021-07-05 14:40:03 --> swistak (~swistak@185.21.216.141) has joined ##rust 2021-07-05 14:40:03 --> croax (9593c976ee@ghost.pepta.net) has joined ##rust 2021-07-05 14:40:03 --> rodd (~zrod@user/rodd) has joined ##rust 2021-07-05 14:40:03 --> cultpony (~cultpony@user/cultpony) has joined ##rust 2021-07-05 14:40:04 --> xkr47 (xkr47@91-150-59-18.customer.karistelefon.fi) has joined ##rust 2021-07-05 14:40:04 --> kev009 (~quassel@69.160.37.57) has joined ##rust 2021-07-05 14:40:04 --> kai (~kai@x50d24799.cust.hiper.dk) has joined ##rust 2021-07-05 14:40:04 --> ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has joined ##rust 2021-07-05 14:40:04 --> spirit (~spirit@user/spirit) has joined ##rust 2021-07-05 14:40:04 --> fbernier (~fbernier@149.248.62.56) has joined ##rust 2021-07-05 14:40:04 --> st (~ts@46.101.20.9) has joined ##rust 2021-07-05 14:40:04 --> w1gz (~do@159.89.11.133) has joined ##rust 2021-07-05 14:40:04 --> LogicAside (~LogicAsid@user/logicaside) has joined ##rust 2021-07-05 14:40:04 --> dirbaio2 (~dirbaio@nsmbhd.net) has joined ##rust 2021-07-05 14:40:04 --> willcl_ark (~quassel@user/willcl-ark/x-8282106) has joined ##rust 2021-07-05 14:40:04 --> LawnGnome (~LawnGnome@user/lawngnome) has joined ##rust 2021-07-05 14:40:04 --> flynn (~mcbloch@user/flynn) has joined ##rust 2021-07-05 14:40:04 --> ColdKeyboard (~ColdKeybo@user/coldkeyboard) has joined ##rust 2021-07-05 14:40:04 --> trh (~trh@hera.debugco.de) has joined ##rust 2021-07-05 14:40:04 --> Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has joined ##rust 2021-07-05 14:40:04 --> talin (~unknown@hydra.org) has joined ##rust 2021-07-05 14:40:04 --> maurer (~maurer@user/maurer) has joined ##rust 2021-07-05 14:40:04 --> mattgirv (quassel@apps.fossgalaxy.com) has joined ##rust 2021-07-05 14:40:04 --> mteo (francis@user/francis) has joined ##rust 2021-07-05 14:40:04 --> ozarker (~ozarker@172-15-173-110.lightspeed.mssnks.sbcglobal.net) has joined ##rust 2021-07-05 14:40:04 --> francis (francis@user/francis) has joined ##rust 2021-07-05 14:40:04 --> HappyMan (~HappyMan@user/happyman) has joined ##rust 2021-07-05 14:40:04 --> jngbsn (~jngbsn@user/jngbsn) has joined ##rust 2021-07-05 14:40:04 --> RayS (~raysl@sdf1.xen.prgmr.com) has joined ##rust 2021-07-05 14:40:04 --> RemiYuko (~licht@user/akechishiro) has joined ##rust 2021-07-05 14:40:04 --> Disconsented (~quassel@107.170.227.20) has joined ##rust 2021-07-05 14:40:04 --> rtyler (~tyler@108-197-232-51.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-05 14:40:04 --> synthmeat (~synthmeat@user/synthmeat) has joined ##rust 2021-07-05 14:40:04 --> javivf (~javivf@79.108.212.152.dyn.user.ono.com) has joined ##rust 2021-07-05 14:40:04 --> jermz (~jermz@user/jermz) has joined ##rust 2021-07-05 14:40:04 --> Maxdamantus (~Maxdamant@user/maxdamantus) has joined ##rust 2021-07-05 14:40:04 --> Evergreen (~me@user/evergreen) has joined ##rust 2021-07-05 14:40:04 --> Mutabah (~tpg@124.189.161.194) has joined ##rust 2021-07-05 14:40:04 --> zyeri (~zyeri@tilde.team) has joined ##rust 2021-07-05 14:40:33 <-- flynn (~mcbloch@user/flynn) has quit (Max SendQ exceeded) 2021-07-05 14:40:33 <-- richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has quit (Max SendQ exceeded) 2021-07-05 14:40:51 --> flynn (~mcbloch@user/flynn) has joined ##rust 2021-07-05 14:40:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:40:55 <-- amvc (~amvc@89.36.78.212) has quit (Ping timeout: 246 seconds) 2021-07-05 14:40:58 --> richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has joined ##rust 2021-07-05 14:42:21 timemage kupi, probably what you need is the search term "deref coercion" 2021-07-05 14:44:58 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 240 seconds) 2021-07-05 14:45:12 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: This computer has gone to sleep) 2021-07-05 14:45:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:47:12 --> chddr (~Thunderbi@91.226.35.178) has joined ##rust 2021-07-05 14:48:12 --> safinaskar (~user@109.252.90.89) has joined ##rust 2021-07-05 14:48:16 <-- Trieste (T@user/pilgrim) has quit (Ping timeout: 246 seconds) 2021-07-05 14:49:29 safinaskar it seems for me that Rust uses haskell-style Hindley-Milner type inference combined with small amount of subtyping (i mean deref coercions). is there some article on this? 2021-07-05 14:49:44 safinaskar why we got this mix? 2021-07-05 14:49:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:51:22 <-- mightypork_ (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-07-05 14:52:17 --> amvc (~amvc@89.36.78.228) has joined ##rust 2021-07-05 14:52:25 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 256 seconds) 2021-07-05 14:54:10 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-05 14:54:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 14:57:27 --> kericsson (~kericsson@user/kericsson) has joined ##rust 2021-07-05 14:59:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 14:59:02 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 252 seconds) 2021-07-05 15:01:14 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-05 15:03:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:06:06 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 15:07:31 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 246 seconds) 2021-07-05 15:07:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 15:10:00 --> karambir (~karambir@180.151.239.106) has joined ##rust 2021-07-05 15:11:38 -- luca0N_ is now known as luca0N 2021-07-05 15:12:40 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:13:52 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-05 15:15:10 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Read error: Connection reset by peer) 2021-07-05 15:16:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 15:17:18 <-- murr4y (ali@38.95.231.35.bc.googleusercontent.com) has quit (Changing host) 2021-07-05 15:17:18 --> murr4y (ali@user/murr4y) has joined ##rust 2021-07-05 15:18:23 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-07-05 15:19:54 <-- karambir (~karambir@180.151.239.106) has quit (Quit: Leaving) 2021-07-05 15:20:43 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 15:21:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:23:53 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-05 15:26:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 15:26:52 --> [Kalisto] (~nico@190.192.36.7) has joined ##rust 2021-07-05 15:28:09 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 15:29:31 <-- [Kalisto] (~nico@190.192.36.7) has quit (Changing host) 2021-07-05 15:29:31 --> [Kalisto] (~nico@user/kalisto/x-8968079) has joined ##rust 2021-07-05 15:30:08 kee safinaskar: Because deref coercions are useful. 2021-07-05 15:30:54 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:32:40 --> mmfood (~mmfood@45.91.21.40) has joined ##rust 2021-07-05 15:33:10 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-07-05 15:34:30 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-07-05 15:35:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 15:38:10 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-07-05 15:40:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:40:27 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-07-05 15:40:49 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-05 15:40:54 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Quit: ZNC - https://znc.in) 2021-07-05 15:41:43 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-05 15:41:45 <-- DeeEff_ (~deeeff@user/deeeff) has quit (Quit: Reconnecting) 2021-07-05 15:42:31 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 15:42:38 --> mg (~mg@user/mg) has joined ##rust 2021-07-05 15:43:32 <-- antonym (uid432694@user/antonym) has quit (Quit: Connection closed for inactivity) 2021-07-05 15:44:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 15:45:06 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-07-05 15:45:16 <-- mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has quit (Client Quit) 2021-07-05 15:46:15 --> mightypork (~mightypor@static.240.29.69.159.clients.your-server.de) has joined ##rust 2021-07-05 15:48:43 mg Hi! I have a (type that contains a) Vec of `struct Foo { x: u32, bar: Bar }`s, sorted by the `x` value. Let's say it looks like `vec![Foo { x: 2, .. }, Foo { x: 5, .. }, Foo { x: 6 }]`. I want to create an Iterator over this vec that fills in missing x values with a placeholder bar. In other words it should yield `Foo { x: 2, .. }, Foo { x: 3, bar: placeholder_bar }, Foo { x: 4, bar: 2021-07-05 15:48:45 mg placeholder_bar }, Foo { x: 5, .. }, ..`. Is there a pattern or method in std or something that makes this easy? 2021-07-05 15:48:45 <-- bread (uid502657@id-502657.brockwell.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-05 15:49:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:50:38 lambda mg: it would yield `foo`s with x from 2 to 6 in this example? 2021-07-05 15:50:53 <-- safinaskar (~user@109.252.90.89) has left ##rust 2021-07-05 15:50:54 --> safinaskar (~user@109.252.90.89) has joined ##rust 2021-07-05 15:50:57 mg yes, ideally bounded by the min and max value in the vec 2021-07-05 15:51:07 safinaskar is it true that any type can be moved 2021-07-05 15:51:08 safinaskar ? 2021-07-05 15:51:16 safinaskar i. e. is "let x = y" legal for any type? 2021-07-05 15:51:54 mg lambda: in reality you'd provide a "delta" or something that you add to an accumulator, I guess, defining the steps 2021-07-05 15:52:56 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-07-05 15:53:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 15:53:43 georgemp is there a way to set +nightly for a single shell session (or something to that effect which is not a global change)? 2021-07-05 15:54:04 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 246 seconds) 2021-07-05 15:54:10 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-05 15:55:08 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 252 seconds) 2021-07-05 15:55:11 j`ey georgemp: alias cargo='cargo +nighlty' :P 2021-07-05 15:57:44 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 15:58:08 georgemp j`ey: didn't think of that, but, unfortunately doesn't help in my case :( i need to run cbindgen on nightly to generate my c header. What currently works is if i do `rustup default nightly` before running cbindgen. was wondering if there was a way to do the same without making the change globally on my system 2021-07-05 15:58:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 15:58:50 lambda georgemp: there's `rustup override` for per-directory toolchain selection if that helps 2021-07-05 16:00:14 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-05 16:00:39 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Client Quit) 2021-07-05 16:00:45 georgemp lambda: that works. i guess i can set the override in my CI script right before and after running cbindgen..thanks :) 2021-07-05 16:02:17 lambda georgemp: oh, maybe `rustup run` is what you actually want then? 2021-07-05 16:02:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 16:03:43 --> orhun (~orhun@archlinux/trusteduser/orhun) has joined ##rust 2021-07-05 16:04:03 georgemp lambda: that's perfect..thank you :) 2021-07-05 16:05:18 <-- kericsson (~kericsson@user/kericsson) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-05 16:07:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:07:30 <-- [Kalisto] (~nico@user/kalisto/x-8968079) has quit (Quit: Nos vemo) 2021-07-05 16:08:51 <-- gnomesort (~gnomesort@user/gnomesort) has quit (Quit: Goodbye, cruel world!) 2021-07-05 16:11:22 --> [Kalisto] (~nico@user/kalisto/x-8968079) has joined ##rust 2021-07-05 16:11:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 16:14:14 --> GNUcifer (~ct@72-65-142-46.pool.kielnet.net) has joined ##rust 2021-07-05 16:14:14 <-- cehteh (~ct@i59F7259B.versanet.de) has quit (Read error: Connection reset by peer) 2021-07-05 16:14:32 -- GNUcifer is now known as cehteh 2021-07-05 16:15:07 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-05 16:15:29 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Ping timeout: 252 seconds) 2021-07-05 16:16:18 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 16:16:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:17:23 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-05 16:17:33 --> DeeEff_ (~deeeff@user/deeeff) has joined ##rust 2021-07-05 16:17:37 kee Does a closure produce comparable code to a custom struct with a FnMut implementation? 2021-07-05 16:17:46 kee Or is it slower somehow, because of syntactic sugar? 2021-07-05 16:18:37 j`ey im pretty sure it just generates struct + FnMut 2021-07-05 16:18:48 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-05 16:20:18 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-07-05 16:20:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 16:21:32 <-- chddr (~Thunderbi@91.226.35.178) has quit (Ping timeout: 252 seconds) 2021-07-05 16:23:25 cehteh may even inline and optmize away in some smart way 2021-07-05 16:23:31 kee Excellent. So a closure can actually be more efficient than the equivalent safe code. 2021-07-05 16:23:45 cehteh closures are safe code 2021-07-05 16:24:01 kee I meant the equivalent struct + FnMut implementation in safe code. 2021-07-05 16:24:32 cehteh prolly not more efficient, because thats pretty much the same with the same optimization opportinities, but cleaner for sure 2021-07-05 16:25:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:26:36 <-- sord937_ (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-05 16:26:36 <-- sm0x (~sm0x@gateway/tor-sasl/sm0x) has quit (Ping timeout: 244 seconds) 2021-07-05 16:28:22 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 246 seconds) 2021-07-05 16:28:29 --> sord937_ (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-05 16:28:41 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-05 16:28:54 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-07-05 16:29:40 <-- derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has quit (Quit: Leaving) 2021-07-05 16:30:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 16:30:33 ThinkT510 this looks interesting: https://github.com/theseus-os/Theseus 2021-07-05 16:31:46 <-- darkstalker (~wolfie@186.148.12.159) has quit (Ping timeout: 272 seconds) 2021-07-05 16:32:58 <-- slomo (~slomo@350.static.cpe.hcn.gr) has quit (Ping timeout: 240 seconds) 2021-07-05 16:34:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:36:23 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 16:37:52 -- vivia_ is now known as vivia 2021-07-05 16:39:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 16:40:43 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-05 16:40:47 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 16:41:31 --> sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-07-05 16:42:00 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 16:42:42 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 16:43:51 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:45:31 <-- dcz_ (~dcz@dynamic-093-135-052-028.93.135.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-07-05 16:47:50 <-- sord937_ (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937_) 2021-07-05 16:48:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 16:52:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 16:57:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 16:58:33 <-- [Kalisto] (~nico@user/kalisto/x-8968079) has quit (Remote host closed the connection) 2021-07-05 16:58:33 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 16:59:10 --> meltyness (~meltyness@mobile-166-175-188-129.mycingular.net) has joined ##rust 2021-07-05 17:02:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:06:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 17:10:25 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 265 seconds) 2021-07-05 17:11:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:11:14 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-05 17:15:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 17:17:45 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 17:19:19 --> Trieste (~T@user/pilgrim) has joined ##rust 2021-07-05 17:20:19 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:20:21 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-05 17:22:18 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-05 17:24:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 17:29:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:34:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 17:34:50 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-05 17:36:37 <-- safinaskar (~user@109.252.90.89) has left ##rust 2021-07-05 17:38:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:40:11 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-05 17:42:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 17:43:59 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Quit: ubert) 2021-07-05 17:44:13 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 17:45:03 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-05 17:45:15 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-05 17:47:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 17:48:34 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-05 17:49:27 --> gioyik (~gioyik@gateway/tor-sasl/gioyik) has joined ##rust 2021-07-05 17:50:05 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-05 17:50:18 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Ping timeout: 244 seconds) 2021-07-05 17:52:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 17:56:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:04:09 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 18:05:54 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:07:20 georgemp :q 2021-07-05 18:10:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 18:12:25 --> gioyik_ (~gioyik@gateway/tor-sasl/gioyik) has joined ##rust 2021-07-05 18:12:39 <-- gioyik (~gioyik@gateway/tor-sasl/gioyik) has quit (Remote host closed the connection) 2021-07-05 18:14:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:18:31 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-05 18:19:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 18:20:59 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-07-05 18:21:33 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-05 18:22:05 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-05 18:23:42 <-- hexfive (~eric@50.35.83.177) has quit (Client Quit) 2021-07-05 18:24:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:25:05 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-05 18:28:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 18:29:21 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-05 18:33:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:34:09 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-05 18:36:56 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 252 seconds) 2021-07-05 18:36:58 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-05 18:37:10 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 18:37:28 <-- tstruk (~tstruk@50.39.160.154) has quit (Remote host closed the connection) 2021-07-05 18:37:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 18:38:32 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 18:39:02 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 252 seconds) 2021-07-05 18:42:20 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-05 18:42:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:43:25 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-05 18:46:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 18:47:21 --> habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has joined ##rust 2021-07-05 18:47:25 <-- habys_ (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (Quit: byye) 2021-07-05 18:47:49 --> cesarb (~cesarb@user/cesarb) has joined ##rust 2021-07-05 18:47:50 --> eval (~eval@malta1854.startdedicated.net) has joined ##rust 2021-07-05 18:48:27 <-- eval (~eval@malta1854.startdedicated.net) has quit (Remote host closed the connection) 2021-07-05 18:48:46 --> eval (~eval@malta1854.startdedicated.net) has joined ##rust 2021-07-05 18:51:29 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-05 18:51:30 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-07-05 18:51:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 18:55:25 --> pbit (~pbit@p57ade68a.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 18:55:40 pbit eval: "test" 2021-07-05 18:55:42 -- Notice(eval): "test" 2021-07-05 18:56:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 18:56:32 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-05 18:56:48 meltyness evalr2: let 5 = 5 2021-07-05 18:56:50 -- Notice(evalr2): meltyness: error: expected `;`, found `}` ... 2021-07-05 18:56:51 -- Notice(evalr2): meltyness: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=86f5f5a9d904a7e8e38a8e7da582199f 2021-07-05 18:57:43 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-05 18:57:54 j`ey evalr2: let 5 = 5; 2021-07-05 18:57:56 -- Notice(evalr2): j`ey: error[E0005]: refutable pattern in local binding: `i32::MIN..=4_ ... 2021-07-05 18:57:57 -- Notice(evalr2): j`ey: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9f9971b327a7f550b7e0eec384957e5e 2021-07-05 18:58:11 j`ey thats a funny error 2021-07-05 18:58:36 pbit that's a refutable error 2021-07-05 18:58:40 pbit :P 2021-07-05 18:59:03 meltyness https://doc.rust-lang.org/book/ch18-02-refutability.html?highlight=refuta#refutability-whether-a-pattern-might-fail-to-match 2021-07-05 18:59:54 meltyness evalr2: let there = "light"; 2021-07-05 18:59:58 -- Notice(evalr2): meltyness: () 2021-07-05 19:00:32 j`ey meltyness: noo 2021-07-05 19:00:35 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:00:45 j`ey evalr2: let there = b"light"; 2021-07-05 19:00:48 -- Notice(evalr2): j`ey: () 2021-07-05 19:00:55 meltyness lol 2021-07-05 19:02:08 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-05 19:02:14 <-- eval (~eval@malta1854.startdedicated.net) has quit (Ping timeout: 252 seconds) 2021-07-05 19:02:58 <-- Celeo (~Celeo@user/celeo) has quit (Ping timeout: 240 seconds) 2021-07-05 19:03:39 -- pbit is now known as panicbit 2021-07-05 19:03:45 panicbit hey edcragg! :D 2021-07-05 19:04:30 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-05 19:04:37 --> thing_ (~thing@user/thing) has joined ##rust 2021-07-05 19:04:50 --> eval (~eval@malta1854.startdedicated.net) has joined ##rust 2021-07-05 19:04:51 --> cjb (~cjb@user/cjb) has joined ##rust 2021-07-05 19:05:13 panicbit eval: --allocs vec![1, 2, 3] 2021-07-05 19:05:16 -- Notice(eval): #allocs 1 (12 bytes) :: #deallocs 1 (12 bytes) :: #lost: 0 (0 bytes) 2021-07-05 19:05:19 j`ey :O 2021-07-05 19:05:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 19:05:44 <-- thing (~thing@user/thing) has quit (Ping timeout: 244 seconds) 2021-07-05 19:05:49 -- thing_ is now known as thing 2021-07-05 19:05:59 <-- mmfood (~mmfood@45.91.21.40) has quit (Ping timeout: 252 seconds) 2021-07-05 19:06:14 j`ey panicbit: is evalr2 your one? or is that Arnavion's sed version 2021-07-05 19:06:29 panicbit evalr2 is Arnavion's 2021-07-05 19:06:37 panicbit eval is mine 2021-07-05 19:06:37 j`ey competing bots! 2021-07-05 19:07:02 panicbit (some people might still know it from moznet) 2021-07-05 19:07:23 j`ey since you werent around, we didnt know what was happening with the bot 2021-07-05 19:07:27 panicbit it's probably a bit more fancy than the script version 2021-07-05 19:07:54 panicbit welp, there's always github issues to contact me '=D 2021-07-05 19:08:01 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 19:08:02 <-- kmh (~kmh@p200300df5f069e00d0e5bde3844d0c37.dip0.t-ipconnect.de) has quit (Quit: Leaving) 2021-07-05 19:09:22 panicbit ?crate itertools 2021-07-05 19:09:22 -- Notice(eval): itertools (0.10.1) - Extra iterator adaptors, iterator methods, free functions, and macros. -> https://crates.io/crates/itertools [https://docs.rs/crate/itertools] 2021-07-05 19:09:35 panicbit the important stuff seems to be working still 2021-07-05 19:09:41 j`ey great! 2021-07-05 19:09:43 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:09:55 meltyness evalr2: println!("evalr: println!("evalr2: println!("lol"););); 2021-07-05 19:10:00 -- Notice(evalr2): meltyness: error: unexpected closing delimiter: `)` ... 2021-07-05 19:10:00 -- Notice(evalr2): meltyness: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a64cbc0c1e77521d277d6a48203ea5c1 2021-07-05 19:10:11 panicbit that's way too often the first thing that people try lol 2021-07-05 19:10:24 danieldg outputs are notices, bots should only respond to privmsgs 2021-07-05 19:10:36 --> panicbit[m] (~panicbitm@2001:470:69fc:105::9294) has joined ##rust 2021-07-05 19:10:36 panicbit[m] eval: "another test" 2021-07-05 19:10:36 panicbit[m] good day fellow rustaceans o/ 2021-07-05 19:10:36 panicbit[m] eval: 42 2021-07-05 19:10:36 panicbit[m] evalr2: 42 2021-07-05 19:10:39 -- Notice(evalr2): panicbit[m]: 42 2021-07-05 19:10:40 -- Notice(eval): "another test" 2021-07-05 19:10:42 -- Notice(eval): 42 2021-07-05 19:11:01 panicbit eval: --raw fn main() { println!("evalr2: 42"); } 2021-07-05 19:11:03 -- Notice(eval): error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found keyword `fn` 2021-07-05 19:11:04 -- Notice(eval): ~~~ Full output: https://play.rust-lang.org/?gist=1842ea76ce0d5d41cbc1bedc1a64f2f4&version=stable&mode=debug 2021-07-05 19:11:18 panicbit eval: --bare fn main() { println!("evalr2: 42"); } 2021-07-05 19:11:21 -- Notice(eval): evalr2: 42 2021-07-05 19:11:28 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 246 seconds) 2021-07-05 19:12:14 panicbit oh wow... my matrix messages just popped in. I send those minutes ago... 2021-07-05 19:14:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 19:18:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:19:54 <-- lf (~quassel@p200300d21f3e9b00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-05 19:20:15 meltyness evalr2: use std::process::Command;fn main() {let x = Command::new("sh").arg("-c").arg("uname -a").output().expect("").stdout;println!("{:?}", String::from_utf8(x));} 2021-07-05 19:20:18 -- Notice(evalr2): meltyness: () 2021-07-05 19:20:31 meltyness evalr: use std::process::Command;fn main() {let x = Command::new("sh").arg("-c").arg("uname -a").output().expect("").stdout;println!("{:?}", String::from_utf8(x));} 2021-07-05 19:20:34 --> lf (~quassel@p200300d21f3a7a00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 19:20:45 meltyness hmm 2021-07-05 19:21:30 Arnavion They both paste to the playground. You're not going to see any difference 2021-07-05 19:21:37 panicbit yeh 2021-07-05 19:22:14 j`ey and they already wrap the code in a main function 2021-07-05 19:22:21 <-- evalr2 (arnavion@user/arnavion) has quit (Remote host closed the connection) 2021-07-05 19:22:25 j`ey which is why there was no output 2021-07-05 19:22:36 meltyness hmm 2021-07-05 19:22:43 --> kmh (~kmh@p200300df5f069e00d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-05 19:23:07 panicbit Open the crustacean bay doors eval! 2021-07-05 19:23:07 -- Notice(eval): I'm sorry panicbit, I'm afraid I can't do that. 2021-07-05 19:23:16 meltyness evalr2: use std::process::Command;let x = Command::new("sh").arg("-c").arg("uname -a").output().expect("").stdout;println!("{:?}", String::from_utf8(x)); 2021-07-05 19:23:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 19:23:34 meltyness eval: use std::process::Command;let x = Command::new("sh").arg("-c").arg("uname -a").output().expect("").stdout;println!("{:?}", String::from_utf8(x)); 2021-07-05 19:23:38 -- Notice(eval): Ok("Linux 09a7d39b2821 5.4.0-1051-aws #53~18.04.1-Ubuntu SMP Fri Jun 18 14:53:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux\n") 2021-07-05 19:23:38 -- Notice(eval): () 2021-07-05 19:23:42 meltyness haHAAA! 2021-07-05 19:24:21 meltyness It's a Linux system -- i KNOW this! 2021-07-05 19:27:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:28:34 amvc OMG 2021-07-05 19:29:08 panicbit Anyway, gotta run. If the bot is making trouble or stops working, you can reach out to be via an issue on https://github.com/panicbit/playbot_ng or on matrix via @panicbit:matrix.org 2021-07-05 19:29:17 panicbit to me* 2021-07-05 19:29:46 panicbit (or if the irc bridge ain't broken, panicbit[m] should work too :P) 2021-07-05 19:30:17 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-05 19:30:22 --> tims2 (~tims@220.240.106.233) has joined ##rust 2021-07-05 19:31:06 <-- panicbit (~pbit@p57ade68a.dip0.t-ipconnect.de) has quit (Quit: Connection closed) 2021-07-05 19:32:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 19:32:27 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-05 19:37:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:39:07 <-- xse (~xse@user/xse) has quit (Ping timeout: 246 seconds) 2021-07-05 19:41:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 19:42:10 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-05 19:45:24 --> xse (~xse@user/xse) has joined ##rust 2021-07-05 19:45:32 <-- amvc (~amvc@89.36.78.228) has quit (Quit: Leaving) 2021-07-05 19:45:35 --> w0x12ef (~w0x12ef@60.10.194.47) has joined ##rust 2021-07-05 19:45:57 <-- w0x12ef (~w0x12ef@60.10.194.47) has quit (Remote host closed the connection) 2021-07-05 19:46:11 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:46:21 --> gggp (~gggp@125.33.94.235) has joined ##rust 2021-07-05 19:49:11 <-- feldim2425_ (~feldim242@2002:c19a:ae1a:0:ba56:ea21:8ff6:ded6) has quit (Quit: ZNC 1.8.x-git-91-b00cc309 - https://znc.in) 2021-07-05 19:49:22 --> feldim2425 (~feldim242@2002:c19a:ae1a:0:da2d:dbc:24de:b1dc) has joined ##rust 2021-07-05 19:50:10 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-07-05 19:51:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 19:51:33 <-- fanf (~fanf@90.254.237.175) has quit (Read error: Connection reset by peer) 2021-07-05 19:51:45 --> fanf (~fanf@90.254.237.175) has joined ##rust 2021-07-05 19:52:16 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-05 19:53:44 -- tims2 is now known as tims 2021-07-05 19:55:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 19:59:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 20:01:34 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-05 20:03:58 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 246 seconds) 2021-07-05 20:04:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:04:44 ec Is there a one-liner to convert a vec of H160 into a vec of strings using the LowerHex trait? 2021-07-05 20:04:55 ec Not sure what the idiomatic way to approach this is 2021-07-05 20:05:24 panicbit[m] H160? 2021-07-05 20:05:55 ec https://docs.rs/primitive-types/0.10.1/i686-unknown-linux-gnu/primitive_types/struct.H160.html 2021-07-05 20:07:08 panicbit[m] Iirc there isn't a super convenient way to do so with only std 2021-07-05 20:07:55 ec Can always just map 2021-07-05 20:08:05 ec Was hoping for something a tad more elegant 2021-07-05 20:08:29 meltyness hmm 2021-07-05 20:08:45 panicbit[m] eval: format!("{:02x}", vec![127, 42]) 2021-07-05 20:08:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 20:09:14 panicbit[m] evalr2: format!("{:02x}", vec![127, 42]) 2021-07-05 20:09:47 panicbit[m] looks like the bridges is dead again :sadredpanda: 2021-07-05 20:10:07 ec :'( 2021-07-05 20:11:39 Arnavion No, I disconnected it 2021-07-05 20:12:20 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-05 20:13:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:13:38 --> SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has joined ##rust 2021-07-05 20:14:24 panicbit[m] Anyway, I wonder what good reason there is not to implement ToLowerHex for Vec (et al) 2021-07-05 20:14:49 Arnavion Actually, your bot is indeed not responding either 2021-07-05 20:15:36 --> evalr2 (arnavion@user/arnavion) has joined ##rust 2021-07-05 20:16:26 panicbit[m] is it joined still? 2021-07-05 20:16:49 panicbit[m] (can't easily check with matrix) 2021-07-05 20:16:53 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Read error: Connection reset by peer) 2021-07-05 20:17:44 Arnavion Yes, it's in the channel, but it didn't respond to you earlier message, nor is it responding to my direct privmsgs 2021-07-05 20:17:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 20:18:01 panicbit[m] earlier I observed eval getting a connection timeout in the channel, but the bot itself never noticed (which is unusual) 2021-07-05 20:18:20 panicbit[m] Also, a lot of people seem to be getting ping timeouts 2021-07-05 20:18:25 Arnavion Do you have it sending pings to the server? 2021-07-05 20:18:33 panicbit[m] so probably the network being very wonky still 2021-07-05 20:18:50 Arnavion Otherwise it's not going to notice an idle TCP connection (mine has the same problem but I CBA to impl the fix in awk) 2021-07-05 20:19:11 --> Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-05 20:19:46 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 240 seconds) 2021-07-05 20:21:31 --> dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-05 20:21:41 <-- maelcum|konv (~horst@2001:16b8:c1d5:1100:5ace:88ef:6841:79a2) has quit (Quit: Konversation terminated!) 2021-07-05 20:22:20 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-05 20:22:38 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:25:45 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-05 20:27:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 20:27:22 <-- xse (~xse@user/xse) has quit (Ping timeout: 240 seconds) 2021-07-05 20:29:48 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-05 20:29:54 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-05 20:30:38 <-- cesarb (~cesarb@user/cesarb) has quit (Quit: Leaving) 2021-07-05 20:30:41 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-05 20:31:21 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-05 20:31:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:32:01 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-07-05 20:32:15 --> xse (~xse@user/xse) has joined ##rust 2021-07-05 20:36:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 20:36:23 <-- raute (~raute@2a02:790:ff:917:ba27:ebff:fe4a:1e15) has quit (Ping timeout: 256 seconds) 2021-07-05 20:40:16 --> qaph (~weechat@user/qaph) has joined ##rust 2021-07-05 20:40:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:42:20 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-05 20:42:31 --> gggp_ (~gggp@221.219.70.91) has joined ##rust 2021-07-05 20:42:42 <-- hays (~rootveget@fsf/member/hays) has left ##rust 2021-07-05 20:43:04 <-- kron (~weechat@user/qaph) has quit (Ping timeout: 268 seconds) 2021-07-05 20:43:06 -- qaph is now known as kron 2021-07-05 20:43:16 <-- SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has quit (Quit: Leaving) 2021-07-05 20:43:54 <-- Guest3148 (~arch3y@arch3y.com) has quit (Quit: Guest3148) 2021-07-05 20:45:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 20:45:32 <-- gggp (~gggp@125.33.94.235) has quit (Ping timeout: 252 seconds) 2021-07-05 20:49:21 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-05 20:49:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:50:37 meltyness boy i'm super interested in redox, has anyone run it any? 2021-07-05 20:50:57 meltyness that's actually why i set out to spend the last 3 weeks learning rust 2021-07-05 20:52:09 --> wielding[m] (~wieldingm@2001:470:69fc:105::b704) has joined ##rust 2021-07-05 20:53:17 --> raute (~raute@leintor.e.ffh.zone) has joined ##rust 2021-07-05 20:54:00 <-- sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has quit (Read error: Permission denied) 2021-07-05 20:54:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 20:54:17 --> sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has joined ##rust 2021-07-05 20:54:48 --> SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has joined ##rust 2021-07-05 20:59:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 20:59:37 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 246 seconds) 2021-07-05 21:00:01 <-- rob (~user@87.239.204.91) has quit (Remote host closed the connection) 2021-07-05 21:00:14 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-05 21:03:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 21:04:42 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-05 21:06:37 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 246 seconds) 2021-07-05 21:08:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:10:39 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-05 21:12:26 --> nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has joined ##rust 2021-07-05 21:12:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 21:12:38 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-05 21:14:28 <-- vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has quit (Quit: ...) 2021-07-05 21:15:10 --> vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has joined ##rust 2021-07-05 21:17:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:20:19 <-- vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has quit (Quit: ...) 2021-07-05 21:20:37 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 21:20:56 --> vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has joined ##rust 2021-07-05 21:21:57 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 21:22:32 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-05 21:22:34 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-05 21:22:39 <-- gioyik_ (~gioyik@gateway/tor-sasl/gioyik) has quit (Ping timeout: 244 seconds) 2021-07-05 21:23:29 --> gioyik_ (~gioyik@gateway/tor-sasl/gioyik) has joined ##rust 2021-07-05 21:23:35 <-- paule (~paule@ppp-93-104-167-66.dynamic.mnet-online.de) has quit (Ping timeout: 252 seconds) 2021-07-05 21:23:37 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-07-05 21:26:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:27:50 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-05 21:28:26 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-07-05 21:29:37 <-- goldfish (~goldfish@user/goldfish) has quit (Remote host closed the connection) 2021-07-05 21:30:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 21:31:51 <-- vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has quit (Quit: ...) 2021-07-05 21:35:12 --> vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has joined ##rust 2021-07-05 21:35:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:39:15 <-- vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has quit (Client Quit) 2021-07-05 21:39:28 --> vjoki (~vjoki@2a00:d880:3:1::fea1:9ae) has joined ##rust 2021-07-05 21:39:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 21:44:18 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 21:44:40 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:44:46 <-- HappyMan (~HappyMan@user/happyman) has quit (Quit: HappyMan) 2021-07-05 21:45:40 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 21:45:44 <-- hegstal (~hegstal@2a02:c7f:7604:8a00:1a67:2b79:31fc:1012) has quit (Remote host closed the connection) 2021-07-05 21:46:34 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 240 seconds) 2021-07-05 21:47:19 --> neurocyte400 (~neurocyte@213.188.113.203) has joined ##rust 2021-07-05 21:47:20 <-- neurocyte400 (~neurocyte@213.188.113.203) has quit (Changing host) 2021-07-05 21:47:20 --> neurocyte400 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-05 21:47:20 --> HappyMan (~HappyMan@user/happyman) has joined ##rust 2021-07-05 21:48:58 sklv i was going to until i learnt it had some relatively severe memory safety issue to do with page access 2021-07-05 21:48:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 21:49:40 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 268 seconds) 2021-07-05 21:49:40 -- neurocyte400 is now known as neurocyte40 2021-07-05 21:50:42 --> Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 21:52:07 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 246 seconds) 2021-07-05 21:53:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 21:54:01 --> ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-05 21:54:04 --> tsal_ (~tsal@user/tsal) has joined ##rust 2021-07-05 21:54:40 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-05 21:55:16 <-- Spawns_Carpetin- (~pi@user/spawns-carpeting/x-6969421) has quit (Ping timeout: 246 seconds) 2021-07-05 21:58:00 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 265 seconds) 2021-07-05 21:58:14 -- gggp_ is now known as gggp 2021-07-05 21:58:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 22:02:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:03:42 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-05 22:07:15 meltyness oh? hm 2021-07-05 22:07:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 22:08:36 <-- meltyness (~meltyness@mobile-166-175-188-129.mycingular.net) has left ##rust 2021-07-05 22:09:33 gggp what is the object memory model like in rust 2021-07-05 22:10:28 <-- sgift (~madison@2001:a61:35b8:2401:7564:4411:5c3d:5bfb) has quit (Read error: Permission denied) 2021-07-05 22:10:44 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-05 22:12:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:14:31 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 246 seconds) 2021-07-05 22:16:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 22:21:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:23:56 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-05 22:24:33 --> gggp_ (~gggp@125.33.95.211) has joined ##rust 2021-07-05 22:25:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 22:26:28 <-- gggp (~gggp@221.219.70.91) has quit (Killed (NickServ (GHOST command used by gggp_!~gggp@125.33.95.211))) 2021-07-05 22:26:30 -- gggp_ is now known as gggp 2021-07-05 22:30:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:30:45 <-- cjb (~cjb@user/cjb) has left ##rust (rcirc on GNU Emacs 28.0.50) 2021-07-05 22:34:03 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-05 22:34:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 22:36:38 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-05 22:39:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:40:17 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-05 22:43:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 22:48:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 22:49:41 -- gioyik_ is now known as gioyik 2021-07-05 22:51:14 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-05 22:51:22 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Ping timeout: 240 seconds) 2021-07-05 22:51:58 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-07-05 22:53:01 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 22:54:29 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-07-05 22:57:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:00:24 <-- mcint (mcint@user/mcint) has quit (Quit: WeeChat 2.3) 2021-07-05 23:01:51 --> pilyn (~pilyn@user/pilyn) has joined ##rust 2021-07-05 23:02:07 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 23:03:02 <-- nate1 (~nate@108-233-125-227.lightspeed.sntcca.sbcglobal.net) has quit (Ping timeout: 252 seconds) 2021-07-05 23:03:24 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-05 23:06:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:08:36 --> aquijoule_ (~richbridg@213-225-13-36.nat.highway.a1.net) has joined ##rust 2021-07-05 23:09:19 --> fflam (~mdt@pool-96-253-99-54.rcmdva.fios.verizon.net) has joined ##rust 2021-07-05 23:10:52 <-- richbridger (~richbridg@213-225-32-103.nat.highway.a1.net) has quit (Ping timeout: 246 seconds) 2021-07-05 23:11:13 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 23:11:21 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-07-05 23:13:45 <-- pilyn (~pilyn@user/pilyn) has quit (Quit: Leaving) 2021-07-05 23:15:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:20:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-05 23:21:41 <-- SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has quit (Quit: Leaving) 2021-07-05 23:24:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:29:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-05 23:34:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:36:25 <-- gggp (~gggp@125.33.95.211) has quit (Ping timeout: 246 seconds) 2021-07-05 23:38:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 23:42:02 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-05 23:42:32 --> meandi2 (~meandi4@dyndsl-178-142-254-156.ewe-ip-backbone.de) has joined ##rust 2021-07-05 23:43:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:44:43 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Remote host closed the connection) 2021-07-05 23:45:25 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-05 23:45:55 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-05 23:45:56 <-- meandi (~meandi4@dyndsl-178-142-255-137.ewe-ip-backbone.de) has quit (Ping timeout: 252 seconds) 2021-07-05 23:47:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 23:50:22 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-05 23:52:19 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-05 23:56:43 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-05 23:58:01 --> SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has joined ##rust 2021-07-05 23:59:34 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-06 00:01:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:04:25 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-07-06 00:05:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 00:08:17 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-06 00:09:48 --> vicfred (~vicfred@user/vicfred) has joined ##rust 2021-07-06 00:10:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:11:58 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-06 00:15:09 <-- ur5us_ (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Remote host closed the connection) 2021-07-06 00:15:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 00:16:43 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-06 00:19:31 <-- SeedyROM (~TheCheat@97-115-40-13.ptld.qwest.net) has quit (Quit: Leaving) 2021-07-06 00:19:34 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-06 00:19:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:22:05 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-06 00:22:11 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-06 00:24:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 00:26:44 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 00:28:48 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:30:46 --> slomo (~slomo@350.static.cpe.hcn.gr) has joined ##rust 2021-07-06 00:32:17 ac5tin does making my struct derive Debug affect performance ? 2021-07-06 00:33:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 00:33:29 danieldg no, impls that are not used are not present in the binary 2021-07-06 00:34:26 ac5tin so isn't it better if i just derive Debug for all my structs? 2021-07-06 00:35:47 danieldg yep 2021-07-06 00:37:30 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 00:37:44 ac5tin clear 2021-07-06 00:37:48 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 00:37:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:38:08 cehteh .. next question would be "why isnt that default in debug builds :D 2021-07-06 00:38:55 <-- ac5tin (~ac5tin@user/ac5tin) has quit (Quit: WeeChat 3.1) 2021-07-06 00:38:57 danieldg because there's no good way to have an auto impl of Debug and also let you do it manually 2021-07-06 00:39:38 cehteh ... and you dont want to expose internals on all debug builds 2021-07-06 00:41:15 danieldg there is a missing-debug-impls lint 2021-07-06 00:42:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 00:43:04 danieldg debug build and debug impl are mostly unrelated anyway 2021-07-06 00:43:31 cehteh yep 2021-07-06 00:47:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:51:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 00:56:11 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 00:56:16 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 00:59:13 --> haliucin1s (~haliucina@5.20.153.21) has joined ##rust 2021-07-06 00:59:42 <-- haliucinas (~haliucina@5.20.153.21) has quit (Ping timeout: 272 seconds) 2021-07-06 01:00:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 01:05:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:05:31 <-- vicfred (~vicfred@user/vicfred) has quit (Quit: Leaving) 2021-07-06 01:07:46 --> trev (~trev@user/trev) has joined ##rust 2021-07-06 01:10:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 01:14:02 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 01:14:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:18:20 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 252 seconds) 2021-07-06 01:18:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 01:23:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:23:51 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-06 01:27:42 --> dcz_ (~dcz@dynamic-078-048-056-059.78.48.pool.telefonica.de) has joined ##rust 2021-07-06 01:28:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 01:29:55 --> LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:e849:15a:e304:7891) has joined ##rust 2021-07-06 01:29:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:31:31 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 01:34:10 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 240 seconds) 2021-07-06 01:34:23 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-06 01:34:47 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 01:34:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 01:36:57 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-06 01:37:08 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 01:39:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:41:22 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 246 seconds) 2021-07-06 01:42:17 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-06 01:43:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 01:48:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:52:31 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 01:52:58 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 01:53:05 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 01:54:52 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-06 01:55:11 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-06 01:56:27 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 01:57:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 01:59:02 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-06 02:00:53 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-07-06 02:01:30 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 02:01:33 printf hi, is there a way i can get the current date in chrono::NaiveDate form? 2021-07-06 02:01:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 02:02:48 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Remote host closed the connection) 2021-07-06 02:03:12 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:03:59 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 252 seconds) 2021-07-06 02:04:51 <-- jinsun (~quassel@user/jinsun) has quit (Write error: Connection reset by peer) 2021-07-06 02:06:34 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 246 seconds) 2021-07-06 02:07:33 --> wilfred (uid159@id-159.highgate.irccloud.com) has joined ##rust 2021-07-06 02:07:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 02:07:59 --> LeDragonDev91 (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has joined ##rust 2021-07-06 02:08:03 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-06 02:08:28 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 02:08:34 <-- LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:e849:15a:e304:7891) has quit (Ping timeout: 246 seconds) 2021-07-06 02:08:40 <-- LeDragonDev91 (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has quit (Client Quit) 2021-07-06 02:08:45 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 02:08:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:08:58 --> LeDragonDev (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has joined ##rust 2021-07-06 02:13:04 trev printf can you do let today = Utc::today() then today.naive_utc() ? 2021-07-06 02:13:16 trev or you can use Local instead of Utc 2021-07-06 02:13:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 02:18:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:18:37 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-06 02:21:05 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Remote host closed the connection) 2021-07-06 02:21:15 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 02:22:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 02:27:16 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:31:08 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-06 02:32:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 02:36:16 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Ping timeout: 244 seconds) 2021-07-06 02:36:19 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:36:28 --> dnaka91_ (~dnaka91@185.69.129.84) has joined ##rust 2021-07-06 02:37:05 <-- dnaka91 (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-06 02:37:06 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-07-06 02:40:16 --> ravish0007 (~quassel@ec2-65-0-45-121.ap-south-1.compute.amazonaws.com) has joined ##rust 2021-07-06 02:40:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 02:41:23 edcragg hey, panicbit[m] :) 2021-07-06 02:45:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:46:28 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-06 02:48:43 panicbit[m] \o/ 2021-07-06 02:48:57 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-06 02:49:01 panicbit[m] you're the first familiar face I noticed around here 2021-07-06 02:49:11 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 252 seconds) 2021-07-06 02:50:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 02:54:17 --> saschagrunert (~saschagru@46.128.124.113) has joined ##rust 2021-07-06 02:54:37 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 02:56:09 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 02:59:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:01:00 * rk4 wonders familiar from where 2021-07-06 03:01:36 --> frostschutz (~frostschu@2a01:c22:d5d0:4500:9326:61e9:7a16:f6c5) has joined ##rust 2021-07-06 03:03:01 rk4 true facts: i find a mild annoyance with all the uses in our codebase of *T when T would have been fine [context: garbage collected language], i attribute this to learning rust 2021-07-06 03:03:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:05:19 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 03:06:34 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-06 03:08:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 03:08:56 ThinkT510 informative notification: true fact: brought to you by the department of redundancy department 2021-07-06 03:11:34 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 03:12:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:13:48 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-06 03:16:35 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 03:17:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:18:16 printf im trying to use diesel to query a table and one of the columns is a timestamptz, i want to do filter on that column, which type should i use? chrono::Date? 2021-07-06 03:18:39 printf chrono::NaiveDate and Date dont seem to work 2021-07-06 03:18:46 --> tmpm697 (~tmpm697@171.241.19.174) has joined ##rust 2021-07-06 03:20:32 <-- Nyeogmi (~Nyeogmi@user/nyeogmi) has quit (Ping timeout: 252 seconds) 2021-07-06 03:21:14 printf oh wait seems like i should use DateTime 2021-07-06 03:21:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:22:20 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-07-06 03:22:40 <-- psydroid (~psydroid@user/psydroid) has quit (Ping timeout: 246 seconds) 2021-07-06 03:22:53 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-07-06 03:23:32 jbg timestamptz in postgres is DateTime in chrono 2021-07-06 03:24:38 jbg well, assuming your postgres server is using UTC as timezone. (which it probably is; having it otherwise is mild insanity) 2021-07-06 03:26:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:26:52 * bertptrs looks nervously at my employer 2021-07-06 03:27:27 bertptrs but the actual time zone doesn't matter, you can load any tz into DateTime and it will convert as appropriate 2021-07-06 03:28:00 jbg is that a diesel thing? because I remember trying that once with rust-postgres and it didn't work 2021-07-06 03:28:47 --> travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has joined ##rust 2021-07-06 03:29:05 bertptrs I've only ever used diesel so I wouldn't know 2021-07-06 03:30:08 bertptrs it also doesn't make sense not to work; the tz is a property of the data and not the column nor the data, so it should be able to handle it 2021-07-06 03:30:26 bertptrs that second "data" should be "database" 2021-07-06 03:31:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:31:07 jbg mm if it reads the timezone database property to know the conversion to make 2021-07-06 03:31:26 jbg doesn't that return an IANA TZ name though? 2021-07-06 03:31:41 jbg chrono doesn't have built-in tz defs, so diesel must depend on chrono-tz or something? 2021-07-06 03:33:23 <-- dnaka91_ (~dnaka91@185.69.129.84) has quit (Read error: Connection reset by peer) 2021-07-06 03:33:29 bertptrs Not sure. Regardless, timestamptz columns can contain entries with different. you need the client to handle that 2021-07-06 03:33:53 jbg no, they can't 2021-07-06 03:34:03 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 03:34:13 bertptrs Yes they can? That's the point of that column, you store a timestamp with its timezone! 2021-07-06 03:34:16 jbg timestamptz is always stored in UTC, and stores no time zone data alongside the UTC timestamp. it's converted to the postgres server's TimeZone setting on display 2021-07-06 03:34:26 jbg this is a *very* common misconception about timestamptz, but it's a misconception 2021-07-06 03:35:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:36:34 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 240 seconds) 2021-07-06 03:36:44 <-- ravish0007 (~quassel@ec2-65-0-45-121.ap-south-1.compute.amazonaws.com) has quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) 2021-07-06 03:37:01 <-- kadoban (~kadoban@user/kadoban) has quit (Ping timeout: 246 seconds) 2021-07-06 03:37:18 jbg so when diesel selects a timestamptz column, it gets a timestamp converted from the stored UTC value to the timezone that postgresql is configured to use. (as opposed to just the stored timestamp value with no conversion, which is what you'd get if selecting a timestamp column) 2021-07-06 03:37:47 --> ravish0007 (~quassel@ec2-65-0-45-121.ap-south-1.compute.amazonaws.com) has joined ##rust 2021-07-06 03:37:59 bertptrs Weird, that's very much not what I see in the docs. I'm looking this up because doing anything else would be useless. I can find that it's stored in UTC, but I'd expect it to be converted back on the way out 2021-07-06 03:38:27 jbg the docs are very clear about it 2021-07-06 03:38:38 bertptrs disagree as I have them right in front of my face 2021-07-06 03:38:42 jbg yes, it is converted - to the postgresql server's timezone 2021-07-06 03:38:49 jbg not to any stored timezone value, since there isn't one 2021-07-06 03:38:55 jbg if you think the docs say otherwise, you're not reading them accurately 2021-07-06 03:38:59 jbg I have worked on the code that implements this :) 2021-07-06 03:39:13 bertptrs It's not that I see that, it's that I don't see any specific claim one way or another 2021-07-06 03:39:17 jbg the entire point of timestamptz is the conversions on input and output 2021-07-06 03:39:30 jbg apart from anything else, both timestamp and timestamptz are 8 bytes 2021-07-06 03:39:32 bertptrs (but I do see like 5 different ways of specifying the timezone for literals. priorities, people) 2021-07-06 03:39:54 jbg the documentation also makes the conversions very clear: 2021-07-06 03:40:10 jbg input: "For timestamp with time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time, GMT). An input value that has an explicit time zone specified is converted to UTC using the appropriate offset for that time zone. If no time zone is stated in the input string, then it is assumed to be in the time zone indicated by the system's TimeZone parameter" 2021-07-06 03:40:16 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:40:21 jbg output: "When a timestamp with time zone value is output, it is always converted from UTC to the current timezone zone, and displayed as local time in that zone. To see the time in another time zone, either change timezone or use the AT TIME ZONE construct" 2021-07-06 03:41:49 jbg "timezone" in that context is referring to the system parameter "timezone" 2021-07-06 03:42:08 bertptrs apart from anything else, both timestamp and timestamptz are 8 bytes < that doesn't say anything, you could use one byte for the tz and be fine. It's only when you compute the actual range that you figure that out, but who can do that in their head 2021-07-06 03:42:38 jbg the table at the top of the page also calls out the lowest possible value and highest possible value, which are also identical 2021-07-06 03:42:53 jbg so unless timestamp doesn't use 1 bit, it's a strong clue 2021-07-06 03:43:06 jbg anyway, I think a careful reading of the docs (especially the parts above) makes this very clear 2021-07-06 03:43:17 bertptrs it's not, that's how I would implement it, just ignore the bits for the tz if the spec did not ask for it 2021-07-06 03:43:48 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-06 03:43:50 jbg there's really no difference between timestamp and timestamptz if your postgresql server is configured to use UTC. but timestamptz is more convenient in the presence of ORMs because it usually maps to a UTC-aware datetime type whereas timestamp usually maps to a naive one 2021-07-06 03:44:12 jbg timestamptz also allows you to pass non-UTC timestamps directly to the DB and have it handle the conversion, which can be convenient sometimes 2021-07-06 03:44:20 jbg but in terms of storage they're identical 2021-07-06 03:44:35 <-- SiegeLord (~sl@user/siegelord) has quit (Quit: WeeChat 2.8) 2021-07-06 03:44:36 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-06 03:45:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:45:33 jbg and it's not possible to recover the timezone that data was inserted with unless you separately store it. this can be an issue in certain use cases related to calendaring 2021-07-06 03:46:15 bertptrs TIL I guess. Don't agree with the decision to do it this way for the reason above but it is what it is 2021-07-06 03:46:25 bertptrs Also those docs need serious improvement 2021-07-06 03:46:50 bertptrs The "this doesn't store timestamps stop thinking it does" thing deserves a highlight 2021-07-06 03:46:59 bertptrs s/timestamps/time zones/ 2021-07-06 03:47:01 jbg honestly I think the docs are excellent, along with basically all the postgres docs. but they are dense and require careful reading 2021-07-06 03:47:11 jbg and yeah, this is a common enough misconception that it should be highlighted, you're right 2021-07-06 03:48:04 bertptrs but they are dense and require careful reading < exactly why I think they are not great. and my job entails reading a lot of them, so you'd think I would be used to it. I'm clearly not 2021-07-06 03:48:28 printf another thing about diesel, can i put any struct into a column with the PG Type of JSON 2021-07-06 03:48:31 bertptrs the more niche use cases in particular are worded in a way that probably makes a lot of sense to whoever wrote the code, but not to an end user 2021-07-06 03:49:19 printf on of the columns in my database is JSON, do i have to map it as serde::Value or HashMap first or can i just put a struct in 2021-07-06 03:49:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:49:58 printf also it's actually an array json, so can i put something like: pub data: Vec, 2021-07-06 03:50:40 bertptrs from what I read, you should use a serde_json::Value first: https://docs.rs/diesel/1.4.7/diesel/pg/types/sql_types/struct.Jsonb.html 2021-07-06 03:51:37 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-06 03:51:44 --> paule (~paule@ppp-93-104-166-59.dynamic.mnet-online.de) has joined ##rust 2021-07-06 03:51:44 jbg rust-postgres has a wrapper where you can do Json(my_struct_value) if your struct impls Serialize (for inserting/updating) and/or Deserialize (for selecting), maybe diesel has something similar? 2021-07-06 03:53:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 03:54:24 bertptrs no other FromSql implementations for jsonb but you could easily implement something like that yourself 2021-07-06 03:54:32 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-06 03:55:09 printf oh and im using jsonb not json actually 2021-07-06 03:55:23 jbg doesn't change much in terms of from/to sql 2021-07-06 03:55:31 jbg you could just wrap the existing impl that uses Value and provide one for your type 2021-07-06 03:56:43 bertptrs The impls are very straightforward: https://docs.rs/diesel/1.4.7/src/diesel/pg/types/json.rs.html#39-56 2021-07-06 03:58:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 03:58:58 bertptrs I imagine rust-posgres' Json wrapper does something similar 2021-07-06 04:00:21 printf srry , so i either have to map my field as serde::Value so like: pub data: Value, and then i manually deserialise it later back to mystruct, or i need to impl FromSql and ToSql for mystruct? 2021-07-06 04:00:34 jbg either 2021-07-06 04:00:39 jbg you don't have to manually deserialise though 2021-07-06 04:00:56 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 04:01:31 --> dextaa (~DV@aftr-37-201-214-197.unity-media.net) has joined ##rust 2021-07-06 04:01:57 printf im not quite sure how to do the impl FromSql and ToSql thing though, do i just copy it from the link u sent just now? 2021-07-06 04:02:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 04:03:16 jbg you could do that and then adjust it accordingly, yeah 2021-07-06 04:06:34 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-06 04:07:38 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:08:01 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 04:08:17 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 04:09:47 <-- hendursaga (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-06 04:11:44 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 258 seconds) 2021-07-06 04:12:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 04:16:17 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-06 04:16:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:19:40 printf so ,impl FromSql for MyStruct 2021-07-06 04:20:03 printf and then for my table struct i can do struct MyTable { pub data: Vec } 2021-07-06 04:20:24 printf does it work for Vecs too 2021-07-06 04:21:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 04:21:34 <-- travisshears (~travisshe@aftr-82-135-81-233.dynamic.mnet-online.de) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-06 04:21:47 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-06 04:22:09 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 252 seconds) 2021-07-06 04:23:15 jbg that would be for a postgres array of jsonb 2021-07-06 04:23:29 jbg if you want the array to be inside the jsonb, you want to impl FromSql for Vec 2021-07-06 04:23:32 --> gggp (~gggp@60.10.194.47) has joined ##rust 2021-07-06 04:23:49 jbg that might conflict with an existing impl though 2021-07-06 04:24:01 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-07-06 04:24:09 jbg since I guess diesel already supports postgres arrays that way 2021-07-06 04:24:11 jbg so you might have to do a newtype 2021-07-06 04:24:26 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-06 04:25:30 jbg oh, it should be fine as long as you don't also impl FromSql for MyStruct I think 2021-07-06 04:25:37 printf cuz in my database table, ive defined the column type to be JSONB, but the actual JSON data is array 2021-07-06 04:25:41 jbg because diesel only implements it for Vec where T: FromSql 2021-07-06 04:25:50 jbg yeah, so you need to impl FromSql for Vec 2021-07-06 04:25:54 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:25:55 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-06 04:26:21 printf do i need to impl for MyStruct first and then Vec or just Vec would suffice 2021-07-06 04:27:23 jbg you don't need to impl FromSql for MyStruct, and if you do, it won't compile 2021-07-06 04:27:42 jbg because diesel's existing `impl FromSql for Vec where T: FromSql` will then conflict with your `impl FromSql for Vec` 2021-07-06 04:28:20 printf oh right, 2021-07-06 04:29:22 jbg (that existing implementation is for postgresql's array type, which is unrelated to json/jsonb) 2021-07-06 04:29:57 printf ok im trying to copy the from_sql impl but it's complaining an error about undeclared carete or module `deserialize`, im using rocket's serde and im not sure what's the path to deserialize 2021-07-06 04:30:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 04:30:14 jbg you probably just want to add a dependency on serde 2021-07-06 04:30:36 jbg I assume "rocket's serde" is just serde 2021-07-06 04:31:10 printf ok i get it so if i impl FromSql for MyStruct it will try to do it's own version for Vec thats why i shouldnt 2021-07-06 04:31:39 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-06 04:33:14 printf yea rocket's serde is just normal serde 2021-07-06 04:33:46 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-06 04:35:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:37:16 <-- wilfred (uid159@id-159.highgate.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 04:37:56 printf oh right, diesel::deserialze::Result 2021-07-06 04:38:25 --> andyhoang (~andyhoang@14.186.56.12) has joined ##rust 2021-07-06 04:38:36 printf hmm, "only traits defined in the current crate can be implemented for arbitrary types, define and implement a trait or new type instead" 2021-07-06 04:39:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 04:40:18 jbg what are you trying to implement FromSql for? 2021-07-06 04:41:39 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-07-06 04:42:32 printf im trying to impl FromSql for Vec 2021-07-06 04:44:07 jbg and MyStruct is in the same crate as you're trying to write this impl? 2021-07-06 04:44:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:44:57 --> _42large (~user@37.120.197.42) has joined ##rust 2021-07-06 04:45:04 mike-burns Is it too late to talk you out of a JSONB column type? 2021-07-06 04:45:20 <-- _42large (~user@37.120.197.42) has quit (Client Quit) 2021-07-06 04:45:24 printf mike-burns yes unfortunately 2021-07-06 04:45:35 jbg unless you know more about his use case than I do, why try to talk him out of it? there are plenty of sensible reasons one might use JSONB 2021-07-06 04:45:52 jbg (there are plenty of non-sensible reasons too, but we don't know which is printf's case) 2021-07-06 04:46:14 printf MyStruct is in the same crate as where im writing the impl 2021-07-06 04:47:02 --> dark-knight (~dark-knig@2a02:8388:1984:a800:a508:2ec5:138c:3222) has joined ##rust 2021-07-06 04:47:41 jbg I don't know the orphan rules off by heart, but I thought impl Foreign for Foreign should be fine but maybe it's only fine when the local type param appears in the trait rather than the type 2021-07-06 04:48:12 printf this is my file: https://paste.rs/mmo 2021-07-06 04:48:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 04:49:14 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-06 04:50:05 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 252 seconds) 2021-07-06 04:53:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 04:55:35 printf so i cant imp this trait unless it's in the same crate as MyStruct? 2021-07-06 04:56:10 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-06 04:58:28 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 05:01:00 --> gggp_ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 05:01:27 <-- est31 (~est31@user/est31) has quit (Ping timeout: 244 seconds) 2021-07-06 05:02:18 --> est31 (~est31@user/est31) has joined ##rust 2021-07-06 05:02:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:03:56 <-- gggp (~gggp@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-06 05:05:26 <-- gggp_ (~gggp@60.10.194.47) has quit (Client Quit) 2021-07-06 05:05:42 --> gggp_ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 05:07:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 05:10:08 --> mads- (~mfrstar@094145220122.dynamic.telenor.dk) has joined ##rust 2021-07-06 05:11:11 jbg you can impl the trait for MyStruct, I guess the issue is that both the trait and Vec are outside your crate. I thought that was fine since Vec is parameterised with a local type, but maybe not (I don't have time to read the orphan rules in detail right now) 2021-07-06 05:11:18 jbg you're not by any chance using a really old version of rust are you? 2021-07-06 05:11:33 printf no, im using the nightly version 2021-07-06 05:11:36 jbg ok 2021-07-06 05:11:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:11:51 jbg you can wrap Vec in a newtype and impl for that 2021-07-06 05:12:14 printf so pub type NewType = Vec ? 2021-07-06 05:12:27 printf and then impl .... for NewType { .... } 2021-07-06 05:13:58 j`ey printf: that's a type alias, not a new type 2021-07-06 05:14:07 j`ey you need: struct NewType(Vec); 2021-07-06 05:14:57 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-07-06 05:15:11 --> ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has joined ##rust 2021-07-06 05:16:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 05:17:50 --> xkuru (~xkuru@user/xkuru) has joined ##rust 2021-07-06 05:20:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:21:23 printf ok , so struct MyStructList(Vec sm0x (~sm0x@gateway/tor-sasl/sm0x) has joined ##rust 2021-07-06 05:25:58 printf yea i did that and got the error: the trait bound MyStructList Queryable is not satisfied required becuase of the requirements on the impl of Queryable<(disel::sql_types::Integer,diesel::sql_types::SmallInt,diesel::sql_types::Jsonb,diesel::sql_types::Timestamptz),Pg> for (i32,i16,MyStructList, chrono::DateTime 2021-07-06 05:26:36 printf it also complained: 1 redundant requirements hidden 2021-07-06 05:26:39 <-- meandi2 (~meandi4@dyndsl-178-142-254-156.ewe-ip-backbone.de) has quit (Quit: Leaving) 2021-07-06 05:26:49 --> meandi (~meandi4@dyndsl-178-142-254-156.ewe-ip-backbone.de) has joined ##rust 2021-07-06 05:27:04 --> huseyinkozan (~hk@31.223.46.248) has joined ##rust 2021-07-06 05:29:06 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-06 05:29:08 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-06 05:29:48 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:30:10 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-06 05:31:01 --> gggp__ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 05:31:28 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 05:31:45 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 05:31:54 -- decartes is now known as nixture 2021-07-06 05:32:58 <-- gggp_ (~gggp@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-06 05:34:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 05:34:44 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-06 05:38:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:40:11 --> krz3si (~szara@2a02:a31c:853b:b780:df0:1631:dcb9:4e4f) has joined ##rust 2021-07-06 05:40:26 jbg I guess you need to derive Queryable for it, not sure, haven't really used diesel 2021-07-06 05:42:59 <-- gioyik (~gioyik@gateway/tor-sasl/gioyik) has quit (Quit: WeeChat 3.1) 2021-07-06 05:43:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 05:43:41 <-- paule (~paule@ppp-93-104-166-59.dynamic.mnet-online.de) has quit (Remote host closed the connection) 2021-07-06 05:45:34 --> paule (~paule@ppp-93-104-166-59.dynamic.mnet-online.de) has joined ##rust 2021-07-06 05:48:12 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:51:37 printf yea i tried that, didnt work 2021-07-06 05:52:06 printf i give up, ill just map it as Value and then manually deserialise it using serde_json::from_value() 2021-07-06 05:52:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 05:54:19 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 05:56:47 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 05:57:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 05:58:39 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-06 05:58:52 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 06:01:12 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-06 06:01:52 --> llorllale (~llorllale@2607:9880:3a18:69:c48c:fa80:e44:9be7) has joined ##rust 2021-07-06 06:02:07 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-06 06:02:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 06:02:08 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-06 06:02:52 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 06:03:25 --> tglman (~tglman@46.233.83.249) has joined ##rust 2021-07-06 06:03:43 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-06 06:03:56 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 06:04:45 <-- ubert (~Thunderbi@2a02:8109:9880:303c:e6b3:18ff:fe83:8f33) has quit (Remote host closed the connection) 2021-07-06 06:05:15 --> ooookiwi (~l@37.171.4.137) has joined ##rust 2021-07-06 06:05:20 ooookiwi hello 2021-07-06 06:06:02 ooookiwi i'm trying to trace memory allocations made by rust, to understand a memory dump (know what piece of information is at which location) 2021-07-06 06:06:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 06:07:31 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-06 06:07:44 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 06:08:25 ooookiwi i've been trying things like "valgrind --trace-children=yes --tool=massif ./target/debug/myprog", but massif does not print allocation nor it stores it in the massif.out file, like it does not see the allocations 2021-07-06 06:09:13 jbg first question would be: does myprog make heap allocations? :) 2021-07-06 06:09:32 ooookiwi i tried also gperftools like "LD_PRELOAD="/usr/lib64/libtcmalloc.so" HEAPPROFILE=/tmp/profile ./target/debug/myprog", but similarely the libtcmalloc does not seem to catch any allocations 2021-07-06 06:10:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 06:10:58 jbg I've not used libtcmalloc with a rust program, personally, but it should work -- and massif definitely works fine 2021-07-06 06:11:00 ooookiwi legit question... well code is at https://github.com/looran/tshat and yes it does all sorts of allocations 2021-07-06 06:11:57 ooookiwi well i believe it should work, i must be doing something wrong but i didn't figure what quite yet :) 2021-07-06 06:12:10 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-06 06:12:38 --> gggp_ (~gggp@221.219.70.91) has joined ##rust 2021-07-06 06:13:04 -- gggp_ is now known as gggp 2021-07-06 06:15:22 <-- gggp__ (~gggp@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-06 06:15:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 06:16:19 jbg I assume you're not using some ancient rust that still uses jemalloc instead of the system allocator? 2021-07-06 06:17:44 --> llorllale1 (~llorllale@2607:9880:3a18:69:bd11:e5f5:4ef9:b465) has joined ##rust 2021-07-06 06:18:10 <-- llorllale (~llorllale@2607:9880:3a18:69:c48c:fa80:e44:9be7) has quit (Ping timeout: 240 seconds) 2021-07-06 06:18:32 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-06 06:19:31 ooookiwi jbg: does not seem so "rustc 1.53.0-nightly" 2021-07-06 06:19:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 06:24:01 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 06:24:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 06:25:36 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-06 06:28:10 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-06 06:31:50 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-07-06 06:35:04 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Remote host closed the connection) 2021-07-06 06:35:18 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 06:40:05 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-06 06:40:15 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 06:42:55 --> tmpm697_ (~tmpm697@171.241.81.202) has joined ##rust 2021-07-06 06:43:11 <-- xkuru (~xkuru@user/xkuru) has quit (Remote host closed the connection) 2021-07-06 06:44:11 ooookiwi actually it works with massif, i can see some allocations now that i use options to make it log more (--detailed-freq=1 --max-snapshots=1000), but it seems using tokio make the traces totally unreadable, almost all allocs are logged under tokio::runtime::Runtime 2021-07-06 06:45:08 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 06:45:15 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 06:45:35 <-- tmpm697 (~tmpm697@171.241.19.174) has quit (Ping timeout: 252 seconds) 2021-07-06 06:46:13 jbg doesn't seem surprising; without any knowledge of how rust async works the profiler is going to see them happening inside the poll function of the futures, called by the runtime 2021-07-06 06:48:34 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Ping timeout: 240 seconds) 2021-07-06 06:53:50 <-- ooookiwi (~l@37.171.4.137) has quit (Ping timeout: 252 seconds) 2021-07-06 06:55:06 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:a508:2ec5:138c:3222) has quit (Read error: Connection reset by peer) 2021-07-06 06:56:34 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-06 06:56:52 --> ooookiwi (~l@37.171.4.137) has joined ##rust 2021-07-06 06:58:12 <-- ooookiwi (~l@37.171.4.137) has quit (Client Quit) 2021-07-06 06:59:22 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-07-06 07:01:55 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 07:02:36 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-06 07:07:03 --> _42large (~user@37.120.197.48) has joined ##rust 2021-07-06 07:10:00 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-06 07:12:05 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-06 07:12:13 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 07:17:40 <-- tsdh (~tsdh@j289989.servers.jiffybox.net) has quit (Quit: rcirc on GNU Emacs 28.0.50) 2021-07-06 07:18:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 07:18:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 07:19:54 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 07:20:54 printf jbg isnt it faster to use jemallocator vs the default one? 2021-07-06 07:21:36 j`ey printf: not universally, and it makes programs bigger, thats why it was removed as the default 2021-07-06 07:22:39 printf i read using jemalloc/mimalloc is faster thought 2021-07-06 07:22:42 printf though* 2021-07-06 07:22:58 <-- kmh (~kmh@p200300df5f069e00d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 246 seconds) 2021-07-06 07:23:13 --> kmh (~kmh@p200300df5f2b7500d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 07:23:13 printf but i guess thats only true if you have lots of heap allocation? 2021-07-06 07:23:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 07:24:42 --> brainstemdisorde (~brainstem@202-153-220-98.ca99dc.mel.static.aussiebb.net) has joined ##rust 2021-07-06 07:25:25 --> tsdh (~tsdh@j289989.servers.jiffybox.net) has joined ##rust 2021-07-06 07:28:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 07:29:19 --> noonien (~noonien@user/noonien) has joined ##rust 2021-07-06 07:32:49 jbg it might be faster, you would have to measure for your actual workload 2021-07-06 07:33:56 <-- brainstemdisorde (~brainstem@202-153-220-98.ca99dc.mel.static.aussiebb.net) has quit (Quit: Leaving) 2021-07-06 07:34:10 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-07-06 07:35:35 --> blindguard (~blindguar@2a02:908:1864:c200:e9df:eeac:1563:f38a) has joined ##rust 2021-07-06 07:37:06 --> _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has joined ##rust 2021-07-06 07:37:56 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-06 07:40:02 <-- kmh (~kmh@p200300df5f2b7500d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-06 07:40:34 bertptrs IIRC it's faster with lots of tiny threaded allocations, and even then the results weren't that much better 2021-07-06 07:42:43 --> kmh (~kmh@p200300df5f2bfd00d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 07:45:48 <-- jpds (~jpds@gateway/tor-sasl/jpds) has quit (Remote host closed the connection) 2021-07-06 07:46:08 --> jpds (~jpds@gateway/tor-sasl/jpds) has joined ##rust 2021-07-06 07:46:35 db48x the primary reason that Firefox started using jemalloc was that it decreased the overall memory fragmentation after loading and unloading a bunch of tabs 2021-07-06 07:47:02 --> maelcum (~horst@2001:16b8:c1ee:6200:7572:c4db:a041:d547) has joined ##rust 2021-07-06 07:48:39 --> gggp_ (~gggp@125.33.93.73) has joined ##rust 2021-07-06 07:51:40 <-- gggp (~gggp@221.219.70.91) has quit (Ping timeout: 246 seconds) 2021-07-06 07:53:20 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 07:54:54 --> kmh_ (~kmh@p200300df5f2c3700d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 07:56:05 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-06 07:56:10 <-- kmh (~kmh@p200300df5f2bfd00d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 240 seconds) 2021-07-06 07:58:43 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 07:59:37 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-06 08:02:28 <-- gggp_ (~gggp@125.33.93.73) has quit (Quit: Leaving) 2021-07-06 08:02:48 --> gggp_ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 08:03:28 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-06 08:04:10 --> gggp__ (~gggp@114.245.111.21) has joined ##rust 2021-07-06 08:07:22 <-- gggp_ (~gggp@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-06 08:07:28 <-- huseyinkozan (~hk@31.223.46.248) has quit (Quit: Konversation terminated!) 2021-07-06 08:09:54 --> kmh (~kmh@p200300df5f2c9000d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 08:11:23 <-- kmh_ (~kmh@p200300df5f2c3700d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-06 08:12:34 <-- tglman (~tglman@46.233.83.249) has quit (Ping timeout: 240 seconds) 2021-07-06 08:13:26 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-06 08:20:28 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 08:20:46 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 08:22:03 -- gggp__ is now known as gggp 2021-07-06 08:23:56 <-- tmpm697_ (~tmpm697@171.241.81.202) has quit (Quit: Lost terminal) 2021-07-06 08:24:46 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 08:28:58 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-06 08:31:50 <-- kmh (~kmh@p200300df5f2c9000d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-06 08:33:19 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-06 08:33:25 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-06 08:37:11 --> kmh (~kmh@p200300df5f2d3400d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 08:40:22 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 08:41:24 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-06 08:41:38 -- llorllale1 is now known as llorllale 2021-07-06 08:42:26 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-06 08:42:58 --> kmh_ (~kmh@p200300df5f2d4700d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 08:43:15 <-- mads- (~mfrstar@094145220122.dynamic.telenor.dk) has quit (Quit: leaving) 2021-07-06 08:43:48 <-- jess (~jess@libera/staff/jess) has quit 2021-07-06 08:44:31 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 246 seconds) 2021-07-06 08:44:31 <-- kmh (~kmh@p200300df5f2d3400d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 246 seconds) 2021-07-06 08:45:07 --> jess (~jess@libera/staff/jess) has joined ##rust 2021-07-06 08:45:35 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 08:45:51 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-06 08:47:05 --> tmpm697 (~tmpm697@171.241.81.202) has joined ##rust 2021-07-06 08:48:14 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-06 08:50:07 <-- Vonter (~Vonter@user/vonter) has quit (Ping timeout: 246 seconds) 2021-07-06 08:54:04 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 272 seconds) 2021-07-06 08:54:56 <-- kmh_ (~kmh@p200300df5f2d4700d9e8a7e0e6fd20fc.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-06 08:56:19 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-07-06 08:56:54 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (Quit: WeeChat 3.2) 2021-07-06 08:57:10 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-07-06 08:57:21 <-- Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has quit (Client Quit) 2021-07-06 09:00:33 --> Maxattax (~max@50-195-160-193-static.hfc.comcastbusiness.net) has joined ##rust 2021-07-06 09:00:57 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Remote host closed the connection) 2021-07-06 09:01:19 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-06 09:01:52 --> Vonter (~Vonter@user/vonter) has joined ##rust 2021-07-06 09:03:18 <-- quite (~quite@user/quite) has quit (Read error: Connection reset by peer) 2021-07-06 09:03:41 --> quite (~quite@user/quite) has joined ##rust 2021-07-06 09:05:52 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-06 09:10:55 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 09:11:25 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-06 09:11:34 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-06 09:12:39 --> kmh (~kmh@p200300df5f2d8b0075f9d28b18545808.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 09:16:50 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 252 seconds) 2021-07-06 09:17:32 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-06 09:21:52 <-- cmagina_ (sid286142@id-286142.highgate.irccloud.com) has quit (Changing host) 2021-07-06 09:21:52 --> cmagina_ (sid286142@user/cmagina) has joined ##rust 2021-07-06 09:21:52 -- cmagina_ is now known as cmagina 2021-07-06 09:22:07 --> mmfood (~mmfood@45.91.21.37) has joined ##rust 2021-07-06 09:23:24 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-06 09:23:55 kupi hi, do i understand correctly what's happening here? and all references point to the heap here? https://gist.github.com/theqp/e76dd096d762943f5e2f8654338f516c 2021-07-06 09:25:06 <-- peterandre (peterandre@2605:6400:c847:1524::4251) has quit (Ping timeout: 240 seconds) 2021-07-06 09:25:08 j`ey well th4 &Vec isn't a reference to the heap 2021-07-06 09:26:06 kupi besides that, all of them? 2021-07-06 09:26:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 09:26:20 j`ey yeah, since theyre references to the Vec items 2021-07-06 09:27:27 kupi in the hashmap why the keys are &T? 2021-07-06 09:28:12 kupi i got it: because the iterators contain &T-s 2021-07-06 09:28:36 lambda yeah, getting Ts would require cloning the Vec elements 2021-07-06 09:29:02 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 09:29:25 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-06 09:29:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 09:29:47 <-- pyfisch (thelounge@user/pyfisch) has quit (Quit: the lounge - https://webirc.envs.net) 2021-07-06 09:29:55 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 09:30:32 --> pyfisch (thelounge@user/pyfisch) has joined ##rust 2021-07-06 09:30:56 lambda kupi: you can into_iter() the hashmap to get rid of one level of references 2021-07-06 09:32:09 --> dshikoh (~dshikoh@user/dshikoh) has joined ##rust 2021-07-06 09:32:16 j`ey the second iter, that is 2021-07-06 09:34:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 09:35:28 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Quit: ec) 2021-07-06 09:35:32 kupi thanks, updated it https://gist.github.com/theqp/da6e70c3d23fcd5e3cbce9e08c5640b7 2021-07-06 09:37:24 j`ey do you need the map at the end now? 2021-07-06 09:38:08 kupi no 2021-07-06 09:38:23 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 09:38:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 09:39:00 Alexendoo Could use max_by_key there 2021-07-06 09:39:32 kupi Alexendoo: but i am comparing by value 2021-07-06 09:40:08 kupi > Returns the element that gives the maximum value from the specified function. 2021-07-06 09:40:15 kupi then why it is named "by key"? 2021-07-06 09:42:16 bertptrs it uses a key value rather than the actual object to compare. python does it the same way, even calling the function "key" 2021-07-06 09:42:28 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 09:42:49 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 09:43:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 09:44:58 <-- llorllale (~llorllale@2607:9880:3a18:69:bd11:e5f5:4ef9:b465) has quit (Ping timeout: 240 seconds) 2021-07-06 09:46:15 <-- gggp (~gggp@114.245.111.21) has quit (Remote host closed the connection) 2021-07-06 09:46:22 --> llorllale (~llorllale@2607:9880:3a18:69:bd11:e5f5:4ef9:b465) has joined ##rust 2021-07-06 09:46:44 --> gggp (~gggp@60.10.194.47) has joined ##rust 2021-07-06 09:47:17 Alexendoo I can certainly see how that'd be confusing when you're iterating over a hashmap 2021-07-06 09:47:44 kupi .max_by_key(|(_, count)| *count) ? 2021-07-06 09:47:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 09:48:04 kupi thanks, now i see that max_by_key is in iter 2021-07-06 09:48:45 <-- gggp (~gggp@60.10.194.47) has quit (Remote host closed the connection) 2021-07-06 09:49:13 --> gggp (~gggp@60.10.194.47) has joined ##rust 2021-07-06 09:49:25 Alexendoo Yeah that or |&(_, count)| count 2021-07-06 09:52:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 09:53:36 --> rcbaus (~rcbaus@35.142.158.114) has joined ##rust 2021-07-06 09:53:55 kee How can I ask Rust to do fast floating point maths? (I don't care about accuracy.) 2021-07-06 09:54:50 kee There are nightly crates but I'm wondering if this is possible in stable. 2021-07-06 09:54:59 bertptrs it's not, not yet 2021-07-06 09:55:33 bertptrs I read an RFC that tried to implement this, but it's very new territory 2021-07-06 09:55:45 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-07-06 09:56:00 kupi is there an alternative to counts which does not return a map? I don't need hashing in that context 2021-07-06 09:56:02 kee I'll just use the fast-floats crate then. 2021-07-06 09:56:23 kupi nvm, I just realized hashing is needed by the algorithm 2021-07-06 09:57:07 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 09:57:40 Alexendoo kupi: You could do it with a BTreeMap which would be Ord instead 2021-07-06 09:57:51 bertptrs are your values grouped together? If so, you could use Itertools::group_by 2021-07-06 09:59:31 kee If I want a fixed-size ring buffer, does VecDeque have much overhead compared to using a Vec and an index variable? 2021-07-06 09:59:50 bertptrs not at all 2021-07-06 10:00:11 kupi bertptrs: what do you mean by grouped together? 2021-07-06 10:00:31 bertptrs all 1s together in sequence, then all 2s, 3s, etc 2021-07-06 10:00:32 kee kupi: Does it look like [1, 1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 3, 3, 3, 0, 0]? 2021-07-06 10:00:39 kupi kee: no 2021-07-06 10:01:29 kee I don't know of anything that'd work, then, other than something with a map. 2021-07-06 10:01:33 --> hammock (~Hammock@2600:1700:19a1:3330::625) has joined ##rust 2021-07-06 10:01:33 kee Unless you write it yourself. 2021-07-06 10:01:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 10:02:09 kupi kee: it's possible which a Vec<(&T, usize)>, but it would be horribly slow 2021-07-06 10:02:23 <-- hammock (~Hammock@2600:1700:19a1:3330::625) has quit (Client Quit) 2021-07-06 10:02:33 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 10:02:50 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-06 10:03:09 kee kupi: Your keys can't be mapped to adjacent integers, then. 2021-07-06 10:03:17 kee If they could, you'd just need a Vec. 2021-07-06 10:04:47 talin hello. i made a "telnet client" in rust, and it uses TcpStream with a non-blocking socket with a very low timeout. so this approach is basically constantly hammering on the socket in a busy-wait style. is there a better approach where i could get the OS to tell me when there is new data to be received? 2021-07-06 10:05:07 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-06 10:05:08 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-06 10:06:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:08:52 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Ping timeout: 244 seconds) 2021-07-06 10:10:31 --> gggp_ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 10:10:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-06 10:11:05 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-06 10:11:19 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 246 seconds) 2021-07-06 10:11:33 <-- alexxey (~Alexey@user/alexxey) has quit (Read error: Connection reset by peer) 2021-07-06 10:12:44 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 10:12:50 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 10:13:02 <-- gggp (~gggp@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-06 10:15:19 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-06 10:15:28 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:15:46 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-06 10:18:00 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 10:18:11 -- gggp_ is now known as gggp 2021-07-06 10:20:07 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-06 10:22:33 <-- dshikoh (~dshikoh@user/dshikoh) has quit (Quit: Konversation terminated!) 2021-07-06 10:22:46 <-- cco (uid173181@id-173181.tinside.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 10:24:28 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:27:10 kee talin: A blocking socket, a thread and a queue. 2021-07-06 10:27:25 kee I've never got that to work, so take it with a pinch of salt, but I don't see why it shouldn't. 2021-07-06 10:28:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 10:29:31 <-- kmh (~kmh@p200300df5f2d8b0075f9d28b18545808.dip0.t-ipconnect.de) has quit (Read error: Connection reset by peer) 2021-07-06 10:29:42 --> kmh (~kmh@p200300df5f2d8b0075f9d28b18545808.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 10:33:35 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:34:08 --> peterandre (peterandre@2605:6400:c847:1524::4251) has joined ##rust 2021-07-06 10:34:29 <-- kmh (~kmh@p200300df5f2d8b0075f9d28b18545808.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-06 10:34:56 --> kmh (~kmh@p200300df5f2f120075f9d28b18545808.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 10:36:11 --> gggp_ (~gggp@125.33.84.224) has joined ##rust 2021-07-06 10:37:50 talin kee: thank you. ages ago when i was dabbling with this, someone said i should use tokio, but i don't know 2021-07-06 10:38:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 10:38:58 <-- gggp (~gggp@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-06 10:40:51 kee talin: Only if you like async. 2021-07-06 10:41:03 kee I prefer async-std, personally (via the smol crate). 2021-07-06 10:41:25 kee The tokio solution might be better, though; I vaguely remember that tokio has some decent async wrappers for sockets. 2021-07-06 10:41:55 elichai2 Why is the codegen of these not the same? https://godbolt.org/z/reMPrvf1P https://godbolt.org/z/GEWzY4d9h (also when I try to get IR output for the 2nd one I get a compilation error for some reason) 2021-07-06 10:42:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:44:32 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-06 10:46:11 --> Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has joined ##rust 2021-07-06 10:47:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 10:50:24 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-06 10:51:31 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-06 10:51:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 10:52:21 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-06 10:55:04 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-06 10:55:07 <-- saschagrunert (~saschagru@46.128.124.113) has quit (Remote host closed the connection) 2021-07-06 10:55:09 bertptrs good question. somehow the compiler doesn't realize that that the second one is still a no-op 2021-07-06 10:55:45 bertptrs "a sufficiently smart compiler" etc but this one clearly isn't 2021-07-06 10:56:21 <-- audron (~audron@jupiter.cocaine.farm) has quit (Quit: i blame containers) 2021-07-06 10:56:32 --> audron (~audron@jupiter.cocaine.farm) has joined ##rust 2021-07-06 10:56:56 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 10:57:42 kee If I'm repeatedly dividing by the same number (where that number is determined at runtime), is there a way to convert that into arcane magic instructions as a sort of cache? 2021-07-06 10:58:07 <-- audron (~audron@jupiter.cocaine.farm) has quit (Client Quit) 2021-07-06 10:58:17 --> audron (~audron@cocaine.farm) has joined ##rust 2021-07-06 10:58:39 danieldg can you convert it into a multiply? Those are generally faster than a divide 2021-07-06 10:58:51 kee danieldg: Yeah, that's what I mean. 2021-07-06 10:59:02 kupi is there a shorthand for `MyEnum(value) => MyEnum(value)` in a pattern match? 2021-07-06 10:59:14 kee I could have a lookup table, I suppose, but that'd be a big lookup table. 2021-07-06 10:59:17 danieldg kee: you need to do that manually because it's likely to change the result 2021-07-06 10:59:28 bertptrs if you do it a lot, you can compute the MMI and use that instead 2021-07-06 10:59:30 kee kupi: x => x, but that doesn't check the variant. 2021-07-06 10:59:51 bertptrs computing the MMI is a bit of work so you need to be sure you're using one divisor a lot 2021-07-06 10:59:53 danieldg kupi: x @ MyEnum(_) => x 2021-07-06 11:00:28 kupi danieldg: thanks, i was looking for that 2021-07-06 11:00:31 kee bertptrs: Doesn't work for powers of two. 2021-07-06 11:00:33 bertptrs (also the MMI might not exist for a particular number) 2021-07-06 11:00:34 kee So MMI and shift? 2021-07-06 11:00:42 kupi * kee 2021-07-06 11:00:43 kupi XD 2021-07-06 11:00:56 kupi nvm 2021-07-06 11:01:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:01:14 elichai2 bertptrs: yeah, zero cost abstractions isn't really zero cost in a lot of places like this 2021-07-06 11:01:28 bertptrs kee: is there anything you know about the divisors? 2021-07-06 11:01:32 elichai2 another Q, there's no `IntoExactSizeIterator` trait somehow, right? 2021-07-06 11:01:38 kee bertptrs: Not really. 2021-07-06 11:01:57 nox elichai2: No need to 2021-07-06 11:02:20 kee Actually, they're likely to be less than a dozen, so I should just use a lookup table. 2021-07-06 11:02:20 danieldg elichai2: not really, you can do IntoIterator where T::IntoIter : ExactSizeIterator 2021-07-06 11:02:39 elichai2 danieldg: Nice! 2021-07-06 11:02:42 elichai2 THanks :) 2021-07-06 11:02:45 bertptrs kee: you could try special-casing it a little, 2^n ⇒ shift, try compute MMI if it exists, just do it 2021-07-06 11:04:42 elichai2 danieldg: "error[E0658]: associated type bounds are unstable" 2021-07-06 11:05:36 danieldg kee: or maybe compute 2^32/b and use a_u32/b_u32 -> (a_u32 as u64 * bi_u32 as u64) >> 32 2021-07-06 11:05:48 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 11:06:05 Karel kee, There's libdivide for C++ maybe there's a similar Rust crate as well. 2021-07-06 11:06:08 danieldg don't know when that becomes inaccurate though 2021-07-06 11:06:54 danieldg elichai2: there is a way to do that but maybe not in the context you are using it 2021-07-06 11:07:01 Karel There is and it's called fastdivide :) 2021-07-06 11:07:12 j`ey bertptrs: elichai2 this is freaky https://godbolt.org/z/TG6YMqa3r why does adding repr(C) cause it to generate way more code 2021-07-06 11:07:22 <-- tims (~tims@220.240.106.233) has quit (Ping timeout: 240 seconds) 2021-07-06 11:07:49 elichai2 danieldg: My context is basically `pub fn func(_: impl IntoIterator) {}` 2021-07-06 11:08:10 danieldg elichai2: rewrite it as a generic function 2021-07-06 11:08:17 danieldg you need to name the type 2021-07-06 11:08:48 elichai2 yeah but if I name the type I lose the genericity of it 2021-07-06 11:08:52 danieldg no 2021-07-06 11:09:11 elichai2 j`ey: wtf 2021-07-06 11:09:12 danieldg fn func(_:T) where T:IntoIterator... 2021-07-06 11:09:29 danieldg elichai2: then the where part actually works 2021-07-06 11:09:40 elichai2 danieldg: you mean this? https://play.rust-lang.org/?gist=86dbd97db1fdaba53b899e1d63198bec 2021-07-06 11:09:49 danieldg no 2021-07-06 11:09:51 elichai2 ohh if I name the other one too 2021-07-06 11:10:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:10:11 danieldg where T::IntoIter : 2021-07-06 11:10:12 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-06 11:10:13 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-06 11:11:05 elichai2 danieldg: nice! I thought I need to introduce another generic var 2021-07-06 11:11:18 danieldg no, that actually makes it harder 2021-07-06 11:11:26 elichai2 that's cool, too bad I need to make it explicitly generic but I guess it's not too bad 2021-07-06 11:11:35 elichai2 j`ey: i'll open a Zulip thread I guess 2021-07-06 11:11:38 cehteh j`ey: iirc repr(C) would also include all other C memory model constraints/gurantees, about ordering and stuff. or it might be just not optimized as well 2021-07-06 11:12:14 j`ey cehteh: well it changes the abi, it's just not obvious why that makes such a difference here 2021-07-06 11:12:22 j`ey elichai2: link it, i want to read it 2021-07-06 11:12:27 j`ey error: abi: Scalar(Scalar { value: Int(I64, false), valid_range: 0..=18446744073709551615 }) 2021-07-06 11:12:30 j`ey error: abi: Aggregate { sized: true } 2021-07-06 11:12:36 j`ey first is rust abi, second is c abi 2021-07-06 11:13:00 kupi is there a function on Result which does this? `ok @ Ok(_) => ok, Err(e) => f(e)` 2021-07-06 11:13:04 j`ey (or transparent for the second.. whcih is weird) 2021-07-06 11:13:21 danieldg kupi: unwrap-or 2021-07-06 11:13:29 j`ey kupi: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_err 2021-07-06 11:14:05 -- Guest53 is now known as Guest50 2021-07-06 11:14:26 j`ey (sorry, transparent gives the Scalar abi too) 2021-07-06 11:14:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 11:15:55 -- Guest50 is now known as Guest53 2021-07-06 11:16:07 j`ey elichai2: lol https://godbolt.org/z/ceo6MG5Mn 2021-07-06 11:16:24 j`ey changing usize -> Wrapper is more optimised than not changing the type at all 2021-07-06 11:16:42 kupi j`ey: in that op is `FnOnce(E) -> F`, mine it would be `FnOnce(E) -> Result` 2021-07-06 11:16:52 elichai2 j`ey: wtf 2021-07-06 11:17:00 kupi danieldg: unwrap-or does not accept a functions which consumes the error 2021-07-06 11:17:33 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Quit: 404) 2021-07-06 11:17:39 danieldg kupi: I meant or-else but didn't notice you wanted ok to ok 2021-07-06 11:17:50 bertptrs compilers are magic 2021-07-06 11:17:52 j`ey elichai2: cleaned up, https://godbolt.org/z/YPdPY8of1 2021-07-06 11:18:39 bertptrs Interesting, so it recognizes the struct initializer function but only the struct initializer function. Not even an identity function 2021-07-06 11:18:40 bertptrs wtf 2021-07-06 11:19:05 elichai2 j`ey: https://rust-lang.zulipchat.com/#narrow/stream/122651-general/topic/does.20Repr.28C.29.20on.20a.20single.20field.20struct.20hurts.20optimizations.3F 2021-07-06 11:19:09 j`ey elichai2: ty 2021-07-06 11:19:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:19:23 elichai2 (couldn't find your username in Zulip) 2021-07-06 11:19:24 j`ey bertptrs: it needs more abstractions!!! 2021-07-06 11:19:56 bertptrs that's always the solution. even if the problem is too many abstractions 2021-07-06 11:20:24 elichai2 bertptrs: lol yeah, even explicitly the identity function haha https://godbolt.org/z/PoGY6a8M1 2021-07-06 11:21:44 bertptrs someone was very proud of optimizing this very edge case 2021-07-06 11:21:47 bertptrs but why 2021-07-06 11:23:12 elichai2 it seems to be optimized in the Rust side, not in LLVM 2021-07-06 11:23:21 --> lidenbrock (~lidenbroc@2804:14c:32:8120:b430:d0f7:d182:469d) has joined ##rust 2021-07-06 11:23:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 11:25:52 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-06 11:25:52 kupi what do you think of this? https://gist.github.com/theqp/b04357092b6faaf045586e2780537e32 2021-07-06 11:25:59 bertptrs kupi what's the difference between this and map_err 2021-07-06 11:26:18 kupi bertptrs: the type of the funcion is different 2021-07-06 11:26:32 j`ey kupi: https://doc.rust-lang.org/std/result/enum.Result.html#method.or_else 2021-07-06 11:26:33 kupi map_err does not allow "recovering" 2021-07-06 11:26:36 bertptrs ah, you're right. subtle change but I like it 2021-07-06 11:26:51 kupi j`ey: or_else does not consume the error 2021-07-06 11:27:24 kupi nvm i am dumb 2021-07-06 11:27:26 j`ey kupi: https://doc.rust-lang.org/src/core/result.rs.html#767 2021-07-06 11:27:30 j`ey it's exactly the same code! 2021-07-06 11:28:35 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:28:56 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-07-06 11:29:11 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-07-06 11:30:53 kupi I confused or_else with or 2021-07-06 11:31:20 --> kadoban (~kadoban@user/kadoban) has joined ##rust 2021-07-06 11:31:20 --> psydroid (~psydroid@user/psydroid) has joined ##rust 2021-07-06 11:33:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 11:33:52 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-06 11:37:31 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:38:49 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-07-06 11:42:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 11:46:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:48:54 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-06 11:50:34 --> Unleashed (~unleashed@redhat/Unleashed) has joined ##rust 2021-07-06 11:51:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 11:55:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 11:57:06 <-- lidenbrock (~lidenbroc@2804:14c:32:8120:b430:d0f7:d182:469d) has quit (Quit: Client closed) 2021-07-06 11:59:39 <-- LeDragonDev (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has quit (Quit: Client closed) 2021-07-06 12:00:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 12:01:02 --> gggp__ (~gggp@60.10.194.47) has joined ##rust 2021-07-06 12:02:08 -- gggp__ is now known as gggp 2021-07-06 12:02:18 j`ey bertptrs: https://github.com/rust-lang/rust/issues/79308 2021-07-06 12:03:29 <-- gggp_ (~gggp@125.33.84.224) has quit (Ping timeout: 252 seconds) 2021-07-06 12:05:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:05:08 kupi ? is a syntax sugar for wrapping and_thens? 2021-07-06 12:05:51 j`ey ? is the Try trait 2021-07-06 12:06:04 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 12:06:10 j`ey https://doc.rust-lang.org/std/ops/trait.Try.html 2021-07-06 12:09:07 kupi not will be? it says it's experimental 2021-07-06 12:09:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 12:09:58 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-07-06 12:10:09 j`ey the trait is, but the syntax is stable 2021-07-06 12:10:22 j`ey its just exactly how it works that is unstable 2021-07-06 12:10:48 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-06 12:10:54 --> Danishman (~Allan@2-104-144-110-cable.dk.customer.tdc.net) has joined ##rust 2021-07-06 12:14:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:17:22 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 272 seconds) 2021-07-06 12:18:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 12:19:45 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-06 12:23:22 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:25:37 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 12:27:11 Polochon_street hi! I'm trying to run clippy on a rather large codebase, and it spits out a lot of "implementing From is preferred" here https://github.com/zmwangx/rust-ffmpeg/blob/master/src/util/chroma/location.rs, for instance 2021-07-06 12:27:35 Polochon_street but we're already implementing From just above - does it mean the Into impl is superfluous ? 2021-07-06 12:27:49 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-06 12:28:07 --> goldfish (~goldfish@user/goldfish) has joined ##rust 2021-07-06 12:28:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 12:28:50 cehteh Polochon_street: exactly 2021-07-06 12:29:01 cehteh see From docs .. 2021-07-06 12:29:21 cehteh fro everything where you define a From you get a Into for free 2021-07-06 12:30:01 GreenJello Polochon_street, it wants an `impl From for AVChromaLocation` 2021-07-06 12:30:13 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-06 12:30:25 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-06 12:30:35 GreenJello instead of the Into 2021-07-06 12:31:12 Polochon_street so, no removing? /D 2021-07-06 12:31:12 Polochon_street :D* 2021-07-06 12:31:54 <-- leah2 (~leah@vuxu.org) has quit (Ping timeout: 240 seconds) 2021-07-06 12:32:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:34:49 --> leah2 (~leah@vuxu.org) has joined ##rust 2021-07-06 12:36:09 --> gggp_ (~gggp@125.33.95.57) has joined ##rust 2021-07-06 12:36:16 elichai2 Is it possible to somehow typedef a generic definiton? ( e.g.` type MyIterator = IntoIterator + MyIterator::IntoIter: ExactSizeIterator` 2021-07-06 12:37:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 12:37:43 danieldg elichai2: you can make a trait bounded by that, and provide a global impl of it 2021-07-06 12:37:45 <-- gggp (~gggp@60.10.194.47) has quit (Killed (NickServ (GHOST command used by gggp_!~gggp@125.33.95.57))) 2021-07-06 12:37:49 -- gggp_ is now known as gggp 2021-07-06 12:39:14 <-- avakand (~root@static.164.226.201.195.clients.your-server.de) has quit (Quit: WeeChat 3.1) 2021-07-06 12:39:29 --> avakand (~root@static.164.226.201.195.clients.your-server.de) has joined ##rust 2021-07-06 12:40:19 GreenJello elichai2, https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=249a44a9f5296d04863f3e35dd4da33a 2021-07-06 12:41:21 GreenJello (could name 'Tr' to 'MyIterator' to match your example) 2021-07-06 12:41:28 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:41:33 <-- croax (9593c976ee@ghost.pepta.net) has quit (Quit: Gateway shutdown) 2021-07-06 12:41:48 elichai2 gotcha, Thanks! 2021-07-06 12:44:37 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-06 12:45:26 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-06 12:45:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 12:47:37 <-- tmpm697 (~tmpm697@171.241.81.202) has quit (Quit: leaving) 2021-07-06 12:47:56 <-- _42large (~user@37.120.197.48) has quit (Quit: Konversation terminated!) 2021-07-06 12:50:36 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 12:51:27 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-06 12:54:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 12:59:43 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:03:23 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 13:04:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 13:05:36 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-06 13:05:43 <-- death916 (~death916@user/death916) has quit (Ping timeout: 258 seconds) 2021-07-06 13:05:49 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-06 13:07:02 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-06 13:09:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:11:19 cehteh is there a minimalist async runtime, kindof featureless threadpool? i want to async a deep directory copy in the testsuite and not pull a big lib in 2021-07-06 13:11:52 j`ey smoll maybe 2021-07-06 13:12:21 trev does smoll use mio still? 2021-07-06 13:12:36 cehteh huh not on crates.io 2021-07-06 13:12:48 j`ey smol 2021-07-06 13:12:56 cehteh ah 2021-07-06 13:12:59 cehteh i check that 2021-07-06 13:13:00 j`ey ?crate smol 2021-07-06 13:13:02 j`ey ?crates smol 2021-07-06 13:13:16 j`ey https://crates.io/crates/smol 2021-07-06 13:13:40 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 13:13:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 13:15:37 cehteh ah at least the crates smol pulls in looking like a trove 2021-07-06 13:15:59 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-06 13:16:41 j`ey 10 deps 2021-07-06 13:17:27 j`ey and a bunch of those are made for smol 2021-07-06 13:17:41 cehteh yes i may just pull the 'blocking' alone or whatever is needed 2021-07-06 13:17:47 cehteh looks promising 2021-07-06 13:17:57 cehteh noted, will dive into that later 2021-07-06 13:18:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:18:12 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-06 13:19:13 cehteh implementing a directory copy has surprisingly much corner cases 2021-07-06 13:20:10 --> chddr (~Thunderbi@91.226.34.151) has joined ##rust 2021-07-06 13:20:29 <-- gggp (~gggp@125.33.95.57) has quit (Ping timeout: 252 seconds) 2021-07-06 13:20:31 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-06 13:20:58 <-- andyhoang (~andyhoang@14.186.56.12) has quit (Ping timeout: 240 seconds) 2021-07-06 13:21:00 --> P1RATEZ (piratez@user/p1ratez) has joined ##rust 2021-07-06 13:22:30 <-- fanf (~fanf@90.254.237.175) has quit (Quit: Changing server) 2021-07-06 13:22:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 13:23:52 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-06 13:26:12 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-06 13:26:34 --> kuber (~kuber@97-113-139-245.tukw.qwest.net) has joined ##rust 2021-07-06 13:27:14 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:27:31 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-06 13:28:22 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-07-06 13:30:41 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-06 13:31:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-06 13:32:41 Arnavion j`ey: smol doesn't use mio. It uses async-io 2021-07-06 13:32:43 <-- johnw (~johnw@2600:1700:cf00:db0:580c:2973:6ceb:6156) has quit (Quit: ZNC - http://znc.in) 2021-07-06 13:33:18 --> johnw (~johnw@2600:1700:cf00:db0:edf9:8c5b:5a8d:2f85) has joined ##rust 2021-07-06 13:33:59 j`ey trev: ^ 2021-07-06 13:34:09 Arnavion Oh, sorry 2021-07-06 13:35:09 Arnavion cehteh: If you don't need an I/O reactor, then you can use futures_executor::LocalPool / ThreadPool, or just futures_executor::block_on 2021-07-06 13:36:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:36:26 <-- bowlofeg1 (~bowlofegg@fedora/bowlofeggs) has quit (Quit: WeeChat 3.0.1) 2021-07-06 13:40:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 13:42:12 --> ringtones (~ketas@45.174.78.3) has joined ##rust 2021-07-06 13:43:07 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-06 13:45:29 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-06 13:45:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:48:06 --> andyhoang (~andyhoang@14.186.56.12) has joined ##rust 2021-07-06 13:48:06 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-07-06 13:50:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 13:52:47 --> est31 (~est31@user/est31) has joined ##rust 2021-07-06 13:54:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 13:59:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 13:59:51 --> SiegeLord (~SiegeLord@user/siegelord) has joined ##rust 2021-07-06 13:59:55 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-06 14:01:07 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-06 14:02:08 <-- kuber (~kuber@97-113-139-245.tukw.qwest.net) has quit (Quit: leaving) 2021-07-06 14:03:13 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-06 14:03:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 14:08:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 14:12:48 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 14:16:05 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-06 14:17:38 --> binarymutt[m] (~binarymut@2001:470:69fc:105::2b3f) has joined ##rust 2021-07-06 14:19:53 Polochon_street hi! Is there anyone with windows experience? I'm trying to debug this error on a CI https://github.com/zmwangx/rust-ffmpeg/pull/66/checks?check_run_id=3001469232, but I run into an infamous STATUS_DLL_NOT_FOUND 2021-07-06 14:20:06 Polochon_street of course, it doesn't specify which dll is not found, and I don't have a windows install at hand 2021-07-06 14:25:41 <-- habys (~habys@2603:3001:bd9:f1:1337:f1ac:d00d:17c) has quit (Quit: byye) 2021-07-06 14:26:08 --> Ivyy (~Ivyy@2001:a62:41d:fa01:c52a:d15b:f165:1b84) has joined ##rust 2021-07-06 14:26:45 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-06 14:26:58 <-- andyhoang (~andyhoang@14.186.56.12) has quit (Ping timeout: 240 seconds) 2021-07-06 14:30:55 --> a7rs (~a7rs@86.10.115.139) has joined ##rust 2021-07-06 14:37:19 <-- feldim2425 (~feldim242@2002:c19a:ae1a:0:da2d:dbc:24de:b1dc) has quit (Ping timeout: 246 seconds) 2021-07-06 14:37:28 --> feldim2425 (~feldim242@2002:c19a:ae1a:0:da2d:dbc:24de:b1dc) has joined ##rust 2021-07-06 14:50:47 <-- chance (~chance@user/chance) has quit (Quit: Client closed) 2021-07-06 14:52:00 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 14:57:17 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 15:00:12 <-- Vhagar (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has quit (Quit: Vhagar) 2021-07-06 15:01:16 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:4db8:90bd:160c:195a) has joined ##rust 2021-07-06 15:02:07 --> chance (~chance@user/chance) has joined ##rust 2021-07-06 15:02:20 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-06 15:04:39 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-06 15:07:30 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 15:10:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 15:11:39 --> terrorjack4 (~terrorjac@ec2-54-95-39-30.ap-northeast-1.compute.amazonaws.com) has joined ##rust 2021-07-06 15:11:57 --> hatz_ (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has joined ##rust 2021-07-06 15:13:30 <-- terrorjack (~terrorjac@ec2-54-95-39-30.ap-northeast-1.compute.amazonaws.com) has quit (Ping timeout: 240 seconds) 2021-07-06 15:13:30 -- terrorjack4 is now known as terrorjack 2021-07-06 15:14:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 15:14:56 edm what’s the most idiomatic way of turning a string of bytes, whose structure you know, into a struct? e.g. i have a message from a 3 axis compass that is 6 bytes long, 16 bits each of X, Y and Z axes and i’d like to parse it into struct mag_field { x: u16, y: u16, z: u16 } 2021-07-06 15:15:46 edm i should say specifically the message from the compass is [i8; 6] 2021-07-06 15:16:17 cehteh you know endianess? 2021-07-06 15:16:49 edm yes BE in this case 2021-07-06 15:17:11 edm but if there’s a nice way where to do it for arbitrary endianness that would also be nice to know 2021-07-06 15:17:52 cehteh serializer/serde perhaps 2021-07-06 15:18:35 cehteh but when it is really only 6bytes i prolly wont mind writing some ad-hoc code 2021-07-06 15:19:37 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 15:19:51 edm indeed, i was just curious after doing the sort of slightly ugly thing of shifting the high byte left 8 bits and adding it to the low byte 2021-07-06 15:20:14 edm that works fine of course, just curious if there was a better idiom 2021-07-06 15:20:25 GreenJello there's u16::from_be_bytes, but you are going to need a bit of code to deal with the i8 2021-07-06 15:20:30 cehteh some of the serializer frameworks can do that, with more or less efforts 2021-07-06 15:20:45 GreenJello I don't think serde would make sense here 2021-07-06 15:21:24 edm that’s a handy looking constructor GreenJello 2021-07-06 15:21:25 edm thank you 2021-07-06 15:22:03 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-06 15:24:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-06 15:28:38 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 15:30:23 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-06 15:32:34 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 240 seconds) 2021-07-06 15:33:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 15:35:51 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-06 15:36:34 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-06 15:36:56 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: This computer has gone to sleep) 2021-07-06 15:37:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 15:40:05 <-- chance (~chance@user/chance) has quit (Quit: Client closed) 2021-07-06 15:42:23 --> tstruk (~tstruk@176.67.86.153) has joined ##rust 2021-07-06 15:42:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-06 15:46:21 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-06 15:46:54 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 15:50:59 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-06 15:51:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 15:51:45 --> SignalWalker (~SignalWal@199.sub-174-209-197.myvzw.com) has joined ##rust 2021-07-06 15:56:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:00:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 16:02:33 <-- a7rs (~a7rs@86.10.115.139) has quit (Quit: WeeChat 3.2) 2021-07-06 16:05:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:09:16 <-- SignalWalker (~SignalWal@199.sub-174-209-197.myvzw.com) has quit (Read error: Connection reset by peer) 2021-07-06 16:09:22 --> SignalGarden (~SignalWal@199.sub-174-209-197.myvzw.com) has joined ##rust 2021-07-06 16:09:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 16:10:35 <-- krz3si (~szara@2a02:a31c:853b:b780:df0:1631:dcb9:4e4f) has quit (Read error: Connection reset by peer) 2021-07-06 16:14:14 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:14:52 --> GNUcifer (~ct@mue-88-130-67-127.dsl.tropolys.de) has joined ##rust 2021-07-06 16:15:08 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-06 16:15:16 <-- cehteh (~ct@72-65-142-46.pool.kielnet.net) has quit (Killed (NickServ (GHOST command used by GNUcifer!~ct@mue-88-130-67-127.dsl.tropolys.de))) 2021-07-06 16:15:20 -- GNUcifer is now known as cehteh 2021-07-06 16:16:58 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-07-06 16:17:26 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-06 16:18:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 16:19:22 <-- SignalGarden (~SignalWal@199.sub-174-209-197.myvzw.com) has quit (Ping timeout: 240 seconds) 2021-07-06 16:23:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:25:38 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 272 seconds) 2021-07-06 16:26:22 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-06 16:27:28 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 16:27:45 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 16:28:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 16:30:20 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-06 16:31:31 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-07-06 16:32:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:35:04 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-07-06 16:36:19 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Ping timeout: 246 seconds) 2021-07-06 16:36:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 16:41:13 <-- chddr (~Thunderbi@91.226.34.151) has quit (Ping timeout: 246 seconds) 2021-07-06 16:41:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:43:29 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-06 16:46:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 16:48:41 Polochon_street got a problem that is driving me crazy - I'm building `rust-ffmpeg` on a windows target, and I specify the ffmpeg library dlls path. If I specify like `rustc-link-lib=static=avcodec`, etc, in principle the final binary should not care about having access to ffmpeg dlls, right? 2021-07-06 16:48:44 <-- trev (~trev@user/trev) has quit (Remote host closed the connection) 2021-07-06 16:49:02 Polochon_street (just asking if that's the reasoning in principle and if I screwed up somewhere, or if my assumption is wrong) 2021-07-06 16:50:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 16:52:56 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 16:54:07 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-07-06 16:55:13 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 16:56:00 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-07-06 16:56:05 <-- dcz_ (~dcz@dynamic-078-048-056-059.78.48.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-07-06 16:57:09 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-06 16:57:42 dav1d Polochon_street, depends? 2021-07-06 16:57:51 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 16:59:01 Polochon_street what does it depend on ? 2021-07-06 16:59:11 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-06 16:59:27 Polochon_street I'm getting a bit crazy trying to fix a CI on which I have no experience :D 2021-07-06 16:59:57 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:00:58 dav1d what are you doing with the dll? If you link with the dll, you'll need it at runtime 2021-07-06 17:01:23 dav1d you're pretty much always gonna need the dll, if you use the dll 2021-07-06 17:01:51 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-07-06 17:02:10 <-- Unleashed (~unleashed@redhat/Unleashed) has quit (Quit: Living.) 2021-07-06 17:03:14 <-- mmfood (~mmfood@45.91.21.37) has quit (Ping timeout: 252 seconds) 2021-07-06 17:03:33 <-- bradfier (~bradfier@user/bradfier) has quit (Remote host closed the connection) 2021-07-06 17:03:50 --> bradfier (~bradfier@user/bradfier) has joined ##rust 2021-07-06 17:03:54 Polochon_street maybe my terminology is wrong as well - it's apparently using a full build providing .a, .dll, .lib, etc. I'm compiling using `-l static=avcodec`, etc, and `-L native=C:\Users\coucou\rust-ffmpeg\ffmpeg\lib` 2021-07-06 17:04:16 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-07-06 17:04:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 17:04:48 --> AnisBarghouthi[m (~anis-barg@2001:470:69fc:105::6ebb) has joined ##rust 2021-07-06 17:05:06 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-06 17:06:01 <-- blindguard (~blindguar@2a02:908:1864:c200:e9df:eeac:1563:f38a) has quit (Quit: Konversation terminated!) 2021-07-06 17:06:48 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Ping timeout: 272 seconds) 2021-07-06 17:07:10 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-06 17:07:55 --> mmfood (~mmfood@45.91.21.29) has joined ##rust 2021-07-06 17:08:03 --> leib (~leib@2409:4061:405:275b:6d6e:d5d5:f3c6:27f8) has joined ##rust 2021-07-06 17:08:53 <-- leib (~leib@2409:4061:405:275b:6d6e:d5d5:f3c6:27f8) has quit (Quit: Leaving) 2021-07-06 17:08:58 dav1d I am glad I dont have to deal with windows ... .a sounds strange, this is usually an archive file generated by gcc/ar, are you compiling with mingw? The .lib (iirc) can be a static library or an import library, latter is for dynamic linking 2021-07-06 17:09:08 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:09:26 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Ping timeout: 244 seconds) 2021-07-06 17:10:06 dav1d I am not familiar with the linker (?) flags 2021-07-06 17:10:11 --> ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-06 17:10:27 dav1d or what the linker does on windows ... 2021-07-06 17:10:36 Polochon_street I'm using msvc on a windows VM 2021-07-06 17:10:45 Polochon_street (and that's as painful as it sounds, but I couldn't reproduce the CI otherwise) 2021-07-06 17:11:03 dav1d so, make sure you figure out what you're building and if the .lib file is the static library or just a the import library for dynamic linking 2021-07-06 17:11:14 <-- Roughy (~mdaw45ns@user/roughy) has quit (Client Quit) 2021-07-06 17:11:27 Yruama fuck my rust linter for vim is broken ;( 2021-07-06 17:11:57 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-06 17:13:25 <-- hendursa1 (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-07-06 17:13:49 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-06 17:13:57 dav1d Polochon_street, do you have the entire rustc command? 2021-07-06 17:13:59 <-- zack (~zack@softwareheritage/zack) has left ##rust 2021-07-06 17:14:24 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 17:15:58 southerntofu is that a bug or me? https://crates.io/crates/ANYTHING returns 404 from curl but displays well in a graphical browser? 2021-07-06 17:16:51 <-- ohuwuteu (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: ohuwuteu) 2021-07-06 17:17:34 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-07-06 17:17:57 dav1d southerntofu, different accept headers: curl -I https://crates.io/crates/ANYTHING -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" 2021-07-06 17:18:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:18:41 southerntofu thanks, is there a specific reason why /crates/flexi_logger specifically would trigger a 404 in a code that's otherwise happy? (running guix lint on some new packages) 2021-07-06 17:18:45 southerntofu is it because of - vs _ ? 2021-07-06 17:20:04 dav1d not sure what you mean 2021-07-06 17:20:49 southerntofu ah i think i found it it's not used on the same attribute so this one must not send the correct headers, thanks 2021-07-06 17:22:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 17:22:42 --> shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-06 17:22:50 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Ping timeout: 265 seconds) 2021-07-06 17:22:59 <-- shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Client Quit) 2021-07-06 17:23:33 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-06 17:25:35 southerntofu it might make sense to not send a 404 when Accept is not very specific, though 2021-07-06 17:25:48 <-- mmfood (~mmfood@45.91.21.29) has quit (Ping timeout: 272 seconds) 2021-07-06 17:25:49 southerntofu i find it weird i can curl a page and it 404s when it works in other browsers :) 2021-07-06 17:26:37 danieldg there's another error code for that, but most people don't use it 2021-07-06 17:27:18 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:27:47 Polochon_street dav1d: here you are https://paste.isomorphis.me/Sfx (it's hairy) 2021-07-06 17:27:47 southerntofu that would already be a lot clearer since i was wondering why out of all the crates i'm importing only this one would 404, then realize other crates also 404d from curl despite working from guix lint... i was like wtf :P 2021-07-06 17:28:39 Polochon_street there's both ffmpeg-sys and ffmpeg being compiled. My only guess is that it's because the last compilation doesn't have the `-l static=foo`, but it's already happening in rust-ffmpeg-sys' step, so... 2021-07-06 17:28:58 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-06 17:29:15 --> sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has joined ##rust 2021-07-06 17:30:48 southerntofu danieldg, danieldg: someone in #guix quoted from RFC 2613 HTTP1.1 2021-07-06 17:30:49 southerntofu > If no Accept header field is present, then it is assumed that the 2021-07-06 17:30:52 southerntofu client accepts all media types. 2021-07-06 17:30:58 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 240 seconds) 2021-07-06 17:31:57 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 17:32:46 Arnavion It's because the endpoint serves both the JSON API and the browser HTML, for historical reasons, so it needs the accept header to know which one you want 2021-07-06 17:32:55 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-06 17:33:36 dav1d Polochon_street, no clue sorry, the theory I had is wrong. Maybe you can find out what library is missing via a debugger or something like `ldd` (if that exists on windows, probably does) 2021-07-06 17:33:55 Polochon_street I know that it's the ffmpeg linking that's missing (avcodec-58.dll, etc) 2021-07-06 17:34:00 southerntofu Arnavion: does that not make sense to serve default HTML over HTTP, as it is the language expected by all historical clients? 2021-07-06 17:34:14 Arnavion No? 2021-07-06 17:34:19 Polochon_street can't really figure out why though. But thanks for looking at it still :) 2021-07-06 17:34:21 southerntofu i mean something has to be better than nothing right? 2021-07-06 17:34:27 Arnavion Yes, and that something is the JSON API 2021-07-06 17:34:31 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-06 17:34:36 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-06 17:35:22 --> synx (hornd@2600:3c00::f03c:91ff:fedf:3d6) has joined ##rust 2021-07-06 17:35:45 dav1d southerntofu, not sure, curl might send a default accept header 2021-07-06 17:35:50 southerntofu Arnavion: well serving JSON would be better than a 404 2021-07-06 17:36:03 dav1d it could be a 404 and json ;) 2021-07-06 17:36:07 Arnavion They're not exclusive. It serves 404 and JSON 2021-07-06 17:36:08 southerntofu oh please not 2021-07-06 17:36:11 southerntofu -___- 2021-07-06 17:36:23 Arnavion which is exactly how an API should work. 2021-07-06 17:36:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:36:59 southerntofu Arnavion: an API should return 404 for a resource that exist, and serve the content in the response??? 2021-07-06 17:37:08 dav1d Curl sends `accept: */*` by default btw 2021-07-06 17:37:18 dav1d you can see that with `curl -v` 2021-07-06 17:37:32 dav1d southerntofu, but it doesn't exist 2021-07-06 17:37:48 dav1d in the API it does not exist, the UI behaves differently 2021-07-06 17:37:58 Arnavion southerntofu: Feel free to read the HTTP spec and recalibrate your expectations of what an HTTP 404 response should look like 2021-07-06 17:37:59 southerntofu dav1d: i confirm */* accept 2021-07-06 17:38:11 dav1d it's just unfortunate that UI and API collide 2021-07-06 17:38:15 southerntofu ah yes it does return a JSON for not found, sorry i didn't get this part 2021-07-06 17:38:19 --> stormogulen (~user@83-233-13-33.cust.bredband2.com) has joined ##rust 2021-07-06 17:38:31 southerntofu my eyes skimmed over the JSON boilerplate :) 2021-07-06 17:39:11 southerntofu so is this route used for anything else over JSON? 2021-07-06 17:39:29 southerntofu or could it be changed? 2021-07-06 17:39:45 dav1d looks to me, by default crates.io interprets everything as an API request, except if you explicitly request html 2021-07-06 17:39:56 Arnavion Yes, as I said 2021-07-06 17:39:59 dav1d which does make sense 2021-07-06 17:40:52 Arnavion (If anything, the bug is that the browser HTML is served with HTTP 200 instead of also being served with HTTP 404) 2021-07-06 17:40:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 17:41:28 southerntofu maybe there's something i don't understand but are those URLs not suppose to be used at all? why should it return 404 when asking for HTML? 2021-07-06 17:42:28 Arnavion Again, you are under the assumption that HTTP 404 responses cannot contain a body. Your assumption is incorrect 2021-07-06 17:43:27 southerntofu i'm not saying it should not contain a body 2021-07-06 17:43:29 Arnavion Does the resource identified by https://crates.io/crates/ANYTHING exist? If not, then 404 is a valid response code. That is completely unrelated to the content-type and body used for the response, which is perfectly okay to be HTML or JSON or anything else. 2021-07-06 17:43:42 southerntofu i'm saying the body i'm looking for served with a 404 is a semantic error :s 2021-07-06 17:43:55 southerntofu 404 means not found 2021-07-06 17:43:57 Arnavion And what you're saying is incorrect. 2021-07-06 17:45:00 j`ey thats how you have custom 404 html pages right? 2021-07-06 17:45:07 <-- frostschutz (~frostschu@2a01:c22:d5d0:4500:9326:61e9:7a16:f6c5) has quit (Remote host closed the connection) 2021-07-06 17:45:16 Yruama i have an issue with sccache, it's breaks some option with clippy 2021-07-06 17:45:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:47:21 --> SignalWalker (~SignalWal@199.sub-174-209-197.myvzw.com) has joined ##rust 2021-07-06 17:48:29 --> Guest50_ (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-06 17:48:32 --> Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-06 17:50:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-06 17:50:36 <-- Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-06 17:50:36 <-- Guest50_ (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-06 17:54:42 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 17:54:45 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-07-06 17:55:54 <-- stormogulen (~user@83-233-13-33.cust.bredband2.com) has quit (Ping timeout: 258 seconds) 2021-07-06 17:58:05 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-06 17:59:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 18:00:44 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-07-06 18:01:51 Yruama hi, i have a weird issue, using sccache break cargo clippy, is there a way to workaround ? 2021-07-06 18:02:02 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-06 18:02:40 Yruama what, i treid to update clippy, it's not available anymore ? 2021-07-06 18:03:22 Yruama does that mean it's obsolete ? 2021-07-06 18:03:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:04:27 Yruama oops i tryed to update in the wrong way 2021-07-06 18:05:11 <-- Celeo (~Celeo@user/celeo) has quit (Quit: Leaving) 2021-07-06 18:08:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 18:10:43 Yruama anyway, it doesn't work too, and it seems i encounter a bug introduced in the last rust toolchain version 2021-07-06 18:13:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:13:16 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-06 18:14:31 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-06 18:14:42 GreenJello is there a type that would let me get an owned Box, pass it to a function (moving it), and then after the function returns read it as a Vec or similar? 2021-07-06 18:15:03 GreenJello kinda like a channel but for io::Write, I guess 2021-07-06 18:15:48 Arnavion You need it to be convertible to and from Box specifically? 2021-07-06 18:16:45 Arnavion Because Vec is already Write, and &mut impl Write is also already Write, so if the thing you're giving the writer to can just take any impl Write, give it the &mut Vec 2021-07-06 18:17:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 18:20:56 GreenJello Arnavion, yeah, there's a function that specifically requires that type 2021-07-06 18:21:21 GreenJello I think it wants you to Box a Stdout or similar, but I need to read it from the code 2021-07-06 18:21:59 GreenJello I guess I could write to a temp file 2021-07-06 18:22:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:22:10 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 272 seconds) 2021-07-06 18:22:18 GreenJello and then read it back after, but I'd prefer to do it in memory 2021-07-06 18:22:32 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 252 seconds) 2021-07-06 18:23:27 Arnavion Arc> -> wrapped in a newtype that impls Write -> Box that. At the end std::mem::take(Arc::get_mut().unwrap().get_mut().unwrap()) gives you the Vec back 2021-07-06 18:23:45 Arnavion Only needs to chase about five pointers to get to the u8 :shrug: 2021-07-06 18:24:35 --> Nyeogmi (~Nyeogmi@2601:645:8700:bea0:4d5e:7bf4:e290:5648) has joined ##rust 2021-07-06 18:26:11 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Quit: ubert) 2021-07-06 18:26:20 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-06 18:26:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 18:26:34 <-- tstruk (~tstruk@176.67.86.153) has quit (Ping timeout: 246 seconds) 2021-07-06 18:27:59 GreenJello Arnavion, that should work, thanks! 2021-07-06 18:29:41 Arnavion Oh, Arc::try_unwrap is the Arc::into_inner I was looking for and didn't find 2021-07-06 18:30:00 Arnavion So use that and Mutex::into_inner instead of the two get_mut()s 2021-07-06 18:31:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:33:01 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-06 18:35:06 <-- winter (~quassel@user/winter) has quit (Ping timeout: 240 seconds) 2021-07-06 18:36:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 18:37:25 --> sh9 (~sh9@softbank060116136158.bbtec.net) has joined ##rust 2021-07-06 18:38:06 <-- plluksie_ (~plluksie@89-75-127-15.dynamic.chello.pl) has quit (Quit: leaving) 2021-07-06 18:39:35 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 252 seconds) 2021-07-06 18:40:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:41:07 --> hexfive (~eric@50.35.83.177) has joined ##rust 2021-07-06 18:41:11 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-06 18:42:14 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 252 seconds) 2021-07-06 18:42:56 <-- hexfive (~eric@50.35.83.177) has quit (Client Quit) 2021-07-06 18:43:54 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 18:44:59 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 18:47:11 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 252 seconds) 2021-07-06 18:49:33 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:50:30 <-- meandi (~meandi4@dyndsl-178-142-254-156.ewe-ip-backbone.de) has quit (Read error: Connection reset by peer) 2021-07-06 18:51:57 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 18:53:48 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 18:53:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 18:54:55 <-- Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) 2021-07-06 18:56:21 --> Spawns_Carpeting (~pi@user/spawns-carpeting/x-6969421) has joined ##rust 2021-07-06 18:58:06 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-06 18:58:39 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 18:59:17 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 19:00:55 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 19:03:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 19:05:03 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 19:07:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:09:16 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 19:09:48 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Remote host closed the connection) 2021-07-06 19:10:11 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-07-06 19:10:42 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 19:10:42 Yruama lol, can i ask help for shortening variable/function name ? i want something shorter than "normalised angular frequency" 2021-07-06 19:11:11 j`ey naf 2021-07-06 19:11:23 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 19:11:59 Yruama j`ey, i take it 2021-07-06 19:12:01 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 19:12:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 19:12:54 j`ey lol, thats probably a bit too short. normalised_angluar_freq is probably as short as I can think 2021-07-06 19:15:17 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-06 19:15:23 Yruama yes, but i'm creating something with this "from_normalised_angular_freq" is too long 2021-07-06 19:16:35 Yruama i started a "stupid" project consisting of translating some C++ to rust 2021-07-06 19:16:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:17:28 SiegeLord Create a normalized angular frequency type, and then just implement From on it :P 2021-07-06 19:18:36 Yruama lol, doesn't work, because i need a second parameter 2021-07-06 19:18:43 <-- lf (~quassel@p200300d21f3a7a00022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 246 seconds) 2021-07-06 19:19:14 --> lf (~quassel@p200300d21f3d6100022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 19:21:31 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 19:22:20 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-06 19:22:34 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-06 19:25:46 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 19:26:04 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:27:28 Yruama lol, and if i'm using symbol like ⍵ 2021-07-06 19:29:00 --> tims (~tims@220.240.106.233) has joined ##rust 2021-07-06 19:30:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 19:34:28 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-07-06 19:34:59 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-06 19:35:13 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:37:05 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-06 19:39:43 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 19:40:38 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-06 19:44:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:46:34 <-- Roughy (~mdaw45ns@user/roughy) has quit (Read error: No route to host) 2021-07-06 19:47:10 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 19:47:10 <-- hendursa1 (~weechat@user/hendursaga) has quit (Remote host closed the connection) 2021-07-06 19:48:20 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-06 19:48:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 19:50:47 db48x not to be confused with ω 2021-07-06 19:53:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 19:54:47 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-06 19:56:28 Yruama lol, i can't see the diffrence between ⍵ and ω, even if they are 2021-07-06 19:58:00 Yruama i think the code i'm translating will worth some refactoring 2021-07-06 19:58:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 19:58:10 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 19:58:59 --> ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has joined ##rust 2021-07-06 19:59:04 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-07-06 19:59:19 Yruama i have setter changing the whole object wich is equivalent of recreating a new one 2021-07-06 19:59:35 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 20:02:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:04:26 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-06 20:04:33 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:4db8:90bd:160c:195a) has quit 2021-07-06 20:05:02 <-- sh9 (~sh9@softbank060116136158.bbtec.net) has quit (Quit: WeeChat 3.0.1) 2021-07-06 20:06:50 <-- mIGu (~mig21@user/naur) has quit (Quit: Quitting) 2021-07-06 20:07:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 20:07:24 --> mIGu (~mig21@user/naur) has joined ##rust 2021-07-06 20:08:41 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 252 seconds) 2021-07-06 20:09:45 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-06 20:09:56 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-06 20:11:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:12:23 --> shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-06 20:14:52 <-- mIGu (~mig21@user/naur) has quit (Quit: Quitting) 2021-07-06 20:15:19 --> mpt (~tom@2a02:908:1862:49e0::8) has joined ##rust 2021-07-06 20:15:19 <-- Karel (~Karel@232.56.198.178.dynamic.wline.res.cust.swisscom.ch) has quit (Quit: Leaving) 2021-07-06 20:16:07 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 20:16:47 <-- maelcum (~horst@2001:16b8:c1ee:6200:7572:c4db:a041:d547) has quit (Quit: Konversation terminated!) 2021-07-06 20:17:11 --> mIGu (~mig21@user/naur) has joined ##rust 2021-07-06 20:18:02 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 252 seconds) 2021-07-06 20:19:01 <-- leah2 (~leah@vuxu.org) has quit (Read error: Connection reset by peer) 2021-07-06 20:20:21 --> r[]n|n (~r]n|n@2601:283:4602:43e0:5430:490f:318b:c13a) has joined ##rust 2021-07-06 20:20:53 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:22:17 <-- r[]n|n (~r]n|n@2601:283:4602:43e0:5430:490f:318b:c13a) has quit (Client Quit) 2021-07-06 20:22:38 <-- P1RATEZ (piratez@user/p1ratez) has quit (Remote host closed the connection) 2021-07-06 20:25:13 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 20:27:24 --> gggp (~gggp@221.219.64.188) has joined ##rust 2021-07-06 20:29:25 <-- mpt (~tom@2a02:908:1862:49e0::8) has quit (Ping timeout: 246 seconds) 2021-07-06 20:29:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:34:32 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 20:36:04 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 20:36:44 <-- Ivyy (~Ivyy@2001:a62:41d:fa01:c52a:d15b:f165:1b84) has quit (Remote host closed the connection) 2021-07-06 20:39:09 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:40:27 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 20:42:15 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-06 20:43:39 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-06 20:43:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 20:45:22 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 240 seconds) 2021-07-06 20:48:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:51:49 <-- ntdll (~ntdll@user/ntdll) has quit (Ping timeout: 246 seconds) 2021-07-06 20:52:09 <-- gggp (~gggp@221.219.64.188) has quit (Remote host closed the connection) 2021-07-06 20:52:34 --> gggp (~gggp@221.219.64.188) has joined ##rust 2021-07-06 20:52:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 20:53:39 <-- gggp (~gggp@221.219.64.188) has quit (Remote host closed the connection) 2021-07-06 20:54:56 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 20:56:51 --> frost (~frost@59.71.241.179) has joined ##rust 2021-07-06 20:57:24 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 20:59:50 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-06 21:01:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 21:02:29 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-06 21:04:36 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-06 21:06:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:09:12 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-07-06 21:11:24 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 21:15:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:18:51 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-06 21:20:38 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 21:21:17 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-06 21:22:16 <-- paule (~paule@ppp-93-104-166-59.dynamic.mnet-online.de) has quit (Ping timeout: 246 seconds) 2021-07-06 21:24:40 --> andyhoang (~andyhoang@14.186.56.12) has joined ##rust 2021-07-06 21:24:49 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:28:51 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 265 seconds) 2021-07-06 21:29:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 21:30:49 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-06 21:30:55 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 21:31:01 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-06 21:33:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:33:58 <-- ChaiTRex (~ChaiTRex@user/chaitrex) has quit (Ping timeout: 244 seconds) 2021-07-06 21:35:56 --> ChaiTRex (~ChaiTRex@user/chaitrex) has joined ##rust 2021-07-06 21:38:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 21:43:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:44:38 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 21:44:42 --> neurocyte403 (~neurocyte@IP-185189140104.dynamic.medianet-world.de) has joined ##rust 2021-07-06 21:44:43 <-- neurocyte403 (~neurocyte@IP-185189140104.dynamic.medianet-world.de) has quit (Changing host) 2021-07-06 21:44:43 --> neurocyte403 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-06 21:47:41 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 21:47:53 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-06 21:48:14 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 252 seconds) 2021-07-06 21:48:15 -- neurocyte403 is now known as neurocyte40 2021-07-06 21:48:15 <-- cdown_ (~cdown@89.32.122.5) has quit (Ping timeout: 256 seconds) 2021-07-06 21:49:09 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-06 21:50:13 <-- goldfish (~goldfish@user/goldfish) has quit (Quit: Leaving) 2021-07-06 21:50:50 <-- andyhoang (~andyhoang@14.186.56.12) has quit (Quit: WeeChat 3.2) 2021-07-06 21:52:01 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-06 21:52:17 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 21:52:43 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Quit: Leaving) 2021-07-06 21:53:10 --> tsal (~tsal@user/tsal) has joined ##rust 2021-07-06 21:54:22 --> starblue1 (~juergen@dslb-094-221-190-080.094.221.pools.vodafone-ip.de) has joined ##rust 2021-07-06 21:56:56 <-- tsal_ (~tsal@user/tsal) has quit (Ping timeout: 252 seconds) 2021-07-06 21:57:30 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-06 21:57:35 <-- starblue (~juergen@dslb-094-221-185-171.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 252 seconds) 2021-07-06 22:01:21 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:05:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 22:06:14 <-- trmckay4 (~trmckay@li250-217.members.linode.com) has quit (Ping timeout: 268 seconds) 2021-07-06 22:06:33 --> trmckay4 (~trmckay@li250-217.members.linode.com) has joined ##rust 2021-07-06 22:10:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:13:05 <-- jinsun (~quassel@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-06 22:14:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 22:15:19 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-06 22:15:29 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-06 22:19:43 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:21:53 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-06 22:24:13 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 22:24:51 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-06 22:26:58 --> winter (~quassel@user/winter) has joined ##rust 2021-07-06 22:27:30 --> home (~home@user/home) has joined ##rust 2021-07-06 22:27:36 --> gco (~gco@2601:647:5a00:524:58ed:3315:4c08:d14) has joined ##rust 2021-07-06 22:28:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:29:28 --> speskk (~user@ool-44c57707.dyn.optonline.net) has joined ##rust 2021-07-06 22:31:18 <-- home (~home@user/home) has quit (Read error: Connection reset by peer) 2021-07-06 22:31:49 --> home (~home@user/home) has joined ##rust 2021-07-06 22:33:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 22:34:01 <-- gco (~gco@2601:647:5a00:524:58ed:3315:4c08:d14) has quit (Ping timeout: 246 seconds) 2021-07-06 22:37:53 <-- speskk (~user@ool-44c57707.dyn.optonline.net) has left ##rust (ERC (IRC client for Emacs 27.2)) 2021-07-06 22:37:58 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:38:51 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-06 22:40:07 --> jeho (~jehoshaph@user/jehoshaphat) has joined ##rust 2021-07-06 22:42:25 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 22:43:04 <-- biberu (~biberu@user/biberu) has quit (Read error: Connection reset by peer) 2021-07-06 22:44:39 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-06 22:46:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:48:44 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 252 seconds) 2021-07-06 22:49:01 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-06 22:49:06 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-06 22:49:27 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-06 22:51:16 <-- neshpion (~neshpion@gateway/tor-sasl/neshpion) has quit (Quit: neshpion) 2021-07-06 22:51:23 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 22:53:10 --> dostoyevsky2 (~sck@user/dostoyevsky2) has joined ##rust 2021-07-06 22:53:15 --> dcz_ (~dcz@78.48.56.59) has joined ##rust 2021-07-06 22:53:46 <-- dostoyevsky2 (~sck@user/dostoyevsky2) has quit (Client Quit) 2021-07-06 22:55:12 --> dostoyevsky2 (~sck@user/dostoyevsky2) has joined ##rust 2021-07-06 22:56:06 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 22:57:34 dostoyevsky2 I use a docker container these days as my dev environment... is there a way I could compile a rust program for osx from linux/inside a docker container? 2021-07-06 23:00:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 23:05:23 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:09:43 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 23:12:37 jbg `rustup target add aarch64-apple-darwin` or `rustup target add x86_64-apple-darwin` and then e.g. `cargo build --target aarch64-apple-darwin` (or x86_64) will get rustc producing the right object files, but you'll need a linker that can produce the right output too. on linux by default cargo uses `cc` to link, but you can change it 2021-07-06 23:14:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:16:58 jbg your system `cc` won't make a macOS binary but there are various cross-compiling efforts that include a linker 2021-07-06 23:18:53 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 23:19:22 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Ping timeout: 240 seconds) 2021-07-06 23:19:28 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-06 23:22:33 jbg dostoyevsky2: https://github.com/tpoechtrager/osxcross would get you set up with a toolchain 2021-07-06 23:22:42 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Remote host closed the connection) 2021-07-06 23:22:55 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-06 23:23:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:24:31 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-06 23:24:34 jbg there's also https://github.com/multiarch/crossbuild which has osxcross in container images -- you could base a container image on the macOS-targeting one and add rust 2021-07-06 23:28:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 23:28:27 --> anandprabhu (~anandprab@94.202.243.198) has joined ##rust 2021-07-06 23:30:59 <-- pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has quit (Ping timeout: 252 seconds) 2021-07-06 23:32:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:36:58 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-06 23:38:18 dostoyevsky2 jbg: Ok, thanks! Will check out crossbuild! 2021-07-06 23:38:42 --> pwnd_sfw (~pwnd_sfw@ool-18b88100.dyn.optonline.net) has joined ##rust 2021-07-06 23:41:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:46:07 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-06 23:47:00 <-- genieliu (~genieliu@103.37.140.25) has quit (Quit: leaving) 2021-07-06 23:47:17 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-06 23:50:45 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-06 23:52:02 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-06 23:55:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-06 23:57:30 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 252 seconds) 2021-07-06 23:57:34 --> home (~home@user/home) has joined ##rust 2021-07-06 23:59:55 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:02:20 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 00:02:56 --> SignalGarden (~SignalWal@170.sub-97-34-129.myvzw.com) has joined ##rust 2021-07-07 00:03:28 <-- zeden (~zeden@user/zeden) has quit (Quit: WeeChat 3.0.1) 2021-07-07 00:04:11 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 00:04:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 00:05:26 <-- SignalWalker (~SignalWal@199.sub-174-209-197.myvzw.com) has quit (Ping timeout: 258 seconds) 2021-07-07 00:05:38 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 00:06:21 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-07 00:09:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:09:09 --> home (~home@user/home) has joined ##rust 2021-07-07 00:10:03 printf does diesel support async 2021-07-07 00:12:04 printf i want to run diesel queries like mytable.load(&conn); in async and have it return a Fugure 2021-07-07 00:12:49 --> SignalWalker (~SignalWal@163.sub-174-254-49.myvzw.com) has joined ##rust 2021-07-07 00:13:11 <-- SignalWalker (~SignalWal@163.sub-174-254-49.myvzw.com) has quit (Remote host closed the connection) 2021-07-07 00:13:17 printf *Future 2021-07-07 00:13:19 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 00:13:25 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 00:13:46 <-- SignalGarden (~SignalWal@170.sub-97-34-129.myvzw.com) has quit (Ping timeout: 240 seconds) 2021-07-07 00:15:22 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 240 seconds) 2021-07-07 00:18:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:18:56 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 00:20:01 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 00:20:36 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Read error: Connection reset by peer) 2021-07-07 00:21:36 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 00:23:07 printf or i should just use tokio-diesel? 2021-07-07 00:23:08 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-07 00:23:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-07 00:27:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:28:21 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Read error: Connection reset by peer) 2021-07-07 00:30:12 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-07 00:30:17 --> chance (~chance@user/chance) has joined ##rust 2021-07-07 00:31:37 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 00:32:08 <-- ashafq (~ashafq@pool-96-237-238-252.bstnma.fios.verizon.net) has quit (Ping timeout: 252 seconds) 2021-07-07 00:33:42 --> dcz (~dcz@dynamic-093-132-022-145.93.132.pool.telefonica.de) has joined ##rust 2021-07-07 00:36:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:36:34 <-- dcz_ (~dcz@78.48.56.59) has quit (Ping timeout: 240 seconds) 2021-07-07 00:41:04 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 00:41:20 jbg diesel itself does not support async. tokio-diesel is a bit of a hack that just uses tokio::task::block_in_place to shift the query off to a 'blocking thread' 2021-07-07 00:41:52 jbg I don't know if there's an async ORM for Rust; I can highly recommend tokio-postgres but it's probably not what you want if you don't want to write SQL 2021-07-07 00:42:12 --> englishm (sid6629@id-6629.tinside.irccloud.com) has joined ##rust 2021-07-07 00:45:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:46:21 --> ac5tin (~ac5tin@user/ac5tin) has joined ##rust 2021-07-07 00:46:35 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 00:46:44 <-- ac5tin (~ac5tin@user/ac5tin) has left ##rust 2021-07-07 00:47:13 --> home (~home@user/home) has joined ##rust 2021-07-07 00:48:56 printf jbg yea i was thinking about using tokio::task::spawn_blocking() , so that's what diesel-tokio is doing 2021-07-07 00:49:09 --> trev (~trev@user/trev) has joined ##rust 2021-07-07 00:49:26 printf whats the standard practise for doing async database queries though 2021-07-07 00:49:27 jbg yeah. it will work but it's a *lot* heavier than a proper async library would be 2021-07-07 00:49:48 jbg using e.g. tokio-postgres you just txn.query("...", &[...]).await?; and the same thread can go and poll other tasks while the query is executing 2021-07-07 00:50:08 jbg using that tokio-diesel it marks the thread that calls diesel as 'blocking' and cannot use that thread for polling other tasks until the query completes 2021-07-07 00:50:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 00:50:44 printf so tokio-postgres is actual async then 2021-07-07 00:50:47 jbg yes 2021-07-07 00:51:02 printf hmm, guess i should have a look 2021-07-07 00:51:06 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 00:51:14 printf but does i need to write raw sql right? 2021-07-07 00:51:21 jbg but it's not an ORM like diesel; you will be writing SQL and binding parameters in 2021-07-07 00:51:43 printf it's fine, i can write raw sql queries 2021-07-07 00:51:47 jbg I personally find that approach much better, I've been writing SQL a long time and trying to find out the right incantations in diesel to get the query I want is a pain in the ass 2021-07-07 00:51:50 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 00:52:04 jbg (and sometimes just flat-out not possible) 2021-07-07 00:52:06 rk4 +1 tokio-postgres 2021-07-07 00:54:37 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 00:55:30 printf i actually always write raw sql too cuz i find it easier then learning those querybuilders in ORM, this is the first time i actually try to learn to use an ORM properly lol 2021-07-07 00:55:49 rk4 afaict ORMs were a bit of a failed fad in OOP land 2021-07-07 00:57:03 --> leib (~leib@2409:4061:405:275b:799c:ea9f:848d:8fe2) has joined ##rust 2021-07-07 00:57:06 jbg I would like some better tooling for catching errors in the SQL at compile time and type mismatches between query params / outputs and rust types 2021-07-07 00:57:34 jbg sqlx tries to do that but I don't like the database library. tokio-postgres with some kind of extra lints would be nice 2021-07-07 00:57:50 printf select * from users where user_type = '0' order by created_at desc <- much easier than doing something like users.filter(user_type.eq(0)).order(created_at.desc()) <- probably not the right syntax but my point is i need to learn the querybuilder API 2021-07-07 00:58:05 jbg but yeah going all the way to ORM adds a huge amount of complexity without much benefit and often makes it hard to use the full potential of the DB 2021-07-07 00:58:09 --> ur5us (~ur5us@14.1.51.50) has joined ##rust 2021-07-07 00:58:47 printf even in diesel, i have to import all those querydsl, runQueryDSL, expressionmethods ... i just dunno which one i need to import 2021-07-07 00:58:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 01:02:10 --> genieliu_ (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 01:02:46 <-- ur5us (~ur5us@14.1.51.50) has quit (Ping timeout: 246 seconds) 2021-07-07 01:03:09 <-- shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: shgvbvri) 2021-07-07 01:03:14 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 01:03:40 --> home (~home@user/home) has joined ##rust 2021-07-07 01:03:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 01:04:02 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-07 01:04:11 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 01:04:16 --> Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 01:04:26 --> Guest50_ (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 01:04:31 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-07 01:04:33 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-07 01:04:53 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 01:05:45 --> ur5us (~ur5us@14.1.51.50) has joined ##rust 2021-07-07 01:06:43 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 01:06:47 <-- genieliu_ (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 01:07:14 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-07-07 01:08:26 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 01:10:29 <-- sgift (~madison@2001:a61:35b8:2401:85e9:9edc:e228:756e) has quit (Read error: Permission denied) 2021-07-07 01:10:45 --> sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has joined ##rust 2021-07-07 01:11:32 <-- anon16_ (~anon16@37.236.110.30) has quit (Client Quit) 2021-07-07 01:12:15 -- __jmcantrell__ is now known as jmcantrell 2021-07-07 01:12:47 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 01:12:51 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 01:13:05 <-- anandprabhu (~anandprab@94.202.243.198) has quit (Quit: Leaving) 2021-07-07 01:14:05 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 01:15:37 <-- Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 01:16:19 --> home (~home@user/home) has joined ##rust 2021-07-07 01:17:14 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 01:18:54 --> LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:7127:2316:c2b7:665a) has joined ##rust 2021-07-07 01:20:34 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 01:21:38 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 01:21:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 01:26:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 01:27:37 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-07 01:28:10 --> alexxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 01:28:26 <-- Guest50_ (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 01:28:50 --> Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 01:29:07 --> Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 01:30:31 --> sord937 (~sord937@gateway/tor-sasl/sord937) has joined ##rust 2021-07-07 01:31:00 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 01:34:11 --> home (~home@user/home) has joined ##rust 2021-07-07 01:35:19 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 01:36:26 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-07 01:38:34 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 01:38:38 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-07 01:38:47 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 01:39:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 01:39:48 <-- waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has quit (Ping timeout: 272 seconds) 2021-07-07 01:40:10 Guest53 h 2021-07-07 01:50:14 <-- anon16_ (~anon16@37.236.110.30) has quit (Quit: WeeChat 3.0) 2021-07-07 01:50:52 --> home (~home@user/home) has joined ##rust 2021-07-07 01:51:45 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 01:53:44 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 01:54:22 <-- janik (~janik@oidentd/developer/janik) has quit (Ping timeout: 244 seconds) 2021-07-07 01:55:27 --> janik (~janik@oidentd/developer/janik) has joined ##rust 2021-07-07 01:56:51 <-- anon16_ (~anon16@37.236.110.30) has quit (Client Quit) 2021-07-07 01:57:07 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 01:58:53 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 01:59:07 <-- home (~home@user/home) has quit (Ping timeout: 246 seconds) 2021-07-07 02:04:07 <-- est31 (~est31@user/est31) has quit (Quit: No Ping reply in 180 seconds.) 2021-07-07 02:04:57 --> LeDragonDev5 (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has joined ##rust 2021-07-07 02:05:13 <-- LeDragonDev5 (~LeDragonD@lfbn-mon-1-1463-151.w92-167.abo.wanadoo.fr) has quit (Client Quit) 2021-07-07 02:05:34 --> mreznik (~mreznik@195.91.12.90) has joined ##rust 2021-07-07 02:05:42 --> est31 (~est31@user/est31) has joined ##rust 2021-07-07 02:07:27 <-- anon16_ (~anon16@37.236.110.30) has quit (Quit: WeeChat 3.0) 2021-07-07 02:08:07 <-- LeDragonDev (~LeDragonD@2a01:cb1d:8a11:c600:7127:2316:c2b7:665a) has quit (Ping timeout: 246 seconds) 2021-07-07 02:08:14 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 02:08:32 --> kee (~wizzwizz4@user/wizzwizz4) has joined ##rust 2021-07-07 02:09:42 --> waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined ##rust 2021-07-07 02:11:16 <-- Guest53 (~textual@ool-43527ebe.dyn.optonline.net) has left ##rust (Textual IRC Client: www.textualapp.com) 2021-07-07 02:13:20 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 02:16:45 --> Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has joined ##rust 2021-07-07 02:17:30 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Remote host closed the connection) 2021-07-07 02:17:37 <-- anon16_ (~anon16@37.236.110.30) has quit (Quit: WeeChat 3.0) 2021-07-07 02:17:58 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 02:18:31 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 02:19:48 <-- anon16_ (~anon16@37.236.110.30) has quit (Client Quit) 2021-07-07 02:20:40 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 02:23:18 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-07-07 02:26:37 printf i got some warning about : checked the `Output` of this `async fn`, found opaque type, i have no idea what this is about 2021-07-07 02:26:50 jbg why paraphrase the warning instead of just pasting it? 2021-07-07 02:27:00 jbg I have no idea what it's about either because you mangled the meaning 2021-07-07 02:27:59 --> home (~home@user/home) has joined ##rust 2021-07-07 02:28:22 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 02:29:36 printf https://paste.rs/6u2 2021-07-07 02:29:45 --> lei (~leib@2409:4061:405:275b:a1ce:b85a:6a73:e87b) has joined ##rust 2021-07-07 02:30:16 jbg and the error...? 2021-07-07 02:30:27 printf probably shouldve used the .rs for syntax highlighting, https://paste.rs/A8R.rs 2021-07-07 02:30:33 printf its a warning 2021-07-07 02:30:39 printf not really an error 2021-07-07 02:30:56 printf an error about the return type of this function 2021-07-07 02:30:57 jbg I don't really understand your approach here 2021-07-07 02:31:10 jbg you seem to be asking for help, but you're not providing the one thing anyone would need to actually explain the warning 2021-07-07 02:31:14 jbg even after I asked for. it 2021-07-07 02:31:21 jbg which is... the warning 2021-07-07 02:31:23 <-- leib (~leib@2409:4061:405:275b:799c:ea9f:848d:8fe2) has quit (Ping timeout: 252 seconds) 2021-07-07 02:31:34 printf checked the `Output` of this `async fn`, expected opaque type <- this is the warning message i got 2021-07-07 02:31:47 jbg I am pretty sure it did not say "checked the" 2021-07-07 02:32:00 jbg is it really so hard to copy-paste the warning verbatim? 2021-07-07 02:32:20 printf it did say checked the `Output` of this `async fn` , expected opaque type, im not lying here 2021-07-07 02:32:22 jbg at least if it did say "checked the", it's not from rustc, so where did you see this warning? 2021-07-07 02:32:28 printf im using rust analyzer 2021-07-07 02:32:38 <-- jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has quit (Ping timeout: 258 seconds) 2021-07-07 02:32:39 jbg and that is the entire warning? 2021-07-07 02:32:47 printf yea, seriously 2021-07-07 02:32:48 bertptrs Compile normally and paste the entire output, not the management summary 2021-07-07 02:32:50 printf no joke 2021-07-07 02:32:56 jbg run cargo build and paste the actual warning 2021-07-07 02:33:18 jbg "checked the output of this async fn" doesn't sound like any rustc warning/error I've seen though 2021-07-07 02:34:17 printf yea its a rust-analyzer message 2021-07-07 02:34:36 jbg maybe run `cargo clippy` then and see 2021-07-07 02:34:46 jbg if it gives you a more useful message 2021-07-07 02:36:09 printf https://imgur.com/yWRivUw 2021-07-07 02:36:18 printf ill run cargo to get the actual rustc message now 2021-07-07 02:37:00 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 02:38:27 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-07 02:38:29 printf http://ix.io/3sbS 2021-07-07 02:38:43 jbg yeah that's an actual error, not a warning 2021-07-07 02:39:10 printf but the error is in the other file though 2021-07-07 02:39:12 --> gggpkm (~gggpkm@221.219.74.134) has joined ##rust 2021-07-07 02:39:16 jbg and it's in a different location 2021-07-07 02:39:30 jbg you're trying to make a Vec of futures, I guess, but every async fn has a different type 2021-07-07 02:39:35 jbg so you would need to box them 2021-07-07 02:39:58 <-- gggpkm (~gggpkm@221.219.74.134) has quit (Remote host closed the connection) 2021-07-07 02:40:09 printf oh yes, im trying to make a Vec of futures 2021-07-07 02:40:25 --> gggpkm (~gggpkm@221.219.70.91) has joined ##rust 2021-07-07 02:40:38 printf but my futureu functions return Result<(),Box> so i assumed they should be the same type 2021-07-07 02:40:58 jbg as I said, every async fn has a different type 2021-07-07 02:41:03 printf ok 2021-07-07 02:41:03 jbg the signature of the async fn is not relevant 2021-07-07 02:41:29 <-- gggpkm (~gggpkm@221.219.70.91) has quit (Remote host closed the connection) 2021-07-07 02:41:46 <-- swinnenb (~swinnenb@user/swinnenb) has quit (Quit: This is the hidden truth, the world between the lines.) 2021-07-07 02:41:51 jbg the type has to basically encapsulate the state machine of the async fn, so the signature alone isn't enough info 2021-07-07 02:41:51 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 02:42:21 jbg anyway you'll have to box. if you have `futures` as a dep already, `futures::future::FutureExt` provides a handy .boxed() method on every future 2021-07-07 02:42:25 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 02:42:27 printf so i should push Box::new(myAsyncFn()) to my vec 2021-07-07 02:42:28 jbg otherwise you can just Box::pin(the_future) 2021-07-07 02:42:57 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-07 02:43:21 --> gggpkm (~gggpkm@221.219.74.134) has joined ##rust 2021-07-07 02:45:19 --> swinnenb (~swinnenb@user/swinnenb) has joined ##rust 2021-07-07 02:45:40 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-07 02:46:07 printf oh yea, i like that the futures lib provided a .box() method 2021-07-07 02:46:24 <-- home (~home@user/home) has quit (Ping timeout: 265 seconds) 2021-07-07 02:46:24 printf seems like it's working now 2021-07-07 02:46:34 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 240 seconds) 2021-07-07 02:46:39 printf thx man jbg :D 2021-07-07 02:47:20 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 02:47:23 jbg np. in case you only have two types of future, you can also use Either from futures 2021-07-07 02:47:32 jbg to avoid the allocation 2021-07-07 02:47:41 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 02:47:43 <-- gggkmp (~textual@60.10.194.47) has left ##rust (Textual IRC Client: www.textualapp.com) 2021-07-07 02:47:55 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-07 02:47:56 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 02:51:21 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 02:51:27 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Quit: msavoritias) 2021-07-07 02:52:00 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 272 seconds) 2021-07-07 02:53:43 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 246 seconds) 2021-07-07 02:54:43 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-07 02:56:10 <-- waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has quit (Ping timeout: 246 seconds) 2021-07-07 02:57:27 --> saschagrunert (~saschagru@46.128.124.113) has joined ##rust 2021-07-07 02:58:33 <-- djapo (~archangel@user/djapo) has quit (Read error: Connection reset by peer) 2021-07-07 02:58:33 --> djapo_ (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has joined ##rust 2021-07-07 03:00:27 -- hatz_ is now known as Hatz_ 2021-07-07 03:00:28 <-- death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has quit (Changing host) 2021-07-07 03:00:28 --> death916 (~death916@user/death916) has joined ##rust 2021-07-07 03:03:49 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-07-07 03:04:32 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 03:05:31 --> waldo323 (~waldo323@d149-67-45-83.clv.wideopenwest.com) has joined ##rust 2021-07-07 03:09:03 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-07-07 03:10:26 <-- Erutuon (~Erutuon@user/erutuon) has quit (Ping timeout: 252 seconds) 2021-07-07 03:10:43 <-- anchorite (~anchorite@95.111.56.99) has quit (Client Quit) 2021-07-07 03:11:01 --> anchorite (~anchorite@95.111.56.99) has joined ##rust 2021-07-07 03:11:26 --> Midjak (~Midjak@82-65-111-221.subs.proxad.net) has joined ##rust 2021-07-07 03:12:26 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 03:14:04 --> home (~home@user/home) has joined ##rust 2021-07-07 03:14:48 <-- gggpkm (~gggpkm@221.219.74.134) has quit (Ping timeout: 258 seconds) 2021-07-07 03:18:32 <-- gggkmp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-07 03:18:34 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 03:26:10 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 240 seconds) 2021-07-07 03:27:16 --> biberu (~biberu@user/biberu) has joined ##rust 2021-07-07 03:31:56 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-07 03:32:45 -- Hatz_ is now known as hatz_ 2021-07-07 03:36:49 --> mpt (~tom@2a02:908:1862:49e0::8) has joined ##rust 2021-07-07 03:39:08 <-- Nyeogmi (~Nyeogmi@2601:645:8700:bea0:4d5e:7bf4:e290:5648) has quit (Ping timeout: 252 seconds) 2021-07-07 03:39:23 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-07 03:40:32 --> gggpkm (~gggpkm@221.219.74.134) has joined ##rust 2021-07-07 03:41:28 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 03:41:53 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-07 03:41:54 --> ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has joined ##rust 2021-07-07 03:44:07 <-- alexxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 03:47:44 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 272 seconds) 2021-07-07 03:51:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Read error: No route to host) 2021-07-07 03:51:27 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 03:51:32 <-- ur5us (~ur5us@14.1.51.50) has quit (Ping timeout: 272 seconds) 2021-07-07 03:53:41 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-07 03:54:58 <-- mpt (~tom@2a02:908:1862:49e0::8) has quit (Ping timeout: 246 seconds) 2021-07-07 03:55:04 --> gggkmp (~textual@221.219.74.134) has joined ##rust 2021-07-07 03:57:58 --> LucaTM (~LucaTM@user/lucatm) has joined ##rust 2021-07-07 03:58:01 <-- sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has quit (Read error: Permission denied) 2021-07-07 03:58:19 --> sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has joined ##rust 2021-07-07 03:58:24 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 04:04:17 <-- ubert (~Thunderbi@p2e5a50e5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-07 04:08:42 <-- hendursa1 (~weechat@user/hendursaga) has quit (Ping timeout: 244 seconds) 2021-07-07 04:09:23 <-- dcz (~dcz@dynamic-093-132-022-145.93.132.pool.telefonica.de) has quit (Ping timeout: 252 seconds) 2021-07-07 04:09:58 <-- gggkmp (~textual@221.219.74.134) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-07 04:11:29 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 04:11:42 --> gggkmp (~textual@221.219.78.53) has joined ##rust 2021-07-07 04:11:58 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-07 04:13:08 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-07 04:14:09 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 04:14:19 --> meandi (~meandi4@dyndsl-178-142-253-146.ewe-ip-backbone.de) has joined ##rust 2021-07-07 04:14:20 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-07-07 04:15:16 <-- gggkmp (~textual@221.219.78.53) has quit (Client Quit) 2021-07-07 04:16:40 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 246 seconds) 2021-07-07 04:16:58 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-07 04:18:26 <-- anchorite (~anchorite@95.111.56.99) has quit (Ping timeout: 258 seconds) 2021-07-07 04:19:11 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-07 04:19:55 --> Lord_of_Life_ (~Lord@user/lord-of-life/x-2819915) has joined ##rust 2021-07-07 04:20:10 <-- lei (~leib@2409:4061:405:275b:a1ce:b85a:6a73:e87b) has quit (Ping timeout: 240 seconds) 2021-07-07 04:22:15 <-- SiegeLord (~SiegeLord@user/siegelord) has quit (Read error: Connection reset by peer) 2021-07-07 04:22:37 <-- Lord_of_Life (~Lord@user/lord-of-life/x-2819915) has quit (Ping timeout: 246 seconds) 2021-07-07 04:22:37 -- Lord_of_Life_ is now known as Lord_of_Life 2021-07-07 04:23:25 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-07 04:24:02 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-07-07 04:24:04 kee Can I safely transmute &[f32] to &[T] if #[repr(transparent)] struct T(f32)? 2021-07-07 04:24:16 kee I read that you couldn't do this with Vec and Vec. 2021-07-07 04:24:38 <-- hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-07 04:25:40 osa1 I want to deny warnings on CI, but when building locally (it make development difficult). Is this possible without hacks? I thought maybe there's a cargo flag to deny warnings, but I can't find it. 2021-07-07 04:26:06 j`ey hm https://doc.rust-lang.org/std/primitive.slice.html#method.align_to looks useful 2021-07-07 04:26:32 j`ey kee: ^ 2021-07-07 04:27:17 j`ey so if transmuting f32 to T is ok.. 2021-07-07 04:27:53 Shell osa1: RUSTFLAGS="-D warnings" apparently 2021-07-07 04:28:52 jbg (because it's a rustc flag rather than a cargo flag, it's explained in rustc --help) 2021-07-07 04:29:02 osa1 Thanks! 2021-07-07 04:29:33 bluss kee: yes 2021-07-07 04:29:54 --> leah2 (~leah@vuxu.org) has joined ##rust 2021-07-07 04:30:56 --> _42large (~user@37.120.197.42) has joined ##rust 2021-07-07 04:31:08 jbg I usually have CI run `cargo clippy -- -D warnings` before building 2021-07-07 04:31:23 --> |7| (~seachdamh@user/seachdamh) has joined ##rust 2021-07-07 04:31:40 --> ur5us (~ur5us@14.1.51.50) has joined ##rust 2021-07-07 04:31:58 --> leib (~leib@2409:4061:405:275b:b130:5d01:9c2d:7e4) has joined ##rust 2021-07-07 04:34:11 osa1 What does it do? Generates lints + warnings in one run and returns 1 if there are any lints or warnings? 2021-07-07 04:34:24 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 04:35:25 jbg yeah 2021-07-07 04:35:30 --> plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has joined ##rust 2021-07-07 04:35:47 osa1 Perfect, thanks 2021-07-07 04:36:10 jbg the full CI here is basically `cargo deny check && cargo +nightly fmt -- --check --files-with-diff && cargo clippy -- -D warnings && cargo build --frozen --release` 2021-07-07 04:36:48 jbg fail if cargo-deny reports anything, fail if any files are not formatted according to rustfmt.toml (and output which files), fail if there are any lints or warnings, do a release build requiring that Cargo.lock is up-to-date 2021-07-07 04:38:15 --> Unleashed (~unleashed@redhat/Unleashed) has joined ##rust 2021-07-07 04:38:33 printf hi, i got an error about my HashMap failing to get serialized, the error message: the trait bound `AIType: Serialize` is not satisfied required becuase of the requirements on the impl of `Serialize` for `HashMap alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 04:42:22 <-- eroux (~eroux@102-65-82-79.ftth.web.africa) has quit (Ping timeout: 252 seconds) 2021-07-07 04:42:58 printf http://ix.io/3scb 2021-07-07 04:43:00 printf here it is 2021-07-07 04:43:20 jbg also, if you have more than one version of serde in your dependency tree (I see that you have #[serde(crate="rocket::serde")]) you will have to serialise using the same serde that you derived the traits with 2021-07-07 04:43:24 jbg *derived the trait impls with 2021-07-07 04:43:36 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-07 04:43:37 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 04:43:40 jbg unless you have a really good reason it would be best to make sure you have just one version of serde in your dependency tree 2021-07-07 04:44:14 jbg but that's probably not your issue 2021-07-07 04:44:25 jbg the issue is right there in the error message, just not in the part that you originally pasted: 2021-07-07 04:44:26 jbg "the trait `Hash` is not implemented for `AIType`" 2021-07-07 04:45:03 --> eroux (~eroux@102-65-85-152.ftth.web.africa) has joined ##rust 2021-07-07 04:45:07 jbg you can derive Hash 2021-07-07 04:45:34 jbg also btw, you can use #[serde(rename_all = "lowercase")] on the enum rather than writing out a separate lowercase rename for each enum variant 2021-07-07 04:48:31 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 246 seconds) 2021-07-07 04:48:34 printf yea im only using rocket's serde 2021-07-07 04:48:59 jbg as far as I know rocket's serde is just serde 2021-07-07 04:49:09 jbg you could add serde to Cargo.toml without adding any extra dependencies since you already depend on it via rocket 2021-07-07 04:49:20 jbg and then you can get rid of those (crate="") annotations 2021-07-07 04:50:35 printf i added Hash into the deriving list of AITYPe 2021-07-07 04:51:08 --> ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has joined ##rust 2021-07-07 04:51:23 printf #[derive(FromFormField,Debug,Hash,Serialize,Deserialize,PartialEq)] 2021-07-07 04:51:24 printf #[derive(FromFormField,Debug,Hash,Serialize,Deserialize,PartialEq)] 2021-07-07 04:51:24 printf #[derive(FromFormField,Debug,Hash,Serialize,Deserialize,PartialEq)] 2021-07-07 04:51:24 printf #[derive(FromFormField,Debug,Hash,Serialize,Deserialize,PartialEq)] 2021-07-07 04:51:24 printf #[derive(FromFormField,Debug,Hash,Serialize,Deserialize,PartialEq)] 2021-07-07 04:51:36 printf oh shit sorry 2021-07-07 04:51:43 printf didnt mean to post several times, my bad 2021-07-07 04:51:52 kee I am curious how you managed that. 2021-07-07 04:52:17 printf ctrl+c in neovim , then ctrl+v in thelounge 2021-07-07 04:52:17 j`ey blame a cat 2021-07-07 04:52:30 printf ctrl+shift+v 2021-07-07 04:52:44 <-- ur5us (~ur5us@14.1.51.50) has quit (Ping timeout: 252 seconds) 2021-07-07 04:53:04 Sobek Meow 2021-07-07 04:53:06 printf ive derived Hash now but im stil getting the error AIType: Serialize not satisfied 2021-07-07 04:53:57 printf ive derived Hash,Serialize,Deserialize :/ 2021-07-07 04:54:24 j`ey printf: as before, whole error is needed! 2021-07-07 04:56:13 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-07 04:56:31 jbg printf: rust errors are really descriptive and useful in general -- if you read the whole thing! 2021-07-07 04:56:44 jbg so if you're asking anyone for help always paste the whole error message 2021-07-07 04:56:51 printf http://ix.io/3scg 2021-07-07 04:57:00 jbg and especially never paraphrase it because you might unknowingly be removing the meaning 2021-07-07 04:57:04 --> gggkmp (~textual@221.219.64.188) has joined ##rust 2021-07-07 04:57:17 jbg literally in exactly the same place as it told you Hash was missing 2021-07-07 04:57:19 jbg it now says: "the trait `std::cmp::Eq` is not implemented for `AIType`" 2021-07-07 04:57:25 jbg all you have to do is read it :) 2021-07-07 04:57:53 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 04:58:59 <-- gggkmp (~textual@221.219.64.188) has quit (Client Quit) 2021-07-07 04:59:13 printf man, didnt expect an enum needed to derive that many traits just to get serialised 2021-07-07 04:59:13 <-- leib (~leib@2409:4061:405:275b:b130:5d01:9c2d:7e4) has quit (Quit: Leaving) 2021-07-07 04:59:33 jbg it's actually because you're using it as a hashmap key 2021-07-07 04:59:48 jbg so it needs to be able to be hashed (Hash) and compared for total equality (Eq) 2021-07-07 04:59:59 printf ohh, that makes sense then 2021-07-07 05:00:31 printf would using an enum as hashmap key be more performant than using a string 2021-07-07 05:01:15 printf i was thinking whether i should just use something like HashMap> or HashMap> 2021-07-07 05:01:45 --> ur5us (~ur5us@14.1.51.50) has joined ##rust 2021-07-07 05:02:10 <-- djapo_ (~archangel@99-149-186-203.lightspeed.hstntx.sbcglobal.net) has quit (Ping timeout: 246 seconds) 2021-07-07 05:02:54 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 258 seconds) 2021-07-07 05:03:22 j`ey printf: depends what the enum contained 2021-07-07 05:04:01 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Quit: Haxxa flies away.) 2021-07-07 05:04:47 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 05:05:38 jbg hash() should be cheap on an enum with no data like the AIType that you pasted earlier, but the cost of hash() would not usually be the biggest factor in hashmap performance 2021-07-07 05:06:27 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 05:07:23 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 05:08:39 <-- ur5us (~ur5us@14.1.51.50) has quit (Ping timeout: 258 seconds) 2021-07-07 05:08:40 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-07 05:09:02 <-- gggpkm (~gggpkm@221.219.74.134) has quit (Ping timeout: 258 seconds) 2021-07-07 05:10:36 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-07 05:11:24 <-- D-04 (~D-04@185.130.184.207) has quit (Ping timeout: 265 seconds) 2021-07-07 05:11:32 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 05:13:39 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 05:15:36 --> D-04 (~D-04@185.130.184.207) has joined ##rust 2021-07-07 05:16:38 --> msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has joined ##rust 2021-07-07 05:24:38 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 272 seconds) 2021-07-07 05:28:47 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-07 05:35:55 <-- Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Read error: Connection reset by peer) 2021-07-07 05:36:17 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 252 seconds) 2021-07-07 05:37:44 <-- Arnavion (arnavion@user/arnavion) has quit (Ping timeout: 252 seconds) 2021-07-07 05:38:24 --> Arnavion (arnavion@user/arnavion) has joined ##rust 2021-07-07 05:41:02 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 05:42:58 <-- ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has quit (Remote host closed the connection) 2021-07-07 05:43:41 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 05:45:50 --> gggpkm (~gggpkm@60.10.23.164) has joined ##rust 2021-07-07 05:48:04 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 05:49:12 --> dark-knight (~dark-knig@2a02:8388:1984:a800:7c30:f6a4:a72a:3464) has joined ##rust 2021-07-07 05:49:22 <-- ibigbug (~thelounge@115.131.11.47) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-07 05:50:01 <-- sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has quit (Read error: Permission denied) 2021-07-07 05:50:18 --> sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has joined ##rust 2021-07-07 05:56:14 --> blindguard (~blindguar@2a02:908:1864:c200::4ec1) has joined ##rust 2021-07-07 05:57:32 --> ablegreen (~ablegreen@tsunami.ocf.berkeley.edu) has joined ##rust 2021-07-07 05:59:11 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-07 06:04:58 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 240 seconds) 2021-07-07 06:08:10 --> ibigbug (~thelounge@115.131.11.47) has joined ##rust 2021-07-07 06:08:43 --> mmfood (~mmfood@45.91.21.58) has joined ##rust 2021-07-07 06:10:04 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-07 06:10:22 --> stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has joined ##rust 2021-07-07 06:10:45 --> tglman (~tglman@46.233.83.14) has joined ##rust 2021-07-07 06:11:59 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 06:14:17 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 06:21:39 tomboy64 i want to create a data structure that always gives me the smallest element from a bunch of (already sorted) Vecs. i figured the smartest way to go about that was to turn the vecs into iterators and stuff them into a BTreeSet, then always return the first element 2021-07-07 06:22:12 tomboy64 now i just need to create a struct that holds an Iterator, but how do i express that? 2021-07-07 06:22:21 tomboy64 (then implement Ord on it) 2021-07-07 06:23:03 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-07-07 06:23:52 --> gggpkm_ (~gggpkm@221.219.74.134) has joined ##rust 2021-07-07 06:24:40 tomboy64 std::slice::Iter<'_, std::vec::Vec> ... now that's a mouthful 2021-07-07 06:24:53 --> cchndl (~cchndl@user/cchndl) has joined ##rust 2021-07-07 06:26:58 <-- gggpkm (~gggpkm@60.10.23.164) has quit (Ping timeout: 268 seconds) 2021-07-07 06:28:41 --> home (~home@user/home) has joined ##rust 2021-07-07 06:29:10 --> gggkmp (~textual@221.219.64.188) has joined ##rust 2021-07-07 06:30:34 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 06:32:36 <-- gggpkm_ (~gggpkm@221.219.74.134) has quit (Ping timeout: 258 seconds) 2021-07-07 06:32:58 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 06:33:48 jbg implementing Ord on an iterator doesn't make a huge amount of sense right 2021-07-07 06:33:56 jbg an iterator is exactly one thing: a next() method 2021-07-07 06:34:46 <-- ibigbug (~thelounge@115.131.11.47) has quit (Quit: Ping timeout (120 seconds)) 2021-07-07 06:34:58 tomboy64 yes 2021-07-07 06:35:15 jbg but if you call next() it mutates the iterator and won't give the same value next time 2021-07-07 06:35:20 tomboy64 but with .peek() i can have them sorted by the next element 2021-07-07 06:35:28 Sobek (Math wise, sequence can be compared, however it would require consuming iterators, and additionally might not terminate when two iterators produces the same infinite sequence) 2021-07-07 06:35:58 jbg why turn the vecs into iterators at all? 2021-07-07 06:36:07 jbg vecs provide cheap access to the first element without any hacks 2021-07-07 06:36:42 --> ibigbug (~thelounge@115.131.11.47) has joined ##rust 2021-07-07 06:36:44 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 06:36:53 tomboy64 i was under the impression that the [] operator was more expensive than walking an iterator? 2021-07-07 06:37:15 jbg what gave you that impression? 2021-07-07 06:37:32 jbg a vec is just a ptr/len/capacity, [] is just dereferencing a pointer 2021-07-07 06:37:33 tomboy64 i want to create a sorted collection of all the elements in all (individually sorted) vecs 2021-07-07 06:37:39 tomboy64 no 2021-07-07 06:37:45 jbg whereas an iterator next has to at least update the iterator position 2021-07-07 06:37:51 tomboy64 in rust [] always checks the boundaries 2021-07-07 06:38:06 tomboy64 (for vecs) 2021-07-07 06:38:10 <-- cchndl (~cchndl@user/cchndl) has quit (Ping timeout: 240 seconds) 2021-07-07 06:38:16 tomboy64 akin to .at() in c++ 2021-07-07 06:38:29 bluss good point tomboy64. An iterator checks for the iterator end on each iteration, just like a normal loop would do 2021-07-07 06:38:36 bluss that's the iterator bound check 2021-07-07 06:39:25 jbg and also has to mutate the iterator position (though that could get optimised out if you never use the iterator again? but maybe the bound check on [] would too if the vec can be proven non-empty and you are doing [0]) 2021-07-07 06:39:37 jbg as usual the real answer is try it and see 2021-07-07 06:40:06 bluss creating a tree of iterators sounds surprising yes since an iterator modifies itself when you step it 2021-07-07 06:40:10 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 240 seconds) 2021-07-07 06:40:19 tomboy64 bluss: isn't that just walking a pre-defined range? 2021-07-07 06:40:22 jbg using iterators doesn't seem like a clean design here; start with the clean design and then check if it works for your performance-wise 2021-07-07 06:40:32 jbg *you 2021-07-07 06:40:34 tomboy64 fair enough 2021-07-07 06:41:14 jbg you don't need to store the vecs anyway right 2021-07-07 06:41:28 tomboy64 no 2021-07-07 06:41:38 jbg only their first elements since the smallest element out of all of them can't be any index beyond the first of any of them 2021-07-07 06:41:38 tomboy64 just the (strictly increasing) index 2021-07-07 06:41:44 tomboy64 *indices 2021-07-07 06:42:00 --> alexxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 06:42:32 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-07 06:42:58 <-- msavoritias (~msavoriti@mobile-access-5672e9-207.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-07 06:44:19 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 06:45:03 --> tmpm697 (~tmpm697@171.241.81.202) has joined ##rust 2021-07-07 06:45:59 --> home (~home@user/home) has joined ##rust 2021-07-07 06:48:47 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 06:50:26 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 06:51:44 <-- explore (uid233125@id-233125.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-07 06:52:24 --> gggkmp_ (~textual@60.10.194.47) has joined ##rust 2021-07-07 06:52:32 <-- mandeep (uid394387@id-394387.tooting.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-07 06:53:07 <-- gggkmp (~textual@221.219.64.188) has quit (Ping timeout: 246 seconds) 2021-07-07 06:54:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 06:57:28 --> sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has joined ##rust 2021-07-07 06:59:52 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-07 07:01:29 tomboy64 ^^ thanks for the input btw 2021-07-07 07:02:03 --> home (~home@user/home) has joined ##rust 2021-07-07 07:04:24 --> maelcum (~horst@2001:16b8:c107:2b00:aeac:814a:c61f:404c) has joined ##rust 2021-07-07 07:06:24 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-07 07:07:03 <-- home (~home@user/home) has quit (Ping timeout: 268 seconds) 2021-07-07 07:11:16 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 265 seconds) 2021-07-07 07:11:34 --> alexxxxxey (~Alexey@user/alexxey) has joined ##rust 2021-07-07 07:13:47 <-- alexxxey (~Alexey@user/alexxey) has quit (Ping timeout: 256 seconds) 2021-07-07 07:14:29 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 07:15:15 --> jaafarrc (~jaafarrc@31.214.117.163) has joined ##rust 2021-07-07 07:15:34 jaafarrc Can I make cargo not dox my email? 2021-07-07 07:16:40 jbg lol what 2021-07-07 07:16:42 j`ey I dont think the author field needs an email 2021-07-07 07:16:47 jbg you can put whatever you want in that field 2021-07-07 07:17:12 --> adrianheine (~adrian@2001:16b8:c108:96fc::f9c) has joined ##rust 2021-07-07 07:17:13 jbg if you put your email in there and publish a crate, you're really doxing yourself, you can't blame the tool 2021-07-07 07:17:24 jaafarrc Yeah, but, I want cargo *not* to add my email by default. 2021-07-07 07:18:22 jbg would be nice if `man cargo-init` documented where it got the defaults from those fields from 2021-07-07 07:18:32 jaafarrc It's so annoying having to change it and pretty prone to being forgotten about by me, since, I'm pretty forgetful. 2021-07-07 07:18:33 capitol i guess it picks it up from git, so just configure your git with a bogus one 2021-07-07 07:18:35 j`ey CARGO_EMAIL="" cargo new 2021-07-07 07:18:36 Sobek Quick question in rust what is the best practice when it comes to license (license choice but more importantly what needs to be done in practice to properly put notices where needed etc) 2021-07-07 07:19:18 jaafarrc jbg: no manuale entry for cargo-init 2021-07-07 07:19:19 jbg which license you choose is up to you, it has no real relation to the language you're writing the code in 2021-07-07 07:19:19 Sobek (Let’s assume I am going for a MIT+Apache combo as most if rust ecosystem) 2021-07-07 07:19:23 jaafarrc manual* 2021-07-07 07:19:39 jbg Cargo.toml has a license field, you may consider using a tool like cargo-deny to ensure dependencies are compatible (Most are compatible with MIT/apache) 2021-07-07 07:19:53 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-07 07:19:57 j`ey wait.. my cargo doesnt put an author field by default 2021-07-07 07:19:58 jbg apart from that it's the same as in any ecosystem; put a license file in the repo and put headers in source files if you're into that 2021-07-07 07:20:07 jbg j`ey: yeah neither does mine 2021-07-07 07:20:17 j`ey jaafarrc: what cargo version are you on? 2021-07-07 07:20:28 Sobek Do I also need to include the license text (that’s obviously yes), add a notifie in the Readme ? At the top of every source file ? 2021-07-07 07:20:47 jbg Sobek: that's entirely up to you 2021-07-07 07:20:52 jbg nothing to do with Rust 2021-07-07 07:21:02 jaafarrc j`ey: cargo 1.53.0 (numbers 2021-04-27) 2021-07-07 07:21:03 j`ey whatever the license dictates! 2021-07-07 07:21:14 jbg Sobek: https://softwareengineering.stackexchange.com/questions/317041/should-i-add-the-license-in-every-header-and-source-file/423494 2021-07-07 07:21:17 j`ey jaafarrc: weird 2021-07-07 07:21:20 Sobek Ok. Do you have any pointers on the Pro/cons of source file headers ? 2021-07-07 07:21:31 Sobek Thanks (oops race condition) 2021-07-07 07:21:36 jbg googling the question gave that as the first result, and the top answer seems good 2021-07-07 07:22:04 j`ey jaafarrc: I wonder if this changed, im on 1.54 / nightly 2021-07-07 07:22:22 jbg I have a bunch of cargo projects here created on various rust versions and none of them have author fields in Cargo.toml 2021-07-07 07:22:35 jbg must be something environmental 2021-07-07 07:22:40 jaafarrc Does rustup even package manuals by default? I picked the "minimal" install. 2021-07-07 07:22:43 jbg which ideally would be documented in cargo-init 2021-07-07 07:22:53 j`ey yeah cos I have some that do have authors 2021-07-07 07:23:10 jbg jaafarrc: I use rustup and `man cargo-init` (the same as `cargo help init`) works fine, but I didn't pick a minimal install 2021-07-07 07:24:57 jaafarrc Well, I guess the minimal install omits the manual entries. 2021-07-07 07:25:09 jaafarrc But `cargo help *` works fine. 2021-07-07 07:25:11 jbg seems appropriately minimal 2021-07-07 07:25:21 jaafarrc Yeah. 2021-07-07 07:26:40 jbg are you sure you're creating new cargo projects with 1.53? 2021-07-07 07:26:54 jbg because from the changelog: https://github.com/rust-lang/cargo/blob/af6d540a70b1170d0a57b5db666c01201fd2f2cc/CHANGELOG.md#cargo-153-2021-06-17 2021-07-07 07:26:54 jaafarrc How do I check? 2021-07-07 07:27:01 jbg "The authors field is no longer included in Cargo.toml for new projects" 2021-07-07 07:27:14 jbg maybe you created the cargo project in question before upgrading? 2021-07-07 07:27:30 jaafarrc Perhaps. 2021-07-07 07:27:33 jbg cargo --version; cargo init testproject; grep authors testproject/Cargo.toml 2021-07-07 07:27:33 jaafarrc I'll try now. 2021-07-07 07:28:04 jaafarrc Yup. No author field. 2021-07-07 07:28:23 j`ey jbg: great, thought I was going mad 2021-07-07 07:28:41 --> hendursa1 (~weechat@user/hendursaga) has joined ##rust 2021-07-07 07:28:53 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 07:29:03 -- brown121407 is now known as smarton 2021-07-07 07:29:14 jaafarrc Thanks, guys. 2021-07-07 07:29:15 <-- jaafarrc (~jaafarrc@31.214.117.163) has quit (Quit: Quit) 2021-07-07 07:29:17 jbg it used to populate it from checking a series of environment variables 2021-07-07 07:29:29 jbg CARGO_NAME -> GIT_AUTHOR_NAME -> GIT_COMMITTER_NAME -> USER -> USERNAME -> NAME 2021-07-07 07:29:46 jbg and CARGO_EMAIL -> GIT_AUTHOR_EMAIL -> GIT_COMMITTER_EMAIL -> EMAIL 2021-07-07 07:30:02 jbg so yeah if you had git configured with your email address it would have got it from there 2021-07-07 07:30:15 jbg hah actually even if you didn't use the env vars 2021-07-07 07:30:25 jbg because it also looked up the git config for user.name and user.email 2021-07-07 07:30:46 j`ey jbg: so you dont have a global .gitconfig? 2021-07-07 07:30:47 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 07:31:02 j`ey since you didnt have authors 2021-07-07 07:31:05 jbg I don't; I use local ones per-repo to avoid accidentally using a work email on personal projects or vice-versa 2021-07-07 07:31:18 --> shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has joined ##rust 2021-07-07 07:31:22 <-- gggkmp_ (~textual@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-07 07:31:26 jbg so user.name and user.email would not have been set until after the cargo project was initialised 2021-07-07 07:31:45 jbg but I'm not sure why I don't have any authors, I would have expected authors = ["jbg"] based on looking at the cargo source from pre-1.53 2021-07-07 07:31:56 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 07:33:26 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 07:33:38 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 07:36:04 --> home (~home@user/home) has joined ##rust 2021-07-07 07:36:28 <-- TheAceOfHearts (~TheAceOfH@24.41.239.76) has quit (Quit: So long, and thanks for all the fish!) 2021-07-07 07:37:17 <-- tglman (~tglman@46.233.83.14) has quit (Ping timeout: 252 seconds) 2021-07-07 07:39:06 --> tglman (~tglman@92.40.177.203.threembb.co.uk) has joined ##rust 2021-07-07 07:40:21 <-- tmpm697 (~tmpm697@171.241.81.202) has quit (Ping timeout: 268 seconds) 2021-07-07 07:40:48 <-- home (~home@user/home) has quit (Ping timeout: 272 seconds) 2021-07-07 07:42:13 --> genieliu_ (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 07:44:36 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 272 seconds) 2021-07-07 07:45:41 bluss cargo doesn't set authors anymore 2021-07-07 07:46:22 bluss since https://github.com/rust-lang/cargo/pull/9282 2021-07-07 07:50:06 <-- alexxxxxey (~Alexey@user/alexxey) has quit (Quit: Leaving) 2021-07-07 07:51:48 --> [Kalisto] (~Nico@user/kalisto/x-8968079) has joined ##rust 2021-07-07 07:52:17 --> home (~home@user/home) has joined ##rust 2021-07-07 07:53:54 <-- noonien (~noonien@user/noonien) has quit (Quit: The Lounge - https://thelounge.chat) 2021-07-07 07:54:31 <-- gggkmp (~textual@60.10.194.47) has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) 2021-07-07 07:54:54 <-- [Kalisto] (~Nico@user/kalisto/x-8968079) has quit (Client Quit) 2021-07-07 07:55:42 --> noonien (~noonien@user/noonien) has joined ##rust 2021-07-07 07:55:51 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 07:56:33 --> [Kalisto] (~nico@user/kalisto/x-8968079) has joined ##rust 2021-07-07 07:57:16 <-- home (~home@user/home) has quit (Ping timeout: 272 seconds) 2021-07-07 08:06:11 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-07 08:10:59 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 08:11:07 --> home (~home@user/home) has joined ##rust 2021-07-07 08:11:50 <-- tglman (~tglman@92.40.177.203.threembb.co.uk) has quit (Ping timeout: 272 seconds) 2021-07-07 08:11:50 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Ping timeout: 252 seconds) 2021-07-07 08:12:10 <-- gggkmp (~textual@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-07 08:12:39 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 265 seconds) 2021-07-07 08:12:47 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-07-07 08:12:52 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-07 08:14:28 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 08:16:02 <-- home (~home@user/home) has quit (Ping timeout: 265 seconds) 2021-07-07 08:24:46 --> dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has joined ##rust 2021-07-07 08:27:16 --> home (~home@user/home) has joined ##rust 2021-07-07 08:32:06 <-- home (~home@user/home) has quit (Ping timeout: 272 seconds) 2021-07-07 08:32:40 <-- luna-is-here (~quassel@2a02:908:f761:2a3c::a) has quit (Quit: luna-is-here) 2021-07-07 08:34:07 --> luna-is-here (~quassel@2a02:908:f761:2a3c::a) has joined ##rust 2021-07-07 08:34:18 --> unyu (~pyon@user/pyon) has joined ##rust 2021-07-07 08:34:20 <-- janik (~janik@oidentd/developer/janik) has quit (Remote host closed the connection) 2021-07-07 08:34:40 --> janik (~janik@oidentd/developer/janik) has joined ##rust 2021-07-07 08:35:27 <-- unyu (~pyon@user/pyon) has left ##rust 2021-07-07 08:38:51 <-- kevr (~kevr@user/kevr) has quit (Quit: ZNC 1.7.5+deb4 - https://znc.in) 2021-07-07 08:40:14 --> kevr (~kevr@user/kevr) has joined ##rust 2021-07-07 08:42:36 j`ey someone on the forum says "community seem to believe that a = b can't trigger allocations", when can a = b allocate? 2021-07-07 08:42:38 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 252 seconds) 2021-07-07 08:43:18 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-07 08:43:34 jbg I think it can't? 2021-07-07 08:44:06 jbg technically they don't say the community's belief is false ;) 2021-07-07 08:44:15 --> home (~home@user/home) has joined ##rust 2021-07-07 08:44:16 j`ey heh 2021-07-07 08:44:54 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-07 08:45:03 jbg a = b is always a copy (bitwise by definition) or a move, innit? 2021-07-07 08:45:19 j`ey yeah.. so idk 2021-07-07 08:46:52 j`ey wait, a could be dropped 2021-07-07 08:47:02 j`ey which could allocate 2021-07-07 08:47:40 jbg aha 2021-07-07 08:47:49 bluss nice puzzle 2021-07-07 08:48:37 <-- home (~home@user/home) has quit (Ping timeout: 246 seconds) 2021-07-07 08:48:40 <-- dnaka91_ (~dnaka91@221x240x14x70.ap221.ftth.ucom.ne.jp) has quit (Quit: WeeChat 3.2) 2021-07-07 08:48:53 timemage kind of reminds me of https://xkcd.com/559/ 2021-07-07 08:49:35 j`ey hehe 2021-07-07 08:50:24 bluss I'd still want to ask what phaylon was thinking of 2021-07-07 08:51:25 j`ey bluss: you have an account, i dont :P 2021-07-07 08:51:42 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-07-07 08:54:02 bluss I'm outed. I'll write the question. 2021-07-07 08:54:15 bluss In a new topic, as discord intended 2021-07-07 08:54:29 j`ey *discourse 2021-07-07 08:54:47 bluss yeah.. 2021-07-07 08:55:15 --> zeden (~zeden@user/zeden) has joined ##rust 2021-07-07 08:55:25 bluss I recently came back to irc, too. Never got the hang of discord. 2021-07-07 08:55:37 j`ey bluss: I'm happy to see you back 2021-07-07 08:55:47 j`ey I think you were gone for at least 2 years? 2021-07-07 08:56:05 bluss or more. It was never the same to me after Rust moved the community to discord 2021-07-07 08:56:22 j`ey on irc we still kept on :) 2021-07-07 08:56:27 --> home (~home@user/home) has joined ##rust 2021-07-07 08:57:49 j`ey talchas was another that i think moved to discord from irc 2021-07-07 08:58:51 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 08:59:21 --> gggkmp_ (~textual@221.219.78.53) has joined ##rust 2021-07-07 08:59:30 bluss my "main" rust interest is ndarray I guess, and we use #rust-sci:matrix.org, on matrix. But there's a bridge #rust-sci on oftc (which sometimes doesn't work). 2021-07-07 08:59:43 --> scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has joined ##rust 2021-07-07 09:00:13 j`ey bluss: are you working with rust? 2021-07-07 09:00:26 bluss in my job, no, not so far 2021-07-07 09:01:08 j`ey shame 2021-07-07 09:01:26 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-07 09:01:52 <-- gggkmp (~textual@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 09:02:07 --> gggkmp (~textual@60.10.194.47) has joined ##rust 2021-07-07 09:03:18 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-07 09:04:17 <-- |7| (~seachdamh@user/seachdamh) has quit (Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/) 2021-07-07 09:04:38 <-- gggkmp_ (~textual@221.219.78.53) has quit (Ping timeout: 252 seconds) 2021-07-07 09:06:32 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 09:11:12 --> gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has joined ##rust 2021-07-07 09:13:00 bluss j`ey: I guess there is a non-obvious distinction between let a = b1; a = b and let a = b1; let a = b; since the latter does not cause the old value to drop (in itself) - shadowing doesn't do such a thing 2021-07-07 09:13:59 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-07 09:14:22 --> home (~home@user/home) has joined ##rust 2021-07-07 09:16:58 <-- genieliu_ (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-07 09:17:30 --> tmpm697 (~tmpm697@171.241.136.44) has joined ##rust 2021-07-07 09:18:06 <-- mefistofeles (~mefistofe@user/mefistofeles) has quit (Ping timeout: 252 seconds) 2021-07-07 09:18:56 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 09:21:30 --> re101-bombay-7 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has joined ##rust 2021-07-07 09:28:52 <-- re101-bombay-7 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has quit (Quit: Client closed) 2021-07-07 09:28:56 --> dcz (~dcz@dynamic-093-132-022-145.93.132.pool.telefonica.de) has joined ##rust 2021-07-07 09:29:42 --> gwizon (~gwizon@23.81.207.94) has joined ##rust 2021-07-07 09:30:49 <-- gwizon (~gwizon@23.81.207.94) has left ##rust 2021-07-07 09:30:53 --> gwizon (~gwizon@23.81.207.94) has joined ##rust 2021-07-07 09:32:13 --> home (~home@user/home) has joined ##rust 2021-07-07 09:36:54 <-- home (~home@user/home) has quit (Ping timeout: 268 seconds) 2021-07-07 09:37:14 --> paule (~paule@ppp-93-104-185-84.dynamic.mnet-online.de) has joined ##rust 2021-07-07 09:37:40 --> home (~home@user/home) has joined ##rust 2021-07-07 09:38:53 <-- paule (~paule@ppp-93-104-185-84.dynamic.mnet-online.de) has quit (Remote host closed the connection) 2021-07-07 09:40:38 --> paule (~paule@ppp-93-104-185-84.dynamic.mnet-online.de) has joined ##rust 2021-07-07 09:42:24 <-- home (~home@user/home) has quit (Ping timeout: 272 seconds) 2021-07-07 09:48:29 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 09:49:12 --> isekaijin (~pyon@user/pyon) has joined ##rust 2021-07-07 09:52:58 <-- gggkmp (~textual@60.10.194.47) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 09:53:40 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 265 seconds) 2021-07-07 09:56:10 --> home (~home@user/home) has joined ##rust 2021-07-07 09:57:25 --> gggkmp (~gggkmp@60.10.23.164) has joined ##rust 2021-07-07 10:02:29 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 10:05:14 <-- stormogulen (~user@h213-142-25-46.cust.a3fiber.se) has quit (Ping timeout: 252 seconds) 2021-07-07 10:06:22 --> gggkmp_ (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 10:06:29 <-- Danishman (~Allan@2-104-144-110-cable.dk.customer.tdc.net) has quit (Quit: Leaving) 2021-07-07 10:06:48 --> home (~home@user/home) has joined ##rust 2021-07-07 10:07:01 <-- Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has quit (Ping timeout: 246 seconds) 2021-07-07 10:07:53 <-- gwizon (~gwizon@23.81.207.94) has quit (Ping timeout: 252 seconds) 2021-07-07 10:08:59 <-- gggkmp (~gggkmp@60.10.23.164) has quit (Ping timeout: 268 seconds) 2021-07-07 10:09:57 --> gwizon (~gwizon@23.81.207.94) has joined ##rust 2021-07-07 10:09:58 <-- frost (~frost@59.71.241.179) has quit (Quit: Connection closed) 2021-07-07 10:10:58 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 10:12:10 <-- imm_ (~imm_@user/imm/x-3405860) has quit (Ping timeout: 272 seconds) 2021-07-07 10:12:49 --> imm_ (~imm_@user/imm/x-3405860) has joined ##rust 2021-07-07 10:17:34 --> Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 10:17:55 <-- tmpm697 (~tmpm697@171.241.136.44) has quit (Quit: Lost terminal) 2021-07-07 10:18:56 <-- Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Client Quit) 2021-07-07 10:21:20 --> tmpm697 (~tmpm697@171.241.136.44) has joined ##rust 2021-07-07 10:23:36 --> home (~home@user/home) has joined ##rust 2021-07-07 10:26:23 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 10:28:43 <-- home (~home@user/home) has quit (Ping timeout: 268 seconds) 2021-07-07 10:31:48 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 10:32:57 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 258 seconds) 2021-07-07 10:34:50 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-07 10:35:10 --> dogood (~roger_dog@174.127.241.77) has joined ##rust 2021-07-07 10:36:37 --> mefistofeles (~mefistofe@user/mefistofeles) has joined ##rust 2021-07-07 10:39:13 --> amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has joined ##rust 2021-07-07 10:39:21 --> home (~home@user/home) has joined ##rust 2021-07-07 10:39:28 <-- dogood (~roger_dog@174.127.241.77) has quit (Ping timeout: 258 seconds) 2021-07-07 10:44:28 <-- home (~home@user/home) has quit (Ping timeout: 272 seconds) 2021-07-07 10:54:59 --> gggkmp (~gggkmp@114.245.111.21) has joined ##rust 2021-07-07 10:55:01 --> gggpkm (~gggpkm@60.10.23.164) has joined ##rust 2021-07-07 10:55:11 --> home (~home@user/home) has joined ##rust 2021-07-07 10:55:14 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 10:55:49 <-- mreznik (~mreznik@195.91.12.90) has quit (Quit: Leaving) 2021-07-07 10:56:30 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 10:56:44 <-- gggkmp_ (~gggkmp@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-07 11:09:22 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 11:09:33 <-- sapzk (~sapzk@user/sapzk) has quit (Ping timeout: 265 seconds) 2021-07-07 11:10:31 <-- vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has quit (Ping timeout: 265 seconds) 2021-07-07 11:11:50 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Remote host closed the connection) 2021-07-07 11:12:30 <-- gggpkm (~gggpkm@60.10.23.164) has quit (Ping timeout: 268 seconds) 2021-07-07 11:13:01 --> vmeson (~rmacleod@198-48-226-187.cpe.pppoe.ca) has joined ##rust 2021-07-07 11:15:20 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-07 11:17:32 --> tahlwyn[m] (~tahlwynma@2001:470:69fc:105::b8db) has joined ##rust 2021-07-07 11:17:55 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-07 11:23:25 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Read error: Connection reset by peer) 2021-07-07 11:24:07 --> gggpkm (~gggpkm@221.219.64.188) has joined ##rust 2021-07-07 11:26:33 --> jaafarrc (~jaafarrc@31.214.117.163) has joined ##rust 2021-07-07 11:27:42 jaafarrc I have a packaged called "foo-rs" that should produce a binary called "foo". How do I tell Cargo to compile the binary as "foo" instead of "foos-rs"? 2021-07-07 11:27:57 jaafarrc (In Cargo.toml, that is.) 2021-07-07 11:28:58 <-- tims (~tims@220.240.106.233) has quit (Ping timeout: 240 seconds) 2021-07-07 11:30:20 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 265 seconds) 2021-07-07 11:31:25 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 11:31:31 j`ey [[bin]]\nname = "foo"\npath = "src/main.rs" 2021-07-07 11:31:58 jaafarrc Thanks. 2021-07-07 11:32:29 <-- sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has quit (Read error: Permission denied) 2021-07-07 11:32:35 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 252 seconds) 2021-07-07 11:32:46 --> sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has joined ##rust 2021-07-07 11:33:55 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-07 11:35:04 --> Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has joined ##rust 2021-07-07 11:35:55 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 11:39:21 <-- tmpm697 (~tmpm697@171.241.136.44) has quit (Remote host closed the connection) 2021-07-07 11:39:59 <-- saschagrunert (~saschagru@46.128.124.113) has quit (Remote host closed the connection) 2021-07-07 11:40:34 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 11:40:42 --> tmpm697 (~tmpm697@171.241.136.44) has joined ##rust 2021-07-07 11:40:55 <-- jaafarrc (~jaafarrc@31.214.117.163) has quit (Quit: Quit) 2021-07-07 11:41:50 <-- darkapex (uid360049@user/darkapex) has quit 2021-07-07 11:41:56 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 265 seconds) 2021-07-07 11:45:24 --> darkapex (~darkapex@user/darkapex) has joined ##rust 2021-07-07 11:45:54 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-07 11:48:32 <-- sklv (~sklv@gateway/tor-sasl/sklv) has quit (Ping timeout: 244 seconds) 2021-07-07 11:49:01 talin hello. i made a telnet client a while back that can connect to a remote host and then it can process user input and send that to the remote host. i used a TcpStream and a non-blocking socket and a separate thread that handles user input for this... the timeout on the network socket is very low, so it's basically like a busy-wait with a low timeout that is constantly checking a socket for new data. is there a 2021-07-07 11:49:07 talin way to wait for the OS to signal that there is new data to fetch? 2021-07-07 11:49:41 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 11:50:18 <-- dmgk (~dmgk@user/dmgk) has left ##rust 2021-07-07 11:51:11 saatii select/poll/io_uring or some async framework built on those? 2021-07-07 11:54:10 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-07 11:56:08 --> sklv (~sklv@gateway/tor-sasl/sklv) has joined ##rust 2021-07-07 11:58:00 --> re101-bombay-4 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has joined ##rust 2021-07-07 11:58:50 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 11:59:18 <-- Guest50 (~textual@ool-43527ebe.dyn.optonline.net) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 12:02:02 --> dark-knight-1 (~dark-knig@2a02:8388:1984:a800:7c30:f6a4:a72a:3464) has joined ##rust 2021-07-07 12:03:28 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 12:07:46 <-- anon16_ (~anon16@37.236.110.30) has quit (Quit: WeeChat 3.0) 2021-07-07 12:07:56 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:08:13 --> anon16_ (~anon16@37.236.110.30) has joined ##rust 2021-07-07 12:08:46 <-- anon16_ (~anon16@37.236.110.30) has quit (Client Quit) 2021-07-07 12:08:53 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 252 seconds) 2021-07-07 12:09:02 --> anon16 (~anon16@37.236.110.30) has joined ##rust 2021-07-07 12:11:00 talin saatii: i will look into those and see if they can help 2021-07-07 12:11:47 <-- adrianheine (~adrian@2001:16b8:c108:96fc::f9c) has quit (Read error: Connection reset by peer) 2021-07-07 12:12:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 12:12:48 --> sapzk (~sapzk@user/sapzk) has joined ##rust 2021-07-07 12:13:48 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-07 12:14:19 --> adrianheine (~adrian@2001:16b8:c108:96fc::f9c) has joined ##rust 2021-07-07 12:16:32 <-- ubert (~Thunderbi@2a02:8109:9880:303c:ca5b:76ff:fe29:f233) has quit (Remote host closed the connection) 2021-07-07 12:17:02 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:17:03 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-07 12:17:16 --> arinov (~arinov@213.194.126.155) has joined ##rust 2021-07-07 12:17:53 <-- re101-bombay-4 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has quit (Quit: Client closed) 2021-07-07 12:18:49 <-- isekaijin (~pyon@user/pyon) has quit (Quit: WeeChat 3.2) 2021-07-07 12:21:39 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 12:26:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:27:38 --> hnOsmium0001 (uid453710@id-453710.stonehaven.irccloud.com) has joined ##rust 2021-07-07 12:28:13 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 12:29:53 <-- arinov (~arinov@213.194.126.155) has quit (Ping timeout: 252 seconds) 2021-07-07 12:31:01 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-07 12:31:39 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-07 12:32:08 kee Is there a crate that computes the Gaussian function? I'm trying to do FFT stuff. 2021-07-07 12:32:58 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 246 seconds) 2021-07-07 12:33:08 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 12:35:20 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:35:23 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 12:36:26 --> SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:dd66:5596:463d:96de) has joined ##rust 2021-07-07 12:37:51 --> jhulten (~jhulten@c-67-185-71-124.hsd1.wa.comcast.net) has joined ##rust 2021-07-07 12:38:10 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-07-07 12:39:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-07 12:44:29 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:45:27 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Remote host closed the connection) 2021-07-07 12:46:00 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-07 12:49:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 12:53:16 dav1d does std have a lookup_addr for reverse dns? I am finding a few issues that it used to exist, but not what it was replaced with or if it is gone for good 2021-07-07 12:53:38 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 12:53:57 --> SiegeLord (~sl@user/siegelord) has joined ##rust 2021-07-07 12:54:53 dav1d merged here: https://github.com/rust-lang/rust/pull/23419/files - but doesn't exist? 2021-07-07 12:54:58 --> bowlofeggs (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-07 12:56:35 trev there's no way to match on a const array right? 2021-07-07 12:57:32 nox What do you mean? 2021-07-07 12:57:42 nox Like, a const array as a pattern? 2021-07-07 12:58:02 trev yeah 2021-07-07 12:58:25 trev match buffer { CONST_ARRAY => {..} } 2021-07-07 12:58:44 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-07 12:58:47 nox AFAIR you can do that, just like with any other constant 2021-07-07 12:59:01 <-- sord937 (~sord937@gateway/tor-sasl/sord937) has quit (Quit: sord937) 2021-07-07 12:59:09 nox E.g. you can use associated constants as patterns 2021-07-07 13:00:26 trev i must be doing something wrong then. back to the drawing board 2021-07-07 13:02:16 trev maybe it's cause i'm matching on &[u8] but the const is [u8;3] 2021-07-07 13:02:44 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:03:51 kee trev: That should work. If not, try `x if x == CONST_ARRAY` (ugly, but usually works, or gives a better error message). 2021-07-07 13:03:56 trev i guess i can do the binding if 2021-07-07 13:04:01 trev kee yeah exactly 2021-07-07 13:07:16 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 13:10:01 <-- dark-knight-1 (~dark-knig@2a02:8388:1984:a800:7c30:f6a4:a72a:3464) has quit (Read error: Connection reset by peer) 2021-07-07 13:10:01 <-- dark-knight (~dark-knig@2a02:8388:1984:a800:7c30:f6a4:a72a:3464) has quit (Read error: Connection reset by peer) 2021-07-07 13:11:52 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:16:22 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 13:16:50 --> Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has joined ##rust 2021-07-07 13:18:53 Yruama hi, i'm translating some code using lookup table, is there a type better than array to avoid bound checking penalty ? 2021-07-07 13:21:00 j`ey you can write a wrapper that avoids bounds checking 2021-07-07 13:21:01 <-- fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has quit (Ping timeout: 265 seconds) 2021-07-07 13:21:05 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:21:10 j`ey (or just use the unsafe methods directly) 2021-07-07 13:23:34 Yruama a wrapper that use unsafe method internally ? 2021-07-07 13:23:41 j`ey yeah 2021-07-07 13:24:01 j`ey i wish there was a version that checked in debug but not release 2021-07-07 13:24:31 Yruama this is the first way ot come in my mine but i wandered if there was a way not involving unsafe code 2021-07-07 13:25:20 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-07-07 13:25:50 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-07 13:26:11 j`ey reading off the end of an array is UB, so no 2021-07-07 13:26:33 GreenJello you could make a struct Unchecked([T; 256]) and have methods take a u8 for the index and do unchecked access 2021-07-07 13:27:07 j`ey still needs unsafe 2021-07-07 13:27:33 j`ey Yruama: I would also just use an array until you can check if the performance is hindered by the bounds checks 2021-07-07 13:27:33 GreenJello yeah, but trivial to get right 2021-07-07 13:29:44 j`ey https://docs.rs/unchecked-index/0.2.2/unchecked_index/ 2021-07-07 13:30:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:30:42 Yruama j`ey i think bound checking have influence, because it's DSP and if i understood correctly these lookup table are used to aproximate some calculation throught polynomial interpolation 2021-07-07 13:31:25 j`ey Yruama: yeah, but I would still suggest you just use an array first 2021-07-07 13:31:43 j`ey get it working, then you can look at using some unchecked indexing 2021-07-07 13:32:20 Yruama J`ey yeah array first to see if it work, but think i will quickly remove the bound checking 2021-07-07 13:32:41 <-- kron (~weechat@user/qaph) has quit (Quit: kron) 2021-07-07 13:34:58 Yruama but i'm not a it yet, i wandered this question because i'm currently replacing an arry of 2 value by tuble because bound checking 2021-07-07 13:35:28 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-07 13:35:46 j`ey that doesnt sound right 2021-07-07 13:35:58 j`ey if you use a tuple, you statically know the indices 2021-07-07 13:36:19 j`ey so the compiler should be able to remove the bounds checking on an array too 2021-07-07 13:37:42 <-- _42large (~user@37.120.197.42) has quit (Quit: Konversation terminated!) 2021-07-07 13:38:33 --> u0_a662 (~Bendi11@2601:648:8801:75a0:b142:6673:24aa:9116) has joined ##rust 2021-07-07 13:38:35 Yruama no, there is an index variable somewhere in the original code 2021-07-07 13:39:15 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:39:20 j`ey so youre doing: if index == 0 { a.0 } else { a.1 } ? 2021-07-07 13:39:33 Yruama exactly 2021-07-07 13:39:37 j`ey (You could do the same thing with an array!) 2021-07-07 13:39:56 Yruama oops 2021-07-07 13:40:33 <-- u0_a662 (~Bendi11@2601:648:8801:75a0:b142:6673:24aa:9116) has quit (Client Quit) 2021-07-07 13:40:36 Yruama but the arry don't have any advantage here anyway 2021-07-07 13:40:45 Yruama there is not iteration over it 2021-07-07 13:41:07 <-- gwizon (~gwizon@23.81.207.94) has quit (Ping timeout: 268 seconds) 2021-07-07 13:41:51 --> gwizon (~gwizon@23.81.207.94) has joined ##rust 2021-07-07 13:41:59 witcher how frequently are tuples generally used in rust programming? every time I use them I decide to just declare a new struct since it gives more context than an index 2021-07-07 13:42:30 Yruama i keep the array just to limits rewrite 2021-07-07 13:42:49 kee witcher: I use them whenever I have something that's logically a pair/etc. where the context is obvious. 2021-07-07 13:42:50 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-07 13:43:07 dav1d Yruama, almost sounds like you could use an enum 2021-07-07 13:43:18 witcher kee, that makes sense true. haven't stumbled upon that use case yet 2021-07-07 13:43:18 Yruama lol, i the context, i don't understand the calculation :/ 2021-07-07 13:43:35 <-- darkapex (~darkapex@user/darkapex) has quit (Ping timeout: 252 seconds) 2021-07-07 13:43:38 kee witcher: Vec<(&'a str, usize)> might seem familiar, too. 2021-07-07 13:43:40 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 13:43:55 witcher kee, i'm pretty new to rust, what's that usually used for? 2021-07-07 13:43:57 kee But it's usually return values, apart from that. 2021-07-07 13:44:01 <-- sgift (~madison@2001:a61:35b8:2401:3d0b:82b8:ae23:52a1) has quit (Ping timeout: 246 seconds) 2021-07-07 13:44:39 kee witcher: If you need to store a list of names and values (e.g. high score table, though you'd probably use u64 or something instead of usize for that), you might represent it that way. 2021-07-07 13:44:45 j`ey Yruama: you could also do: array[index & 1] 2021-07-07 13:45:04 GreenJello iter.enumerate() is a common example, where it turns an iterator of T to an iterator of (usize, T), i.e. the index and value 2021-07-07 13:45:12 j`ey https://godbolt.org/z/cdanWvj74 that gets optimise Yruama 2021-07-07 13:45:26 GreenJello or iterating over a HashMap where you get the key and value in a tuple 2021-07-07 13:45:37 kee witcher: And also iter.size_hint(), which returns (usize, Option). 2021-07-07 13:45:41 witcher kee, hm usually i'd use a HashMap for that 2021-07-07 13:46:00 GreenJello they're also pretty useful for generic code where having structural types can be useful 2021-07-07 13:46:09 kee witcher: If you want to store the scores for each name, yes, but if you just want a list of names-and-scores, no. 2021-07-07 13:47:33 witcher kee, makes sense 2021-07-07 13:48:13 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 246 seconds) 2021-07-07 13:48:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:48:34 <-- WinterStar (~IceLight@user/icelight) has quit (Ping timeout: 265 seconds) 2021-07-07 13:48:56 witcher GreenJello, i'm realizing i haven't used enough methods of the standard library to see it's used sometimes :v) 2021-07-07 13:49:34 Yruama thank j`ey, but replacing idx by a boolean make it more clear, and produce almost the same code 2021-07-07 13:49:47 j`ey Yruama: sure 2021-07-07 13:49:54 Yruama https://godbolt.org/z/sM3cv77zG 2021-07-07 13:50:09 --> WinterStar (~IceLight@user/icelight) has joined ##rust 2021-07-07 13:50:44 Yruama j`ey, but thank for godbolt, i forgot i could use this for optimization 2021-07-07 13:51:56 nemo speaking of godbolt only tangentially related to rust, but the following was linked off a comparison of language memory models that was on HN the other day. I thought it was pretty O_o 2021-07-07 13:52:00 nemo https://nitter.1d4.us/andywingo/status/903577501745770496 2021-07-07 13:52:28 --> Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has joined ##rust 2021-07-07 13:52:52 nemo was off of https://research.swtch.com/plmm which, while bringing up rust, didn't really discuss it much. 2021-07-07 13:53:06 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 13:54:24 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Remote host closed the connection) 2021-07-07 13:54:49 Tacklebox Is there a clean way to call a function `(u32) -> Option` with an option for the parameter and have it skip the function if it's None? 2021-07-07 13:55:46 j`ey Tacklebox: https://doc.rust-lang.org/std/option/enum.Option.html#method.and_then 2021-07-07 13:55:47 witcher Tacklebox, maybe `and_then`? 2021-07-07 13:56:10 Yruama j`ey, i tryed a version with tuple, the function don't even appear in the assembly 0_o 2021-07-07 13:56:12 Yruama https://godbolt.org/z/G8W666qGj 2021-07-07 13:56:18 j`ey Yruama: make it pub 2021-07-07 13:56:25 j`ey Yruama: ok 2021-07-07 13:56:35 j`ey Yruama: it's the same assembly as another function, *exactly* 2021-07-07 13:56:38 j`ey so it doesnt show up 2021-07-07 13:57:32 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 13:58:05 Yruama ok, thank, i didn't that function with same assembly wasn't showed 2021-07-07 13:58:07 Tacklebox Looks like what I was thinking of, thanks peeps 2021-07-07 13:58:44 j`ey Yruama: well it's not that it isn't showed, it's just that in the binary it basically says 'these 2 symbols are this same function' 2021-07-07 14:00:08 Yruama j`ey so something is visible in the asembly code ? 2021-07-07 14:00:23 nemo "Rust 1.0.0 in 2015 and Swift 5.3 in 2020 both adopted the C/C++ memory model in its entirety, with DRF-SC or Catch Fire" "None of the languages have found a way to formally disallow paradoxes like out-of-thin-air values, but all informally disallow them." 2021-07-07 14:00:36 nemo well I guess that was the sum total of his Rust coverage. I suppose nothing more was really needed. 2021-07-07 14:00:50 j`ey Yruama: line 304 https://godbolt.org/z/KvYhd5n3h 2021-07-07 14:02:11 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 14:05:43 <-- Tacklebox (~mborden@node-1w7jr9sqdtktscvq9h9jwf6lv.ipv6.telus.net) has quit (Ping timeout: 246 seconds) 2021-07-07 14:06:07 --> Tacklebox (~mborden@d75-155-182-170.bchsia.telus.net) has joined ##rust 2021-07-07 14:06:46 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 14:08:03 <-- tmpm697 (~tmpm697@171.241.136.44) has quit (Quit: Lost terminal) 2021-07-07 14:10:34 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-07 14:10:50 <-- anon16 (~anon16@37.236.110.30) has quit (Changing host) 2021-07-07 14:10:51 --> anon16 (~anon16@user/anon16) has joined ##rust 2021-07-07 14:11:27 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 258 seconds) 2021-07-07 14:13:11 <-- Unleashed (~unleashed@redhat/Unleashed) has quit (Quit: Leaving) 2021-07-07 14:14:28 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 246 seconds) 2021-07-07 14:16:14 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 14:16:42 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 14:17:23 Yruama lol, finally, i will use you & 1, it actually generate less assembly than boolean test on x86 2021-07-07 14:18:10 j`ey and on aarch64 2021-07-07 14:18:19 --> lz0 (~lz0@h-158-174-153-185.A1545.priv.bahnhof.se) has joined ##rust 2021-07-07 14:18:19 <-- lz0 (~lz0@h-158-174-153-185.A1545.priv.bahnhof.se) has quit (Changing host) 2021-07-07 14:18:19 --> lz0 (~lz0@user/lz0) has joined ##rust 2021-07-07 14:21:12 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-07 14:23:48 --> jemershaw[m] (~jemershaw@2001:470:69fc:105::b904) has joined ##rust 2021-07-07 14:23:59 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 14:27:01 Yruama j`ey on arch i had same number of assembly instruction (one line = one instruction ,isn't it ?) 2021-07-07 14:29:06 --> genieliu (~genieliu@103.37.140.39) has joined ##rust 2021-07-07 14:29:13 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 268 seconds) 2021-07-07 14:29:42 j`ey Yruama: it was 1 instruction less 2021-07-07 14:30:33 --> tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has joined ##rust 2021-07-07 14:30:57 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 14:32:20 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 252 seconds) 2021-07-07 14:34:32 <-- genieliu (~genieliu@103.37.140.39) has quit (Ping timeout: 252 seconds) 2021-07-07 14:46:05 georgemp if i have developed a `lib A` which depends on `lib B` which has 2 fns `fn b1()` and `fn b2()`. Lib A only use B.b1(). If i compile A into a static lib, I assume it's only going to contain the code for B.b1() and not B.b2()? If I want my consuming app to use B.b2(), I'd have to link statically or dynamically to lib B separately? When linking separtely, would I have duplicate defns of B.b1()? 2021-07-07 14:46:13 --> ntdll (~ntdll@user/ntdll) has joined ##rust 2021-07-07 14:46:58 Yruama lol, no way to have same number of instruction as get_unchecked 2021-07-07 14:54:00 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 272 seconds) 2021-07-07 14:54:01 <-- sklv (~sklv@gateway/tor-sasl/sklv) has quit (Remote host closed the connection) 2021-07-07 14:54:25 --> sklv (~sklv@gateway/tor-sasl/sklv) has joined ##rust 2021-07-07 14:57:46 <-- Cymew (~ante@c-e989225c.023-1144-7570702.bbcust.telenor.se) has quit (Ping timeout: 240 seconds) 2021-07-07 14:58:03 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:02:03 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 15:02:45 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Remote host closed the connection) 2021-07-07 15:03:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-07 15:03:16 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 15:03:30 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:04:10 <-- gggpkm (~gggpkm@221.219.64.188) has quit (Ping timeout: 246 seconds) 2021-07-07 15:06:35 --> darkstalker (~wolfie@186.148.12.159) has joined ##rust 2021-07-07 15:07:03 --> ssbr (~ssbr@python/site-packages/ssbr) has joined ##rust 2021-07-07 15:08:20 --> unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has joined ##rust 2021-07-07 15:08:50 dcz how to format a rational number into a decimal representation? 2021-07-07 15:10:11 danieldg rational number libraries should have this as an option 2021-07-07 15:10:12 --> neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has joined ##rust 2021-07-07 15:10:28 danieldg if you want an approximation, just convert to f64 2021-07-07 15:11:54 dcz I'm trying to find this in num_rational and failing 2021-07-07 15:15:12 dcz time to copy someone's hack :| weird not to have conversion in a prominent place in the docs 2021-07-07 15:16:32 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 15:16:48 <-- anon16 (~anon16@user/anon16) has quit (Ping timeout: 272 seconds) 2021-07-07 15:17:46 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-07 15:18:13 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 15:19:05 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-07-07 15:19:09 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-07 15:19:45 --> anon16 (~anon16@user/anon16) has joined ##rust 2021-07-07 15:19:50 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-07-07 15:19:59 <-- anon16 (~anon16@user/anon16) has quit (Client Quit) 2021-07-07 15:20:14 --> anon16 (~anon16@user/anon16) has joined ##rust 2021-07-07 15:20:20 --> Elzington (~Elzington@static-198-54-128-100.cust.tzulo.com) has joined ##rust 2021-07-07 15:20:38 -- Gustavo6046_ is now known as Gustavo6046 2021-07-07 15:21:06 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 252 seconds) 2021-07-07 15:23:08 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 15:25:01 <-- penguino (~mrpenguin@user/mrpenguin) has quit (Ping timeout: 244 seconds) 2021-07-07 15:26:45 --> kupi (uid212005@id-212005.stonehaven.irccloud.com) has joined ##rust 2021-07-07 15:26:59 kupi hi, how to make this not require copy? https://gist.github.com/theqp/af46dcffa3da98f944f6abc80e293c20 2021-07-07 15:27:34 j`ey kupi: it has to require COpy or CLone 2021-07-07 15:27:35 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:27:49 j`ey or return &V not V 2021-07-07 15:29:24 --> Gustavo6046_ (~Gustavo60@user/gustavo6046) has joined ##rust 2021-07-07 15:30:10 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 240 seconds) 2021-07-07 15:31:25 -- Gustavo6046_ is now known as Gustavo6046 2021-07-07 15:32:29 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 15:33:08 dcz in what situations can I expect a fmt::Error? it looks like a unit struct, not much clue 2021-07-07 15:36:43 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:37:54 kupi I guess a lifetime parameter is needed? https://gist.github.com/theqp/a1d03265688a3f49d7c05aed9b64a856 2021-07-07 15:38:25 GreenJello dcz, I don't think you ever get one from std, but another crate could impl std::fmt::Write 2021-07-07 15:39:07 GreenJello oh right, a Display or Debug impl can return the Error 2021-07-07 15:39:16 j`ey kupi: &self.value instead 2021-07-07 15:39:27 dcz can it come from problems with the destination rather than the data? 2021-07-07 15:39:37 j`ey kupi: and change the Option back to not <&V> 2021-07-07 15:40:09 GreenJello dcz, yes, but you should probably be using io::Write if that's possible 2021-07-07 15:40:58 dcz fair point. Maybe I shouldn't be investing in something that's already a hack 2021-07-07 15:41:17 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 15:41:30 kupi j`ey: i can't assign to a borrowed value 2021-07-07 15:41:58 kupi > assignment to borrowed `self.value` occurs here 2021-07-07 15:42:10 j`ey kupi: paste the current code 2021-07-07 15:42:31 kupi https://gist.github.com/theqp/888ff96ec46c05332ac0a10ebc0ec503 2021-07-07 15:42:45 j`ey kupi: &self.value 2021-07-07 15:42:51 j`ey on line 26 2021-07-07 15:43:21 j`ey oh hm 2021-07-07 15:43:55 j`ey ok yeah, it's cos of the match 2021-07-07 15:44:59 j`ey fixed https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e26d71d6a07a1988d9c3bb147fb6d1d7 2021-07-07 15:46:00 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:46:14 kupi j`ey: is it possible without unwrap? 2021-07-07 15:47:51 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-07-07 15:48:15 ec How do I impl To/From for foreign types? 2021-07-07 15:50:32 GreenJello ec, one of the types has to be defined by the current crate 2021-07-07 15:50:35 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 256 seconds) 2021-07-07 15:50:52 GreenJello in which case it should work as long as it doesn't conflict with another impl 2021-07-07 15:51:38 <-- tstruk (~tstruk@50.39.160.154) has quit (Ping timeout: 252 seconds) 2021-07-07 15:53:01 ec I might be XY'ing, I just want U256 -> [u8] to be big-endian just calling into() 2021-07-07 15:53:32 <-- Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has quit (Ping timeout: 272 seconds) 2021-07-07 15:54:38 GreenJello not possible with Into/From, but you could implement your own trait for converting things to big endian byte arrays 2021-07-07 15:54:52 GreenJello and impl it for arbitrary types 2021-07-07 15:55:01 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 15:55:49 danieldg you can also wrap it in a locally defined struct if you relly need Into 2021-07-07 15:56:22 ec Yeah have a bunch of options just looking for the most idiomatic/less boilerplate approach 2021-07-07 15:56:36 ec Think own trait is the way to go 2021-07-07 15:56:41 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-07-07 15:59:28 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 15:59:58 --> est31 (~est31@user/est31) has joined ##rust 2021-07-07 16:00:58 <-- trev (~trev@user/trev) has quit (Quit: trev) 2021-07-07 16:03:32 --> tstruk (~tstruk@176.67.86.153) has joined ##rust 2021-07-07 16:03:49 j`ey kupi: why do you want to avoid unwrap? 2021-07-07 16:04:10 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 16:04:34 kupi j`ey: because the compiler knows we have a value in both cases 2021-07-07 16:05:27 j`ey unfortunately the type system doesnt work like that 2021-07-07 16:06:02 <-- mmfood (~mmfood@45.91.21.58) has quit (Ping timeout: 252 seconds) 2021-07-07 16:07:13 j`ey hm actually: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=9c559a340e918b24460d24aaf9c8c306 2021-07-07 16:08:34 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 240 seconds) 2021-07-07 16:08:43 <-- ec (~ec@gateway/tor-sasl/ec) has quit (Remote host closed the connection) 2021-07-07 16:09:09 --> ec (~ec@gateway/tor-sasl/ec) has joined ##rust 2021-07-07 16:09:22 <-- tstruk (~tstruk@176.67.86.153) has quit (Ping timeout: 272 seconds) 2021-07-07 16:10:00 --> mmfood (~mmfood@45.91.21.31) has joined ##rust 2021-07-07 16:10:22 j`ey kupi: ^ 2021-07-07 16:10:35 kupi thanks a lot 2021-07-07 16:12:25 <-- est31 (~est31@user/est31) has quit (Remote host closed the connection) 2021-07-07 16:12:41 --> est31 (~est31@user/est31) has joined ##rust 2021-07-07 16:13:16 raekye Hi, I have some code that looks like this (simplified) https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=203170e3b4b142a3199887180a00cd65 2021-07-07 16:13:18 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 16:14:00 raekye Roughly, I borrow something in one branch and return it, and in the other branch I do something else with it and return it 2021-07-07 16:14:57 raekye It seems like it should be ok because in the second branch, the first borrow is nolonger used 2021-07-07 16:15:39 <-- totenkoph (~scythe@gateway/tor-sasl/totenkoph) has quit (Ping timeout: 244 seconds) 2021-07-07 16:15:43 raekye I've tried rewriting it a few ways and I guess the borrow checker just can't deal with it. But I'm wondering what's the best alternative for the pattern in the gist? 2021-07-07 16:15:46 danieldg yep, it should be ok, but the compiler rejects it anyway 2021-07-07 16:16:36 raekye Roughly, I have one function bar which has a bunch of match cases, and another function baz which is a superset of bar's cases, so rather than copy pasting the cases from bar to baz, I want to just call bar in baz 2021-07-07 16:17:05 danieldg you can call the function in the _ case 2021-07-07 16:17:27 raekye ah smart 2021-07-07 16:17:30 raekye thanks! 2021-07-07 16:18:01 <-- cehteh (~ct@mue-88-130-67-127.dsl.tropolys.de) has quit (Ping timeout: 246 seconds) 2021-07-07 16:18:02 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 252 seconds) 2021-07-07 16:18:26 GreenJello a general alternative is to return the mutable reference back in an Err https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=c05a9df5c87158dd8f06ad1d24bbf913 2021-07-07 16:18:47 <-- JanC (~janc@user/janc) has quit (Read error: Connection reset by peer) 2021-07-07 16:19:01 --> JanC (~janc@user/janc) has joined ##rust 2021-07-07 16:19:18 GreenJello (of course you would use match, but wanted to change the code minimally) 2021-07-07 16:20:08 <-- Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has quit (Ping timeout: 252 seconds) 2021-07-07 16:20:11 raekye ah interesting 2021-07-07 16:21:27 <-- sapzk (~sapzk@user/sapzk) has quit (Ping timeout: 252 seconds) 2021-07-07 16:22:26 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 16:23:05 <-- gwizon (~gwizon@23.81.207.94) has quit (Remote host closed the connection) 2021-07-07 16:23:53 --> tstruk (~tstruk@176.67.86.155) has joined ##rust 2021-07-07 16:24:18 --> darkapex (~darkapex@user/darkapex) has joined ##rust 2021-07-07 16:24:44 --> prg (~prg@xannode.com) has joined ##rust 2021-07-07 16:25:53 <-- darkapex (~darkapex@user/darkapex) has quit (Client Quit) 2021-07-07 16:26:46 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 246 seconds) 2021-07-07 16:28:10 <-- unlink2 (~unlink@p200300ebcf3ae50055b1550759e1ddc5.dip0.t-ipconnect.de) has quit (Ping timeout: 246 seconds) 2021-07-07 16:28:50 --> unlink2 (~unlink@p200300ebcf256c00b0a46696bea8ac50.dip0.t-ipconnect.de) has joined ##rust 2021-07-07 16:29:11 --> derek_v (~derek_v@cpe-70-95-160-136.san.res.rr.com) has joined ##rust 2021-07-07 16:30:33 --> add_alias-LUA (~add_alias@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has joined ##rust 2021-07-07 16:30:49 <-- luna-is-here (~quassel@2a02:908:f761:2a3c::a) has quit (Quit: luna-is-here) 2021-07-07 16:30:58 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 16:30:58 <-- jinsun (~quassel@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-07 16:32:00 --> comatory_ (~ondrejsyn@93.99.127.7) has joined ##rust 2021-07-07 16:32:47 --> luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has joined ##rust 2021-07-07 16:35:09 --> cehteh (~ct@mue-88-130-65-086.dsl.tropolys.de) has joined ##rust 2021-07-07 16:36:52 <-- comatory_ (~ondrejsyn@93.99.127.7) has quit (Ping timeout: 268 seconds) 2021-07-07 16:36:52 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 268 seconds) 2021-07-07 16:41:08 <-- gggkmp (~gggkmp@114.245.111.21) has quit (Ping timeout: 252 seconds) 2021-07-07 16:41:20 --> gggkmp (~gggkmp@60.10.23.164) has joined ##rust 2021-07-07 16:42:20 --> jaix (~jaix@user/jaix) has joined ##rust 2021-07-07 16:42:28 --> darkapex (~darkapex@user/darkapex) has joined ##rust 2021-07-07 16:45:13 --> TheAceOfHearts (~TheAceOfH@24.41.239.76) has joined ##rust 2021-07-07 16:46:44 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 16:47:14 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-07 16:48:21 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Read error: Connection reset by peer) 2021-07-07 16:48:42 --> jinsun_ (~jinsun_@user/jinsun) has joined ##rust 2021-07-07 16:48:59 <-- add_alias-LUA (~add_alias@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has quit (Quit: Client closed) 2021-07-07 16:49:54 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 16:55:06 <-- ThinkT510 (~auronanda@user/thinkt510) has quit (Quit: WeeChat 3.2) 2021-07-07 16:55:10 <-- hatz_ (~user@2a05:f480:1400:f44:5400:3ff:fe6d:f349) has left ##rust 2021-07-07 17:01:04 <-- dcz (~dcz@dynamic-093-132-022-145.93.132.pool.telefonica.de) has quit (Ping timeout: 246 seconds) 2021-07-07 17:02:04 --> ThinkT510 (~auronanda@user/thinkt510) has joined ##rust 2021-07-07 17:04:38 --> gggkmp_ (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 17:07:42 <-- gggkmp (~gggkmp@60.10.23.164) has quit (Ping timeout: 268 seconds) 2021-07-07 17:08:09 <-- scain (~scain@2603-8080-b104-4e00-45cf-678b-0a7f-b897.res6.spectrum.com) has quit (Quit: Konversation terminated!) 2021-07-07 17:08:59 --> gioyik (~gioyik@gateway/tor-sasl/gioyik) has joined ##rust 2021-07-07 17:09:19 --> Dizidentu (~aresg@modemcable076.164-19-135.mc.videotron.ca) has joined ##rust 2021-07-07 17:13:10 <-- Roughy (~mdaw45ns@user/roughy) has quit (Killed (NickServ (GHOST command used by Rougher!~mdaw45ns@ti0090a400-4483.bb.online.no))) 2021-07-07 17:13:17 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-07 17:13:41 <-- neceve (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) has quit (Ping timeout: 252 seconds) 2021-07-07 17:15:43 <-- jinsun_ (~jinsun_@user/jinsun) has quit (Ping timeout: 268 seconds) 2021-07-07 17:16:03 --> re101-bombay-30 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has joined ##rust 2021-07-07 17:19:51 --> jinsun (~quassel@user/jinsun) has joined ##rust 2021-07-07 17:24:52 --> explore (uid233125@id-233125.stonehaven.irccloud.com) has joined ##rust 2021-07-07 17:26:29 --> Celeo (~Celeo@user/celeo) has joined ##rust 2021-07-07 17:26:40 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 17:28:06 --> Erutuon (~Erutuon@user/erutuon) has joined ##rust 2021-07-07 17:29:22 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-07-07 17:30:14 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-07 17:34:24 <-- ntdll (~ntdll@user/ntdll) has quit (Quit: WeeChat 2.8) 2021-07-07 17:36:33 <-- Roughy (~mdaw45ns@user/roughy) has quit (Quit: Meadow Fresh milk) 2021-07-07 17:38:09 <-- anon16 (~anon16@user/anon16) has quit (Ping timeout: 265 seconds) 2021-07-07 17:38:40 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-07 17:39:42 --> anon16 (~anon16@user/anon16) has joined ##rust 2021-07-07 17:46:27 <-- jeho (~jehoshaph@user/jehoshaphat) has quit (Quit: Leaving) 2021-07-07 17:46:34 <-- amahl (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) has quit (Remote host closed the connection) 2021-07-07 17:46:47 <-- Roughy (~mdaw45ns@user/roughy) has quit (Read error: No route to host) 2021-07-07 17:46:49 <-- re101-bombay-30 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has quit (Ping timeout: 246 seconds) 2021-07-07 17:50:24 <-- gh34 (~textual@cpe-184-58-181-106.wi.res.rr.com) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 17:52:13 --> penguino (~mrpenguin@user/mrpenguin) has joined ##rust 2021-07-07 18:01:45 --> Roughy (~mdaw45ns@user/roughy) has joined ##rust 2021-07-07 18:05:57 --> __jmcantrell__ (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 18:07:14 --> jmcantre1 (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 18:08:34 --> gggpkm (~gggpkm@221.219.77.87) has joined ##rust 2021-07-07 18:09:07 <-- jmcantrell (~weechat@user/jmcantrell) has quit (Ping timeout: 258 seconds) 2021-07-07 18:10:20 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 18:10:34 <-- __jmcantrell__ (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-07-07 18:10:53 <-- gggkmp_ (~gggkmp@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-07 18:12:10 <-- _Vi (~vi0oss@2a0d:7c40:3000:1326::3) has quit (Ping timeout: 240 seconds) 2021-07-07 18:12:11 --> gggkmp (~gggkmp@221.219.68.57) has joined ##rust 2021-07-07 18:23:58 <-- plastico (~plastico@2001:8a0:de6b:1a00:9d14:766e:70a8:dcea) has quit (Quit: WeeChat 3.2) 2021-07-07 18:24:06 Yruama hi, i have a stupid issue, my crate can't find the cargo.toml of a crate in the same workspace, i don't know what i did wrong 2021-07-07 18:24:34 <-- kee (~wizzwizz4@user/wizzwizz4) has quit (Ping timeout: 240 seconds) 2021-07-07 18:25:54 Yruama lol, my eye need to be cleaned, i wasn't able to see in the error message path was wrong 2021-07-07 18:27:21 --> jinsun_ (~quassel@user/jinsun) has joined ##rust 2021-07-07 18:30:11 <-- Celeo (~Celeo@user/celeo) has quit (Read error: Connection reset by peer) 2021-07-07 18:31:16 <-- adrianheine (~adrian@2001:16b8:c108:96fc::f9c) has quit (Quit: Leaving.) 2021-07-07 18:31:19 <-- jinsun (~quassel@user/jinsun) has quit (Ping timeout: 265 seconds) 2021-07-07 18:33:05 <-- blindguard (~blindguar@2a02:908:1864:c200::4ec1) has quit (Quit: Konversation terminated!) 2021-07-07 18:36:40 <-- D-04 (~D-04@185.130.184.207) has quit (Read error: Connection reset by peer) 2021-07-07 18:37:51 --> D-04 (~D-04@185.130.184.204) has joined ##rust 2021-07-07 18:38:51 <-- pinpox (~pinpox@v2202101107577140883.nicesrv.de) has quit (Quit: Ping timeout (120 seconds)) 2021-07-07 18:39:10 --> pinpox (~pinpox@v2202101107577140883.nicesrv.de) has joined ##rust 2021-07-07 18:39:10 --> marcel3 (~marcel@user/marcel) has joined ##rust 2021-07-07 18:39:31 --> SignalWalker (~SignalWal@23.sub-174-254-56.myvzw.com) has joined ##rust 2021-07-07 18:39:32 <-- marcel (~marcel@user/marcel) has quit (Write error: Connection reset by peer) 2021-07-07 18:39:32 -- marcel3 is now known as marcel 2021-07-07 18:40:49 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 246 seconds) 2021-07-07 18:44:03 <-- jaix (~jaix@user/jaix) has quit (Quit: Leaving) 2021-07-07 18:46:02 <-- southerntofu (southernto@thunix.net) has quit (Quit: WeeChat 3.2) 2021-07-07 18:46:10 --> southerntofu (southernto@thunix.net) has joined ##rust 2021-07-07 18:47:38 <-- LucaTM (~LucaTM@user/lucatm) has quit (Quit: Textual IRC Client: www.textualapp.com) 2021-07-07 18:50:33 --> re101-bombay-55 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has joined ##rust 2021-07-07 18:54:30 --> jmcantrell (~weechat@user/jmcantrell) has joined ##rust 2021-07-07 18:56:00 --> home (~home@user/home) has joined ##rust 2021-07-07 18:57:22 <-- jmcantre1 (~weechat@user/jmcantrell) has quit (Ping timeout: 240 seconds) 2021-07-07 18:57:32 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Ping timeout: 252 seconds) 2021-07-07 18:59:49 --> cdown (~cdown@89.32.122.5) has joined ##rust 2021-07-07 19:01:32 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-07-07 19:04:20 <-- chance (~chance@user/chance) has quit (Quit: Client closed) 2021-07-07 19:06:29 <-- kupi (uid212005@id-212005.stonehaven.irccloud.com) has quit (Quit: Connection closed for inactivity) 2021-07-07 19:09:29 <-- Midjak (~Midjak@82-65-111-221.subs.proxad.net) has quit (Quit: This computer has gone to sleep) 2021-07-07 19:17:26 <-- lf (~quassel@p200300d21f3d6100022454fffe73d7ad.dip0.t-ipconnect.de) has quit (Ping timeout: 252 seconds) 2021-07-07 19:17:54 --> lf (~quassel@p200300d21f3f7f00022454fffe73d7ad.dip0.t-ipconnect.de) has joined ##rust 2021-07-07 19:21:57 --> home_ (~home@user/home) has joined ##rust 2021-07-07 19:25:16 <-- home (~home@user/home) has quit (Ping timeout: 246 seconds) 2021-07-07 19:25:35 --> hotcoffee (~hotcoffee@user/hotcoffee) has joined ##rust 2021-07-07 19:29:47 --> tims (~tims@220.240.106.233) has joined ##rust 2021-07-07 19:30:02 <-- re101-bombay-55 (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) has quit (Quit: Client closed) 2021-07-07 19:31:02 <-- home_ (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 19:31:38 --> home (~home@user/home) has joined ##rust 2021-07-07 19:35:24 <-- Gustavo6046 (~Gustavo60@user/gustavo6046) has quit (Remote host closed the connection) 2021-07-07 19:36:01 --> Gustavo6046 (~Gustavo60@user/gustavo6046) has joined ##rust 2021-07-07 19:37:20 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 19:38:34 <-- mmfood (~mmfood@45.91.21.31) has quit (Ping timeout: 240 seconds) 2021-07-07 19:41:47 --> gggpkm_ (~gggpkm@221.219.70.176) has joined ##rust 2021-07-07 19:44:11 <-- gggpkm (~gggpkm@221.219.77.87) has quit (Ping timeout: 258 seconds) 2021-07-07 19:47:08 <-- tstruk (~tstruk@176.67.86.155) has quit (Ping timeout: 252 seconds) 2021-07-07 19:56:23 <-- bowlofeggs (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 252 seconds) 2021-07-07 19:58:10 <-- hotcoffee (~hotcoffee@user/hotcoffee) has quit (Ping timeout: 246 seconds) 2021-07-07 19:58:10 --> djapo (~archangel@user/djapo) has joined ##rust 2021-07-07 19:58:13 --> bowlofeggs (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-07 19:59:37 --> gggkmp_ (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 19:59:41 <-- gggkmp (~gggkmp@221.219.68.57) has quit (Ping timeout: 252 seconds) 2021-07-07 20:01:10 --> tstruk (~tstruk@50.39.160.154) has joined ##rust 2021-07-07 20:03:05 <-- ssbr (~ssbr@python/site-packages/ssbr) has quit (Ping timeout: 252 seconds) 2021-07-07 20:07:56 --> home (~home@user/home) has joined ##rust 2021-07-07 20:09:11 --> CodeSpelunker (~CodeSpelu@user/codespelunker) has joined ##rust 2021-07-07 20:09:22 <-- gggkmp_ (~gggkmp@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-07 20:09:40 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 20:09:48 <-- shgvbvri (~rvgzuuqp@gateway/tor-sasl/rvgzuuqp) has quit (Quit: shgvbvri) 2021-07-07 20:10:17 --> home (~home@user/home) has joined ##rust 2021-07-07 20:11:25 --> gggkmp (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 20:15:05 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 20:18:11 --> neshpion (~neshpion@gateway/tor-sasl/neshpion) has joined ##rust 2021-07-07 20:19:51 --> home (~home@user/home) has joined ##rust 2021-07-07 20:21:07 <-- home (~home@user/home) has quit (Remote host closed the connection) 2021-07-07 20:21:44 --> home (~home@user/home) has joined ##rust 2021-07-07 20:22:54 <-- djapo (~archangel@user/djapo) has quit (Ping timeout: 258 seconds) 2021-07-07 20:25:35 <-- JuggleTux (~tux@mob-194-230-146-192.cgn.sunrise.net) has quit (Ping timeout: 258 seconds) 2021-07-07 20:26:10 <-- home (~home@user/home) has quit (Ping timeout: 246 seconds) 2021-07-07 20:27:21 neshpion i'm practicing rust so i ported a small challenge question to rust: i'm calculating the sum of all even fibonacci nums to 4 million. it works but it's ugly to me, and i think i maybe don't grasp the idioms expected in rust. can i get some feedback? https://termbin.com/cjw9 there is my solution in julia, javascript, and rust at the bottom. i particularly dislike how i ended up using 2021-07-07 20:27:23 neshpion `arr.iter().map(|n| *n)` in a couple of places. maybe i am doing things in a stupid way? 2021-07-07 20:27:55 danieldg .cloned 2021-07-07 20:28:03 danieldg or .copied 2021-07-07 20:28:54 neshpion so e.g. in `evens` i could do `arr.cloned().iter().filter(iseven).collect()` ? 2021-07-07 20:28:54 danieldg you can .sum iterators 2021-07-07 20:29:03 neshpion oh x) 2021-07-07 20:29:04 danieldg .iter.copied 2021-07-07 20:30:30 <-- thing (~thing@user/thing) has quit (Remote host closed the connection) 2021-07-07 20:30:48 --> thing (~thing@user/thing) has joined ##rust 2021-07-07 20:31:05 danieldg making a new vector every time is worse than adding to an existing one 2021-07-07 20:31:05 rk4 instead of filtering out odd numbers, could you *2 instead 2021-07-07 20:31:28 <-- maelcum (~horst@2001:16b8:c107:2b00:aeac:814a:c61f:404c) has quit (Quit: Konversation terminated!) 2021-07-07 20:31:39 rk4 ah wait, disregard (: 2021-07-07 20:31:49 neshpion i was about to wonder if that was some magic property of fibonacci numbers :P 2021-07-07 20:32:14 <-- SomeWeirdAnon (~shwn@2a02:8109:abf:ffb4:dd66:5596:463d:96de) has quit 2021-07-07 20:32:37 rk4 nah just someone only reading 1/5th the code while working 2021-07-07 20:32:38 danieldg return &[u64] from tail instead 2021-07-07 20:32:47 <-- gggkmp (~gggkmp@60.10.194.47) has quit (Ping timeout: 252 seconds) 2021-07-07 20:33:14 <-- anon16 (~anon16@user/anon16) has quit (Quit: WeeChat 3.0) 2021-07-07 20:34:43 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 20:34:54 --> anon16 (~anon16@user/anon16) has joined ##rust 2021-07-07 20:37:14 --> gggkmp (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 20:38:50 <-- ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has quit (Ping timeout: 252 seconds) 2021-07-07 20:39:06 --> gggpkm (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 20:39:18 --> home (~home@user/home) has joined ##rust 2021-07-07 20:40:09 <-- alip (~alip@exherbo/developer/alip) has quit (Ping timeout: 256 seconds) 2021-07-07 20:40:27 <-- genieliu (~genieliu@103.37.140.25) has quit (Ping timeout: 268 seconds) 2021-07-07 20:40:31 <-- gggpkm_ (~gggpkm@221.219.70.176) has quit (Ping timeout: 246 seconds) 2021-07-07 20:41:13 <-- CodeSpelunker (~CodeSpelu@user/codespelunker) has quit (Ping timeout: 246 seconds) 2021-07-07 20:42:04 --> ur5us (~ur5us@2406:e002:6b09:8901:dc29:12ba:98a9:f1d4) has joined ##rust 2021-07-07 20:50:31 neshpion ok with iter::copied() and sum() i was able to erase some extraneous things and now it looks like this https://termbin.com/nvtx 2021-07-07 20:51:41 --> fabic (~fabic@lfbn-reu-1-357-213.w92-130.abo.wanadoo.fr) has joined ##rust 2021-07-07 20:52:21 Mutabah Probably better to return an iterator that yields fibonachi numbers 2021-07-07 20:52:21 <-- bowlofeggs (~bowlofegg@fedora/bowlofeggs) has quit (Read error: Connection reset by peer) 2021-07-07 20:52:35 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 20:56:04 --> Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has joined ##rust 2021-07-07 20:56:05 <-- towel (~towel@user/towel) has quit (Ping timeout: 256 seconds) 2021-07-07 20:56:56 --> GreenJello_ (~GreenJell@user/greenjello) has joined ##rust 2021-07-07 20:57:18 --> bowlofeggs (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-07 20:57:18 <-- GreenJello (~GreenJell@user/greenjello) has quit (Remote host closed the connection) 2021-07-07 20:57:22 danieldg tail-sum as a single function might be nicer 2021-07-07 20:57:22 danieldg but this is all just what-looks-nice now 2021-07-07 20:57:46 --> towel (~towel@user/towel) has joined ##rust 2021-07-07 21:03:04 <-- rx80 (~quassel@user/rx80) has quit (Quit: rx80) 2021-07-07 21:03:09 --> speskk (~user@ool-44c57707.dyn.optonline.net) has joined ##rust 2021-07-07 21:03:35 <-- llorllale (~llorllale@2607:9880:3a18:69:bd11:e5f5:4ef9:b465) has quit (Quit: WeeChat 3.2) 2021-07-07 21:05:39 --> home (~home@user/home) has joined ##rust 2021-07-07 21:10:05 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 21:14:41 <-- sudoforge (~sudoforge@wireguard/tunneler/sudoforge) has quit (Read error: Connection reset by peer) 2021-07-07 21:15:40 <-- willcl_ark (~quassel@user/willcl-ark/x-8282106) has quit (Ping timeout: 252 seconds) 2021-07-07 21:16:34 <-- tglman (~tglman@cpc99620-brnt2-2-0-cust282.4-2.cable.virginm.net) has quit (Ping timeout: 240 seconds) 2021-07-07 21:18:56 --> alip (~alip@exherbo/developer/alip) has joined ##rust 2021-07-07 21:19:21 -- GreenJello_ is now known as GreenJello 2021-07-07 21:21:11 <-- paule (~paule@ppp-93-104-185-84.dynamic.mnet-online.de) has quit (Ping timeout: 252 seconds) 2021-07-07 21:23:02 <-- speskk (~user@ool-44c57707.dyn.optonline.net) has left ##rust (ERC (IRC client for Emacs 27.2)) 2021-07-07 21:25:44 --> totenkoph (~scythe@gateway/tor-sasl/totenkoph) has joined ##rust 2021-07-07 21:26:05 --> willcl_ark (~quassel@user/willcl-ark/x-8282106) has joined ##rust 2021-07-07 21:29:31 <-- orhun (~orhun@archlinux/trusteduser/orhun) has quit (Ping timeout: 246 seconds) 2021-07-07 21:36:05 --> justsomeguy (~justsomeg@user/justsomeguy) has joined ##rust 2021-07-07 21:39:17 --> home (~home@user/home) has joined ##rust 2021-07-07 21:43:22 <-- home (~home@user/home) has quit (Ping timeout: 240 seconds) 2021-07-07 21:43:41 --> neurocyte404 (~neurocyte@45.93.108.182) has joined ##rust 2021-07-07 21:43:42 <-- neurocyte404 (~neurocyte@45.93.108.182) has quit (Changing host) 2021-07-07 21:43:42 --> neurocyte404 (~neurocyte@user/neurocyte) has joined ##rust 2021-07-07 21:47:35 <-- neurocyte40 (~neurocyte@user/neurocyte) has quit (Ping timeout: 252 seconds) 2021-07-07 21:47:36 -- neurocyte404 is now known as neurocyte40 2021-07-07 21:50:20 <-- death916 (~death916@user/death916) has quit (Ping timeout: 252 seconds) 2021-07-07 21:52:33 --> starblue2 (~juergen@dslb-088-078-111-175.088.078.pools.vodafone-ip.de) has joined ##rust 2021-07-07 21:53:32 --> tsal_ (~tsal@user/tsal) has joined ##rust 2021-07-07 21:55:06 --> death916 (~death916@c-67-182-183-147.hsd1.ca.comcast.net) has joined ##rust 2021-07-07 21:55:18 --> gggpkm_ (~gggpkm@60.10.194.47) has joined ##rust 2021-07-07 21:55:44 <-- starblue1 (~juergen@dslb-094-221-190-080.094.221.pools.vodafone-ip.de) has quit (Ping timeout: 252 seconds) 2021-07-07 21:55:50 <-- tsal (~tsal@user/tsal) has quit (Ping timeout: 252 seconds) 2021-07-07 21:55:55 --> home (~home@user/home) has joined ##rust 2021-07-07 21:57:14 --> gggkmp_ (~gggkmp@60.10.194.47) has joined ##rust 2021-07-07 21:57:42 <-- gggkmp (~gggkmp@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 21:57:46 <-- gggpkm (~gggpkm@60.10.194.47) has quit (Ping timeout: 240 seconds) 2021-07-07 21:58:24 <-- SignalWalker (~SignalWal@23.sub-174-254-56.myvzw.com) has quit (Remote host closed the connection) 2021-07-07 21:59:48 <-- Yruama (~Yruama@2a01:cb15:829a:ee00:8634:97ff:fe6e:86ac) has quit (Quit: Leaving) 2021-07-07 22:00:41 <-- home (~home@user/home) has quit (Ping timeout: 252 seconds) 2021-07-07 22:03:45 --> Haxxa (~Haxxa@122-199-59-136.ip4.superloop.com) has joined ##rust 2021-07-07 22:04:00 --> genieliu (~genieliu@103.37.140.25) has joined ##rust 2021-07-07 22:04:58 <-- bowlofeggs (~bowlofegg@fedora/bowlofeggs) has quit (Ping timeout: 240 seconds) 2021-07-07 22:06:53 <-- Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has quit (Ping timeout: 265 seconds) 2021-07-07 22:07:03 --> bowlofeggs (~bowlofegg@fedora/bowlofeggs) has joined ##rust 2021-07-07 22:07:19 <-- dextaa (~DV@aftr-37-201-214-197.unity-media.net) has quit (Ping timeout: 246 seconds) 2021-07-07 22:07:33 <-- luna-is-here (~quassel@ip-95-223-58-221.hsi16.unitymediagroup.de) has quit (Ping timeout: 258 seconds) 2021-07-07 22:07:35 --> Bish (~arne@b2b-37-24-1-41.unitymedia.biz) has joined ##rust 2021-07-07 22:07:51 --> luna-is-here (~quassel@2a02:908:f761:2a3c::a) has joined ##rust 2021-07-07 22:08:05 --> dextaa (~DV@aftr-37-201-214-197.unity-media.net) has joined ##rust 2021-07-07 22:08:52 <-- leah2 (~leah@vuxu.org) has quit (Read error: Connection reset by peer) 2021-07-07 22:09:32 --> Izem (~Izem@bras-base-london1483w-grc-42-65-95-172-41.dsl.bell.ca) has joined ##rust 2021-07-07 22:10:05 --> Elzington_ (~Elzington@static-198-54-128-46.cust.tzulo.com) has joined ##rust 2021-07-07 22:12:37 --> home (~home@user/home) has joined ##rust 2021-07-07 22:12:59 --> gggpkm (~gggpkm@221.219.70.176) has joined ##rust 2021-07-07 22:13:10 <-- Elzington (~Elzington@static-198-54-128-100.cust.tzulo.com) has quit (Ping timeout: 265 seconds) 2021-07-07 22:14:40 --> gggkmp (~gggkmp@221.219.68.57) has joined ##rust 2021-07-07 22:15:26 <-- gggkmp_ (~gggkmp@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 22:15:26 <-- gggpkm_ (~gggpkm@60.10.194.47) has quit (Ping timeout: 272 seconds) 2021-07-07 22:15:36 --> aquijoule__ (~richbridg@213-225-7-126.nat.highway.a1.net) has joined ##rust 2021-07-07 22:17:49 <-- aquijoule_ (~richbridg@213-225-13-36.nat.highway.a1.net) has quit (Ping timeout: 246 seconds) 2021-07-07 22:18:44 --> llorllale (~llorllale@2607:9880:3a18:69:ecf4:1450:6bc2:8872) has joined ##rust 2021-07-07 22:22:18 <-- home (~home@user/home) has quit (Read error: Connection reset by peer) 2021-07-07 22:22:34 --> home (~home@user/home) has joined ##rust 2021-07-07 22:27:22 discipulus is there an emacs package that allows me to search and display the standard library documentation? 2021-07-07 22:29:31 <-- home (~home@user/home) has quit (Read error: Connection reset by peer) 2021-07-07 22:29:59 --> home (~home@user/home) has joined ##rust 2021-07-07 22:32:52 <-- alip (~alip@exherbo/developer/alip) has quit (Quit: The Way is limitless, so nature is limitless, so the world is limitless, and so I am limitless. For I am abstracted from the world, the world from nature, nature from the Way, and the Way from what is beneath abstraction.) 2021-07-07 22:43:13 --> gggkmp_ (~gggkmp@221.219.68.57) has joined ##rust 2021-07-07 22:43:35 <-- gggkmp (~gggkmp@221.219.68.57) has quit (Ping timeout: 252 seconds) 2021-07-07 22:44:51 <-- genieliu (~genieliu@103.37.140.25) has quit (Read error: Connection reset by peer) 2021-07-07 22:48:31 -- gggkmp_ is now known as gggkmp