Styling is done with `ctx.set_style`, but creating a nice style isn't very easy at the moment (basically you'll have to tweak constants in code, and then recompile). I'm working on making it easier as we speak though!
app.rerun.io definitely looks a great deal better. Knowing that's possible is good motivation.
Making it easier to create styles is definitely a good idea, but I wonder if it wouldn't be enough for many people to have a library of styles they can choose from? In my own case, I think that would be plenty... honestly I just need the one. That one. ;-)
egui author here! Fell free to shoot me any questions. You can try egui in your browser at https://www.egui.rs/
My company Rerun.io is entirely built on egui so that we get the same high-performance UI on the web as on native. Give it a spin at https://app.rerun.io/
I have an app where some tasks can take a long time (like a minute in some cases), so I want the gui to continue responding, and also run my long task in a background thread, then update the GUI when it is finished.
Is there any good examples for this, the examples (not unreasonably), mostly seem to do fairly trivial work.
That’s the key; the thread showing the UI mustn’t do any real work. Instead do the work on another thread and then communicate the status back to the UI thread. Exactly how you do that is up to you; there are plenty of different ways to do it that depend on other choices you’ve made, such as whether you’re using async or not, what async runtime you use, etc, etc.
The very simplest way to do it might be for the UI thread to send the work thread an Arc<AtomicBool>. The work thread can set the bool to true when the work is finished. The UI thread can branch on the value of the bool each frame to decide what to draw. Job done.
Do you have a plan for improving the font rendering to have sub-pixel aliasing on the web? I saw some thoughts on that in some github issues, but I was wondering if there was a general plan.
I don't have a plan for that right now. I'm not even sure a web page can know what the RGB pattern of the display is so it can do proper sub-pixel anti-aliasing.
I'm sort of hoping high-dpi screens will make this a moot point very soon :)
It's not what I wanted to read, but thanks for the honest answer! I realize creating a new toolkit is a huge endeavor, and I hope you'll some point reconsider :-)
Some people will simply not engage in a project if there is no set code of conduct for it. The logic presumable being that even if there is no problem now, problem may come in the future, and a agreed upon code of conduct can nip such problems in the bud.
Or create problems, since they give a huge amount of leverage to those interested in dominating others through purely institutional/bureaucratic power games.
Rust draws on Coraline Ada's Code of Conduct ("Contributor Covenant") which was straight-up designed to force politics on people. She's aggressively pushed it in as many places as possible so they can ban people later for essentially saying what people like her disagree with in any forum (not just project itself). Here's one mob attack over a Twitter comment that didn't work featuring her with appearance of a Rust team member appearing to throw in some support. At one point, the political attackers set the maintainer up to look like he or she supports pedophiles. Dirty, dirty tactics pushing politics that don't even necessarily represent the beliefs of those they claim to protect. People in minority groups have a wide range of beliefs with many contradicting what these "social-justice warriors" act like they believe. They'll censor them, too, if deemed necessary.
I don't follow the Rust conversations enough to tell you anything about what goes on there. That they adopt and enforce a Code of Conduct designed for censorship of non-believers in that cause with a few, strong supporters on the team is enough to worry anti-censorship people. Regardless of Rust project or somewhere else, we opponents block it on grounds of fighting forced compliance with political views with no consensus. Fighting political domination on forums that are supposed to be about tech. That its author has hit many places from Opal to Github means we prefer to block her CoC even more.
Rather have a Code of Merit with clauses for keeping things civil. Minimal to no politics: just project-focused code, docs, and support of people in project-related conversations. That's it.
> Rust draws on Coraline Ada's Code of Conduct ("Contributor Covenant")
I have no idea what you're talking about. Rust's code of conduct is older than the Contributor Covenant, and we've modified it very, very slightly since its inception.
(I also disagree with the rest of your post as well, but that's offtopic and I don't particularly care to discuss it.)
Hmm. I may have assumed you used it because it's referenced in your Code of Conduct as source material. Googling it more gives me multiple sources:
1. Node.JS (semi-fitting of my post) and Contributor Covenant (target of my post) per current site.
2. Citizen Code of Conduct per Reddit. Looks just like Contributor with same provision that people must follow the politically-dominant group's rules on every forum or be blocked. It claims to be derived from Django Code of Conduct (partly-political/partly-good) and a feminism wiki. The latter mentions things like "Verbal comments that reinforce social structures of domination" with long list following to be subjectively evaluated according to their politics. Just like my post again.
So, even if your people did one before Contributor Covenant, it's similar to that pushed by the same kinds of people shoving politics down everyone's throat with some of the same content. My post still stands with the correction that you borrowed from different leftist, control-freak politicians initially with minimal modification from the one I mentioned. Each of the source are very clear about their political agenda and intended censorship.
Ahh. That got tested on another forum I was on. Painful memory that was a good example of how a huge chunk of the U.S. and many computing pioneers would possibly be censored based on their speech alone.
Yes! It is similar to how no amount of software process can protect you from one bad team member. Also, somehow that bad team/forum member always ends up being the person to use those processes or codes of conduct to crush others.
Many small trivial things can add up. Also, if we cater to the status quo ("the vast majority of programmers"), the status quo is less likely to change.
Because you don't benefit from half of your population if you only teach men to code. The same applies to other minorities. Of course it is essential that we can get everyone to code so that everyone can contribute in the future when a lot of work will require coding skills.
Frankly, the white male privledge guilt message is getting old. Programming is mostly self taught, through hours of social isolation researching and seeking it out. Short of writing politically neutral docs that focus on the subject at hand, there is no need to evangelize. It seems more arrogant than anything.
It's not supposed to be about guilt. It's supposed to be about empathy towards those who don't get that privilege.
(Side note: the word "privilege" is really poorly chosen, because in practice it has a strong implication of blame and guilt assignment in our culture.)
Starting when I was twelve, I worked for multiple summers doing landscaping to buy a computer; mowing yards, hauling wood bark, dirt, laying sod, ripping up sod.
It was hard, sweaty, backbreaking labor, especially for a 12 year old; I did it because I wanted to program. I used that computer to teach myself to program, and got my first real programming job from someone who I'd never previously met in person, over IRC.
According to today's identity politics, I need to be aware of my privilege as a white male nonetheless, and my position on the coarse-grained intersectional hierarchy of privilege.
I'm not really sure what I'm supposed to do with that once aware, or why they get to decide where everyone fits on that hierarchy on the basis of traits they deem important.
> According to today's identity politics, I need to be aware of my privilege as a white male nonetheless
Yup. That's because as a white male, you are still "privileged".
I'm using quotes here, because, as mentioned earlier, I don't think the word is a good fit for the concept it's supposed to describe. Privilege implies something above and beyond what you are normally entitled to; something that you don't necessarily deserve (I think that's the main reason why it elicits such a strong negative emotional response in people). As a white male, you are not getting such things - you're getting normal treatment, in a sense that no-one is making negative assumptions about your intellect, your ability to learn etc on the basis of your race or gender (they may well be making them based on other traits, and you can be underprivileged on the corresponding other axes). The problem is that others do get negative points solely on account of their gender, color of their skin, or even their name alone (http://www.nber.org/digest/sep03/w9873.html).
So you don't really have a "white privilege", but rather they have a "non-white handicap". It's not your fault - but because of said privilege, you're in a better position to try to correct it somewhat.
> I'm not really sure what I'm supposed to do with that once aware
Try to do what you can to even things out. I'm not even necessarily talking about politics, but just day to day things. Have you ever seen a female colleague being talked over in a meeting in your presence? Try to steer the discussion to give her voice. Ever been on a hiring interview loop, and heard dismissive racial or cultural stereotyping of a candidate based on their name alone ("I wonder if he codes like an Indian" etc)? Point it out. And so on.
The 'white' part is just as problematic. There are many other things that make life hard too. Having a mental illness, for example, or being molested/abused as a child. Yet no one talks about non-mentally-ill privilege or unmolested privilege. Just because skin color is something that can't be hidden when we go out in public doesn't elevate it above all the other difficulties or challenges in life. I've known people from all those groups and would say that depressives, schizophrenics and victims of molest have far more challenges in life than do minorities. Which is not to say that there aren't people who have more than one set of challenges, just that the focus on race and the implication that life is easy for someone who's white is not productive and frustrates people with other legitimate challenges in life.
This is, to me, why many reasonable people have a problem with identity politics. In an effort to bring awareness to the struggles of some, it actually ends up making others feel marginalized and their experiences minimized and is confrontational in nature. Empathy is about envisioning yourself in someone else's situation. The way we do identity politics today, it's the reverse. Instead of the desired, "I imagine myself in your position and I see how hard it must be" it's "I imagined myself in your position and, trust me, it's easier than mine."
I have a parent who is a psychologist. Growing up, I was taught that the right way to handle conflict was to always talk about your personal experience. Saying, "you're being insensitive" is accusatory, controversial and bound to cause an argument. Saying, "I feel unappreciated" is an unequivocally correct statement that can't be argued because no one else can know how you experience something. The only way to sort of refute that is to say, "I don't intend to make you feel that way." The problem with the term "white privilege" is that it's not a personal experience term. It's a term that encapsulates a projection of the white experience from the perspective of minorities. Anyone who doesn't feel they lead a privileged life will instinctively reject it. We need to be using terminology that's in line with the "I feel..." way of expressing oneself...terminology that helps convey the difficulties that some people face rather than the lack of difficulties everyone else faces.
> The 'white' part is just as problematic. There are many other things that make life hard too. Having a mental illness, for example, or being molested/abused as a child. Yet no one talks about non-mentally-ill privilege or unmolested privilege.
Actually yes, we do talk about that stuff as well. The things that you hear most - racial, gender, wealth and religious privilege - are talked about more simply because they affect proportionally more people.
The university I attended had females comprise 90% of all students in computer science, and over half of all students in engineering fields. Anecdotes are fun.
Maybe there's some magical place where you can actually learn how to program from someone else, but for the rest of us, there's no substitute for solitary hours grinding away actually doing the work.