[-] snaggen@programming.dev 2 points 1 year ago

These are good in a more hands on way, but it is hard there to understand the conceptual difference between MIT and EUPL. So, I deliberately didn't go in to the details, since there are a lot of tools for that. I aimed for a higher level, since I find people often have missed that.

[-] snaggen@programming.dev 3 points 2 years ago

Yes, historical medicin was so good, lets work our ass off to recreate it...

[-] snaggen@programming.dev 2 points 2 years ago

Good to know that every time I feel the need to use ALGOL 68, I must remember to disable ligatures. Still not sure this is going to be a huge problem 😂

[-] snaggen@programming.dev 2 points 2 years ago

Well, that was something.... I have used ligatures in my code editor for quite a few years now, and I have NEVER been confused about the ambiguity this person is so upset about. Why? I have never ever seen the Unicode character for not equals in a code block, simply since it is not a valid character in any known language. In fact, I have never even seen it in a String where it actually would be legal, probably since nobody knows how to type that using a standard keyboard. This whole article felt like someone with a severe diagnose have locked in on some hypothetical correctness issue, that simply isn't a problem in the real world.

But, if you for some reason find ligatures confusing, then you shouldn't use them. But, just to be clear, there is not a right of wrong like this blog post tries to argue, it is a matter of personal taste.

[-] snaggen@programming.dev 2 points 2 years ago

It is making the tracking protection part of containers obsolete, this is basically that functionality but built in and default. The containers still let you have multiple cookie jars for the same site, so they are still useful if you have multiple accounts on a site.

[-] snaggen@programming.dev 2 points 2 years ago* (last edited 2 years ago)

But per mile measurement for flying implies that every mile of a flight is equally dangerous, but the truth I'd that it is most dangerous to start or land, which is a per trip occurrence. The take off and landing is equally dangerous whether you travel a long or short distance in between.

[-] snaggen@programming.dev 2 points 2 years ago* (last edited 2 years ago)

One breaking change, that they doesn't list as breaking (I guess since I assume the old was always broken) is: Dynamic registration of LSP capabilities. An implication of this change is that checking a client's server_capabilities is no longer a sufficient indicator to see if a server supports a feature. Instead use client.supports_method(). It considers both the dynamic capabilities and static server_capabilities.

So if you had code like

if client.server_capabilities.inlayHintProvider then
...
end

you now should use

if client.supports_method("inlayHintProvider") then
...
end

So, not really a breaking change I guess, but something you should change any way.

[-] snaggen@programming.dev 3 points 2 years ago

I say that you should find some interesting project, possibly something related to some desktop environment like Gnome, KDE, sway, cosmic and so on. There are multiple fun/interesting projects around them. Then pick a small and manageable task, use that to learn the language that project uses.

I find Cosmic to be a very interesting desktop project, and they use Rust if that would be of interest.

[-] snaggen@programming.dev 3 points 2 years ago

And the Copy question.It is not that s reference has to implement Copy. A reference IS Copy, by the simple fact that it is a primitive value on the stack.

[-] snaggen@programming.dev 2 points 2 years ago* (last edited 2 years ago)

I actually agree, I much prefer articles. However, I found this interesting since it looked at turbopack, parcel, rspack and others and talked about how it comes that the JavaScript ecosystem seems to start to use a lot of rust for their tooling. It was quite long though...

46
50
13
Rust Analyzer Changelog #202 (rust-analyzer.github.io)
66
8
21
7
15
This Week in Rust 515 (this-week-in-rust.org)
17
23
1.73.0 pre-release testing (blog.rust-lang.org)
18

@nnethercote@mas.to wrote:

I have rewritten the Build Configuration chapter of the Rust Performance Book.

https://nnethercote.github.io/perf-book/build-configuration.html

It's now a much better guide to all the ways you can change the performance characteristics of your Rust program without changing its source code. These characteristics include runtime speed, memory use, binary size, and compile times.

Big improvements to your Rust program's performance are possible with simple changes. Try these things out!

12

Not happy to link to the evil site, but there was no other link, and I thought that there might be people here that migtht be interested in helping out with porting Kellnr to Axum.

Here is the original request by /u/secanadev on the evil site:

Hi Rustaceans,

I’m the author of https://kellnr.io. When I started working on Kellnr three years ago, https://rocket.rs was “the web framework” to use. Unfortunately, the project seems dead. Before adding more functionality using an unmaintained framework, I want to port Kellnr to https://github.com/tokio-rs/axum.

Kellnr is a huge project, so migrating it will take a long time as every handler, state, and test have to be migrated. I’ve never worked with Axum before, and the amount of work feels overwhelming.

Are there any brave Rust warriors with experience in Axum? If so, would you be interested in helping me migrate the project?

[-] snaggen@programming.dev 3 points 3 years ago

Just to be clear, I'm not the author I just found it a quite interesting article and thought I'd share it here.

[-] snaggen@programming.dev 2 points 3 years ago

I think you are getting things backwards.... Learning to write rust might be hard, if you are not used to typed languages or languages with explicit memory management with stack/heap separation. However, writing rust is not hard. It might take slightly longer in the coding phase, since you are forced to do things correct, you need to handle errors and are not allowed to share data between threads in dangerous ways aso. But that makes the resulting software a lot better, which means that the testing and support is a lot less. So, if anything, the net result of writing software in rust is that it is easier, since you are not allowed to shoot your self in the foot over and over again.

And remember, that every time rust is making your life difficult, you might have introduced a subtle bug in another language.

view more: ‹ prev next ›

snaggen

0 post score
0 comment score
joined 3 years ago