yetAnotherUser

joined 2 years ago
[–] [email protected] 1 points 4 days ago (1 children)

Tsoding has created a few rules for writing Rust to make Rust "fun" to program in, and gave them the name of Crust.

Here is the rule set (it may change over time):

  1. Every function is unsafe.
  2. No references, only pointers.
  3. No cargo, build with rustc directly.
  4. No std, but libc is allowed.
  5. Only Edition 2021.
  6. All user structs and enums #[derive(Clone, Copy)].
  7. Everything is pub by default.

If you ever want to try this out for some ungodly reason, there's a GitHub repository with an example Main that shows how to use libc and other libraries (in the example, it's raylib), and with a Makefile showing how to compile your projects (remember we aren't using cargo).

[–] [email protected] 12 points 6 days ago (1 children)

OP, I don't think you've correctly linked to the post (when I visit the linked webpage, the browser tries to download an ActivityPub activity instead of showing the post in the Mastodon web UI). Please replace the link with this one.

[–] [email protected] 7 points 1 week ago (1 children)

The shading is gorgeous, nice work! 👍

[–] [email protected] 6 points 1 week ago (5 children)

Wait, now I need to know why.

* some time later *

I went to check why the hell this happened. It looks like the pair ("(,)") is defined as an instance of Foldable, for some reason, which is the class used by functions like foldl() and foldr(). Meanwhile, triples and other tuples of higher order (such as triples, quadruples, ...) are not instances of Foldable.

The weirdest part is that, if you try to use a pair as a Foldable, you only get the second value, for some reason... Here is an example.

ghci> foldl (\acc x -> x:acc) [] (1,2)

[2]

This makes it so that the returned length is 1.

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

Ce n'est pas du tout bon, j'ai utilisé le dictionnaire, et un outil pour vérifier ma écriture pour écrire mon commentaire (je ne utilise cet util maintenant pour montrer ma vrai aptitude en français). J'ai encore beaucoup de chemin à faire pour arriver à l'aisance en français. Si vous voyez que j'ai fait une faute, corrigez-moi, s-il vous plaît :)

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

Du moins le français a des règles pour lire les mots. Je suis pas français, et lorsque j'ai appris le français, ces règles n'étaient pas intuitives. Aujourd'hui, je peux deviner les lectures des mots. Pour comparer, l'anglais, c'est le chaos! Il n'y-a pas des règles ! C'est déroutant ! Comme c'est possible qui cette est la plus parlé dans le monde ? Je sais pas comment j'ai survécu de apprendre l'anglais !

Pourtant, je suis d'accord. L'espagnol est meilleur dans ce domaine.

[–] [email protected] 17 points 2 weeks ago (1 children)

Fellas, is it possible to learn the Deutsche language just from ich iel?

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

The way I'm imagining it, the website would try to fill in the values for you (the color and the coordinates), but you'd have input fields so you could insert the values in case the website didn't find the correct ones.

Also, let me ask you something in Portuguese. Eu vi que você é brasileiro. Você preferia que eu fizesse o website em português ou inglês?

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

I just had an idea! It'd be really cool if I made you a website that retrieved the last image you uploaded, read the comments sorted by upvotes, added the pixel, uploaded the image to your instance, and made a new post; and while doing so, it'd be cool if it showed you every step of the process so you could see if things were going fine. It'd be cool, but it would take at least a month for me to make...

As with finding the coordinates and the color hex code in every comment, I believe to know a way to approach this problem that would work 97% of the time.

[–] [email protected] 4 points 2 weeks ago
[–] [email protected] 2 points 2 weeks ago (5 children)

Hey OP, do you want me to (try to) make you a script so that you don't have to do it manually every day? Or do you prefer to keep doing as you already do?

 

Sorry for writing all of this in one go, but I felt like this was so urgent I needed to say all of this before I go to bed (it is late where I live). So, in true surrealist fashion, here goes my stream of conciousness.

I'm pretty much talking about this post where mods of another Lemmy community say that jawa21 is asking for money because she doesn't have enough money to pay for her fine. If this sounds fishy, here's another mod of that community explaining a few more details.

If you don't have time to read that, here's the TLDR: jawa21 has been arrested and forced to pay a fine for arsoning (nobody knows if she actually did it, but that's not the point). She already did her jail time, but she doesn't have enough money to pay the 1k$ fine (she says she just has 40$ right now), so she will face even more jail time if no one helps her through this. She lives in the US, and as most of us already know, the prisional system has been a shitshow, specially now that they aren't even respecting people's genders. The reason why this is so urgent is because she has until tomorrow to pay or else jail!

Thought I might have shared this with you guys and gals, as she has recently posted some comics in here. If you wanna donate, the link is https://www.buymeacoffee.com/jawa21 . That is all I have to say. Have a nice day.

 

This release already happened two weeks ago, but putting it here for those unaware of it. This is Yves' first solo release as herself and not as part of the LOONA project.

28
Brack(rul)eys (files.catbox.moe)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
55
Cirno car(ule) (va.media.tumblr.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Eu hoje vi um episódio em que havia uma senhora com margem de 1500€ que apostou uns 800€ acima do preço verdadeiro da montra final, mas perdeu à mesma. Eu fiquei confuso: não deveria a senhora ter ganho se a margem dada pelo programa é claramente superior à margem de erro da sua aposta? Será que a margem do Preço Certo não funciona da maneira que eu penso que funciona?

view more: next ›