Spyke
lemmy.ca

I do enjoy the rust compiler error messages. They are nicely formatted

72

I'm trying to learn rust and so far this has definitely made it so much more accessible.

Not to mention their super useful "rustlings" training which has these nice little challenges to get you used to language and syntax

22
programming.dev

That's what makes us humans different from computers. We don't ask how high, we just do it. Now, if it were a C pointer it would jump anywhere from 0 to 2^32-1. That's why C is more suited for artificial intelligence than it might initially seem. Thanks for coming to my tedx talk

46
feddit.de

Pointers are ackshully 48 bits on amd64 (which is most PCs and servers)

6

I was mostly joking about a stray pointer of type uint32_t*

So the size of the pointer itself doesn't matter

5
lemmy.world

i dislike rust, but have to give them credit for helpful error messages. not quite racket level but impressive

37

WRONG, PRIVATE!

Now drop and give me int(ceil(19.9))!

32
lemmy.world

I don't know Rust but jump typically moves the program counter, where the height represents the number of instructions to move

10
lemmy.world

Afaik rust doesn't have functions like that as they lead to unsafe code that's impossible to check variable lifetimes for. I think OP created the jump function.

14

You reached the end

Happens all the time | Spyke