並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 20 件 / 20件

新着順 人気順

operatorの検索結果1 - 20 件 / 20件

  • JavaScriptで100行で作る!数式言語のインタプリタ

    皆さんはプログラミング言語を作ったことがあるでしょうか? おそらく大抵の方は「ない」というのが正直なところなのではないかと思います。背景には、おそらく「プログラミング言語を作るって難しそう」という先入観があるのではと筆者は踏んでいます。 プログラミング言語とは、コンピューターに指示を与えるための特別な言語です。私たちが日常で使う言語と同じように、プログラミング言語にも文法やルールがあります。そして、この言語を理解し実行するのが「処理系」と呼ばれるプログラムです。 しかし、実はプログラミング言語の処理系(インタプリタ)を作ることは非常に簡単なことです。小さなOSを作ることに比べても、ちゃんと動くWebサービスを作ることに比べても本当に簡単です。 というわけで、この記事では「プログラミング言語」を作るための導入として「数式言語」のインタプリタを作ってみます。数式言語とは、数学の式を扱う非常にシ

      JavaScriptで100行で作る!数式言語のインタプリタ
    • 大規模サービスの負荷試験を改善していった話

      こんにちは!株式会社COMPASSのシステム開発部、SREチームのごーすと(@5st7)です!普段は、k8s周りの運用であったり、アプリケーションのパフォーマンスの監視、改善、インフラ周りの自動化などを積極的に進めています。三度の飯よりも好きなものがプリンで、美味しいプリンの店とかが流れてきたら1営業日以内に馳せ参じます。プリン好きな人はお店で会いましょう。 今日は負荷試験の取り組みについてご紹介できればと思います。COMPASSが提供するキュビナは現在100万人を超えるユーザーに利用していただいていますが、その分トラフィックも大きく、安定してサービスを提供できるようにするために、様々な工夫をしています。その中でも利用の集中する時間帯の負荷に耐えられるかの検証は非常に重要な取り組みの一つです。今回は、COMPASSが今まで負荷試験にどのように取り組んできたのか、その歴史と改善を行っていった

        大規模サービスの負荷試験を改善していった話
      • C言語のアロー演算子ってどこまで繋げられるんだろうか | DevelopersIO

        #include<stdio.h> #include<stdlib.h> struct PointerLimit{ struct PointerLimit* next; int value; } typedef PointerLimit; PointerLimit* getTail(PointerLimit* base){ while(base->next != NULL){ base = base->next; } return base; } PointerLimit* add(PointerLimit* base, int value){ PointerLimit* new = (PointerLimit*)malloc(sizeof(PointerLimit)); new->value = value; new->next = NULL; PointerLimit* tail =

          C言語のアロー演算子ってどこまで繋げられるんだろうか | DevelopersIO
        • ゲームボーイで使えるポケットカメラをウェブカメラとして利用できるようになる「GB Operator」、「史上最悪で最高のウェブカメラ」と開発元は自画自賛

          ゲームボーイポケットの周辺機器として登場したポケットカメラは、カートリッジにデジタルカメラが付いているアクセサリーです。そんなポケットカメラをウェブカメラとして使えるようにする「GB Operator」が登場しています。 The GB Operator Turns Your Game Boy Camera Into "The Worst And Best Webcam You'll Ever Have" | Time Extension https://www.timeextension.com/news/2024/07/the-gb-operator-turns-your-game-boy-camera-into-the-worst-and-best-webcam-youll-ever-have The Game Boy Camera will soon get a second lif

            ゲームボーイで使えるポケットカメラをウェブカメラとして利用できるようになる「GB Operator」、「史上最悪で最高のウェブカメラ」と開発元は自画自賛
          • Node.js の --require/--import オプションについて - mizdra's blog

            Node.js には --require=module と --import=module というオプションがあります。このオプションを使うと、エントリポイントとなるプログラムよりも前に、任意のモジュールを実行できます。 例えば以下のようなコマンドを実行すると、Node.js ランタイムはまず最初に preload.cjs を実行し、それから main.mjs を実行できます。 node --require ./preload.cjs main.mjs エントリポイントよりも前に、何かしらの処理を実行したい時に使うことを想定しています。 --require と --import の違い --import も --require と同じように、モジュールをプリロードするためのオプションです。両者の違いはプリロードするモジュールの読み込み方です。 --require は require(...

              Node.js の --require/--import オプションについて - mizdra's blog
            • Blog - Private Cloud Compute: A new frontier for AI privacy in the cloud - Apple Security Research

              Private Cloud Compute: A new frontier for AI privacy in the cloud Written by Apple Security Engineering and Architecture (SEAR), User Privacy, Core Operating Systems (Core OS), Services Engineering (ASE), and Machine Learning and AI (AIML) Apple Intelligence is the personal intelligence system that brings powerful generative models to iPhone, iPad, and Mac. For advanced features that need to reaso

              • Announcing TypeScript 5.5 - TypeScript

                Today we’re excited to announce the release of TypeScript 5.5! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by making it possible to declare and describe types. Writing types in our code allows us to explain intent and have other tools check our code to catch mistakes like typos, issues with null and undefined, and more. Types also power TypeScript’s edi

                  Announcing TypeScript 5.5 - TypeScript
                • LISA - ROCKSTAR (Official Music Video)

                  Stream LISA's single 'Rockstar' now: http://LISA.lnk.to/ROCKSTAR Follow LISA: http://www.instagram.com/lalalalisa_m https://www.tiktok.com/@lalalalisa_m https://www.youtube.com/@lalalalisa_m?sub_confirmation=1 Follow WeAreLLOUD: http://www.instagram.com/wearelloud https://www.tiktok.com/@wearelloud http://www.facebook.com/wearelloud https://www.youtube.com/@wearelloud/videos?sub_confirmation=1

                    LISA - ROCKSTAR (Official Music Video)
                  • Why People are Angry over Go 1.23 Iterators

                    NOTE: This is based on, but completely rewritten, from a Twitter post: https://x.com/TheGingerBill/status/1802645945642799423 TL;DR It makes Go feel too “functional” rather than being an unabashed imperative language. I recently saw a post on Twitter showing the upcoming Go iterator design for Go 1.23 (August 2024). From what I can gather, many people seem to dislike the design. I wanted to give m

                    • Amazon ConnectからAWS Lambdaを呼び出し、SMS送信してみた | DevelopersIO

                      はじめに Amazon ConnectからAWS Lambdaを呼出し、SMS送信する方法を紹介します。 発信元の電話番号がSMS送信可能な番号であれば送信し、その番号がSMS送信できない場合は、手動でSMS送信先の電話番号を入力してもらう仕組みを実装しました。 前提条件 Amazon SNS で SMS送信できること。必要に応じてサンドボックス解除の申請や使用限度額の引き上げを行ってください。 https://dev.classmethod.jp/articles/amazon-sns-sms-sandbox/ Amazon Connectインスタンスを作成済みであること Lambda 関数作成 SMS送信用のLambda 関数を作成します。 SMS送信を許可するIAMポリシーを作成し、Lambda関数のIAMロールに適用します。 ポリシーは以下の通りです。 { "Version": "

                        Amazon ConnectからAWS Lambdaを呼び出し、SMS送信してみた | DevelopersIO
                      • ゼロからはじめるOpenShift Virtualization(1)OpenShiftのインストール - 赤帽エンジニアブログ

                        Red Hatでソリューションアーキテクトをしている田中司恩(@tnk4on)です。 この連載はvSphere環境上にOpenShift Container Platform(以下、OpenShift)およびOpenShift Virtualizationの環境構築を解説するシリーズです。 可能な限り最小構成での検証環境の構築を目指し、1台のESXi上にOpenShiftをインストールしてネスト仮想環境でOpenShift Virtualizationを実行する方法を解説します。 また環境の構築後はvSphere上の仮想マシンを移行ツール(Migration Toolkit for Virtualization)を使ってOpenShift Virtualization上へ移行することもできます。 初回の本記事ではOpenShiftのインストールについて解説します。 今後の連載予定は下記の通

                          ゼロからはじめるOpenShift Virtualization(1)OpenShiftのインストール - 赤帽エンジニアブログ
                        • Software Design 2024年6月号 連載「レガシーシステム攻略のプロセス」第2回 ZOZOTOWNリプレイスにおけるIaCやCI/CD関連の取り組み - ZOZO TECH BLOG

                          はじめに 技術評論社様より発刊されているSoftware Designの2024年5月号より「レガシーシステム攻略のプロセス」と題した全8回の連載が始まりました。 本連載では、ZOZOTOWNリプレイスプロジェクトについて紹介します。2020年に再始動したZOZOTOWNリプレイスでは、「マイクロサービス化」が大きなカギとなりました。今回は、SRE部が行った、リプレイス方針の決定から導入ツールの選定、マイクロサービスのリリース方法の改善までを紹介していきます。 目次 はじめに 目次 ZOZOTOWNリプレイスにおけるSRE部の方針 IaCの導入 IaCとは プラットフォーム基盤におけるIaC CI/CDの導入 CI/CDとは GitHub Actions 変更のあるインフラリソースのみをCIの対象とする工夫 Canary Releaseの導入 Canary Releaseとは ZOZO A

                            Software Design 2024年6月号 連載「レガシーシステム攻略のプロセス」第2回 ZOZOTOWNリプレイスにおけるIaCやCI/CD関連の取り組み - ZOZO TECH BLOG
                          • Knowledge bases for Amazon Bedrockで、電話での問い合わせを内容に応じて担当者へ振り分けてみた | DevelopersIO

                            Knowledge bases for Amazon Bedrockで、電話での問い合わせを内容に応じて担当者へ振り分けてみた はじめに 本記事では、Amazon Connect、Knowledge bases for Amazon Bedrock、およびAmazon Lexを組み合わせて、電話での問い合わせ内容を種別判定し、最適な担当者に振り分ける方法とその精度結果をまとめました。 本システムは、コンタクトセンターでのAIチャットボットによる一次対応を想定しています。ユーザーのお問い合わせの種別を判定し、種別ごとに担当者に振り分ける機能を、Knowledge bases for Amazon Bedrockが担います。 お問い合わせの種別判定については、以前Amazon KendraやBedrockを利用して試みましたが、今回はKnowledge bases for Amazon Bed

                              Knowledge bases for Amazon Bedrockで、電話での問い合わせを内容に応じて担当者へ振り分けてみた | DevelopersIO
                            • An Experienced (Neo)Vimmer's Workflow

                              I know people will ask, so here they are: SeniorMars’ Dotfiles. Moreover, I will be assuming you are using Neovim 0.10! Improving the (Neo)Vim Experience Although, I stated this was not for beginners, I still need to point out the fundamentals. Without these, I would not consider neovim to even approach the basics of a PDE. If you think this is too basic, then you can skip this section – I promise

                              • Unification in Elixir

                                Pattern matching is a pervasive and powerful tool in Elixir. This isn't too surprising if you know a little about the history of Elixir's parent language, Erlang. Erlang was originally inspired by and written in Prolog, a logic programming language where pattern matching has first-class support. In Elixir, you might see an expression like this: [x, [2, y]] = [1, [2, 3]]When this expression is eval

                                  Unification in Elixir
                                • Remove Polyfill.io code from your website immediately

                                  The polyfill.io domain is being used to infect more than 100,000 websites with malicious code after what's said to be a Chinese organization bought the domain earlier this year, researchers have said. Multiple security firms sounded the alarm on Tuesday, warning organizations whose websites use any JavaScript code from the polyfill.io domain to immediately remove it. The site offered polyfills – u

                                    Remove Polyfill.io code from your website immediately
                                  • React 19 and Suspense - A Drama in 3 Acts

                                    React 19 and Suspense - A Drama in 3 Acts16.06.2024 — ReactJs, React Query, Suspense, JavaScript — 7 min read That was quite a roller-coaster last week 🎢. Some things unravelled, some things went down, and in the middle of it: React Summit, the biggest React conference in the world. Let me try to break down what happened, in hopefully the right order, and what we can all learn from it. To do that

                                      React 19 and Suspense - A Drama in 3 Acts
                                    • xorvoid

                                      As you can see, "quote" is the only form that requires special handling by the evaluator. Both "pop" and "push" can be implemented as ordinary built-ins. The syntax forms are not strictly required, but they make coding much more manageable. Thunking and Forcing () In Forsp, parenthesis grouping is used as a thunking operator. As an example: (foo bar) is the thunked-computation of: foo bar A thunk

                                      • CHAI - N.E.O. (Live at EX THEATER ROPPONGI)

                                        CHAI、解散前ラスト・ライヴを完全収録したBlu-ray『We The CHAI Tour! FINAL ~NEO KAWAII IS FOREVER💙~』より、「N.E.O.」のライヴ映像を先行公開! ライヴ・フィルム『We The CHAI Tour! FINAL ~NEO KAWAII IS FOREVER💙~』一夜限りのプレミアム上映決定! ●日時:2024年7月2日(火)  ●開映:18:30 ●シネマート新宿にて登壇イベント開催 ゲスト:マナ、カナ  ▼チケット購入はこちら:https://eplus.jp/chai_ps0702/ ========= Director:Takahiro Shimoyama (MITO) Production Manager:Masaki Shinozuka (Valderrama) Camera in Chief:Masatak

                                          CHAI - N.E.O. (Live at EX THEATER ROPPONGI)
                                        • Conditionals on Custom Properties - Geoff Graham

                                          Saw this from Lea being passed around yesterday: A historical day for CSS 😀🎉 If you write any components used and/or styled by others, you know how huge this is! background: if(style(–variant: success), var(–green)); Even if you don’t, this will allow things like: padding: if(var(–2xl), 1em, var(–xl) or var(–m),… pic.twitter.com/cXeqwBuXvK — Lea Verou (@LeaVerou) June 13, 2024 Whoa, right?! Seei

                                          1