並び順

ブックマーク数

期間指定

  • から
  • まで

161 - 200 件 / 526件

新着順 人気順

rustの検索結果161 - 200 件 / 526件

  • 難しい問題をコンパイラレベルで弾くことができるRustの並行処理 データ共有の有無から見る、2つのサンプルコード

    Go、Python、Kotlin、Rust、TypeScript の5つの言語について「並列処理、並行処理の手法」というテーマに絞り解説する「並列処理をGo/Rust/Kotlin/Python/JSで解説!思想の違いを体感しよう」。Rust編では鈴木文太氏が登壇。Rustの並行処理について、データ共有がないパターン、データ共有があるパターンそれぞれのコードを紹介します。 鈴木氏の自己紹介と、今日話すこと 鈴木文太氏(以下、鈴木):よろしくお願いします。「Rustにおける並行処理」について発表していきたいと思います。私はGO株式会社の鈴木文太と申します。2021年6月に入社して、今はタクシー事業者向けの管理画面の開発などをやっています。 今回話すことについてですが、まずプロセスと並行・並列処理の基本について少しお話ししたあとに、スレッド間でデータ共有がない場合のRustのコードと、スレッド

      難しい問題をコンパイラレベルで弾くことができるRustの並行処理 データ共有の有無から見る、2つのサンプルコード
    • Rust と Wasm で極限まで PNG ファイルを圧縮した話

      はじめに 以前つくった Minsta というデジタルスタンプラリーの Web アプリの中で、ブラウザ上で Canvas を使用してスタンプ風の画像を生成する機能があるのですが、前々からもう少し画像のファイルサイズを落とせそうだなと思っていたので、今回 Rust と WebAssembly を使用して PNG ファイルを極限まで圧縮するのに挑戦してみました。 Minsta については以下の記事をご覧ください。 動機 Minsta では単色で背景透過の以下のようなスタンプの PNG 画像をブラウザ側で Canvas の toBlob メソッドを使用して生成しているのですが、このメソッドで PNG エンコードすると 32 bit の RGB+alpha 形式のファイルしか生成できず、 Minsta で扱うような単色の画像にとっては余計にデータサイズが膨らんでしまっていました。 PNG は使用する

        Rust と Wasm で極限まで PNG ファイルを圧縮した話
      • GitHub - rolldown/rolldown: Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API.

        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 - rolldown/rolldown: Fast Rust bundler for JavaScript/TypeScript with Rollup-compatible API.
        • Build Your Own curl - Rust

          We will build curl from scratch by accepting the coding challenge posted on Coding Challenges FYI. Before moving ahead, you must know how TCP client-server connections work. You can read more about GeeksforGeeks. On Server Side: - Socket:- Socket object to expose our endpoints. setsockopt:- This function sets the extra options for the sockets if needed. Bind:- It binds the socket with the IP and p

            Build Your Own curl - Rust
          • Deep dive into Biome in JSConf 2023

            The video included in the slides can be accessed here https://web.archive.org/web/20230328125908/https://rome.tools/blog/2022/11/08/rome-10/

              Deep dive into Biome in JSConf 2023
            • From 1s to 4ms

              When Zed was open-sourced, someone on HackerNews commented that Sublime Text is faster when searching for all occurrences of the current word in a buffer. Zed takes 1s and Sublime somewhere around 200ms. Searching all occurrences means: you position your cursor over a word, you hit cmd-shift-l and all occurrences of that word in the current buffer are selected and you get a cursor at each occurren

                From 1s to 4ms
              • 【v6プラス/OCNバーチャルコネクトでもNATタイプA】LinuxでポートセービングIPマスカレード付きの制限コーン風NAT(EIM/ADF)を動かす - turgenev’s blog

                概要 NAT動作をめぐる誤解まとめ - turgenev’s blogでは、UDPホールパンチングのしやすさとポートの節約を両立するには「Address Dependentなマッピングを保持しつつEIM風に動作するADFなNAT」が一番いいという話を書きました。これだとv6プラスやOCNバーチャルコネクトでもNintendo SwitchのNAT判定が「タイプA」になります。 この記事では、Symmetric NAT/Full Cone NATをサポートするruby製NATであるrat(GitHub - kazuho/rat: NAT written in pure ruby)を手元で動かし、またコードを少しだけ変更することで上記のようなNATを実際に動作させるところまでを紹介します。変更後のコードはGitHub - ge9/rat: NAT written in pure rubyに公開

                  【v6プラス/OCNバーチャルコネクトでもNATタイプA】LinuxでポートセービングIPマスカレード付きの制限コーン風NAT(EIM/ADF)を動かす - turgenev’s blog
                • Rustで書かれたLinux互換OS「Maestro」が爆誕 | ソフトアンテナ

                  Rustで書かれLinux互換を目指して開発が進められているOS、「Maestro」が公開され注目を集めています。 Maestroは、フランス在住のソフトウェアエンジニアLuc Lenôtre氏によって開発が進められているOSで、2018年12月22日に学校のプロジェクトとして始められました。当初はC言語を使って実装されたそうですが、コードベースをきれいに保つのが難しくなり、1年半後にRust言語での実装に切り替えられます。 Rustへ切り替えた理由として以下のような項目リストアップされています。 以前の失敗から学んだ教訓を生かし、プロジェクトを最初からやり直すことができる。 C言語でLinuxライクなカーネルを書くよりも、もう少し革新的になる。 Rust言語の安全性をカーネル・プログラミングの難点に活用する。Rustの型付けシステムを使うことで、メモリ安全性に関する責任をプログラマからコ

                    Rustで書かれたLinux互換OS「Maestro」が爆誕 | ソフトアンテナ
                  • Taming Floating-Point Sums | orlp.net

                    Suppose you have an array of floating-point numbers, and wish to sum them. You might naively think you can simply add them, e.g. in Rust: fn naive_sum(arr: &[f32]) -> f32 { let mut out = 0.0; for x in arr { out += *x; } out } This however can easily result in an arbitrarily large accumulated error. Let’s try it out: naive_sum(&vec![1.0; 1_000_000]) = 1000000.0 naive_sum(&vec![1.0; 10_000_000]) = 1

                    • WinterJSとは何者か?ベンチマークでの比較検証

                      概要 2024年3月12日にこんなニュースが飛び込んできました。 WinterJSの1.0が発表されたとのことで、今回はWinterJSとは何者なのかについてをまとめていき、検証していきます。 WinterJS WinterJS とは、Rustで書かれたJavaScriptランタイムでSpiderMonkeyエンジンを使用して、javaScriptを実行します。 Rustで書かれたと言っているのは、HTTPリクエストなどの処理や、JavaScriptイベントのループを処理をするRust の非同期ランタイムTokioを使用しているからです。 また、WinterJSは、WebAssemblyにコンパイルすることもできるようです。 そして、一番重要なことは、JavaScriptにおけるHTTP Serverとしての性能について、処理速度がとんでも無く早いということを謳っている点ですね。 今回は、

                        WinterJSとは何者か?ベンチマークでの比較検証
                      • 自動車業界初、プログラミング言語「Rust」を使用可能に…ドイツのVectorとHighTec | レスポンス(Response.jp)

                        ドイツのVectorとHighTec EDV-Systemeは8月6日、世界初となるRustアプリケーションとCベースのAUTOSAR Classic基本ソフトウェアの統合に成功した、と発表した。これにより、自動車業界でのプログラミング言語「Rust」使用における最後の障害が取り除かれたという。 VectorのMICROSAR Classic Safe基本ソフトウェアと、HighTecの自動車グレードLLVMオープンソースベースのRustおよびC/C++コンパイラツールを組み合わせることで、組み込み開発者はInfineon AURIX TC3xおよびTC4x向けにRustのメモリ安全性プログラミング言語を利用できるようになった。これらのツールは、ISO 26262のASIL Dまでの安全認証を受けている。

                          自動車業界初、プログラミング言語「Rust」を使用可能に…ドイツのVectorとHighTec | レスポンス(Response.jp)
                        • 非同期マルチスレッドフレームワーク「Pingora」をオープンソース化 Cloudflare

                          非同期マルチスレッドフレームワーク「Pingora」をオープンソース化 Cloudflare:ゲートウェイやロードバランサー構築に向くカスタマイズ可能なAPI Cloudflareは、RustフレームワークPingoraのオープンソース化を発表した。Pingoraは、Cloudflareが開発したHTTPプロキシサービスの構築を支援するRustの非同期マルチスレッドフレームワークだ。

                            非同期マルチスレッドフレームワーク「Pingora」をオープンソース化 Cloudflare
                          • 「ベアメタル」環境でもRustを採用 Googleが「Android 14」での取り組みを解説/安全性と生産性の両面でC/C++よりも大幅に改善

                              「ベアメタル」環境でもRustを採用 Googleが「Android 14」での取り組みを解説/安全性と生産性の両面でC/C++よりも大幅に改善
                            • Rust製ブラウザエンジンの「Servo」がElectron代替を目指す「Tauri」への組み込みに対応、プロトタイプとして実装

                              Rust製ブラウザエンジンの「Servo」がElectron代替を目指す「Tauri」への組み込みに対応、プロトタイプとして実装 Linux Foundation傘下でRust製のWebブラウザエンジンとして開発が進められている「Servo」は、Electron代替を目指すフレームワーク「Tauri」への組み込みサポートを、プロトタイプとして実装したことを明らかにしました。 Servo can now be used in an experimental build of WRY, the webview library behind Tauri! More on offscreen rendering, multiple webviews, and other embedding improvements ↓ pic.twitter.com/jElJUusZZU — Servo (@Se

                                Rust製ブラウザエンジンの「Servo」がElectron代替を目指す「Tauri」への組み込みに対応、プロトタイプとして実装
                              • 次世代Web BandlerのFarmが熱そう

                                はじめに 昨今、ビルドツールは様々なものが開発され、いかに高速化するか、開発者体験を上げられるかが注目されているように思います。2024年6月にState of JSが公開され、その中でBuild Toolsはwebpackが最も使用されており、次いでViteがランキングしています。 Viteの伸びがすごいですね...🔥 ビルドツールも様々ありますが、2024年4月にFarmというWeb Bandlerのv1.0がリリースされました。 気になってドキュメントサイトを覗いてみるとなんだか良さげな雰囲気を感じたので、Farmの特長と推せるポイントをまとめてみようと思います。 やること、やらないこと やること Farmの紹介 Farmの特長とおすすめポイントの紹介 やらないこと Farmの導入方法や詳細について (ドキュメントがわかりやすい) Farmとは? Farmは、webpackやVit

                                  次世代Web BandlerのFarmが熱そう
                                • 新しいSQLフォーマッターであるuroboroSQL-fmtをリリースしました | フューチャー技術ブログ

                                  コアテクノロジーグループの山田です。 先日、新しいSQLフォーマッターであるuroboroSQL-fmtをリリースしました 🎉 このツールは弊社が公開しているPostgreSQL向けのSQLコーディング規約に基づき、SQL文をフォーマットするツールです。 弊社でのSQLフォーマッター開発の取り組み元々弊社ではuroboroSQL Formatter(以下uroboroSQL Formatterを旧版、uroboroSQL-fmtを新版と呼ぶ)というSQLフォーマッターを公開していました。旧版は 字句解析して得られたトークンを基にフォーマットするという設計になっていたため、SELECT句のエイリアス補完といった文法を考慮する必要のある機能の追加が困難Pythonで書かれておりVSCodeの拡張機能として動作させるのが難しいという課題を抱えており、それを解消するため新たなSQLフォーマッター

                                    新しいSQLフォーマッターであるuroboroSQL-fmtをリリースしました | フューチャー技術ブログ
                                  • GitHub - sxyazi/yazi: 💥 Blazing fast terminal file manager written in Rust, based on async I/O.

                                    Yazi (means "duck") is a terminal file manager written in Rust, based on non-blocking async I/O. It aims to provide an efficient, user-friendly, and customizable file management experience. 💡 A new article explaining its internal workings: Why is Yazi Fast? 🚀 Full Asynchronous Support: All I/O operations are asynchronous, CPU tasks are spread across multiple threads, making the most of available

                                      GitHub - sxyazi/yazi: 💥 Blazing fast terminal file manager written in Rust, based on async I/O.
                                    • GitHub - eza-community/eza: A modern alternative to ls

                                      eza is a modern, maintained replacement for the venerable file-listing command-line program ls that ships with Unix and Linux operating systems, giving it more features and better defaults. It uses colours to distinguish file types and metadata. It knows about symlinks, extended attributes, and Git. And it’s small, fast, and just one single binary. By deliberately making some decisions differently

                                        GitHub - eza-community/eza: A modern alternative to ls
                                      • Using Zig in our incremental Turborepo migration from Go to Rust – Vercel

                                        Using Zig in our incremental Turborepo migration from Go to RustLearn how we're cross-compiling a Rust-Go-Rust sandwich to six platforms. We’ve been porting Turborepo, the high-performance build system for JavaScript and TypeScript, from Go to Rust. We talked about how we started the porting process, so now let’s talk about how we began porting our two main commands: run and prune. Since last time

                                          Using Zig in our incremental Turborepo migration from Go to Rust – Vercel
                                        • kyju.org - Piccolo - A Stackless Lua Interpreter

                                          Piccolo - A Stackless Lua Interpreter 2024-05-01 History of piccolo A "Stackless" Interpreter Design Benefits of Stackless Cancellation Pre-emptive Concurrency Fuel, Pacing, and Custom Scheduling "Symmetric" Coroutines and coroutine.yieldto The "Big Lie" Rust Coroutines, Lua Coroutines, and Snarfing Zooming Out piccolo is an interpreter for the Lua language written in pure, mostly safe Rust with a

                                          • GitHub - narumatt/sqlitefs: sqlite as a filesystem

                                            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 - narumatt/sqlitefs: sqlite as a filesystem
                                            • トーバルズ氏、「Linux」カーネル開発状況、「Rust」導入、AIを語る

                                              海外コメンタリー トーバルズ氏、「Linux」カーネル開発状況、「Rust」導入、AIを語る - (page 2) Steven J. Vaughan-Nichols (Special to ZDNET.com) 翻訳校正: 川村インターナショナル 2024-08-30 07:30 では、毎週のようにリリースされるLinuxのセキュリティバグフィックスについては、どうすればいいのか。安定版LinuxカーネルのメンテナーであるGreg Kroah-Hartman氏の考えでは、最も安全な最新の安定版Linuxカーネルに常に更新すべきだという。Torvalds氏も同じ意見だが、古いカーネルを使い続けて、頻度の低いセキュリティパッチのバックポートに依存するユーザーにも理解を示す。 「古いカーネルにはある程度の安定性があり、パッチやフィックスのバックポートを提供している。だが、重要ではないとユーザー

                                                トーバルズ氏、「Linux」カーネル開発状況、「Rust」導入、AIを語る
                                              • Discord、単一サーバーで100万人以上のオンラインMidJourneyユーザーに拡大

                                                Spring BootによるAPIバックエンド構築実践ガイド 第2版 何千人もの開発者が、InfoQのミニブック「Practical Guide to Building an API Back End with Spring Boot」から、Spring Bootを使ったREST API構築の基礎を学んだ。この本では、出版時に新しくリリースされたバージョンである Spring Boot 2 を使用している。しかし、Spring Boot3が最近リリースされ、重要な変...

                                                  Discord、単一サーバーで100万人以上のオンラインMidJourneyユーザーに拡大
                                                • Rust.Tokyo 2023参加記

                                                  こんにちは。Zennでは初めまして。cordx56です。 今回は、先日開催されたRust.Tokyo 2023の参加記を書きたいと思います。よろしくお願いします。 Rust.Tokyoとは? Rust.Tokyoとは、プログラミング言語であるRustのカンファレンスです(念の為)。そこまで多くの情報は載っていませんが、公式サイトもあります。 なぜ参加したの? 私は今回のRust.Tokyo 2023がRust.Tokyoの初参加でした。今回はRust.Tokyoのしばらくぶりのオフライン開催だったようです。 私自身、最近何かを作る際にはRustを用いることが多くなったこと、そして今のインターン先がRust.Tokyo 2023のスポンサー企業であったこともあり、現地で参加してきました。 オフライン会場は六本木のメルカリさんのところで、とてもいい会場でした。また現地では知り合いに会うこともで

                                                    Rust.Tokyo 2023参加記
                                                  • 米国国防総省のDARPA、CからRustへのコード変換を自動化する「TRACTOR」プログラムを開始

                                                    DARPA(Defense Advanced Research Projects Agency:米国国防総省国防高等研究計画局)は2024年7月31日(米国時間)、「Translating All C to Rust」(TRACTOR)プログラムの開始を発表した。非常に脆弱(ぜいじゃく)なレガシーC言語コードから、本質的により安全なRust言語のコードへの変換を自動化することを目指す。 広く使われてきたプログラミング言語であるCとC++は、メモリ安全性を備えていない。これらの言語では、プログラマーがメモリを直接操作できるため、誤ってプログラムエラーを引き起こし、メモリを破損させてしまう可能性がある。 C言語を変換する背景 関連記事 「ソフトウェアはメモリ安全でなければならない」との声明を発表、米ホワイトハウス 米ホワイトハウスは、サイバー空間における攻撃対象領域を積極的に削減するよう技術コ

                                                      米国国防総省のDARPA、CからRustへのコード変換を自動化する「TRACTOR」プログラムを開始
                                                    • Ntex

                                                      NtexNtex is a powerful, pragmatic, and extremely fast framework for composable networking services for Rust

                                                      • moonbit で json パーサーを書いてみた 感想

                                                        エアプにならないために、実際に moonbit を使ってコードを書いてみた感想を書く。 JSON Parser を書いた パッケージレジストリである https://mooncakes.io を見た限り、使いやすい json parser がなさそうなので、とりあえず自分用のをでっち上げた。 mooncakes.io に publish してあるので、 moon add mizchi/json で使える。品質が良くなくても ネームスペース付きで publish するので別に邪魔にならない気がした。 なんで作ったかというと、公式 example の cloudflare workers の example は単純なフィボナッチを計算するだけで、構造的なデータを返すことができない。 moonbit と js 間の文字列の受け渡しについては、あとで別の記事を書く。 使い方 fn main { l

                                                          moonbit で json パーサーを書いてみた 感想
                                                        • State of Vite (ViteConf 2023)

                                                          The State of Vite Hello everyone! Welcome back to another ViteConf. Today I am here to talk about the state of Vite: What’s been happening, how things are going, and what’s going to happen next. Let’s dive right into it. Evan You ViteConf 2023

                                                            State of Vite (ViteConf 2023)
                                                          • 【JavaScript】ここがしんどかったよTauri開発【Rust】 - Qiita

                                                            2024年2月2日にTauri 2.0がβ版となりました。昨年から個人的にいくつかTauriの1系でデスクトップアプリケーションを開発してきたのですが、ここが辛かった!というのを列挙してみました。 因みに公開しているのは以下となります。 Iron Beads Editor(Mac OS版) String Scouter(Mac OS版)(Windows版) 尚、Iron Beads Editor(以下IBE)に関しては元々Vanilla.jsでweb側を作っていて、それの機能追加版となります。 なぜTauriを選択したのか? まずTauriを選択する前に以下のプラットフォームを検討しました。 Platform 所感とか

                                                              【JavaScript】ここがしんどかったよTauri開発【Rust】 - Qiita
                                                            • Rust製のオープンソースエディタ「Zed」のLinux安定版が公開

                                                              オープンソースで開発されているRust製のエディタ「Zed」のLinux対応安定版が公開されました。 主要なLinuxディストリビューションで動作すると説明されています。 Linux when? Linux now. For the last 6 months, our team and our open source community have been working hard to bring Zed to Linux. As of today, we've released our first, official, stable build of Zed on Linux!https://t.co/WbptRrpkQw pic.twitter.com/ijLK9ndGy3 — Zed (@zeddotdev) July 10, 2024 Zedエディタは高速性が特徴、GitHub

                                                                Rust製のオープンソースエディタ「Zed」のLinux安定版が公開
                                                              • Writing a TrueType font renderer

                                                                This post was discussed further on Hacker News. 09 Jan, 2024: There was an issue with newsletter signups. If you tried to sign up, please try again! You should see a success message. Text is the medium of digital interaction, and text rendering has an outsized impact on the overall fit and finish of any system. It therefore pains me that axle has for years relied on a low-resolution 8x8 bitmap fon

                                                                • Rustの学び方教えてくれ

                                                                  プログラミングRustは昔一回読んだ 自力で書けなすぎるから写経して学ぼうかと思ったが、中々染み付く感じがしない

                                                                    Rustの学び方教えてくれ
                                                                  • WebAssemblyの現状を明らかにする調査「The State of WebAssembly 2023」の結果が発表

                                                                    調査結果によれば、WebAssemblyを利用するアプリケーションを開発する際に、もっとも多く用いられるプログラミング言語は3年連続で「Rust」となり、「JavaScript」がそれに続いている。 WebAssemblyでのアプリケーション開発で、将来どのプログラミング言語を使用したいかを尋ねた質問でも、「Rust」が最多となり、「JavaScript」がそれに続いた。 どのランタイムについて聞いたことがあるか、または使ったことがあるかを尋ねたところ、Bytecode Allianceの「wasmtime」を挙げる回答がもっとも多く、「wasmer」が2位となっている。 現在、WebAssemblyを何に使用しているかを尋ねた質問では、「Webアプリケーションの開発」が依然として最多ではあるものの、2位の「プラグイン開発」との差がわずかに縮まった。 所属先の組織における、WebAssem

                                                                      WebAssemblyの現状を明らかにする調査「The State of WebAssembly 2023」の結果が発表
                                                                    • GitHub - explodingcamera/tinywasm: A tiny, interpreted WebAssembly Runtime written in Rust

                                                                      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 - explodingcamera/tinywasm: A tiny, interpreted WebAssembly Runtime written in Rust
                                                                      • AWS SDK for Rust is now generally available

                                                                        Today, AWS announces the general availability of the AWS SDK for Rust, allowing customers to now use this for production workloads. The AWS SDK for Rust empowers developers to interact with AWS services and enjoy APIs that follow Rust idioms and best practices. AWS SDK for Rust provides idiomatic, type-safe API and supports modern Rust language features like async/await, non-blocking IO, and build

                                                                          AWS SDK for Rust is now generally available
                                                                        • Mako - Extremely fast, Production-grade web bundler

                                                                          An extremely fast, production-grade web bundler based on Rust. Mako is a new web bundler for Web App, Library, and Framework. It's designed to be fast, reliable, and easy to use. It has been used in hundreds of projects in production by Ant Group, and other companies. If you are looking for a modern web bundler, Mako is the right choice. Getting Started $ npm create mako Why Mako Mako has a lot of

                                                                          • Introducing RustRover – A Standalone Rust IDE by JetBrains | The RustRover Blog

                                                                            “When will there be a Rust IDE?” We get this question from our users quite frequently, and today we’re happy to announce that the day has arrived. Please welcome RustRover, our standalone IDE for Rust. As many of you are aware, we’ve worked for years to bring support for Rust functionality as a plugin that works in both IntelliJ IDEA and CLion. However, time and time again, we’ve received requests

                                                                              Introducing RustRover – A Standalone Rust IDE by JetBrains | The RustRover Blog
                                                                            • GitHub - dh1011/llm-term: A Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models.

                                                                              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 - dh1011/llm-term: A Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models.
                                                                              • GitHub - Eventual-Inc/Daft: Distributed DataFrame for Python designed for the cloud, powered by Rust

                                                                                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 - Eventual-Inc/Daft: Distributed DataFrame for Python designed for the cloud, powered by Rust
                                                                                • Rustで有名アルゴリズムに挑戦(22) Rustでワイルドカードを実装してみよう

                                                                                  前回、ワイルドカードのパターン検索に対応したファイル検索ツールを作ってみました。その際、wildcard_exというクレートでファイル名のマッチングを行いました。今回は、自力でワイルドカードの実装に挑戦してみましょう。 ワイルドカードの関数を作ってみよう ワイルドカードとは 正規表現を知らない人でも、ワイルドカードなら分かるという方は多くいます。ファイルやデータベースの検索をする際、ワイルドカードであれば、あまり考える事なく気軽に検索に利用できます。今回は、Rustでワイルドカードを実装してみましょう。 そもそも、「ワイルドカード(Wildcard)」とは、検索を行う時、コンピュータで特定の文字や文字列の代わりに使える記号のことです。「*」や「?」などの特殊記号を利用して、特別なパターンを表現できます。一般的なファイル検索で使えるワイルドカードには「*」と「?」があります。 例えば、「*」

                                                                                    Rustで有名アルゴリズムに挑戦(22) Rustでワイルドカードを実装してみよう