snaggen

joined 2 years ago
[–] snaggen 11 points 6 days ago* (last edited 6 days ago) (2 children)

When I was in my 20:ies, I had my alarm clock at the other side of the room and still managed to oversleep. I ended up having it under my bed close to the wall, so I had to crawl in under my bed (quite narrow space) pressing my body to the cold floor to turn off the alarm... and I never managed to turn that off in my sleep. But I would have preferred a wake up call... so, even though I have never used the service when staying at a hotel, I can see why some people use it.

[–] snaggen 17 points 1 week ago

Not the creator, just posting

[–] snaggen 5 points 1 week ago

I think this would be a nice improvement to reduce boiler plate.

[–] snaggen 9 points 2 weeks ago

On an unrelated note, don't forget to sanitize your input.

[–] snaggen 16 points 2 weeks ago (1 children)

This is why Bobby Tables mom needs her Github account suspended.....

31
submitted 2 weeks ago by snaggen to c/rust
 

fjärrinlägg från: https://lemmy.world/post/22673996

This mod is written in an unconventional way: it is written in Rust. The Rust code is here. It uses JNI and JVMTI to interact with Java objects. The only Java code in this mod is for loading the compiled native binary into memory.

[–] snaggen 7 points 3 weeks ago

It remove the central server, which is often the single point of failure. So even if it doesn't add more security than signal, it adds resilience. And this is not Tor in the way that its not a proxy, its a framework to build secure peer to peer applications.

63
Announcing Rust 1.83.0 (blog.rust-lang.org)
submitted 3 weeks ago by snaggen to c/rust
49
submitted 3 weeks ago by snaggen to c/rust
45
submitted 3 weeks ago by snaggen to c/rust
20
submitted 3 weeks ago by snaggen to c/rust
[–] snaggen 11 points 1 month ago* (last edited 1 month ago) (1 children)

That requires a complete picture and all possible use cases from the start. Initially when a language is new and hardly used there are much to benefit from flexibility and trying new concepts. Then as the language matures, a more formal process is needed to ensure stability. There is a reason these discussions comes now, since rust is in a very stable phase.

[–] snaggen 14 points 1 month ago (4 children)

As someone that have worked in software for 30 years, and deplying complicated software, shared libraries is a misstake. You think you get the benefit of size and easy security upgrades, but due to deployment hell you end up using docker and now your deployment actually added a whole OS in size and you need to do security upgrades for this OS instead of just your application. I use rust for some software now, and I build it with musl, and is struck by how small things get in relation to the regular deployment, and it feels like magic that I no longer get glibc incompatibility issues.

23
submitted 1 month ago by snaggen to c/rust
37
submitted 2 months ago* (last edited 2 months ago) by snaggen to c/rust
[–] snaggen 1 points 2 months ago

Ok, I then have some business proposals....

[–] snaggen 10 points 2 months ago* (last edited 2 months ago) (11 children)

Mindblowing features are basically, by definition, a result of bad language design. They blow your mind, since they are totally unexpected behaviours. They may still be cool, but they are unexpected and hence unintuitive.

A language that are full of these is Perl. And one simple one is that you can take the string "AAAAA" and use addition on that, like "AAAAA"++ and you will get the result "AAAAB". Cool you may think, but is it really? Addition is normally used to increase the value of a number, that is a completely different operation than modifying a String. The string "AAAAA" cannot be said to be greater or less than "AAAAB", besides the very special case when we order it. But in general the name "John" is not considered to be higher/lower than "Mark", they are just different. So, even if it is cool to manipulate strings by using addition/subtraction, it is still bad language design and very unintuitive. Also, since perl is so loosely typed, it may also cause very unexpected bugs.

[–] snaggen 11 points 2 months ago* (last edited 2 months ago)

Which is kind of surprising, since it basically just is a bunch of "I'm cannot understand why .... is needed", "I cannot learn...." and "I think that is ugly". And since the OP is coming from TypeScript, and how the OPs understanding of programming, it is clear it is a junior web developer trying rust and failing. Nothing to see here... well, the OP clearly have some kind of grandios ego, thinking that the OPs inability to learn something, must be because it is bad (I mean, there is clearly no other possiblities)... but not even that is worth responding to. And don't read this wrong, there is plenty to complain about with Rust, however, nothing of that is in OP which is basically just as insightful as a baby crying.

[–] snaggen 5 points 2 months ago (1 children)

Ok, so we use different search engine so you didn't find this particular hit. But, do you really claim that learning material is an issue here. And about my attitude, yes, I was a bit cranky. In general, you can ask any stupid question, heck I ask stupid questions all the time and they will be answered kindly. The rust community knows that lifetimes and stuff like that is complicated.

However, I'm quite fed up with the attitude that it is someone elses obligation to spoon feed you with knowledge that exists right under the nose... and that is a very common attitude amongst the "For rust to succeed..." evangelists.

view more: next ›