redempt

joined 1 year ago
[–] [email protected] 11 points 1 month ago (1 children)
[–] [email protected] 91 points 1 month ago (9 children)

needs more trees

[–] [email protected] 27 points 1 month ago (1 children)

I get this, in a slightly different way. when I really really like someone it starts to feel like they are literally living in my head and I police even my thoughts lest they see them. I know it's irrational but it's more of an impulse.

[–] [email protected] 3 points 1 month ago

Good article, though I wish it talked more about how CPUs choose what to cache

[–] [email protected] 3 points 1 month ago

exactly where my mind went

[–] [email protected] 2 points 2 months ago

There's no real need for character literals. They would behave exactly the same as string literals but only support a single character. And you can use escape sequences in the string literal, of course.

 
[–] [email protected] 6 points 2 months ago

..but it's not? and I thought the term intersex was preferred

[–] [email protected] 2 points 3 months ago

the HDR by my understanding is basically just automatic conversion, not actually support for programs to use HDR on their own. I've been using gamescope to run games in native HDR.

[–] [email protected] 9 points 3 months ago

beautifully drawn!

[–] [email protected] 2 points 3 months ago (1 children)

ngl season genders would go hard. autumngender? wintergender? 👀👀👀

[–] [email protected] 0 points 3 months ago (2 children)

now you're just putting words in my mouth. when did I ever say everyone has to give everything they have over "the average" away? it's true we should strive for more equality, and I would be happy to pay a larger share to taxes for the public good rather than warfare, but you're really not making good faith arguments anymore.

if your faith in humanity is determined entirely by the people in charge, then you're going to have no faith at all. so you've missed my point. these are not carried out by "the average person". democracy can lead to less cruelty. it is not perfect, but it also helps if the population is not heavily propagandized and is well educated.

I'm going to stop replying after this because I feel that you're not addressing the points I'm making anymore.

[–] [email protected] 0 points 3 months ago (5 children)

as always, this boils down to mistrust of your fellow man. capitalism makes us more selfish, it rewards greed, that is what it incentivizes and so of course people act greedier. people want to help each other, they want to make the world a better place to live, and nobody should be forced to work how someone else says they should with no say in it. without competition, people have to pick up the slack with altruism and actual passion and care. if we reward collaboration, if we incentivize kindness and caring and actual benefit, those are the things we will see more of. as it stands, we subsidize everything that is killing us.

the goal of an economy is not to produce endlessly, as much as possible. capitalism is extremely growth oriented. that's about all it's good for: rapid growth, at the expense of equity and workers' autonomy. we no longer need this growth and competition; we need to downscale and produce less. the goal of an economy should be to provide what people need, as seamlessly as possible.

everything you're saying speaks to a lack of understanding of the world around us. I think you can describe this "ideal" form of capitalism, but it's nothing like what we actually see in the real world. companies are extremely exploitative, they do ignore or lobby against regulations as much as possible, they exploit workers as much as they can get away with.

the fundamental problem is that ethics are not profitable. ethics are a luxury, and you can always find a way to cut costs if you're willing to be unethical. an economy is not a machine to squeeze optimum efficiency out of, it is made of people with thoughts and feelings and ambitions, and all of its externalities come back to these same people.

if we want to have an ethical society, ruthless pursuit of efficiency is about the worst possible way to get there, but it is the ultimate goal of capitalism. this efficiency is not for us, though; it is efficiency of accruing as much wealth (and thereby power) as possible.

I don't believe any strict power hierarchy (like the employer-employee relationship or the parent-child relationship) can ever be fully ethical. we may sometimes deem them necessary, but I think we really need to think twice about making someone subject to another person's will. workers in a corporation have no say at all in how their workplace is run, what their duties are, or how they carry them out. for eight or more hours per day, people do not control their own decisions, and I think this is the most egregious effect of capitalism.

this is again going to come down to lack of faith in human nature. I believe that people are fundamentally good, that they care about the world around them and want to improve it for themselves and the people they love. they can sometimes be selfish, but they are far more giving than we ever give them credit for. there is immense trauma throughout the world from war and abuse, but there is even greater capacity for kindness. it's easy to believe that people are fundamentally cruel when the world around us is cruel, but the average person has no say in how it operates; this system of incentives rewards whoever is most willing to act immorally to undercut their competitors, essentially guaranteeing that the least ethical individuals end up in charge of everything. you can see this in the leadership of virtually every major corporation.

I believe the average person is far more hardworking, caring, loving, and kind than the people who run our economy, and if all of us collaborated and organized together, we could be far more efficient and beneficial to one another than our current system allows. the more we do this, the easier it becomes to be kind. after all, we know that the leading causes of crime and abuse are all situational. we will need unprecedented solidarity, and only by uplifting everyone out of poverty can we get there.

 

Been working on this a few months. It's inspired by previous generations of parser generators, and by my own previous work generating ast lexers from grammar files. This integrates seamlessly with the type system, allowing you to declare your syntax, extract only the data you want as variables, and evaluate them easily. And just from a simple description of your syntax, you'll get beautiful errors which visually point out structures in the input.

With this I have been able to implement a (mostly complete) JSON parser in just 12 lines of parsing logic, and a pmdas-respecting expression parser in just 6 (with one helper function to apply individual operators).

Examples available on the github repo, also now available on crates.io!

view more: next ›