-
» Sergio wonders when it will shit down.
-
Sergio
shut*
-
Sergio
What a fun typo.
-
june
this server's gone to SHIT
-
jybs
If I'm using an iterator, I should expect return values (from .next() or with map etc...) which are of the defined type Item, correct?
-
june
yes
-
jybs
Is there a neat way to unwrap (Option<String>, Option<String>) and discard the Nones when I'm mapping to a HashMap?
-
jybs
so my .map(|_| ) evaultates to (O<S>, O<S>)
-
GreenJello
jybs, .filter_map(|(k, v)| Some((k?, v?))) ?
-
jybs
sweeeet
-
jybs
Is there any way to be able to do this (I know this implementation is a bit broken)
-
jybs
thing.map(|_| thing.get_two()).collect()
-
jybs
So driving the iterator from something I'm using in the iterator
-
jybs
.quit
-
Moongoodgirl
I still hold that moving to discordapp.com. was a mistake.
-
june
surely it must be almost over
-
june
3 more hours?
-
june
what are your bets
-
GreenJello
june, maybe they reconsidered since all of the bots have moved to freenode
-
lpg
wow, #rust is still alive
-
june
no it's not
-
lpg
you're here, it's a booming, lively play
-
june
i'm just here to watch the end :)
-
june
another 45 minutes?
-
june
20 minutes?
-
june
10?
-
june
if the server doesn't go down in 7 minutes I'm gonna be disappointed
-
lpg
it's like new years eve, except the ball they're dropping is the server
-
june
3
-
june
2
-
Moongoodgirl
oh my gosh, I thought those were seconds
-
june
1
-
june
I bet it's not even gonna die
-
june
and if it does y'all won't even be able to laugh at me for being wrong
-
june
hello?
-
june
it's march 2
-
Moongoodgirl
Hello from the other side!~
-
Moongoodgirl
I must've syned a thousand times!~
-
foodoo
hello everyone, let's enjoy the lovely company that we still have on this sinking ship
-
june
party in #rust
-
foodoo
yay!
-
foodoo
In fact, I remember the day we hit Rust 1.0. And we celebrated in *this* channel
-
june
let's share what mozilla irc has done for us
-
Moongoodgirl
:'3
-
foodoo
Graydon Hoare paid us a visit back then
-
june
I met a handful of great people here I still talk to
-
Moongoodgirl
Oh, heck yeah
-
june
lots of good influences
-
june
back when #rust-offtopic was good :P
-
Moongoodgirl
some of my best friends I met in a branch of ./#rust-offtopic
-
foodoo
june: wait, there is another awesome Rust channel that I don't know about? And it's going away soon?
-
june
#rust-offtopic moved to OFTC
-
june
also answering questions in #rust-beginners was a good way to learn more rust
-
Moongoodgirl
^.^
-
june
I think the rust channels here were the first actually good irc community I found
-
june
and now they're DEAD
-
june
so many other tech irc communities are toxic af
-
june
well, tech communities in general, not just irc
-
KiChjang
yeah... just can't believe this is shutting down
-
KiChjang
or actually not
-
Moongoodgirl
We're still gonna hang out!
-
Moongoodgirl
~oftc
-
rustybot
As of April 2019, irc.mozilla.org is being sunsetted. Join us on OFTC.net in {#rust, #rust-offtopic, #rust-beginners, #rust-sci}. See also `~freenode`.
-
Moongoodgirl
~freenode
-
rustybot
As of April 2019, irc.mozilla.org is being sunsetted. Join us on freenode.net in {##rust, ##rust-offtopic}. See also `~OFTC`.
-
june
who wants to connect to oftc though
-
KiChjang
plenty of people apparently
-
june
weirdos!
-
vorner
Well, matrix doesn't seem so bad replacement. I'll still have to find the time to set up a homeserver and find a client, though.
-
KiChjang
matrix is only for moz stuff, rust stuff is in discord
-
vorner
I thought rust would be moving too.
-
june
rust moved to discord ages ago
-
foodoo
june: happy to be a new weirdo
-
foodoo
Discord might be more accessible for not-technical users. But then again, we are talking about a systems-level programming language.
-
Moongoodgirl
Rust didn't move /that/ recently :V
-
Moongoodgirl
…err
-
Moongoodgirl
s, recently, long ago,
-
june
_ _ _ _
-
june
__| (_)___ __ ___ _ _ __| | ____ _ __| |__ ___
-
june
\__,_|_/__/\__\___/_| \__,_| /__/\_,_\__|_\_\/__/
-
june
-
june
shit
-
june
_ _ _ _
-
june
__| (_)___ __ ___ _ _ __| | ____ _ __| |__ ___
-
june
/ _` | (_-</ _/ _ \ '_/ _` | (_-< || / _| / /(_-<
-
june
\__,_|_/__/\__\___/_| \__,_| /__/\_,_\__|_\_\/__/
-
june
worth it
-
Moongoodgirl
the server has spoken
-
Moongoodgirl
discordapp.com. is shit
-
ville
it's rather disappointing that mozilla did choose a closed platform for their communications. made me drop rust.
-
tanriol-M
The choice of Discord for Rust is not a Mozilla choice, AFAIK.
-
ville
well whomever was responsible for that decissions and promoting it doesn't really matter to me, the end result is that i am out. and on that note really should remove this server and channel from my autojoins
-
tanriol-M
I'd also add that this is not actually a decision everyone follows - for example, the official communication channel for the rust-embedded working group is a Matrix room, not Discord.
-
ville
on that note. laters.
-
smallfoot-
The Mozilla IRC network shuts down March 1 2020
-
smallfoot-
I got to here through a time machine
-
M-ou-se
oh cool, my time machine is also working
-
tsza-M
I'm here through a time machine… and matrix.
-
tsza-M
wtf.
-
gapa
hello! is there a way to run async functions in benchmarks? tokio had tokio::test, but not tokio::bench
-
vorner
What/how would you measure? If it's async, it probably spends some time in eg. network activity and such. Would running benchmark for the whole exchange give you any valuable number?
-
gapa
vorner: they are mostly using tokio locks, and to unlock those, i need to use async, so yea, benchmark functions do not support to be async at the moment. to be honest, bench in general seems to be not updated at all
-
antares_
I'm trying to convert fmt::Arguments into a raw pointer using the Into trait but it's giving an error that the conversion isn't implemented for *usize. In this case how can we go about converting from a fmt::Argument to a *usize?
-
foodoo
Does anyone know what the current status with Rust+GDB is? I am able to start the program with GDB and set a breakpoint at main(). But I'm totally blind after that (no source code, no line number information)
-
foodoo
Cool. It seems that I have to use the crate name if I want to specify a breakpoint. breaking at just "main()" does not do anything and that's why I saw nothing
-
foodoo
found the bug. It's cool that I usually don't need a debugger for Rust. The type system and the unit tests take care of so many things :-)
-
Moongoodgirl
gapa: you could use futures::executor::block_on() to make it sync, and then test that with the traditional #[bench]
-
gapa
Moongoodgirl: good idea, did not think about that! thank you, moon :)
-
Moongoodgirl
gapa: but yeah, beware `await`s giving extremely variable, less useful timings
-
gapa
hm yes probably true
-
gapa
there is no networking done, just codebase said goodbye to parking lot and hello tokio locks
-
Moongoodgirl
antares_: generally, conversions are not implemented for rawpointers. Why do you want a rawpointer here? And why specifically `*const usize`? That seems pretty weird.
-
Moongoodgirl
gapa: yeah, you'll be testing the performance of not just your code, but also those locks…and also whatever else is holding the locks :P
-
antares_
Moongoodgirl: I see, nvm i found a workaround to avoid this :-)
-
antares_
Is there a way to store an array of function pointers to functions of different arguments?
-
antares_
different number of arguments
-
antares_
currently I'm implementing something like this
play.rust-lang.org/?version=stable&…st=6940a886064dd136aec95676ece95dbe but I'd like to add the commented part as well
-
tanriol-M
antares_: How do you expect to use it?
-
tanriol-M
Some 40 min left...
-
gapa
btw this channel is logged right?
-
gapa
i think rust beginner is not
-
cjd
end of the world is near
-
cjd
I'm gonna tell my grandchildren 'I was there when mozilla shutdown their irc'
-
cjd
and they're going to say "what's mozilla?'
-
gapa
the thing google acquired
-
cjd
and I'll say "it's what we used to use before chrome implants, you had to type with your finders"
-
cjd
Ok Google... Turn Server Off
-
antares_
tanriol-M: I intend to use it to invoke the functions by indexing the array
-
tanriol-M
antares_: Why use an array if the functions have different signatures anyway and cannot be invoked in the same way?
-
antares_
yes I know that... I kinda want to have a generic function pointer to be used for a syscall table implementation
-
antares_
tanriol-M: ^
-
tanriol-M
I'd probably use something like #[transparent] struct Syscall(*const c_void) and provide From impls for the function pointer types supported.
-
antares_
sounds good, i'll give it a try
-
antares_
is this channel finally going to be shut down today?
-
tanriol-M
In less than half an hour, according to the Matrix announcements.
-
tanriol-M
So it's probably the time to wish good luck to anyone still watching :-)
-
antares_
Are folks going to be active on freenode or discord?
-
GreenJello
antares_, freenode for me
-
antares_
ok
-
tanriol-M
For me it's Matrix and sometimes Freenode when there's free time.
-
gapa
goodbye, rust irc, thanks to everyone who helped :)<3
-
tanriol-M
Goodbye!