« first day (1813 days earlier)      last day (1896 days later) » 

06:13
@MateenUlhaq I love you — SmushyTaco 5 hours ago
Yet another rustacean is happy
 
2 hours later…
08:09
@Websterix But this question should have been closed as duplicate, IMO
(or is that because of the strike ?)
I agree
09:15
The last question can hardly be answered IMO
That last question indicates a clear misunderstanding of what a struct is more than anything else. The pointer to a HashMap is a good one, as that's what a dict is in python
There's at least a type problem
You can quite literally store anything in a python dict
it's literally a type-less hashmap
yes but in rust the code means nothing, even if you use a hasmap instead of a match
 
2 hours later…
11:42
Hi all, do you know why rust let us to define impl in a function block if it is going to be applied on global ? Playground
Are you trying to emulate anonymous class definitions from java?
In other words -> Playgroud
@SébastienRenauld nope
This looks like a bug but maybe nobody thought about this case
the real reason i am trying to set a mock behavior for unit tests
Does the function declaration change something or is it exactly as if the two lines (counting the "}") weren't here ?
11:48
@DenysSéguret sorry i haven't understand
Putting the impl block inside the function is exactly as putting it ouside, right ? Same scope and all ?
@DenysSéguret I don't think that's actually defined anywhere
as in, the behavior when you do this
@ÖmerErden The impl is allowed so you can use it for types or traits that are also defined in the function. The fact it also works on external ones is probably unintentional
@DenysSéguret yes
@trentcl So it is looking like, It is a bug which should be reported to rust language team?
11:53
I don't think it matters. If you want to obfuscate your code, you always can. We don't need the compiler to spend more time checking our code isn't too weird
@Websterix I don't know if I'd call it a "bug". I assume it's just more work to edit the compiler to forbid it without also forbidding useful code
It would probably be a good idea for an RFC.
I'd definitely throw it on an RFC to clarify the intent
But notice that implementing a check would make code that is currently legal illegal, so it can't be stabilized before next edition
I can also see this exact syntax being used if we ever want dynamic trait definition, so it'd cut both ways
@SébastienRenauld What do you mean by "dynamic trait definition"?
11:57
Think anonymous class objects in java/scala; you "extend" a type as it is returned
granted, this is three, four steps in the future
the impl is defined to be scoped to be in the innermost mod statement containing it, I think.
Or forbidden if the object it impls on isn't in its logical scope
hence the point of the RFC - to clear it up
And changing that might be acceptable, if it's not in use anywhere. We've done backwards-incompatible changes to syntax as niche as this when it isn't use.
Correct, and worth a discussion
@Zarenor I agree that, This is why we thought like that for this issue in the beginning
12:00
There's nothing to clear up. It behaves identically to placing it in the innermost containing mod statement. An RFC would be appropriate to propose changing that, if you have a motivating reason. I'm just not sure of any reason to 'care'.
It's a little bit of a strange way to consider defining anything, and I don't think any kind of dynamic extension is going to be supported beyond what you can consider now. I think we (the community at large) are really wary of unsized values, and I don't think landing upcoming changes (like unsized rvalues) is likely to change the culture around that.
@Zarenor impls don't really have their own visibility rules, so there's no difference between "innermost mod including it" and "outermost mod where all the relevant types and traits are visible" or whatever other rule you could come up with.
At my first try it gave me a wrong idea, but it can be easily considered as a developer's fault. I should've try more than a happy path instead of just implementing the wrong idea
@trentcl Which is probably why nobody has seen fit to write a rule about putting it inside a function.
Sorry to bring this up here again, but things are slowing getting revealed regarding Monica's removal as a moderator: judaism.meta.stackexchange.com/a/5200
So, the upcoming CoC imposes specific ways to address people, in a way which appears to be inflexible and unrealistic.
I can't help but compare with how the Rust community handles this.
12:21
stackoverflow.com/a/58184678/2167834 - comments welcome for this one, not entirely sure the answer is clear
@E_net4theMeta-Skeptic Would you elaborate on that? I don't think I've seen much witch-hunting in the Rust community (maybe that was your point)
@E_net4theMeta-Skeptic sources about that (the rust part) ?
> Mod: not good enough. You're a transphobe
damn... such fascism... (if it's exactly what was said, which I can doubt)
@DenysSéguret note that the "transcript" there is from memory, in accordance with site policy which forbids copying and pasting from TL. It's not literally what was said.
Yes
The room info pretends I'm an owner here. Why can't I remove my own messages ?
@SébastienRenauld I think it's clear enough, without trying to perform the rewrite with lifetimes. I definitely think the Arc is the right way to go
12:37
There's no other way he can not drop other_foo
12:52
@trentcl Precisely: despite the fact that we do foster a diverse community, this isn't something I've seen becoming a problem on our end (although my perception is likely biased).
Worse: current rumors suggest that even employing the singular 'they' pronoun in unknown cases of preferred pronoun is a violation.
@E_net4theMeta-Skeptic oof. guess I'm in violation
13:26
Yeah. I'm willing to use preferred pronouns if it's brought up. And I'll default to you/they. But I'm not going digging on someone's profile before I write every comment. I'd check it if they make it surfaced on a tooltip or something. Expandable usercard, I guess?
@Zarenor I will take offense if you don't refer to me as chief warlock of the brothers of darkness, lord of the thirteen hells, master of the bones, emperor of the black, lord of the undead and mayor of a tiny village up the coast
feel like that's not a valid pronoun.
I think I'm with @Zarenor — I actually find being neutral by default to be easier. It removes a thing I have to think about.
That's the problem with allowing some things but not others, it's a gigantic slippery slope
13:30
@Shepmaster Not "valid"? You think you are the one who gets to judge what is valid, because your self-identified sexuality is "normal"?
Same - and gender isn't the point behind this website. We're talking to human beings before talking to somebody of a gender, and the gender rarely matters directly in any SO question
it shouldn't matter
all this would be solved by a chat renderer remplacing the pronouns by what the reader wants to see
You're saying I can break text kerning on the page by adding all my titles ripped straight off LFG the comic?
(1) I didn't preclude you from using that term (2) if you actually wanted it and I could access it easily, I'd use it (3) I'm pretty sure y'all are being /s but it's very close to the internet law of sarcasm being indistinguishable from not sarcasm
@Shepmaster Your ideals are wrong
13:34
sigh
This was my highlight from that conversation. It's quite an amazing statement.
@PeterHall Can't wait for somebody to tell me this when I tell them you can't drop an object but keep a reference to it
Anyway, I guess we'll see in a day or three what actually happened and what the new CoC is, and if any of us care to stick around. But yes, I, too, would be strongly opposed to firing someone for using usernames and neutral pronouns. I definitely think SE has been rash, and IDK how they didn't see any quick reaction as rash
Like, this is the internet, you're going to be made the worst or best caricature of yourself, that's how everything is interpreted. You run a top-tier website. How did you not understand this already?!
Because you run your community based on an agenda, not the other way around
I think assigning a social-values-based agenda is misguided. I don't attribute this to malice, just a series of misconstructions and badly-thought-out actions. I think their 'goal' is still to run a quality, user-curated Q&A site platform. And try to reach breakeven - apparently through ads and paid products.
13:41
There's a serious problem with this; by affirming action you're doing the opposite
Rules like that have a severe chilling effect if it's a blanket implementation as opposed to a "if you're being deliberately bad we'll discipline you"
And recall that the posted "transcript" is from memory from a non-neutral point-of-view.
Like, yes, I think they're trying to crack down on racial- and gender- and sexual-orientation-based slurs and discrimination. Which I think is the right move. But I don't think they're trying to or intending to make this blanket an on disagreeable speech.
@SébastienRenauld Agreed. Entirely.
I'll put it this way: This site is not for personal attacks. Denigrating someone for their knowledge, skill, ability - not okay. Criticizing the questions and answers - wholly the point. Gender? Sexual orientation? Race? Completely irrelevant. And shouldn't be brought up, if we can avoid it.
Some of the other network sites are more focused on those dynamics - and I have no desire to get involved in the politics of administering that. I still think denigrating someone about a personal attribute is wrong. But I have a hard time reconciling referring to everyone by gender-neutral pronouns as being a problem. Particularly if I make best-effort to do so for everyone.
@Zarenor the fear started from the habit of deadnaming, but that was for actual names
I don't know anybody who'd consider a neutral pronoun deadnaming
14:04
That's.. Yeah. That's a bit more squishy, but that seems.. Well. like a technical problem, too? If you use your actual name on the site, and then transition, all of the previous references to you are going to deadname you. And I can't see that being punishable conduct. The arrow of time points in one direction, at least in our experience.
(Speaking as someone who doesn't use their real name as a public-facing username, I'm not sure I get a 'vote' on how to handle that, though)
I guess I can see it being a problem if someone deadnames you intentionally. Which, as usual, would require a 'more than once' or 'refuses to edit' standard for intentionality. I have no problem enforcing that. If I change my name, in real life, I expect people to use my new name. I'm cis-hetero, but I'm still allowed to change my name, and expect people to use the new name. Why should we take that right away from someone else for any reason?
@Zarenor there's legal non-modern precedents. Look at what happens when people get married and somebody changes their last name.
Actually, there's precedent for the pronouns there too!
14:55
Recent question; how we feel about proposed dupe?
It looks like your question might be answered by the answers of How do I convert a vector of strings to a vector of integers in a functional way?. If not, please edit your question to explain the differences. Otherwise, we can mark this question as already answered. — Shepmaster 17 mins ago
15:08
Added an example with assert_eq! I am not able to make the solution in "How do I convert a vector of strings to a vector of integers in a functional way" working in my example, although they are similar. — LazyEmpiricist 4 mins ago
Name checks out :-\
 
2 hours later…
16:39
Ugh. This virus-writer has effectively opened a duplicate.
I looked for duplicates of the question I answered and in the process had a look at all wasm-bindgen QA. There are so few of them...
@Shepmaster what ?
@Shepmaster yeah haha
sorry, I couldn't refrain from making that comment
Are you talking of the multiboot guy ?
nah, the other dude
16:43
actual point for point dupe
I have literal issues telling which is which in my tabs :-(
@DenysSéguret I wonder why &HtmlCanvasElement is allowed as a wasm_bindgen type
why not ?
because of the reference ?
oh, you mean in the initial code
Hum... it shouldn't
@DenysSéguret I assume that any types in the annotated signature have to implement a trait (is that true?). Why implement it for ^^ yeah ^^
As I asked you yesterday, you need to define what "pure Rust" is. In the vast majority of cases, Rust code calls into your platforms code which is written in C or C++ anyway, making any such distinction generally useless. — Shepmaster 10 mins ago
@Shepmaster I thought I'll should change my assembly code or others but now I realise where I can found the solution with the JIT. So no it wasn't really useless, now that I have the answer I'll close the two topics. With those elements I'll manage myself to do what I want to do. — centipede_ 1 min ago
I didn't even test that. This doesn't look clean as the type isn't checked.
16:49
I don't think me and OP are on the same wavelength.
I must leave and feed my kids
"must"
 
1 hour later…
18:01
... JIT? In Rust?
That would be "new"
@Zarenor kind of.
11
Q: Handling calls to (potentially) far away ahead-of-time compiled functions from JITed code

Bailey ParkerThis question was put on hold as too broad, presumably because of the research I included in an effort to "show my work" instead of asking a low effort question. To remedy this, allow me to summarize the entire question in a single sentence (credit to @PeterCordes for this phrase): How do I e...

15
Q: Is it possible to generate and execute Rust code at runtime?

fadedbeeUsing C, at runtime, I can: Create the source code of a function, Call out to gcc to compile it to a .so (Linux) (or use llvm, etc.), Load the .so, and Call the function. Is a similar thing possible in Rust? In particular I want to use Algebraic Data Types, so using a C subset of Rust's feat...

Huh. '13.
18:22
This runtime code question could maybe receive new answers, as there's a lot of work done on this problem
18:36
\OFF
I'm not sure if any of you are following the events around RMS lately. I've been and I'm quite shocked that the exact nightmares I was so concerned about the last couple of years (i.e. accusation based judgement and out of context ad hominem attacks even among seemingly intellectual people at seemingly intellectual institutions) came true. He is a weirdo, he always has been, but he was openly talking about everything he thinks about the world for the last three decades at least. And without him we would not have GNU/Linux, FSF, free and open source movement and ideology.. basically anyth
\ON
@PeterVaro guilt by association and guilty before proof are two things I absolutely despise about the stuff with RMS
however, both sides aren't innocent, he has done some dumb stuff as well
that doesn't mean the stuff happening is vindicated
@SébastienRenauld well, as far as I can tell, he's being him is his biggest mistake, as in, telling out loud what thinks about the world in the exact way he thinks about it. and he's been doing it ever since he started advocating his thoughts about the a better world.
that doesn't mean I agree with everything he says, far from it, but I respect the way he stands for himself and the values he thinks are right
The top counterpoint to that article from Hacker News - medium.com/@thomas.bushnell/…
> I respect the way he stands for himself and the values he thinks are right
As you know, I love my reductio ad absurdum... so does the same mindset apply to anyone who stands for terrible values (as you choose to interpret them), even those values that might directly target your own existence?
@Shepmaster I could argue with almost every paragraph of that article actually
I know nothing of the contexts, so I'm not a suitable debate partner
18:49
@Shepmaster that's a very good question but I'm not saying I "liked" or "agreed" with him because I respect his faithfulness of his ideology
Here's the HN discussion, FWIW
I truly care about this matter but I don't think I have the time to read this discussion through.. But thanks for sharing!
@PeterVaro do you believe there's a distinction between respecting the way a person stands and respecting the person themselves?
(I don't actually know the answer for myself)
Btw I'm not even saying that the article I shared has every detail right -- who am I to judge, in many ways I'm also out of context, I have not been there, I have not been part of the original conversations, all the information I have is based on two dozen articles I've read, and lots of comments, and following RMS's posts for the last half a dozen year or so
@Shepmaster that's also a very interesting one. (language barrier) when you say "the way a person stands" means the quality of a person's behaviour?
and when you say the "person themself" do you mean, the quality of the traits of a person?
if so then the two things are definitely different, aren't they?
(though there's an intersection between the two)
I think an example would be seeing a stereotypical Bad Person pick up a piece of litter. I could admire the action while still disliking the person.
The action is technically different from the person, but that intersection really muddies the waters.
Then there's an extra nuance where we discover that the litter was actually something that should have been recycled. Now I admire the concept of picking up the litter, but not the person doing it or the specific instance in this case.
Then stretch that out over time and across many distinct events, but for the same person.
19:02
I see what you mean. My world view has several different layers. At the top level I certainly think that Bad People can do good things and Good People can do bad things. One's true nature is surprisingly not just the sum of one's acts, but one's thoughts as well. At a lower level though I have hard time separating The Good from The Bad in the first place, because I ultimately believe there's no such thing because to have something like that, you would need something/someone who has the
knowledge of the Absolute Truth which I believe does not exist. But that's probably a discussion for another time.
For those following recent meta drama... Why I Resigned as a Moderator
@Shepmaster what is your take on this -- just out of curiosity?
@Shepmaster thanks, I hadn't seen this one
@PeterVaro The meta stuff?
@Shepmaster the drama
19:15
It feels like Stack Exchange is going through a growing period where they and the community are learning that a company cannot be successfully managed by the teeming hordes. Definitely not while attempting to be profitable.
This means that norms will need to be readjusted, which may well mean that people are lost over time.
Or that a suitable competitor will emerge.
I don't believe this to be the first such upheaval in the site's history. I'm pretty sure there are a large number of "this is the end of SO / SE" posts on meta and on people's blogs.
I wish for more specifics to be able to make judgements about these specific acts, but I have little hope that they will be provided.
Interesting. I've been part of this community for 6-7 years now but I haven't seen anything as "big" as the current drama.
However, personally I wouldn't mind if something else would take SO's place
it feels like neither the platform nor the community is changing/evolving
My gut says a true competitor has to be "obviously different" in order to pick up the die-hard Stack Overflow haters.
OTOH I quite like the values we built together and I put countless hours building various communities of SO during these years.
@Shepmaster Likely a 'slightly better' alternative wouldn't make it
@PeterVaro Isn't a big part of the current drama is that SE is changing (the rumored new CoC) and people are not happy with the changes / implementation?
@Shepmaster I'm not sure, I'm not following the events that closely, but I think that's part of it, yes
19:30
@Shepmaster the die-hard so haters aren't where the value is
that's the problem with movements like these, if you capture a fringe all you end up with is a fringe
@SébastienRenauld I think that makes the assumption that the people fed up with SO are a minority / fringe. I don't know how to get true numbers though. I just think of all the people that ask questions on the Rust forums or Discord.
@Shepmaster I think there's a little of both: pushback about more-open more-egalitarian values, in ways that are counter to some peoples religion/personal philisophy/gender politics, and pushback about they way in which these changes are being bandied about and rolled out.
(I think the latter is well-justified, and the former isn't)
@Shepmaster discord is in the low 20s, forum will most likely not be people willing to make the jump
things will change if the new CoC gets enforced properly
it won't happen now
19:50
Man, IoT is fun
but IoT isn't fun when a simple CLI requires nodeJS and python and --unsafe-perms and docker and g++
 
3 hours later…
22:24
This platform is cool af, but now I need to think of a cool thing to build with containers and rust on a raspberry pi
 
1 hour later…
23:44
ffs.. we need GATs.

« first day (1813 days earlier)      last day (1896 days later) »