« first day (1745 days earlier)      last day (1737 days later) » 

9:43 AM
pls accept my answer — Kipli Antonio Carle Mene 2 hours ago
 
Ahaha
 
10:16 AM
You always modify the same object, which is Phone. That's all. And your code doesn't really make sense so it's hard to fix. — Denys Séguret 33 secs ago
 
@DenysSéguret I was like, this is not Rust... what the hell... oh javascript :p
"Hi please try this solution"
why do you keep reading javascript question on SO
haha and the try this get accepted
 
10:44 AM
@Stargateur I don't. I've just the tag followed since a few days when I noticed I could get the gold with two answers. It might not be wise. arrays question are incredibly bad...
 
10:56 AM
@DenysSéguret but gooooold... shiny!
> And Rust will never be relevant. Not as long as fascists are in charge of it, and the bigoted community cheers for it.
watafaq
 
"crypto-chad"...
A fast look at his account confirms what was to be suspected:
> Why is is a known fascist such as steve klabnik not banned from this subreddit?
 
@DenysSéguret what what what?
 
I didn't follow much. I've just read that some people reproached Klabnik to have been a little too vocal in a kind of SJW role. As I've seen nothing personally I can't tell more
If Klabnik's foes are all stupid kids like this crypto-chad, I see no problem...
 
11:14 AM
I don't like people call for ban other people no matter what they did
I don't like ban ^^'
 
11:46 AM
Well, Rust != Klabnik, that's all
 
@hellow This is not the convenient way to express the feelings. This kid possibly has a low EQ. I don't give a care about what this kid says.
What matters is not the people but the decisions.
 
he's back
 
Oh no... :(
He still cannot write an MCVE
 
12:12 PM
why did he delete his question?
Also: what was the problem
and why always on arm ^^ this seems very generic
 
12:25 PM
Hi folks.
I am PhD.
13
 
congratrs @E_net4 why haven't you changed your name yet? x)
 
We should have a title after our pseudo
 
@hellow Because I'm on a special lunch.
 
@E_net4 Bravo!
@FrenchBoiethios I've already put all my diplomas after my pseudo. What about you, what will it be ?
 
@E_net4 Do you want to be researcher or professor?
@DenysSéguret Lol, I've litteraly done philosophy studies
My diploma is Maîtrise de Philosophie
 
12:41 PM
@FrenchBoiethios "President", then ?
 
But I've nothing in IT
President?
 
@DenysSéguret this is sad because I guess who it was
 
Macron's first studies was Philo too
 
Oh, I didn't know
 
12:54 PM
dup of what?
 
1:10 PM
the last question ? I don't know but it's answered by the compiler...
We need a special "Rust Compiler" account to post answers
2
 
1:25 PM
@DenysSéguret add the array tag to stackoverflow.com/questions/57203009/… and answer it x)
 
There are too many functions in the trait and it's hot
 
So. Many. Bad. Questions.
 
0
Q: Is there a way to perform an index access to an instance of a struct?

