はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    GWの過ごし方

『Anton Zhiyanov』

  • 人気
  • 新着
  • すべて
  • Porting Go's strings package to C

    3 users

    antonz.org

    Creating a subset of Go that translates to C was never my end goal. I liked writing C code with Go, but without the standard library it felt pretty limited. So, the next logical step was to port Go's stdlib to C. Of course, this isn't something I could do all at once. I started with the io package, which provides core abstractions like Reader and Writer, as well as general-purpose functions like C

    • 学び
    • 2026/04/07 12:58
    • あとで読む
    • (Un)portable defer in C

      3 users

      antonz.org

      Modern system programming languages, from Hare to Zig, seem to agree that defer is a must-have feature. It's hard to argue with that, because defer makes it much easier to free memory and other resources correctly, which is crucial in languages without garbage collection. The situation in C is different. There was a N2895 proposal by Jens Gustedt and Robert Seacord in 2021, but it was not accepted

      • テクノロジー
      • 2026/02/06 21:14
      • C
      • Interfaces and traits in C

        3 users

        antonz.org

        Everyone likes interfaces in Go and traits in Rust. Polymorphism without class-based hierarchies or inheritance seems to be the sweet spot. What if we try to implement this in C? Interfaces in Go • Traits in Rust • Toy example • Interface definition • Interface data • Method table • Method table in implementor • Type assertions • Separate self • Final thoughts Interfaces in GoAn interface in Go is

        • テクノロジー
        • 2026/01/24 10:39
        • C
        • Go 1.26 interactive tour

          5 users

          antonz.org

          Go 1.26 is coming out in February, so it's a good time to explore what's new. The official release notes are pretty dry, so I prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see! new(expr) • Recursive type constraints • Type-safe error checking • Green Tea GC • Faster cgo and syscalls • Faster memory allocation • Vectorized o

          • テクノロジー
          • 2026/01/06 02:02
          • tutorial
          • あとで読む
          • Go feature: Modernized go fix

            4 users

            antonz.org

            Part of the Accepted! series: Go proposals and features explained in simple terms. The modernized go fix command uses a fresh set of analyzers and the same infrastructure as go vet. Ver. 1.26 • Tools • Medium impact SummaryThe go fix is re-implemented using the Go analysis framework — the same one go vet uses. While go fix and go vet now use the same infrastructure, they have different purposes an

            • テクノロジー
            • 2025/12/22 21:16
            • go
            • Go feature: Type-safe error checking

              3 users

              antonz.org

              Part of the Accepted! series: Go proposals and features explained in simple terms. Introducing errors.AsType — a modern, type-safe alternative to errors.As. Ver. 1.26 • Stdlib • High impact SummaryThe new errors.AsType function is a generic version of errors.As: // go 1.13+ func As(err error, target any) bool // go 1.26+ func AsType[E error](err error) (E, bool)

              • テクノロジー
              • 2025/12/02 21:28
              • Write the damn code

                3 users

                antonz.org

                Here's some popular programming advice these days: Learn to decompose problems into smaller chunks, be specific about what you want, pick the right AI model for the task, and iterate on your prompts. Don't do this. I mean, "learn to decompose the problem" — sure. "Iterate on your prompts" — not so much. Write the actual code instead: Ask AI for an initial version and then refactor it to match your

                • 学び
                • 2025/09/27 08:03
                • Go 1.25 interactive tour

                  4 users

                  antonz.org

                  Go 1.25 is out, so it's a good time to explore what's new. The official release notes are pretty dry, so I prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see! synctest • json/v2 • GOMAXPROCS • New GC • Anti-CSRF • WaitGroup.Go • FlightRecorder • os.Root • reflect.TypeAssert • T.Attr • slog.GroupAttrs • hash.Cloner This artic

                  • 暮らし
                  • 2025/06/29 12:26
                  • Go 1.24 interactive tour

                    7 users

                    antonz.org

                    Go 1.24 is out, so it's a good time to explore what's new. The official release notes are pretty dry, so I prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see! Generic aliases • Weak pointers • Improved finalizers • Swiss tables • Concurrent map • Directory scope • Benchmark loop • Fake time • Test context • Discard logs • Ap

                    • テクノロジー
                    • 2025/01/13 23:46
                    • golang
                    • High-precision date/time in SQLite

                      17 users

                      antonz.org

                      While SQLite provides a certain number of date functions, I wanted something more. So I've created sqlean-time — a high-precision date/time extension with a structured API and a rich set of functions. Note. Adding extensions to SQLite is a breeze. Download a file, run one database command — and you are good to go. Concepts • Creating values • Extracting fields • Unix time • Time comparison • Time

                      • テクノロジー
                      • 2024/08/09 00:47
                      • SQLite
                      • DB
                      • あとで読む
                      • 未分類
                      • Go 1.23 interactive tour

                        3 users

                        antonz.org

                        Go 1.23 is out, so it's a good time to explore what's new. The official release notes are pretty dry, so I prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see! Iterators • Timers • Canonical values • Cookies • Copy directories • Slices • Atomics • Panic traceback • Telemetry • Summary This article is based on the official rel

                        • テクノロジー
                        • 2024/07/20 22:30
                        • Resetting timers in Go

                          3 users

                          antonz.org

                          If you use Timer.Reset() in Go 1.22 or earlier, you may be doing it wrong. Even the book 100 Go Mistakes (which is usually right about Go nuances) got it wrong. Let's see what the problem might be and how to work around it. time.AfterIncorrect solutionReset problem1.23 fixPre-1.23 solutionPost-1.23 solutiontime.AfterFuncFinal thoughtstime.AfterUsing time.After() in a loop in Go ≤1.22 can lead to s

                          • テクノロジー
                          • 2024/07/07 11:37
                          • UUIDv7 in 33 languages

                            93 users

                            antonz.org

                            UUIDv7 is a 128-bit unique identifier like it's older siblings, such as the widely used UUIDv4. But unlike v4, UUIDv7 is time-sortable with 1 ms precision. By combining the timestamp and the random parts, UUIDv7 becomes an excellent choice for record identifiers in databases, including distributed ones. Let's briefly explore the UUIDv7 structure and move on to the zero-dependency implementations i

                            • テクノロジー
                            • 2024/06/17 19:33
                            • uuid
                            • あとで読む
                            • programming
                            • プログラミング
                            • Python
                            • *あとで読む
                            • Grep by example: Interactive guide

                              12 users

                              antonz.org

                              grep is the ultimate text search tool available on virtually all Linux machines. While there are now better alternatives (such as ripgrep), you will still often find yourself on a server where grep is the only search tool available. So it's nice to have a working knowledge of it. That's why is I've created this interactive step-by-step guide to grep operations. You can read it from start to finish

                              • テクノロジー
                              • 2024/03/24 01:48
                              • grep
                              • reference
                              • あとで読む
                              • I'm a programmer and I'm stupid

                                4 users

                                antonz.org

                                I've been writing code for money for 20 years. I've tried other roles — product management, analytics, testing — but they didn't stick. And over the years, I've learned that I'm pretty dumb. Unfortunately. I haven't been diagnosed with any specific medical condition, but my mental capacity is very limited. I find even easier Leetcode problems challenging. Reading about a basic consensus algorithm

                                • テクノロジー
                                • 2024/03/07 17:03
                                • In-browser code playgrounds

                                  34 users

                                  antonz.org

                                  I'm a big fan of interactive code snippets in all kinds of technical writing, from product docs to online courses to blog posts. Like this one: In fact, I even built an open source tool called Codapi1 for embedding such snippets. Typically, a code playground consists of a client-side widget and a server-side part that executes the code and returns the result: browser ┌─────────────────────────────

                                  • テクノロジー
                                  • 2024/01/07 04:04
                                  • WebAssembly
                                  • あとで読む
                                  • ブラウザ
                                  • プログラミング
                                  • Programming
                                  • Go 1.22 interactive tour

                                    4 users

                                    antonz.org

                                    Go 1.22 is out, so it's a good time to explore what's new. The official release notes are pretty dry, so I prepared an interactive version with lots of examples showing what has changed and what the new behavior is. Read on and see! Loop variables • Range over integers • New random package • HTTP routing • Slices • Version handling • Garbage collection • Summary This article is based on the offici

                                    • テクノロジー
                                    • 2023/12/23 21:26
                                    • Writing a package manager

                                      3 users

                                      antonz.org

                                      Writing a package manager is not one of the most common programming tasks. After all, there are many out-of-the-box ones available. Yet, somehow I've found myself in exactly this situation. How so? I'm a big fan of SQLite and its extensions. Given the large number of such extensions in the wild, I wanted a structured approach to managing them. Which usually involves, well, a package manager. Excep

                                      • テクノロジー
                                      • 2023/08/09 09:02
                                      • Python standard library changes in recent years

                                        42 users

                                        antonz.org

                                        With each major Python release, all the attention goes to the new language features: the walrus operator, dictionary merging, pattern matching. There is also a lot of writing about asyncio and typing modules — they are developing rapidly and are obviously important for the core team. The rest of the standard library modules receive undeservedly little attention. I want to fix this and tell you abo

                                        • テクノロジー
                                        • 2022/05/22 01:01
                                        • Python
                                        • ライブラリ
                                        • あとで読む
                                        • tutorial
                                        • 開発
                                        • プログラミング
                                        • まとめ
                                        • JSON and virtual columns in SQLite

                                          5 users

                                          antonz.org

                                          Generated columns have another great use case. Let's say you decide to keep a log of events that occur in the system. There are different types of events, each with its own set of fields. For example, sign-in: { "timestamp": "2022-05-15T09:31:00Z", "object": "user", "object_id": 11, "action": "login", "details": { "ip": "192.168.0.1" } }

                                          • テクノロジー
                                          • 2022/05/16 23:22
                                          • How to make an awesome Python package

                                            37 users

                                            antonz.org

                                            If you are like me, every once in a while you write a useful python utility and want to share it with your colleagues. The best way to do this is to make a package: it easy to install and saves from copy-pasting. If you are like me, you might be thinking that creating packages is a real headache. Well, that's not the case anymore. And I am going to prove it with this step-by-step guide. Just three

                                            • テクノロジー
                                            • 2021/04/08 12:36
                                            • python
                                            • development
                                            • プログラミング
                                            • HotEntry
                                            • あとで読む
                                            • github
                                            • SQLite is not a toy database

                                              88 users

                                              antonz.org

                                              English • Russian • Spanish Whether you are a developer, data analyst, QA engineer, DevOps person, or product manager - SQLite is a perfect tool for you. Here is why. A few well-known facts to get started: SQLite is the most common DBMS in the world, shipped with all popular operating systems.SQLite is serverless.For developers, SQLite is embedded directly into the app.For everyone else, there is

                                              • テクノロジー
                                              • 2021/03/26 01:13
                                              • SQLite
                                              • あとで読む
                                              • database
                                              • DB
                                              • JSON

                                              このページはまだ
                                              ブックマークされていません

                                              このページを最初にブックマークしてみませんか?

                                              『Anton Zhiyanov』の新着エントリーを見る

                                              キーボードショートカット一覧

                                              j次のブックマーク

                                              k前のブックマーク

                                              lあとで読む

                                              eコメント一覧を開く

                                              oページを開く

                                              はてなブックマーク

                                              • 総合
                                              • 一般
                                              • 世の中
                                              • 政治と経済
                                              • 暮らし
                                              • 学び
                                              • テクノロジー
                                              • エンタメ
                                              • アニメとゲーム
                                              • おもしろ
                                              • アプリ・拡張機能
                                              • 開発ブログ
                                              • ヘルプ
                                              • お問い合わせ
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について
                                              • ガイドライン
                                              • 利用規約
                                              • プライバシーポリシー
                                              • 利用者情報の外部送信について

                                              公式Twitter

                                              • 公式アカウント
                                              • ホットエントリー

                                              はてなのサービス

                                              • はてなブログ
                                              • はてなブログPro
                                              • 人力検索はてな
                                              • はてなブログ タグ
                                              • はてなニュース
                                              • ソレドコ
                                              • App Storeからダウンロード
                                              • Google Playで手に入れよう
                                              Copyright © 2005-2026 Hatena. All Rights Reserved.
                                              設定を変更しましたx