2020年5月6日のブックマーク (6件)

  • アライメントを知る | 組込屋

    2017年12月26日2020年1月19日 世の中のプログラマーの大半は、アライメントというものを知らないし、知る必要もありません。 ですが、組み込みプログラマーは別です。もしこの用語が初耳なら、概要だけでも理解しておきましょう。最悪の場合、プログラムが停止する問題に発展することもあるからです。 とはいえ、難しい話ではありません。ここで要点を整理しますので、ぜひ覚えて帰ってください。 結論 とにかく頭に入れておくべき結論は、これです。 アライメントとは、このルールを意識した行為全般を指す言葉です。 問題点 通常の動作 C であれ C++ であれ、来はコンパイラが常にこのルールを満たすように取り計らってくれますから、ほとんどの場合、プログラマーは何も意識する必要はありません。たとえば―― int16_t a; と書けば、a のアドレスは必ず2の倍数になりますし―― int32_t b; と

    アライメントを知る | 組込屋
    proxy0721
    proxy0721 2020/05/06
  • 【C++】パディングとアライメント

    こんにちは。 制作部プログラマーの日髙です。 以前にブログを投稿したのはインターンの時になるので一年半ぶりです。 一人で書くので少し緊張しています。 今回は、最近調べることがあったパディングについて簡単にまとめてみました。 ※アライメントとパディングは環境によって変わります。 Visualstudio2019 c++ <x86, x64>で確認しました。

    【C++】パディングとアライメント
    proxy0721
    proxy0721 2020/05/06
  • Redis 6.0.0 GA is out! - <antirez>

    antirez 2171 days ago. 204175 views. Finally Redis 6.0.0 stable is out. This time it was a relatively short cycle between the release of the first release candidate and the final release of a stable version. It took about four months, that is not a small amount of time, but is not a lot compared to our past records :) So the big news are the ones announced before, but with some notable changes. Th

    proxy0721
    proxy0721 2020/05/06
  • Getting Started with Redis 6 Access Control Lists (ACLs) | Redis

    proxy0721
    proxy0721 2020/05/06
  • Diving Into Redis 6.0 | Redis

    Download the latest version by clicking here. You know the warning on the shallow end of the pool where it says “NO DIVING”? Well, the new Redis 6 is no shallow update to the world’s most-loved databaseit’s so deep you can dive right in. Now that Salvatore Sanfilippo has made Redis 6 generally available, let’s take a dip in the new changes and features. The new stuff can be divided into a few dif

    Diving Into Redis 6.0 | Redis
    proxy0721
    proxy0721 2020/05/06
    LCS!
  • データ型の範囲

    Microsoft C++ の 32 ビットおよび 64 ビット コンパイラは、この記事の次の表に示す型を認識します。 - int (unsigned int) - __int8 (unsigned __int8) - __int16 (unsigned __int16) - __int32 (unsigned __int32) - __int64 (unsigned __int64) - short (unsigned short) - long (unsigned long) - long long (unsigned long long) 名前が 2 つのアンダースコア (__) で始まっている場合、そのデータ型は非標準です。 次の表で指定している範囲には、その最大値と最小値も含まれます。 種類名 バイト その他の名前 値の範囲

    データ型の範囲
    proxy0721
    proxy0721 2020/05/06