« first day (1742 days earlier)      last day (1740 days later) » 

1:38 AM
hmmmmmmmmmmmmmmmmmmmm I'm getting called out on twitter, again
 
2:05 AM
I suppose there is a joke
 
 
3 hours later…
4:53 AM
@Stargateur I don't get it either
 
 
3 hours later…
8:21 AM
I hope that async/await will come soon. I'm tired to have to write the futures by hand
 
8:57 AM
You'll still need to implement your custom futures to execute in await! ?
 
I use the tokio runtime, and oneshot channel from the futures crates to create a future
Future: https://gitlab.com/Boiethios/goa-rs/blob/gir/src/simple/client.rs#L56
Usage: https://gitlab.com/Boiethios/goa-rs/blob/gir/examples/mails.rs#L5
Very easy :)
 
9:41 AM
vampires...
hi @Denys Séguret, many thanks for your answer. I have a question on the same, I start a timer when user tabs out and check the timer when user comes back, I start the timer something like this ``` if(vis() == true) { currentRequest = Date.now(); seconds = parseInt((currentRequest-lastRequest)/1000); } else { lastRequest = Date.now(); } ``` but see that the time results don't seem to work correctly, i only reports time for one of the tabs correctly. Can you please suggest what can i do to make it work for tabs scenario? — opensource-developer 17 mins ago
Yes, I answered a question in 2013, so now I have to answer this one asked in comments ^^
 
140 upvotes? Nice
My most upvoted answers are ~20 :P
 
Ah, an answer from the golden ages. A bit of knowledge and luck would give you upvotes-a-plenty.
@DenysSéguret I would comment: "I see. If only there was a website specifically for asking programming questions..."
 
@E_net4 Well, and the right tag, also...
 
@E_net4 I prefer to hide. Vampires do bite if they spot you.
@E_net4 Hu ? This didn't get better. It's probably worse now
 
@DenysSéguret That is debatable. Very debatable. :) ping ping
 
10:17 AM
@DenysSéguret :)
@DenysSéguret I even pay money to get bitten :D
Immortal Geek Vampires Possibility
 
@FrenchBoiethios yes ^^, spawning futures also creating runtime looks more neat & clear but i don't get it how it is going to prevent writing futures by hand ?
 
@Websterix Do help vampires use IDE dark themes only? :)
 
This is why I work on Dark themes. Practicing already
 
I believe they also can't use reflection in their code.
They might also avoid building for Solaris systems. Good thing for them Java hasn't been under Sun for quite a while.
 
@E_net4 "Solaris systems" ? Are you so old you used those systems (I did) ?
 
10:26 AM
@DenysSéguret Nope, but I heard the name multiple times.
 
For me... Solaris was the ugly stupid os coming after SunOS5...
 
10:37 AM
@ÖmerErden The oneshot::Receiver is a future. You don't need to write anything by hand. You must have a runtime to do the polling, tho.
 
@FrenchBoiethios i know i was referring this(without async/await you can have oneshot::Receiver future btw)
 
I meant in the signature (I'm lazy, yes :P). And the usage is much more simpler, also
 
11:13 AM
@DenysSéguret It's like a history in informatics. I heard these read these learned these. Suprisingly I even implemented with Java for some time.. (Not the ancient JAVA ofc)
 
@Websterix I don't understand what you wrote. Did you miss a word ? Or me a coffee ?
 
You asked for that are we old enough to use those systems(Solaris,Java,Sun etc). I responded these are so old enough that can be called as history in informatics. As a graduates from the informatics, These are teached in the computer science departments nowadays. So we read them learned them. And for the Java I said I used it once it was under the Sun already
I may need some coffee too if it is still not clear lol :D
 
ok ;)
 
