並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 28 件 / 28件

新着順 人気順

immutableの検索結果1 - 28 件 / 28件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

immutableに関するエントリは28件あります。 githubtechfeedプログラミング などが関連タグです。 人気エントリには 『実践Immutable Data Model - 紙箱』などがあります。
  • 実践Immutable Data Model - 紙箱

    ランキング参加中プログラミング はじめに この記事では、Immutable Data Modelと呼ばれる設計手法をもとに、リレーショナル・データベースにおける、テーブル設計の話を書いています。また、今回の実践で利用する、別の考え方の背景を理解するために、Out of the tar pitという小論文の内容にも言及します。 「状態とは何か?」というややこしい話がたくさん出てきますし、データベースのテーブル設計についての話であることから、たくさんのSQLが出てきます。なので、データモデリングとか状態管理とか、特にSQLとかに興味がない人には面白くないと思います。 そのあたりに興味ある方は、読んでみて欲しいです。 Immutable Data Modelを、実際のアプリケーションで使うデータベースに採用するにあたり、どういう考え方で、どのようにテーブルを構成したか、自分なりの経験を書いていま

      実践Immutable Data Model - 紙箱
    • 実行中のシェルスクリプトをchattr(1)を使ってimmutableにするというのはどうか - その手の平は尻もつかめるさ

      [追記] 実行中のシェルスクリプトをchattr(1)を使ってimmutableにするというのはどうか - その手の平は尻もつかめるさ 調べてみたけどこれが良さそう <a href="https://stackoverflow.com/a/3399850/1921216" target="_blank" rel="noopener nofollow">https://stackoverflow.com/a/3399850/1921216</a>2022/01/02 17:02 b.hatena.ne.jp このブックマークコメントで指摘されましたが、immutableにするまでもなくこのラッパースクリプトを噛ませると良さそう。 #!/bin/bash # usage: # sh-run.sh script-you-want-to-run.sh args... set -ue file="$

        実行中のシェルスクリプトをchattr(1)を使ってimmutableにするというのはどうか - その手の平は尻もつかめるさ
      • 誰でも書けるスクリプト言語は、immutable な配列を提供すればよかった

        a = [1, 2, 3] b = a # コピー? c = a # コピー? b.append(4) # 追加 c.append(5) # 追加 print(b) # [1, 2, 3, 4, 5] # c に追加したはずの 5 が # b にも追加されていて、ビビる print(c) # [1, 2, 3, 4, 5] # b に追加したはずの 4 が # c にも追加されていて、ビビる const a = [1, 2, 3] const b = a // コピー? const c = a // コピー? b.push(4) // 追加 c.push(5) // 追加 console.log(b) /* [ 1, 2, 3, 4, 5 ] c に追加したはずの 5 が b にも追加されていて、ビビる */ console.log(c) /* [ 1, 2, 3, 4, 5 ] b に追

          誰でも書けるスクリプト言語は、immutable な配列を提供すればよかった
        • GitHub の Immutable Releases を有効にしてセキュリティインシデントを防ごう

          先日 (2025-08-26) public preview になった GitHub の Immutable Releases を紹介します。 このセキュリティ的に極めて重要な機能が普及してほしいという気持ちで書くことにしました。 まだ public preview なので早いかもですが、 GitHub でソフトウェアをバージョニングして公開している方は是非全リポジトリで有効にしましょう。 Immutable Releases は GitHub Tag や Release, Release assets を後から変更できないようにする機能です。 tag や assets が改竄されることによるセキュリティインシデントを防ぐことができます。 最初に注意点を挙げておきます: draft release は mutable draft でない release には後から asset を uplo

            GitHub の Immutable Releases を有効にしてセキュリティインシデントを防ごう
          • GitHub Immutable Actionsのご紹介 - APC 技術ブログ

            ACS事業部亀崎です。 GitHub Universe'24 で紹介され、でもそこまで大きく取り上げられていない機能を1つご紹介します。 それが GitHub Immutable Actoinです。 https://gh.io/immutable-actions 現時点ではPublic Previewという状態です。 Immutable Actionsとは 公開されている情報も交えてご紹介しましょう。 github.com github.com みなさんご存知のように GitHub Actionは標準ではGitHub Repositoryを使って提供します。 しかし昨今のSoftware Supply Chain Securityの動向もあり、できる限り外部からなにか不正なものが紛れ込むリスクを減らしたい、そういうニーズが広がっていると思います。 そこで利用されるのがImmutable A

              GitHub Immutable Actionsのご紹介 - APC 技術ブログ
            • データモデルをimmutableに設計したいが... - Magnolia Tech

              データ構造をimmutableにしたい、イベントは起きたことをそのまま記録したい、更には監査の観点から修正させたくない、という人類の夢と希望に対して、「だってそれじゃあ現場は回らないんだよ」という例外運用のバランスをどこで取っていくか?というのは昨日・今日出てきた話ではないんですよ— magnoliak🍧 (@magnolia_k_) 2021年11月28日 所謂、業務システムの設計の一番肝心なところって、「起きた事実をありのまま記録する」っていう要件と、実際の運用がそうなっていない現実との戦いなんじゃないかって みんなそうしたいんだよ、でもできないんだよっていう— magnoliak🍧 (@magnolia_k_) 2021年11月28日 「データを活用しよう」って言い出しても、「活用できるように維持していましたっけ?」みたいな話も同じなんだけど、とにかく例外との戦いなんですよ— m

                データモデルをimmutableに設計したいが... - Magnolia Tech
              • GitHub、リリース後のバイナリなどアセットを変更不可にする「Immutable Release」(変更不可リリース)機能を正式リリース

                GitHub、リリース後のバイナリなどアセットを変更不可にする「Immutable Release」(変更不可リリース)機能を正式リリース リリースしたバイナリなどが変更不可に Immutable Releaseを利用することで、リリースとして公開したバイナリやインストーラなどのアセットとGitタグが変更できなくなります。 これによって攻撃者がリリースされたアセットに対して脆弱性やマルウェアを投入するサプライチェーン攻撃や、開発者がアセットやタグを間違えて変更してしまうようなミスなどを防ぐことができるようになり、セキュリティが強化される効果があります。 Immutable Releaseが設定されると、リリース ページのタイトルの下に「Immutable」が表示されます。 さらに、Immutable Releaseを作成するとリリースに関する暗号として検証可能な「リリース構成証明」が自動的

                  GitHub、リリース後のバイナリなどアセットを変更不可にする「Immutable Release」(変更不可リリース)機能を正式リリース
                • immutable releasesを有効にする際のtagprとgoreleaserの設定 | おそらくはそれさえも平凡な日々

                  GitHubのImmutable Releasesがパブリックプレビューとなりました。ソフトウェアを公開している方は積極的にオンにすると良いでしょう。suzuki-shunsukeさんが早速zennを書かれているので、詳しい解説はそちらに譲ります。 Releases now support immutability in public preview - GitHub Changelog GitHub の Immutable Releases を有効にしてセキュリティインシデントを防ごう ここでは、Go製のソフトウェアで実行ファイルもリリースされている方の中には、tagprと goreleaserを組み合わせて使っている方がそれなりにいると思うので、その場合の設定についてお知らせします。 Draftリリースを作り、それを再利用する これだけです。具体的には以下です。 .tagpr に re

                    immutable releasesを有効にする際のtagprとgoreleaserの設定 | おそらくはそれさえも平凡な日々
                  • GitHub - DavidLiedle/DriftDB: DriftDB - An experimental append-only database with built-in time travel. Query any point in history, guaranteed data integrity, and immutable audit trails. Written in Rust.

                    Experimental PostgreSQL-Compatible Time-Travel Database (v0.9.1-alpha) - An ambitious temporal database project with advanced architectural designs for enterprise features. Query your data at any point in history using standard SQL. ⚠️ ALPHA SOFTWARE - NOT FOR PRODUCTION USE: This version contains experimental implementations of enterprise features. The codebase compiles cleanly with zero warnings

                      GitHub - DavidLiedle/DriftDB: DriftDB - An experimental append-only database with built-in time travel. Query any point in history, guaranteed data integrity, and immutable audit trails. Written in Rust.
                    • Flutter/Dartにおけるimmutableの実践的な扱い方

                      以下の記事でも触れている StateNotifier は状態値をimmutableで扱うことが実質必須ですが、そのimmutableプログラミングがあまり理解できていない様子が散見されたり質問を受けることが多いのでそれについて記事にしてみました。 immutableについての良い解説記事なども色々ありますが、Flutter/Dartにおいての実践的な扱い方に対して飛躍がある気がしていて、それを埋められることを意識して順を追って説明してきます。 以下で示したコードは https://github.com/mono0926/riverpod_example/blob/main/test/test.dart に大体含まれています。 mutableなクラスの挙動まず、mutableなクラスの挙動は以下のようになります。 class Mutable { Mutable(this.value); in

                        Flutter/Dartにおけるimmutableの実践的な扱い方
                      • GitHub - wasmerio/ate: Distributed immutable data store with strong encryption and authentication

                        ATE is a distributed immutable data store and built in memory based materialized view with strong encryption and authentication. What does that mean? This library is a way of working with data in modern distributed computing. ...data is persisted to a distributed commit log. ...partitions are divided into chains that shard data into physical domains. ...streaming of data to the application occurs

                          GitHub - wasmerio/ate: Distributed immutable data store with strong encryption and authentication
                        • PendingIntentのFLAG_IMMUTABLEとFLAG_MUTABLE

                          Target SDK 31(Android 12)から PendingIntent のmutability(可変性)を指定する必要があります。 https://developer.android.com/about/versions/12/behavior-changes-12#pending-intent-mutability 指定するときに FLAG_IMMUTABLE か FLAG_MUTABLE のどちらかの値を使用することになります。 この2つのフラグの違いについて解説します。 コード例まずは動作確認用として、Activityから別のActivityにPendingIntentを渡して、そのPendingIntentを実行する例です。 まずはPendingIntentを作って、それを別のActivityに渡すコードです。 次に、起動されたActivity側でPendingInte

                            PendingIntentのFLAG_IMMUTABLEとFLAG_MUTABLE
                          • ghir で過去の GitHub Releases も Immutable にする

                            過去の GitHub Releases を Immutable にする ghir というツールを紹介します。 導入 先日 GitHub の Immutable Releases に関する記事を書きました。 Immutable Releases はセキュリティ的に極めて重要な機能であり、みなさんが管理していて GitHub Releases を使っている全リポジトリで有効化してほしい機能です。 ただ、有効化しても有効化前に作られた GitHub Releases は mutable なままです。 そのため、古いバージョンの assets は改竄されるリスクがあり、有効化しても片手落ち感が否めません。 そこで、古いバージョンも全て Immutable にする CLI を作りました。 使い方 使い方は非常に簡単です。 ghir をインストール 対象のリポジトリで Immutable Releas

                              ghir で過去の GitHub Releases も Immutable にする
                            • OktaとMSの連携でImmutable IDという普遍的なはずなIDを吹っ飛ばした時の話|kobaso

                              これを読んでる君は、Immutable IDをきっと吹っ飛ばしたからやってきたのでしょう... という物語調はおいといて、OktaとMSの連携でしくじった時にしんどかった時の話(Immutable ID版)をします。 そもそもの話まず一つ愚痴です。OktaとMS Office365のアプリテンプレートはあるんですが、Azure ADのみの構成の場合、これ非常にわかりにくいというか、とても初見殺しです。 なぜかというと、Okta上のドキュメントではPowerShellとAPIを利用した方法の2パターンあります。 Oktaでは今おすすめしているのはAPIの方 なので、APIを利用してみるかってなるのですが、こっちの方法のドキュメントは用意されてないんですよね。なんで?おすすめじゃないの? ちなみにPowerShellは用意されてます。ただしAzure Active Directory Modu

                                OktaとMSの連携でImmutable IDという普遍的なはずなIDを吹っ飛ばした時の話|kobaso
                              • Experiment: making TypeScript immutable-by-default

                                I like programming languages where variables are immutable by default. For example, in Rust, let declares an immutable variable and let mut declares a mutable one. I’ve long wanted this in other languages, like TypeScript, which is mutable by default—the opposite of what I want! I wondered: is it possible to make TypeScript values immutable by default? My goal was to do this purely with TypeScript

                                • Ruby adds a new core class called Data to represent simple immutable value objects

                                  Swaathi Kakarla is a Ruby on Rails Developer specializing in building super-fast and secure web applications. Ruby 3.2 adds a new core class called Data to represent simple immutable value objects. The Data class helps define simple classes for value-alike objects that can be extended with custom methods. While the Data class is not meant to be used directly, it can be used as a base class for cre

                                    Ruby adds a new core class called Data to represent simple immutable value objects
                                  • GitHub - unadlib/mutative: Efficient immutable updates, 2-6x faster than naive handcrafted reducer, and more than 10x faster than Immer.

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      GitHub - unadlib/mutative: Efficient immutable updates, 2-6x faster than naive handcrafted reducer, and more than 10x faster than Immer.
                                    • Immutable releases are now generally available - GitHub Changelog

                                      GitHub releases now support immutability, adding a new layer of supply chain security. With immutable releases, assets and tags are protected from tampering after publication, so the software you publish—and your users consume—remains secure and trustworthy. About immutable releases Immutable releases offer: Immutable assets: Once you publish a release as immutable, its assets can’t be added, modi

                                        Immutable releases are now generally available - GitHub Changelog
                                      • Immutable Infrastructure, Immutable Code - The Phoenix Architecture

                                        In 2013, I wrote about trashing servers and burning code. The argument was simple: systems that mutate while running accumulate state, history, and uncertainty in ways humans can't reason about. When something breaks, nobody knows which change caused it or what the system actually is anymore. So we stopped patching servers and started replacing them. We built machines that could burn down and rise

                                          Immutable Infrastructure, Immutable Code - The Phoenix Architecture
                                        • Solene'% : Introduction to immutable Linux systems

                                          Table of contents 1. Introduction 2. What's immutability? 3. Immutable systems comparison 3. 1. NixOS / Guix 3. 2. Endless OS 3. 3. Fedora Silverblue 3. 4. OpenSUSE MicroOS / Aeon 3. 5. Vanilla OS 3. 6. Alpine Linux (with LBU) 4. Pros, Cons and Facts 4. 1. Pros 4. 2. Cons 4. 3. Facts 5. Conclusion 6. Going further 1. Introduction § If you reach this page, you may be interested into this new catego

                                          • Clojureコレクションで探るimmutableでpersistentな世界 | ドクセル

                                            「楽しく楽にcoolにsmartに」を理想とするprogrammer/philosopher/liberalist/realist。 好きな言語はClojure, Haskell, Elixir, English, français, русский。 読書、プログラミング、語学、法学、数学が大好き! イルカと海も大好き🐬

                                              Clojureコレクションで探るimmutableでpersistentな世界 | ドクセル
                                            • The joy of recursion, immutable data, and pure functions: Generating mazes with JavaScript

                                              This post is based on a talk I presented at Web Directions Summit, 2024. Let's start by addressing the elephant in the room. Why the heck am I talking about making mazes? Normally, I try to be practical when I'm writing or speaking. I want to give people tools they can use to make their coding lives better. So, I try to discuss things like creating DOM elements and processing JSON data. Because th

                                                The joy of recursion, immutable data, and pure functions: Generating mazes with JavaScript
                                              • [Flutter]immutableなクラスを扱いやすくする機能をコード生成で提供してくれるfreezedを使ってみる | DevelopersIO

                                                Flutterで作ったアプリの構成をProvider + ChangeNotifierからriverpod + state_notifier + flutter_hooks + freezedのに書き換えたいと思っています。 4つのライブラリの内いくつかを使ったコードを読んだり手元で書いてみたりしていて、記事を書く前にそれぞれのライブラリについて日本語で扱った記事を自分も書いておきたいと思いました。今回はfreezedです。 今のところ採用する残りのライブラリについても一つずつ個別に記事を書く予定でいますが、riverpodとstate_notifierはまとめて良い気もしているので記事構成はまだ検討中です。 移行を考えたのは、以下の記事を読んでからです。しばらく変更していなかった個人用のFlutter製はてなフィルタに手を入れることにしました。Flutterでの状態管理手法のこれまでの経

                                                  [Flutter]immutableなクラスを扱いやすくする機能をコード生成で提供してくれるfreezedを使ってみる | DevelopersIO
                                                • Vale's First Prototype for Immutable Region Borrowing

                                                  Three years, two states, and one pandemic ago, I wrote about a very weird idea: what if the type system could track which data existed before a pure call, to eliminate its memory safety overhead? 0 And a couple months later, another weird idea struck: what if we use generational indices as the foundation for an entire language? These ideas evolved in weird ways. The first one evolved into a full r

                                                  • 2021-07-06のJS: TypeScript 4.4 Beta、immutable-js 4.0.0-rc.13、petite-vue

                                                    JSer.info #547 - TypeScript 4.4 betaがリリースされました。 Announcing TypeScript 4.4 Beta | TypeScript Control Flow Analysisの改善され、Type Gurdeの結果を変数に入れてから扱うようなAliasのケースも正しく推論されるようになっています。 また、Index SignaturesにSymbolやTemplate Stringを利用できるようになっています。 Catch節のデフォルトをunknown型にするuseUnknownInCatchVariablesオプションの追加と optionalとundefined値の区別をするexactOptionalPropertyTypesオプションの追加されています。 その他には、declarationの生成やstrictモードでのビルドパフォー

                                                      2021-07-06のJS: TypeScript 4.4 Beta、immutable-js 4.0.0-rc.13、petite-vue
                                                    • Immutable | Powering The Next Generation Of Web3 Games

                                                      $IMX is the native utility and governance token of the Immutable protocols. ‍ To review information related to the $IMX Token, you will leave the Immutable Pty Ltd website and join a website made available by the Digital Worlds Foundation, which is independent from and unaffiliated with Immutable Pty Ltd. ‍ Immutable Pty Ltd is not responsible for any action taken or content held on the third part

                                                        Immutable | Powering The Next Generation Of Web3 Games
                                                      • Immutable Array Operation

                                                        index.js Т � �,�� const arrA = [1, 2, 3, 4, 5]; const arrB = [6, 7, 8, 9, 10]; const arrDuplicated = [1, 2, 3, 3, 2, 2, 5]; const dataList = [ {id: 1, name: "Sapporo"}, {id: 2, name: "Tokyo"}, {id: 3, name: "Osaka"} ]; // ルール // もとの配列は非破壊であること { // 要素を末端に追加 const element = 0; // 追加したい要素 const arrNext = [...arrA, element]; console.log(arrNext); } { // 要素を先頭に追加 const element = 0; // 追加したい要素 const ar

                                                          Immutable Array Operation
                                                        • AzureにImmutable Storageがパブリックプレビューとして登場したので、対応規制とAWSとGCPの対応状況を調べてみた | DevelopersIO

                                                            AzureにImmutable Storageがパブリックプレビューとして登場したので、対応規制とAWSとGCPの対応状況を調べてみた | DevelopersIO
                                                          1

                                                          新着記事