Ark68 SE 키보드 리뷰
Keyboard | Layout | Mount | Plate |
---|---|---|---|
Ark68 SE | 65% | Gasket | Aluminium |
Keyboard | Layout | Mount | Plate |
---|---|---|---|
Ark68 SE | 65% | Gasket | Aluminium |
Recently, I got a question asking about the functionality to make image pop up so viewer can have a better look at it. I’m not sure what is the common name of the functionality (popup image? image gallery?), but I happens to have thought about the same feature long time ago, but never started implementation. So I thought this would be the good time to start it!
And it took whole friday night because I didn’t know that element.src
and element.getAttribute(src)
returns different thing
이번에 M1에서만 발생하는 concurrency issue를 접하고 버그를 해결하는 과정에서 애매하게 알고 있던 memory order에 대해 정확히 짚고 넘어갈 수 있는 시간을 가질 수 있어 짧게 해당 내용을 남깁니다.
Relaxed
는 함부로 쓰지 맙시다.
Relaxed
는 명령어 재배치/최적화에 관한 어떠한 보장도 해주지 않습니다.
컴파일러가 보장해주는 유일한 사실은 Relaxed
를 사용하는 atomic operation은 atomic 하다는 것입니다.
디자이너 biip의 DSA Milkshake 키캡 리뷰입니다.
새하얀 키캡에 파스텔톤의 포인트 키캡이 매력적인 Milkshake 키캡입니다. 제가 구매한 DSA 외에도 대중적인 Cherry Milkshake 또한 존재합니다. 다만 저는 알파벳이 정 중앙에 각인된걸 좋아해서 DSA로 선택하였습니다.
Finally the last topic of the Rustlings!
I honestly didn’t think writing solutions would take this long. But finally, I’ve made it!
Kudos to me!
You may find solution code for the topic from my repo.
If you are having difficulties with the exercise, please check the below references:
You may find solution code for the topic from my repo.
Rust offers a multitude of ways to
convert
a value of a given type into another type.
The simplest form of type conversion is a type cast expression. It is denoted with the binary operatoras
.
For instance,println!("{}", 1 + 1.0);
would not compile, since1
is an integer while1.0
is a float. However,println!("{}", 1 as f32 + 1.0)
should compile. The exerciseusing_as
tries to cover this.Rust also offers traits that facilitate type conversions upon implementation. These traits can be found under the
convert
module. The traits are the following:
From
andInto
covered infrom_into
TryFrom
andTryInto
covered intry_from_into
AsRef
andAsMut
covered inas_ref_mut
ld both compile and run without panicking. These should be the main ways within the standard library to convert data into your desired types.
You may find solution code for the topic from my repo.
The Clippy tool is a collection of lints to analyze your code so you can catch common mistakes and improve your Rust code.
If you used the installation script for Rustlings, Clippy should be already installed. If not you can install it manually viarustup component add clippy
.
You may find solution code for the topic from my repo.
Rust’s macro system is very powerful, but also kind of difficult to wrap your head around. We’re not going to teach you how to write your own fully-featured macros. Instead, we’ll show you how to use and create them.
You may find solution code for the topic from my repo.
In most current operating systems, an executed program’s code is run in a process, and the operating system manages multiple processes at once. Within your program, you can also have independent parts that run simultaneously. The features that run these independent parts are called threads.
You may find solution code for the topic from my repo.