11:56 AM
I prefer this drug en.wikipedia.org/wiki/Club-Mate but I cannot find it in France :(
 
 
3 hours later…
2:35 PM
Yeah, answered in a comment!
@DenysSéguret Oh wow. You're right. I didn't realize it would be this much slower than a non-threaded loop, but after I move the drawing inside the for received in rx loop, I could see the progress. Thank you for your help! — aphsai 7 mins ago
 
2:47 PM
I never even take a look to this kind of question
 
I looked because it's about threads and channels
 
IMO, the channels are one of the Rust's best features
I like to put channels everywhere :P
 
Same for me
I would probably not end up with a channel sending pixels like this. This looks expensive (but I didn't try, I should probably)
 
on an other note: are you prepare to die in the next days ?
 
And what gives a better sense of satisfaction than sending a Sender?
@Stargateur Who is "you"? Because I'm not.
 
2:54 PM
@Stargateur I'm working behind two hot computers, behind windows turned towards the south
 
Ah, weather
 
@DenysSéguret true warrior
 
I've just eaten an ice cone with the kids in the pool, though
 
Well, I try to suffer silently
@DenysSéguret Huh, you have a pool, and you DARE complaining?
 
you can't work in the pool
 
2:56 PM
@FrenchBoiethios A small kid pool, less than two meters of diameters, not a big pool
(and I don't spend much time in the pool, I have a lot of work)
(spending half my time on open-source doesn't help me reach the goals I fixed...)
 
@DenysSéguret Ah ok. Even that is a luxury when one live in a flat, tho
 
@FrenchBoiethios Living in a flat isn't compatible with permanent remote working in my opinion. Or a very special flat.
 
What do you mean?
You cannot have a pool in a flat
Or you can, but that's not advisable
 
3:42 PM
Hum... GitHub is broken
 
Gitlab was broken as well 30 minutes ago
 
 
1 hour later…
5:06 PM
How far should I scroll back to see chat comments on stackoverflow.blog/2019/07/18/…
 
Meta is slightly lit up on that one.
 
The general idea seems plausible. It will come down to the implementation
 
 
2 hours later…
6:42 PM
"I cut my teeth on MS SQL and Data Warehousing. I moved on to C# and .NET in 2006. I was a .NET MVP for 2009 and 2010 before switching to JavaScript, Node.js, and building Nodebots in 2011. I love JavaScript with all my heart, warts and all. "
look like hell to me xd
"Even kind feedback can come off as caustic and mean when there is a mob of people behind it. No matter how nicely they say it, when a large group of people you really respect publicly challenge something you’ve done it can feel like a personal attack. "
THANK YOU
funny I get ban for one day of /r/rust because I critic a bad question
and I say exactly that
still get banned anyway
without trial ofc
 
@Stargateur you got banned from r/rust for a day ???
 
@DenysSéguret yep
 
You were a little harsh, weren't you ?
 
post get deleted so I don't remember exactly but yeah I was a little harsh on this one, but still that was a totally valid critic. And OP answer be by insulting every little person :p
I wonder if he get banned
probably not as always
I post it here
I don't think this deserve a ban so far
> I don't like question where there is no fucking single link to explain what you are talking about, it's me who must search what the behavior of groupe_by() of Scala ! Same I need to search the doc of Itertools myself. Have some respect for the time of other people and ask properly. Add example, etc, do your own search before just ask for the answer !
ban 1 day xd
 
6:57 PM
Oh, I remember this answer :)
pro-tip: don't use the F bomb
 
maybe it's not the same meaning that in french
"il y a pas un putain de lien"
doesn't look very bad in french
> But don't be surprise if one day no one can make a critic anymore. That not the first time I try to make one, and other time I have been much more nice, didn't make a change, people get upset with any form of critic here. So why should I lost time to be nice when it doesn't make difference ?
 
OP wasn't kind
 
eh he add a link
not the most important one
 
I though he was stupid, expecting something which didn't make a lot of sense in the context of lazy iterators
I'm compteNumero9 in this discussion
 
anyway
someone fix their mce while I take a nap
0
Q: How to store/propagate error out of iterrator pipe?

KrzysiekI am learning rust and I try to improve rust book chapter's 12 minigrep by using iterators. Unfortunately I cannot store/propagate std::io::Error from std::io::Lines::lines() in order to get "clear" lines iterator (like std::str::Lines - to have one function for both). I would love to use try/?,...

 
7:08 PM
And my strong opinion is that this iterator has absolutely no business in std. An iterator which starts by consuming its source shoudn't be too easy to use...
 
@DenysSéguret oh yeah, itertools have unique function that use an hashmap
no way I want that in std
it's not useless
 
no but you don't want users to use this by default
I was asking myself some question: has there been some discussion about the overuse of dyn ? Everybody know that unsafe might be linked to bad code quality but I think too many boxes dyn might lead to the kind of design bugs we have in go or java and some lesser static validation
 
I think yes, also Any is a big warning for me.
 
I never saw any Any
 
I know amethyst use it. But I think it's ok even if I would prefer they found a better solution
std::io::Error use it
I also think it's ok in that case
 
7:19 PM
Ok, I veread the doc. I would be worried to see it in a crate in a standard situation
And I find it doubtful that Amethyst uses it. But I should look at Amethyst again now that I know a little more Rust (when I looked at it I really didn't like what I saw)
 
voted
 
8:08 PM
@DenysSéguret Got any examples of how dyn might lead to bad design?
 
The big difference is that the search function signature doesn't need to change
 
this doesn't need to process all the result before ?
ah
> /// An iterator that produces only the `T` values as long as the
/// inner iterator produces `Ok(T)`.
so strange
why not just return result Oo
nvm
outch so ugly side effect :p
 
8:42 PM
@Shepmaster no. And I've not yet worked on that but it's my feeling
 
@Stargateur You hating on my code? It's in the standard library too, powering Sum and Product for Result ;-)
 
@Shepmaster well you can't do really better
still that ugly :p
also I knew it was your code ^^
you already said it
@Shepmaster why sum need it ?
impl<T, U, E> Sum<Result<U, E>> for Result<T, E>
"meh"
do you really need it for this Oo
well yes I don't like your code in std about this one :p
same for product I don't see why you did this
also you have write the same code twice
and it's in core
 
You are welcome to submit PRs to fix any dumb things I've done.
 
I will see :p
ah nvm about you write it twice it's in the same file :p
I don't like it :p
I don't have better so
 
 
1 hour later…
10:32 PM
compile rust make me feel I'm getting old
 
10:55 PM
I hit a magic goal today
200 points when I didn't really participate
 
11:09 PM
at some point rep don't make any sense :p
@Shepmaster Well, I didn't find a better way to implement your code but I did find a thing to do github.com/rust-lang/rust/pull/62883
 
@Stargateur "common"
 
RIP
french is "commun" so...
 
How did you find the accum code and notice it was the same?
 
I just follow the implemention of sum and product for result and option, and I was thinking how result is doing for fromiterator... XD
I get disappointed to found the same code ^^
 
That's probably my fault
 
11:16 PM
well, your code is more reusable
 
11:29 PM
@E_net4 is this meta angry about the blog post?
 
@Shepmaster do you know how we configure github.com/rust-lang/rust/blob/master/config.toml.example to compile llvm with all thread ?
 
hmm
I thought it did by default
so: no, I don't :-)
 
rust did compile himself with all thread but not llvm cmake
yes it's working
strange it's not the default
maybe not
it's recompile some file but not all but using all thread this time
sooooooo, I think it's use all thread but look like llvm makefile doesn't handle multi threading compilation all the time
SAD
I just loose time :p
 

« first day (1742 days earlier)      last day (1740 days later) »