並び順

ブックマーク数

期間指定

  • から
  • まで

321 - 360 件 / 413件

新着順 人気順

rustの検索結果321 - 360 件 / 413件

  • (2024年1月時点)RustのWebフレームワークの簡単な比較 - Activ8 Tech Blog

    はじめに こんにちは、エンジニアのクロ(@kro96_xr)です。 エンジニアと言いながら最近コードを書く機会が減っていたので、年末年始にRustにチャレンジしていました。 まだ全然理解しきれていないという自覚はありつつ、今回はRustの主要なWebフレームワークについて簡単に調査、比較していきたいと思います。 間違いなどありましたらDM等でご指摘いただけると幸いです。 なお、情報は全て調査時点(2024/1/8)のものとなります。 Frameworkの候補 フレームワークの比較をしてくれているリポジトリがあるので、この情報を元にピックアップしてみます。 github.com 人気のフレームワーク 名称 Repos Docs スター数 最新バージョン Activity actix-web Repo Doc 19.4k 4.4.1 181/year axum Repo Doc 14.3k 0

      (2024年1月時点)RustのWebフレームワークの簡単な比較 - Activ8 Tech Blog
    • Rustで型付Webアプリケーション開発 - DIGGLE開発者ブログ

      この記事は Rust Advent Calendar 2023 25日目の記事です。 お久しぶりです。DIGGLEのhirataです。 今回はDIGGLEとは関係ないですが、個人的にRustの利用を促進すべくRustでのWebアプリケーションの開発経験について書きたいと思います。 所感としては一人で開発するならRustを使うべし、と思える経験でした。やはりあちこちで言われている事ではありますが、静的型とライフタイムチェックによりコンパイルを通ってしまえばほぼバグが無く動くという安心感がとても心地よいものでした。コンパイラが代わりにテストをしてくれているような心持ちです。 また、Rustで作成したサーバはとてもメモリ消費量が小さく、Railsアプリであれば下手をすると1GB程まで行ってしまいますが、数十MBで十分動くというのも個人にとってありがたいものでした。 ちなみにとても安定して動作して

        Rustで型付Webアプリケーション開発 - DIGGLE開発者ブログ
      • Rust 1.71.1がリリース ー 緊急度の高い脆弱性を修正、早めのアップデートを

        8月3日に、Rustはバージョン1.71.1をリリースしました。 このリリースでは、バグ修正とセキュリティの脆弱性の修正が含まれています。 Rust 1.71.1のアップデートは、ユーザーにとって重要な修正が行われているため、早急にツールチェーンを更新することをおすすめします。 8月3日に、Rustはバージョン1.71.1をリリースしました。 Rustは、システムプログラミングからWebアプリケーションまで幅広い用途に使用されており、メモリ安全性と並行性を重視した設計が特徴である。 このリリースでは、バグ修正とセキュリティの脆弱性の修正が含まれている。 Rust 1.71.1のアップデートは、ユーザーにとって重要な修正が行われているため、早急にツールチェーンを更新することが推奨されている。 アップデート方法 既にrustupを使用してRustをインストールしている場合は、以下のコマンドを実

          Rust 1.71.1がリリース ー 緊急度の高い脆弱性を修正、早めのアップデートを
        • Modular: Mojo vs. Rust: is Mojo 🔥 faster than Rust 🦀 ?

          Mojo is built on the latest compiler technology in MLIR, an evolution of LLVM which Rust lowers to, and so it can be faster. It depends largely on the skill of the programmer and how far they're willing to go with optimizations. Mojo's goal as a language, is to meet Python developers where they are, and allow them to learn some new tricks to optimize their code to the performance limits of any har

            Modular: Mojo vs. Rust: is Mojo 🔥 faster than Rust 🦀 ?
          • AI搭載Rust製ターミナルWarpを使ってみた - Qiita

            Warpとは Rust製のTerminal代替アプリ。現状、Macのみ対応となる。(Windows, Linuxは対応中) 軽くて、高速。そして、AIが搭載されている。個人利用/5人以下のチームの場合は、無料で使用可能。 Warpの特徴 Warp AI Warp内で簡単に生成AIを使用することができる。 プロンプト入力時に#を入力すると使用できる。 カスタマイズが楽 いちいちスクリプトを触らんなくても、設定で見た目のカスタマイズができる。 テーマやフォントもデフォルトで複数入っている。 補完機能が優秀 ディレクトリ名などの補完機能はもちろん、git pushした後にPRの作成画面をopenするコマンドまで予測してくれるのが、便利すぎる。 Warp Drive Warp Drive は、コマンドをワークフローとして安全に保存および共有できる機能。 以下のようによく使うコマンドをワークフローと

              AI搭載Rust製ターミナルWarpを使ってみた - Qiita
            • 2023年、Rustグラフィックス界隈(というかwgpu界隈)への期待 - Technically, technophobic.

              1年後どうなってるのかわからないけど、この気持ちを覚えているうちにメモっておきたいので書きます。 (注:私はRustを使うのが年間数日くらいのエアプ勢なので、たぶんいろいろ適当なことを書いていると思います。話半分で読んでいただければ...) Rustのグラフィックス界隈とは 個人的な観測範囲では、Rustのグラフィックス界隈には主に3つの勢力があります。 Rustでウェブブラウザを作りたい勢 Rustでゲームを作りたい勢 RustでGUIを作りたい勢 Rustでウェブブラウザを作りたい勢 今やRustのグラフィックス界隈は、WebGPUのRust実装であるwgpuを重要な起点として成り立っています。 wgpuは、そしてWebGPUという規格自体も、MozillaがFirefoxのために必要としたもので、Mozillaの寄与が大きいです。 なんですが、2020年にはMozillaが大規模なレ

                2023年、Rustグラフィックス界隈(というかwgpu界隈)への期待 - Technically, technophobic.
              • Welcome to Comprehensive Rust 🦀 - Comprehensive Rust 🦀

                Welcome to Comprehensive Rust 🦀 This is a free Rust course developed by the Android team at Google. The course covers the full spectrum of Rust, from basic syntax to advanced topics like generics and error handling. The latest version of the course can be found at https://google.github.io/comprehensive-rust/. If you are reading somewhere else, please check there for updates. 本講座の目的は、Rustを教える事です。R

                • Next.js(Typescript)+Tauri(Rust)でのデスクトップアプリ制作 | TKブログ

                  はじめに本記事では、Typescriptを使用したNext.jsとTauriによるアプリケーション開発のチュートリアルを紹介します。このチュートリアルを通じて、デスクトップアプリケーションの作成に必要なスキルと知識を身につけることができます。 Typescriptでデスクトップアプリを作成する場合、Electronも候補になってきますが、Tauriのほうがメモリや容量がかなり抑えられるアプリが作成できます Next.jsとTauriの基本Next.jsはサーバーサイドレンダリングや静的サイト生成に優れたReactフレームワークです。一方、Tauriはウェブ技術を使って軽量なデスクトップアプリケーションを作成するためのフレームワークです。 Next.jsの詳細については公式ドキュメントを、Tauriについては公式ガイドを参照してください。 今回Next.jsについてはAPPRouterを利用

                    Next.js(Typescript)+Tauri(Rust)でのデスクトップアプリ制作 | TKブログ
                  • Introducing FireDBG for Rust | FireDBG - 🔥 Time Travel Visual Debugger for Rust

                    Debugging programs is hard​Debugging programs is hard. It is extremely mind boggling when something does not work as expected. More often than not 90% of the work is on tracking down where the bug is, and 10% is actually solving it! But why don't programmers use debuggers more often these days? Instead, we all enjoy adding println all over the place, running the program, adding more prints, rinse

                      Introducing FireDBG for Rust | FireDBG - 🔥 Time Travel Visual Debugger for Rust
                    • What's Zig got that C, Rust and Go don't have? (with Loris Cro)

                      Zig is a programming language that’s attempting to become “the new C” - the language of choice for low-level systems programming and embedded hardware. Going into that space not only puts it in competition with C and C++, but also other newcomers like Rust and Go. So what makes Zig special? Joining us to discuss it is Loris Cro from the Zig Foundation. We talk through Zig’s reasons to exist, its

                        What's Zig got that C, Rust and Go don't have? (with Loris Cro)
                      • Function interposition in Rust with upgrayedd

                        Yet another announcement-type post, this time for a small Rust library I hacked up while trying to deduplicate some boilerplate in another project: upgrayedd. This is what using upgrayedd looks like: 1 2 3 4 5 6 7 8 use upgrayedd::upgrayedd; #[upgrayedd] fn X509_VERIFY_PARAM_set_auth_level(param: *mut std::ffi::c_void, level: std::ffi::c_int) { eprintln!("before!"); unsafe { upgrayedd(param, level

                        • Rustを学びつつ週末レイトレーシング(Ray Tracing in One Weekend)をやった記録

                          1. はじめに Rustの勉強がてら、今の自分でできるかぎりやってみることにした。 基本的にはこちらの邦訳を参考にし、適宜他の方のC++による実装や原文とそのリポジトリを参照することにする。 章の名前は最初に挙げた邦訳から借用する。 数学の理解度が足りないので、基本的にはコードを翻訳していくだけに留める。 なお、コード中では、基本的に整数はi32を、小数はf64を使うものとする(考えることが減るので)。 また、コードの変更の表示にdiffを用いているが、追加した・書き換えた行のみを記述するものとする。 ソースコードは以下まで。 もしこの記事をもとに書いてみようと思っている場合 今回、手元では章ごとにディレクトリを分けている。その際ディレクトリ名が変わることによってコードも一部が変化している。具体的には以下の2箇所が必ず変化する。 main.rsのuse 7章の記述 画像出力の際の画像名 4

                            Rustを学びつつ週末レイトレーシング(Ray Tracing in One Weekend)をやった記録
                          • WhisperとTauri(Rust+Typescript)で自動文字起こしアプリ開発 - Qiita

                            ※この記事は文系的冗長性及び反知性的曖昧主義に支配されています1。 葬送の限界事務職員 事務職御用達コラボレーションツール「Teams」にライブ文字起こし機能が導入されました2。幹部会議の議事録作成に命を燃やす我ら事務職員にとって、使わない手はありません。しかし同機能をオンにすると、すべての参加者にそれが通知されてしまいます。ここで文系的危機回避能力を発動、事前伺いを実行! 上司A「弊社のセキュリティ規定でトランスクリプト機能を使って良いのは機密性2情報までだよ?」 上司B「この会議は機密性2だけど機密性3の扱いだよ?」 上司C「M社に情報抜かれない保証は?ポリシーではだめだよ、相対契約にそう書いた?」 同期達「同期で昼食会しよう!会費は一人4,000円ね!」 _人人人人人人人人人人人人人人人人人人人_ > まるで!御伽の話!終わり!迎えた証! <  ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y

                              WhisperとTauri(Rust+Typescript)で自動文字起こしアプリ開発 - Qiita
                            • Why Golang instead of Rust to develop the Krater desktop app | MoonGuard - Web Monitoring Tools

                              Hello! If you have been following our articles, you may remember reading that Krater was being developed with Rust using Tauri. However, this is no longer the case because a few months ago we made the decision to migrate the entire project to Wails (Golang). In this article, we will discuss our experience and why we made such a risky decision to migrate an entire application from one language to a

                                Why Golang instead of Rust to develop the Krater desktop app | MoonGuard - Web Monitoring Tools
                              • procs: Rust Alternative to ps Command in Linux

                                One can find tons of replacements for top, a CLI tool that provides a dynamic real-time view of a running system. There is the famous htop, the asynchronous atop, which forces the kernel to write a record of running processes, and some lesser known alternatives, such as btop, the Node.js-based gtop, and gotop, built with Go. But what about the good ol’ ps? ps (Process Status) is an ancient Unix co

                                  procs: Rust Alternative to ps Command in Linux
                                • Changes to `u128`/`i128` layout in 1.77 and 1.78 | Rust Blog

                                  Rust has long had an inconsistency with C regarding the alignment of 128-bit integers on the x86-32 and x86-64 architectures. This problem has recently been resolved, but the fix comes with some effects that are worth being aware of. As a user, you most likely do not need to worry about these changes unless you are: Assuming the alignment of i128/u128 rather than using align_of Ignoring the improp

                                    Changes to `u128`/`i128` layout in 1.77 and 1.78 | Rust Blog
                                  • Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ

                                    Get full access to Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ and 60K+ other titles, with a free 10-day trial of O'Reilly. There are also live events, courses curated by job role, and more.

                                      Rustの練習帳 ―コマンドラインツールの作成を通してRustを学ぶ
                                    • Wasmの概要|RustでWasm Runtimeを実装する

                                        Wasmの概要|RustでWasm Runtimeを実装する
                                      • RustでWasm Runtimeを書いた in UV_Study

                                        From Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE

                                          RustでWasm Runtimeを書いた in UV_Study
                                        • Generators are dead, long live coroutines, generators are back | Inside Rust Blog

                                          Generators are dead, long live coroutines, generators are back We have renamed the unstable Generator trait to Coroutine and adjusted all terminology accordingly. If you want to see all 3800 modified lines of code, you can find the PR here. Our Generator trait was effectively a coroutine already, so this change was long overdue. All nightly users using the Generator trait must now update their cod

                                            Generators are dead, long live coroutines, generators are back | Inside Rust Blog
                                          • [Rust] PyTorchで作成したONNXモデルをBurnで変換して使う [Deep Learning] | DevelopersIO

                                            Introduction burnはRust用Deep Learningフレームワークです。 現在アクティブに開発が進められているようで、 今後が期待できるプロダクトです。 公開されているMNISTデモはこちら。 今回はこのburnを用いて、ONNX形式の既存モデルを burn用モデルに変換して使ってみます。 Burn? burnは2021年にリリースされた新しめの深層学習フレームワークです。 少し使ってみた感じだと、PyTorchに近い感じです。 burnの特徴は、以下のとおりです。 Tensor Tensor(テンソル)は、深層学習フレームワークを使う際の 基本的なデータ構造であり、 多次元の数値データを表現するために使用します。 burnでも例によってTensor構造体を使います。 このあたりも既存のフレームワークを使い慣れている人なら 馴染みやすいかと思います。 バックエンド bu

                                              [Rust] PyTorchで作成したONNXモデルをBurnで変換して使う [Deep Learning] | DevelopersIO
                                            • Announcing Rust 1.76.0 | Rust Blog

                                              The Rust team is happy to announce a new version of Rust, 1.76.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, you can get 1.76.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes

                                                Announcing Rust 1.76.0 | Rust Blog
                                              • n8s.site | Async Rust Isn't Bad: You Are

                                                There have been quite a few articles in the past year or so about the downsides of using Rust and introducing the async keyword into your code base: Why asynchronous Rust doesn't work Mixing Sync and Async Rust Async Rust Is A Bad Language Avoid Async Rust at All Cost ...too lazy to continue searching, but you get the idea It generally boils down to two things: async is invasive. The path of least

                                                  n8s.site | Async Rust Isn't Bad: You Are
                                                • Announcing Rust 1.79.0 | Rust Blog

                                                  The Rust team is happy to announce a new version of Rust, 1.79.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, you can get 1.79.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes

                                                    Announcing Rust 1.79.0 | Rust Blog
                                                  • Rustのmatchのネストが深くなりすぎたときの一工夫

                                                    最近またRustを勉強し始めています。 気がついたらmatchのネストが深くなりすぎていた Resultの処理をするのにmatchが便利です。 でもOkのときに続きの処理を書いていったら、ネストが深くなりすぎてしまいました。 こんな感じ。 loop { match reader.read_ivf_frame_header() { Ok(frame_header) => { let len: usize = frame_header.frame_size as _; match reader.read_frame(&mut frame_buffer[..len]) { Ok(_) => {} Err(ref e) if e.kind() == ErrorKind::UnexpectedEof => break, Err(e) => { eprintln!("Error: {e:?}"); b

                                                      Rustのmatchのネストが深くなりすぎたときの一工夫
                                                    • SipHashとそのRust標準ライブラリでの実装

                                                      この記事はRust Advent Calendar 2023の14日目の記事です。 はじめに SipHashはRustの標準ライブラリのstd::collections::HashMapなどでデフォルトで使われるハッシュアルゴリズムです。 HashDos攻撃に対する耐性がありデフォルトのアルゴリズムとして相応しいですが、個人的にHashMapの速度を上げたいときに適当に(耐性のない)他のアルゴリズムに変えてしまいがちなので今回ちゃんと調べてみました。 SipHashとは Overview SipHashはPRFの一種で 128bitの秘密鍵と任意の長さの入力から64bitのハッシュ値を生成します。 秘密鍵の内容がバレていない限り、入力がどのようなハッシュ値になるかは予測できないのでHashDos攻撃に対して耐性があるというわけです。 Rustでの秘密鍵の生成 Rustの標準ライブラリでは秘

                                                        SipHashとそのRust標準ライブラリでの実装
                                                      • Understanding Structural vs Nominal Typing in Rust

                                                        Note that, we unapologetic stole this table from the structx README. This situation creates a dilemma: in scenarios where declaration of a nominal type is too involved — such when returning multiple values from a function using a one-off type — the absence of structural records might nudge the developer to opt for tuples over records due to convenience, even when records would be the more semantic

                                                          Understanding Structural vs Nominal Typing in Rust
                                                        • IPC in Rust - a Ping Pong Comparison

                                                          I wanted to explore different ways of communicating between different processes executing on the same machine, and doing so as fast as possible. We're focussing on high speed inter-process communication (IPC), but some of these approaches can be extended across a network. We'll do this exploration in Rust. A reminder that since these are independent processes, most approaches you'd take within-pro

                                                          • How to speed up the Rust compiler in August 2023

                                                            It has been five months since my last general update on the Rust compiler’s performance. Let’s see what has happened in that time. Big wins Let’s start with some big improvements. The information about metrics at the top of this post still applies. #107925: Incremental compilation uses a hashing algorithm to detect when code fragments have changed and need recompilation. In this PR, @thomcc change

                                                            • Rhai – Embedded Scripting for Rust

                                                              Embedded scripting language and engine for Rust A small, fast, easy-to-use scripting language and evaluation engine that integrates tightly with Rust. Builds for most common targets including no-std and WASM.

                                                              • RustでISUCONに勝つには

                                                                論文紹介:KVM/ARM: The Design and Implementation of the Linux ARM Hypervisor

                                                                  RustでISUCONに勝つには
                                                                • 米国で開発者の給与が高いプログラミング言語トップ10 2位はRust、1位は?

                                                                  米国で開発者の給与が高いプログラミング言語トップ10 2位はRust、1位は?:求人求職サイトの「DevJobsScanner」が発表 開発者向け求人求職サイトのDevJobsScannerは、過去1年間にスクレイピングしたソフトウェア開発者向け求人情報を分析し、米国で開発者の給与が高いプログラミング言語のランキングを発表した。 開発者向け求人求職サイトのDevJobsScannerは2023年11月13日(米国時間)、米国で開発者の給与が高いプログラミング言語のランキングを発表した。2022年10月1日~2023年10月1日の1年間にスクレイピングしたソフトウェア開発者向けの求人情報を分析し、それを基に作成したものだ。 DevJobsScannerによると、世界のWebサイトからスクレイピングした1000万件以上の求人情報のうち、給与が記載されていたものが130万件あり、そのうちタイトル

                                                                    米国で開発者の給与が高いプログラミング言語トップ10 2位はRust、1位は?
                                                                  • Announcing Rust 1.75.0 | Rust Blog

                                                                    The Rust team is happy to announce a new version of Rust, 1.75.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, you can get 1.75.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes

                                                                      Announcing Rust 1.75.0 | Rust Blog
                                                                    • 999 crates of Rust on the wall

                                                                      tl;dr I’ve been comparing crates on crates.io against their upstream repositories in an effect to detect (and, ultimately, help prevent) supply chain attacks like the xz backdoor1, where the code published in a package doesn’t match the code in its repository. The results of these comparisons for the most popular 9992 crates by download count are now available. These come with a bunch of caveats t

                                                                      • rtx: Rust製のasdf互換ランタイムマネージャー

                                                                        rtx install node@20.0.0 Install a specific version number rtx install node@20 Install a fuzzy version number rtx use node@20 Use node-20.x in current project rtx use -g node@20 Use node-20.x as global default rtx install node Install the current version specified in .tool-versions/.rtx.toml rtx use node@latest Use latest node in current directory rtx use -g node@system Use system node as global de

                                                                          rtx: Rust製のasdf互換ランタイムマネージャー
                                                                        • WASM書いてみた(Go vs Rust) - Qiita

                                                                          はじめに 本記事では、Go言語とRustで同じ機能を持つWASMを書き、3つの観点で比較した つくったもの 複数のファイルをZipアーカイブに変換しダウンロードする機能を持つWASMを、Go言語とRustで作成した 環境等 Mac Mini (M1) Darwin root.local 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 arm64

                                                                            WASM書いてみた(Go vs Rust) - Qiita
                                                                          • rust is not about memory safety

                                                                            01 june, 2024 most of rust discussions nowadays revolve around memory safety, and how it is safer than C / C++ / zig / go / whatever language is being trashed on twitter that day. while yes, that is true - not that the bar for most of these is particularly high - what I think is the main point of the language is always glossed over: correctness. when one tries to criticize any of the aforementione

                                                                              rust is not about memory safety
                                                                            • Existential types in Rust [LWN.net]

                                                                              Please consider subscribing to LWNSubscriptions are the lifeblood of LWN.net. If you appreciate this content and would like to see more of it, your subscription will help to ensure that LWN continues to thrive. Please visit this page to join up and keep LWN on the net. For several years, contributors to the Rust project have been working to improve support for asynchronous code. The benefits of th

                                                                              • Benchmark TypeScript Parsers: Demystify Rust Tooling Performance

                                                                                Benchmark TypeScript Parsers: Demystify Rust Tooling Performance TL;DR: Native parsers used in JavaScript are not always faster due to extra work across languages. Avoiding these overhead and using multi-core are crucial for performance. Rust is rapidly becoming a language of choice within the JavaScript ecosystem for its performance and safety features. However, integrating Rust into JavaScript t

                                                                                  Benchmark TypeScript Parsers: Demystify Rust Tooling Performance
                                                                                • Making Rust supply chain attacks harder with Cackle | David Lattimore

                                                                                  Making Rust supply chain attacks harder with Cackle If you want a slightly shorter read, skip to Introducing Cackle. A hypothetical story about Alex Alex is a software engineer who has built a tool which she licences to her customers. She only has a small number of clients, but they like her tool. She built her tool using Rust, with about 20 direct dependencies from crates.io. When you count indir