yetAnotherUser

joined 2 years ago
[–] yetAnotherUser@lemmy.ca 3 points 1 month ago

Spiders are so cool... :)

[–] yetAnotherUser@lemmy.ca 8 points 1 month ago

Not a song suggestion, but please take precaution with the shards, to avoid you and other people getting cut ;)

(To be honest, I'd just use "Back in Black")

[–] yetAnotherUser@lemmy.ca 3 points 1 month ago

and if the first word in a word is a vowel

Damn, that sounds a bit complex /j (Thanks for the insight on how Gaelic definitive articles work btw)

[–] yetAnotherUser@lemmy.ca 1 points 1 month 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).

[–] yetAnotherUser@lemmy.ca 11 points 1 month 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.

[–] yetAnotherUser@lemmy.ca 7 points 1 month ago (1 children)

The shading is gorgeous, nice work! 👍

[–] yetAnotherUser@lemmy.ca 6 points 2 months 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.

[–] yetAnotherUser@lemmy.ca 2 points 2 months 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 :)

[–] yetAnotherUser@lemmy.ca 3 points 2 months 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.

[–] yetAnotherUser@lemmy.ca 17 points 2 months ago (1 children)

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

view more: ‹ prev next ›