アレックスIs there a way to perform an index access to an instance of a struct like this: struct MyStruct { // ... } impl MyStruct { // ... } fn main() { let s = MyStruct::new(); s["something"] = 533; // This is what I need }

+7/-7 ... watafaq ^^
 
@DenysSéguret I propose we allow RTFM comment again :p
 
RTFCM
(compiler message)
 
1:29 PM
@hellow okay.. I see why
that dude is kind-of cancer? But not really? Just... special or something like that ^^
oh wait... that isn't a dup actually, because OP want's to use range indexing
whoever also marked it as dup, please retract
 
That works as well
 
or not? I'm confused, it's hot, I'm going home now!
 
Well, if eveybody is confused, I'll answer
 
a range doesn't make sense in his case: it brings nothing over just dereferencing. The link to the upper struct is lost
@FrenchBoiethios I won't try. I'm burning.
So it's supposed to go from 40°C tomorrow to 23°C the day after. The heat survivors won't survive the cold
 
I fine, here. It is air-conditioned.
 
1:40 PM
You're heating your neighbours, you monster
 
@DenysSéguret still 29 for me tomorrow and today was announced 39 then 40 and reticently they think about 41 - - but at least we will have a lot of rain this week end
 
Google pretends it's only 38°C now but I think he doesn't take into account the fact I'm in the middle of a hot town
(and behind south oriented windows in the middle of burning computers)
 
1:56 PM
user image
2
I've been to a very very low to gain this...
Now I think I can blacklist this tag
 
Hail, master of arrays! ^^
 
2:12 PM
According to my profile I can program in Java, JavaScript, CSS and Arrays.
 
@DenysSéguret like 95% of dev ?
I'm happy I can't
 
@Stargateur They don't have the badges. So I'll be the one landing the sweet java+javascript+css+arrays job
 
I can program in CSS and Arrays too. I've 50% of your skills
 
@DenysSéguret nice XD your future is safe
 
@DenysSéguret You shouldn't write " the functions to call are dynamically found which impact performances" as if it were a concern. The impact is so low that almost everybody don't care.
 
2:22 PM
Depends where. If you code like in Java you get the performance of java
But I can remove this paragraph
 
Don't! This needs to be less "dramatic" IMO
Otherwise, the OP will be "afraid" of it while dyn isn't bad
 
it is bad!
 
@DenysSéguret Beside the memory consumption, Java has good performance, doesn't it?
 
(but impossible to avoid)
 
That's not true, the overhead is almost always barely measurable
 
2:25 PM
@FrenchBoiethios java gets about OK performances past the heating time (which is big) but only because of a miraculous VM (just like V8)
Somebody needs to close a NLL question...
 
@FrenchBoiethios not really because often people code very badly in java.
 
I'm answering a duplicate.
Stop me!
I'm burning
 
the thing is that benchmark is on very good code generally and doesn't reflect the general quality of people code
 
@Stargateur I've read that for web or IO related stuff, it has performance in par with native apps
Speed performance, not memory
 
@FrenchBoiethios after intensive heating, yes it's OK. Still far from C but there are things nobody even tries to write in C. Java lets you write complex big systems that don't always immediately crash and where bugs have limited consequences
 
2:31 PM
@Stargateur I think that Minecraft is a good example of that :P
 
@FrenchBoiethios I have minecraft in mind, still don't get 60 fps even with a very good computer
 
They've already done several "big refactoring" to correct the performance, but the results aren't here
Everybody's accusing the language, but I'm pretty sure they're wrong
@Stargateur Try to play with a lot of huge modpacks, your computer will die
 
@FrenchBoiethios java is not design to be a high performant language anyway
 
Java isn't slow compared to most languages, thanks to the dark magic of the VM. But we're in a Rust world here. Java can't beat the no GC, no dynamic world.
 
@DenysSéguret If it's used in IO tasks, it could, depending on the server implementation. The throughput is usually IO bounded
 
2:40 PM
@FrenchBoiethios Well, yes, of course, with the right benchmarks. Pure IO node applications also beat java applications....
 
 
1 hour later…
3:41 PM
@E_net4 Congratz :3
 
3:58 PM
I'm wondering if I can use never type to express that a trait implementation will never call a callback.
This doesn't work
I can make it an Option or Into<Option> but I thought this could get rid of cruft at compile-time
 
@PeterHall Oo
 
@PeterHall Seems like there should be an impl<T> Into<T> for !, right? That should fix that, right?
 
@LukasKalbertodt I think so
 
but how the user will construct a function that can't exist ?
 
Right now, I have a trait like this, and a lot of the impls have to provide a type even though it will never call the callback
@Stargateur This is possibly relevant...
 
4:02 PM
I don't think never type is here to "fix" design problem
if you have to implement a trait but you can't/don't need a feature of this trait you are wrong somewhere
never type is more for little thing like trait that define a function that could return an error
but your implementation never throw error
 
The trait has several callbacks, each with different message types. Each implementation will call the callback 0, 1 or many times
 
In a similar vein, perhaps you actually want two traits? One for those that use the callback and one that doesnt?
 
@PeterHall why not a trait by callback ?
 
@Shepmaster But then I will probably need specialization in order to treat them all the same
I'm sure there's a nicer way. It just occurred to me that ! could work here
 
In my opinion, you are doing c++ in rust right now :p
 
4:09 PM
@Stargateur Nah
 
It may also be premature optimization. Your code already does monomorphization, so unused args should be removed anyway
playground::example: # @playground::example
# %bb.0:
	retq
                                        # -- End function
so yeah, the compiler already does the right thing
The biggest benefit I can see would be the ergonomics of being able to pass a closure accepting any argument type, but that seems a bit strange on the surface
 
 
1 hour later…
5:26 PM
@Shepmaster haha take that !
anyway the flag is white now so according to internet it's the french one
 
 
3 hours later…
8:48 PM
how can I do UB but without UB ?
 
 
2 hours later…
10:26 PM
Thanks @Shepmaster <3 Somehow I missed this GitHub option all the years ^_^
 

« first day (1745 days earlier)      last day (1737 days later) »