並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 49件

新着順 人気順

hintsの検索結果1 - 40 件 / 49件

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

hintsに関するエントリは49件あります。 browserwebpython などが関連タグです。 人気エントリには 『PythonとType Hintsで書くバックエンド | メルカリエンジニアリング』などがあります。
  • PythonとType Hintsで書くバックエンド | メルカリエンジニアリング

    こんにちは、AIチーム所属の@shidoです。CRE (Customer Reliability Engineering) 領域でMLを扱っています。 みなさんはPythonで本番コードを書くことについてどうお考えでしょうか。「研究/分析以外には使いたくない」「遅い」「動的型付け言語を本番用に使いたくない」といった声が聞こえてきそうです。 しかしながら機械学習サービス(または機械学習サービスのためのサービスなど)を作りたい場合、「学習に利用したPython用のライブラリを使用したい」「Pythonでやっていた分析と同じことを本番環境内でもやりたい」など、Pythonでバックエンドを実装したくなることがあると思います。 この記事ではtype hintsを付けながらPythonを書くことで、GoやJavaのようなサーバーサイドでよく使われる言語と可読性や保守性、場合によっては型安全性も同じレベ

      PythonとType Hintsで書くバックエンド | メルカリエンジニアリング
    • 今から始める型安全 Python / Start Python Type Hints

      #stapy https://speakerdeck.com/yamitzky/mastering-type-safety-in-python-3-dot-9-era の内容を加筆して削ったものです

        今から始める型安全 Python / Start Python Type Hints
      • ChromeのHTTP/2サーバプッシュサポート廃止検討と、103 Early Hintsについて - ASnoKaze blog

        ChromeがHTTP/2サーバプッシュの廃止を検討し始めている。またPreload + 103 Early Hintsの有効性について実験していく模様 背景 HTTP/2(RFC 7540) にはサーバプッシュという機能があります。これは、クライアントからのHTTPリクエストをまたずにサーバがHTTPレスポンスを先行して送ることが出来る機能です。 たとえば、index.htmlに画像1,2,3が含まれているようなページがあるとします。このindex.htmlへのリクエストを受け付けたサーバは、クライアントが画像1,2,3がを要求してくることを予測しサーバプッシュでこれらのリソースを送りつけることが来でます。(クライアント側から、そのリソースが不要であればサーバプッシュをキャンセルすることもできます) そうすることで、ページの表示を効率化出来ると考えられていました。 しかし、様々な議論の中

          ChromeのHTTP/2サーバプッシュサポート廃止検討と、103 Early Hintsについて - ASnoKaze blog
        • 追加料金なしにWebサイトを30%高速化 ~Cloudflareが「103 Early Hints」に対応、/「Google Chrome 94」ベータ版でテストできる

            追加料金なしにWebサイトを30%高速化 ~Cloudflareが「103 Early Hints」に対応、/「Google Chrome 94」ベータ版でテストできる
          • User-Agent Client Hints

            This specification was published by the Web Platform Incubator Community Group. It is not a W3C Standard nor is it on the W3C Standards Track. Please note that under the W3C Community Contributor License Agreement (CLA) there is a limited opt-out and other conditions apply. Learn more about W3C Community and Business Groups. 1. Introduction This section is non-normative. Today, user agents general

            • 新しいWeb高速化技術「103 Early Hints」に対応した「Google Chrome 103」がベータ版に/「FedCM」など、多くの開発者向け機能がテストされる

                新しいWeb高速化技術「103 Early Hints」に対応した「Google Chrome 103」がベータ版に/「FedCM」など、多くの開発者向け機能がテストされる
              • キャッシュを補助する HTTP Availability Hints の仕様 - ASnoKaze blog

                「HTTP Availability Hints」という提案仕様がMark Nottinghamによって提出されています。 この提案仕様では、キャッシュで使用されるVaryを補助します。この情報により、キャッシュサーバは効率が向上します。 背景 例えば Client 1から英語(en)のコンテンツが要求され、CDNは英語コンテンツをキャッシュする Client 2から日本語(ja)のコンテンツが要求される CDNがOriginからレスポンスを受け取った際に、"vary: Accept-Encoding" がついています。そのため、CDNはオリジンのコンテンツがaccept-languageに依存していると判断して、日本語(ja)の要求をOriginにプロキシします。 このとき、Originが日本語(ja)には対応しておらず結局英語(en)のコンテンツが返ってくることもあります。CDNは英語

                  キャッシュを補助する HTTP Availability Hints の仕様 - ASnoKaze blog
                • ChromeとFastlyのEarly Hintsの効果計測に貢献する — HACK The Nikkei

                  この記事は Nikkei Advent Calendar 2020 20 日目の記事です。 日経電子版 Web チームの阿部です。今回は HTTP/2 の目玉機能の 1 つであった Server Push の事実上の終焉と、現在 Chrome チームや Fastly 社が実験中の 103 Early Hints について、日経電子版 Web での取り組みを紹介させていただきます。 HTTP/2 Server Push HTTP/2 Server Pushは HTTP/2 で策定された、一言で言ってしまうと「必要なリソースがリクエストされる前にサーバーからクライアントに送ってしまおう」という技術です。 これによりクライアントがリクエストするリソースを先回りしてサーバーが送ることで、必要なリソースが揃うまでにかかる時間を短縮できるため、パフォーマンスの向上が期待されていました。 Server

                    ChromeとFastlyのEarly Hintsの効果計測に貢献する — HACK The Nikkei
                  • GitHub - vitalik/django-ninja: 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs

                    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 - vitalik/django-ninja: 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
                    • Cloudflare Pages gets even faster with Early Hints

                      Cloudflare Pages gets even faster with Early Hints2022-10-07 Last year, we demonstrated what we meant by “lightning fast”, showing Pages' first-class performance in all parts of the world, and today, we’re thrilled to announce an integration that takes this commitment to speed even further – introducing Pages support for Early Hints! Early Hints allow you to unblock the loading of page critical re

                        Cloudflare Pages gets even faster with Early Hints
                      • ChromeでUserAgentが凍結される日(User Agent Client Hintsの使い方) - Qiita

                        追記(2020-05-06) この記事は2020-02-10に執筆しましたが、その後急速に拡大したCOVID19の影響でスケジュールが変更になっています。現在判明しているリリーススケジュールは以下の通りです。 2021年まで従来通りのUser-Agent文字列が利用できる User Agent Client Hintsについては7月14日に安定版としてリリースされる予定のChromeバージョン84に導入予定 参考) https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/-2JIRNMWJ7s/u-YzXjZ8BAAJ (@devneko 様、ご指摘ありがとうございました!) UserAgentがGoogle Chromeで使えなくなる 「Google Chrome」の開発チームは1月14日、User-Agent文字列を

                          ChromeでUserAgentが凍結される日(User Agent Client Hintsの使い方) - Qiita
                        • Python Type Hints | NP-Incompleteness

                          Jukka Lehtosalo is a Finnish Software Engineer at Dropbox. He developed an optional type system for Python, mypy, during his PhD thesis in Cambridge. After meeting in a Python conference, Guido van Rossum (creator of Python) invited Lehtosalo to join him at Dropbox. They started adopting mypy in real use cases during a Hackathon, which led to mypy being one of the most popular Python type checkers

                            Python Type Hints | NP-Incompleteness
                          • Python’s “Type Hints” are a bit of a disappointment to me

                            blog · git · desktop · images · contact Python's "Type Hints" are a bit of a disappointment to me 2022-04-21 Preface You are reading version 2.0 of this blog post. Readers shared this link on Hacker News and lobsters, which unexpectedly blew up and sparked many heated discussions. I've incorporated some of this feedback into this revised version. (Some time later, there was also a discussion about

                            • Migrate to User-Agent Client Hints  |  Articles  |  web.dev

                              Migrate to User-Agent Client Hints Stay organized with collections Save and categorize content based on your preferences. Strategies to migrate your site from relying on the user-agent string to the new User-Agent Client Hints. The User-Agent string is a significant passive fingerprinting surface in browsers, as well as being difficult to process. However, there are all kinds of valid reasons for

                              • Early Hints update: How Cloudflare, Google, and Shopify are working together to build a faster Internet for everyone

                                Early Hints update: How Cloudflare, Google, and Shopify are working together to build a faster Internet for everyone2022-06-23 A few months ago, we wrote a post focused on a product we were building that could vastly improve page load performance. That product, known as Early Hints, has seen wide adoption since that original post. In early benchmarking experiments with Early Hints, we saw performa

                                  Early Hints update: How Cloudflare, Google, and Shopify are working together to build a faster Internet for everyone
                                • Improving user privacy and developer experience with User-Agent Client Hints  |  Privacy & Security  |  Chrome for Developers

                                  Client Hints enable developers to actively request information about the user's device or conditions, rather than needing to parse it out of the User-Agent (UA) string. Providing this alternative route is the first step to eventually reducing User-Agent string granularity. Learn how to update your existing functionality that relies on parsing the User-Agent string to make use of User-Agent Client

                                    Improving user privacy and developer experience with User-Agent Client Hints  |  Privacy & Security  |  Chrome for Developers
                                  • Beyond Server Push: The 103 Early Hints Status Code | Fastly

                                    Beyond Server Push: The 103 Early Hints Status Code | FastlyChrome and Fastly are currently running an experiment to validate a web performance tool — and we need your help! Remember all of the hype around Server Push? Since HTTP/2 shipped, it’s become increasingly clear that while the performance problem that it was designed to address is important, Server Push was not the right approach. Instead

                                      Beyond Server Push: The 103 Early Hints Status Code | Fastly
                                    • 実践!!Python型入門(Type Hints) - Qiita

                                      はじめに みなさん、PythonのType Hints使ってますか? Pythonは動的型付き言語なので、明示的に型情報をつけずにコーディングできることがメリット、と感じされている方もいらっしゃるかもしれません。 その意見はもっともなのですが、型を明示的に指定することで、よりバグを発生させにくいコーディングができることも事実かと思います。 本記事ではPythonの型についての入門~中級の内容を扱います。 皆さんのPythonスキルアップの一助となれば幸いです。 注意事項 Pythonの静的型解析にはmypyというライブラリが必要ですが、mypyの使い方、インストール方法などについては解説しません。 ステップ1:基本的な変数の型[イミュータブル] 変数の型の書き方は下記の通りです。

                                        実践!!Python型入門(Type Hints) - Qiita
                                      • Chrome84(beta)におけるUser-Agent Client Hintsの調査 - MicroAd Developers Blog

                                        Chrome84(beta)におけるUser-Agent Client Hintsの調査 はじめまして。Tech Labの郭です。 Tech Labは弊社の開発効率・運用効率・技術レベルの向上を目的として、業界最新かつ有効な技術を研究・導入するチームです。 今回はブラウザ界隈の最新仕様、User-Agent Client Hints(以下UA-CH)の調査結果を少し共有したいと思います。 UA-CHは Client Hintsの拡張で、仕様自体1はまだ提案中のため、確定していません。 この調査結果は、2020/6/16時点 Chrome84(beta)での検証結果となります。 調査経緯 今年の1/14に現在UA-CHの策定者の1人、GoogleのYoav Weiss氏から一通のGroupメール、「段階的にUser-Agent文字列を非推奨と凍結にする2」の中で、2020中に段階的にUser

                                          Chrome84(beta)におけるUser-Agent Client Hintsの調査 - MicroAd Developers Blog
                                        • Python Type Hints are Turing Complete

                                          Grigore showed that Java generics are Turing complete by describing a reduction from Turing machines to Java subtyping. We apply Grigore's algorithm to Python type hints and deduce that they are Turing complete. In addition, we present an alternative reduction in which the Turing machines are simulated in real time, resulting in significantly lower compilation times. Our work is accompanied by a P

                                          • GitHub - fastapi/typer: Typer, build great CLIs. Easy to code. Based on Python type hints.

                                            Typer, build great CLIs. Easy to code. Based on Python type hints. Documentation: https://typer.tiangolo.com Source Code: https://github.com/fastapi/typer Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python type hints. It's also a command line tool to run scripts, automatically converting them to CLI applications. The key f

                                              GitHub - fastapi/typer: Typer, build great CLIs. Easy to code. Based on Python type hints.
                                            • User-Agent Client Hints(UA-CH)を取得する - Qiita

                                              Googleがユーザーエージェント(UA)文字列を凍結・非推奨するということで、 代替として仕様策定中のUser-Agent Client Hints(UA-CH)を今のうちに試してみます。 User-Agent Client Hints(UA-CH)とは Google ChromeがUserAgent文字列の非推奨・凍結を計画したことにより、 将来的に、UserAgent文字列から、ブラウザのバージョンなどの情報が正確に取得することが出来なくなってしまう。 代替手段として、User-Agent Client Hintsの機能が検討中であり、Google Chromeでは実験的な機能として試すことができる。 従来のUserAgent文字列と同じようにHTTPリクエストヘッダーやJavascriptを使って情報を取得することが可能です。 User-Agent Client Hints(UA-

                                                User-Agent Client Hints(UA-CH)を取得する - Qiita
                                              • 「Google Chrome 103」が安定版に ~新しいHTTPステータスコード「103 Early Hints」に対応/深刻度「Critical」を含む多くの脆弱性にも対処

                                                  「Google Chrome 103」が安定版に ~新しいHTTPステータスコード「103 Early Hints」に対応/深刻度「Critical」を含む多くの脆弱性にも対処
                                                • Faster page loads using server think-time with Early Hints  |  Web Platform  |  Chrome for Developers

                                                  What is Early Hints? Websites have become more sophisticated over time. As such, it's not unusual that a server needs to perform non-trivial work (for example, access to databases, or CDNs accessing the origin server) to produce the HTML for the requested page. Unfortunately, this "server think-time" results in extra latency before the browser can start rendering the page. Indeed, the connection e

                                                    Faster page loads using server think-time with Early Hints  |  Web Platform  |  Chrome for Developers
                                                  • Early Hints: How Cloudflare Can Improve Website Load Times by 30%

                                                    Early Hints: How Cloudflare Can Improve Website Load Times by 30%2021-09-16 Want to know a secret about Internet performance? Browsers spend an inordinate amount of time twiddling their thumbs waiting to be told what to do. This waiting impacts page load performance. Today, we’re excited to announce support for Early Hints, which dramatically improves browser page load performance and reduces thum

                                                      Early Hints: How Cloudflare Can Improve Website Load Times by 30%
                                                    • CloudflareのEarly Hintsを試してみた – TravelBook Tech Blog

                                                      「Early Hints」はリソースを先読みするための新しい仕組みです。 今回は Cloudflare の機能を使って、自分たちのサイトを題材に Early Hints を試してみた件について紹介します。 Early Hints とは? Early Hints とはリソースを先読みするための仕組みです。 Server Push が否応なしにリソースを「プッシュ」するのに対し、 Early Hints はリソースの URL だけを伝えるので、 ブラウザが賢くキャッシュ管理ができたりと効率がよいです。 例えば Web ページだと、サーバーから HTML を受け取る前にアセットの画像や CSS を優先的にダウンロードするといった使い方です。 HTML を生成するのに時間がかかる場合などは特に有効でしょう。 具体的には HTML がステータス「200」で返る前に、URL が書かれた「103」という

                                                        CloudflareのEarly Hintsを試してみた – TravelBook Tech Blog
                                                      • 2021-05-25のJS: IEの単体アプリとしてのサポート終了、WebContainers、User-Agent Client Hints

                                                        JSer.info #541 - Windows 10においてのInternet Explorer(IE)の単体のアプリとしてサポートが2022年6月15日で終了されることがアナウンスされました。 The future of Internet Explorer on Windows 10 is in Microsoft Edge | Windows Experience Blog Internet Explorer は Microsoft Edge へ – Windows 10 の Internet Explorer 11 デスクトップアプリは 2022 年 6 月 15 日にサポート終了 - Windows Blog for Japan 「Internet Explorer 11 デスクトップ アプリケーションのサポート終了」の発表に関連する FAQ - Windows Blog for

                                                          2021-05-25のJS: IEの単体アプリとしてのサポート終了、WebContainers、User-Agent Client Hints
                                                        • 「Google Chrome 101」が安定版に ~深刻度「High」の脆弱性7件などを修正【15:35追記】/「Priority Hints」などの新機能に対応

                                                            「Google Chrome 101」が安定版に ~深刻度「High」の脆弱性7件などを修正【15:35追記】/「Priority Hints」などの新機能に対応
                                                          • User Agent client hintsのJavaScript APIとHTTP Header

                                                            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

                                                              User Agent client hintsのJavaScript APIとHTTP Header
                                                            • 【テックコラム】Chromeブラウザによる User Agent の削減と User-Agent Client Hints への移行(※続編) | DataCurrent

                                                              2022.06.01 コラム Privacy SandboxUser Agentデータプライバシーテックコラム 【テックコラム】Chromeブラウザによる User Agent の削減と User-Agent Client Hints への移行(※続編) ● はじめに こんにちは、DataCurrent の不破です。 昨年10月に「【テックコラム】Chromeブラウザによる User Agent の削減と User-Agent Client Hints への移行」というタイトルで、Google が User Agent の情報を Chrome ブラウザで段階的に削減することを発表している件について記事を書かせて頂きました。 その後、現在(2022年6月)に至るまでに更なるアップデートがあり、Chrome の公式ページにて最終的な削減後の User Agent 文字列のフォーマットが公開され

                                                              • GitHub - Morantron/tmux-fingers: copy pasting in terminal with vimium/vimperator like hints.

                                                                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 - Morantron/tmux-fingers: copy pasting in terminal with vimium/vimperator like hints.
                                                                • 【テックコラム】Chromeブラウザによる User Agent の削減と User-Agent Client Hints への移行 | DataCurrent

                                                                  2021.10.15 コラム Privacy SandboxUser Agentデータプライバシーテックコラム 【テックコラム】Chromeブラウザによる User Agent の削減と User-Agent Client Hints への移行 ● はじめに こんにちは、DataCurrent の不破です。 User Agent と言えば、ブラウザからサーバーへのリクエストヘッダや JavaScript API を通じて取得できるユーザーのOS・ブラウザ情報として、ウェブ開発者やデータアナリストの方々には馴染みの深いワードかと思います。 私も以前広告配信事業に携わっていた際には、当時業界で流行っていたリッチメディア広告(インタースティシャル広告やフローティング広告など、懐かしいと思う方もいらっしゃるかと思います・・!)を広告配信サーバーに設定し各ブラウザで動作検証をすると、特定のブラウザバ

                                                                  • 3 Big Hints That Say You're a Leader People Want to Follow

                                                                    How will you truly know whether a leader's skills are fit for the constantly changing business landscape we face in a post-pandemic world? Well, according to research and best practices, they're often referred to as servant leaders. Labels aside, whatever you decide to call leaders that motivate and inspire others to go above and beyond, one thing is for sure: their actions and behaviors come from

                                                                      3 Big Hints That Say You're a Leader People Want to Follow
                                                                    • 103 Early Hints

                                                                      Alex Hamer is software engineer at Tesco, with a passion for building high performance, accessible web applications for the many. For a dynamic web application Time To First Byte (TTFB) can take time, this is certainly the case with the applications I work with. For each request the server receives, in order to respond correctly it could be performing a number of things that can add up; multiple A

                                                                        103 Early Hints
                                                                      • Client Hints の最新情報を追ってみた - Tech Inside Drecom

                                                                        これはドリコム Advent Calendar 2021の18日目です。 17日目はハヤブサさんの闇の錬金術~Elixirよもやま話~です。 はじめに こんにちは、enza サーバーサイドエンジニアの小林です。 新卒2年目として、ゲームプラットフォームの開発に携わっています。 Web システム開発をする際、User-Agent を利用して、ユーザーの OS やブラウザ判定などを行っているかと思います。 User-Agent は、2020年1月に削減されることが発表されましたが2021年まで延期となっていました。そして、今年に入り、再度 User-Agent 削減の計画が動き出しています。 そこで、User-Agent 削減の動向とその代わりとして提案されている User Agent Client Hints (UA-CH)について Google Chrome を中心に調査した結果をまとめた

                                                                          Client Hints の最新情報を追ってみた - Tech Inside Drecom
                                                                        • サーバサイドで User Agent Client Hints(UA-CH)

                                                                          User Agent のパーサを書いていたりするので、そろそろ一回 User Agent Client Hints(UA-CH) にキャッチアップしておかねばと。 主にサーバサイドでの話です。 結論 2022/02時点で UA-CH に対応しているブラウザは Google Chrome と Microsoft Edge で、Safari や Firefox は対応していない。そしてしばらくは対応してこなさそう。なので、広くブラウザを限定せずに公開されているWebサイトにおいては、UA-CH に対応することで User Agent ヘッダを打ち捨てられるかというと、そんなことはなさそうです。とはいえ、Chrome あたりはアグレッシブに切り替えていく姿勢を打ち出して動いているので、UA-CHの仕組みを受け入れる体制は整えていくべきフェーズにあると思われます。 User Agent Clien

                                                                            サーバサイドで User Agent Client Hints(UA-CH)
                                                                          • 脱Python初心者!Type Hintsを使ったより良いコードを書くためのコツ

                                                                            AI(機械学習)ブームが続いていることもあって最近はプログラム言語のPythonが注目を集めていますよね。またPythonはそのわかりやすい文法からプログラミング初心者に適した言語と言われています。 Pythonでは実行時に型を推論することから変数に型を明示的に書くことはありませんでしたが、Python3.5以降で導入されたType Hintsという仕組みによって、型アノテーションをつけることが可能になりました。 Pythonにおける型アノテーションとは、関数の引数や戻り値などに入るデータのデータ型に注釈を与える機能です。注釈と呼んでいるのは、実際に異なるデータ型が与えられたとしても特に実行には影響せず、そのまま実行されるためです。

                                                                              脱Python初心者!Type Hintsを使ったより良いコードを書くためのコツ
                                                                            • Visual Studio Code 1.67(2022 April)で入った Toggle Inlay Hintsが良い - Shohei Yoshida's Diary

                                                                              code.visualstudio.com 詳細は公式サイトを見てください。 Visual Studio Codeでは上記のように型を書いていなくても型を表示してくれるわけですが, 正直うざいと思うことが多い。特にあまり型を明示的に書かない F#や Rustの場合. 見た目もそうなのだが, 文字を挿入したり削除するときどこにカーソルを合わせるのが適切なのかがわかりづらかったりする問題もあってあまり好きではなかった。ただしどうしても型を知りたいこともあり有効にするか悩ましかったのだが, 先のフラストレーションの方が大きかったので一部機能を無効化していた(F#では細かく設定できたため, 変数と関数呼び出しの型表示を無効化していた). 1.67で入った Toggle Inlay Hintsがこの問題を解消してくれた. editor.inlayHints.enabled は on, off しかで

                                                                                Visual Studio Code 1.67(2022 April)で入った Toggle Inlay Hintsが良い - Shohei Yoshida's Diary
                                                                              • GitHub - Mechazawa/103-early-anti-adblock: Detect adblockers without Javascript by abusing early hints

                                                                                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 - Mechazawa/103-early-anti-adblock: Detect adblockers without Javascript by abusing early hints
                                                                                • Early Data Hints at Omicron’s Potential Toll Across America (Published 2022)

                                                                                  The extremely transmissible Omicron variant is spreading quickly across the United States, making up a vast majority of U.S. cases after becoming dominant in the week before Christmas. The Centers for Disease Control and Prevention has said that it is still too soon to predict the full impact Omicron could have on deaths and illness across the country. But data in some of the earliest-hit cities i

                                                                                    Early Data Hints at Omicron’s Potential Toll Across America (Published 2022)

                                                                                  新着記事