並び順

ブックマーク数

期間指定

  • から
  • まで

401 - 440 件 / 541件

新着順 人気順

Rustの検索結果401 - 440 件 / 541件

  • Announcing Rust 1.73.0 | Rust Blog

    The Rust team is happy to announce a new version of Rust, 1.73.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.73.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.73.0 | Rust Blog
    • A four year plan for async Rust - Without boats, dreams dry up

      Four years ago today, the Rust async/await feature was released in version 1.39.0. The announcement post says that “this work has been a long time in development – the key ideas for zero-cost futures, for example, were first proposed by Aaron Turon and Alex Crichton in 2016”. It’s now been longer since the release of async/await than the time between the first design work that underlies async/awai

      • The borrow checker within · baby steps

        This blog is where I post up various half-baked ideas that I have. All PostsCategoriesGitHubTwitterRSS/Atom feeds This post lays out a 4-part roadmap for the borrow checker that I call “the borrow checker within”. These changes are meant to help Rust become a better version of itself, enabling patterns of code which feel like they fit within Rust’s spirit, but run afoul of the letter of its law. I

        • the rust project has a burnout problem

          the number of people who have left the rust project due to burnout is shockingly high. the number of people in the project who are close to burnout is also shockingly high. this post is about myself, but it's not just about myself. i'm not going to name names because either you know what i'm talking about, in which case you know at least five people matching this description, or you don't, in whic

          • 今から始める Rust による WebAssembly 開発

            本記事は、TechFeed Experts Night#30 〜 Rust / WebAssembly最前線のセッション書き起こし記事になります。 イベントページのタイムテーブルから、その他のセッションに関する記事もお読み頂けますので、一度アクセスしてみてください。 本セッションの登壇者 セッション動画 Rust Tokyoの運営をしている@chikoskiと言います。WebAssemblyのコミュニティもやっていて、TechfeedにはWebAssemblyのエキスパートとして関わらせていただいています。 最近、いろいろなところでWebAssemblyの名前を耳にします。今日はRustでWebAssembly向けに開発する方法や、今のところのベストプラクティスをお話できればと思います。よろしくお願いします。 まとめを先に言いますと、今はcargo-componentというツールを使って開

              今から始める Rust による WebAssembly 開発
            • GPUI

              GPUIA fast, productive UI framework for Rust from the creators of Zed. Hello, World 🌎 use gpui::*; struct HelloWorld { text: SharedString, } impl Render for HelloWorld { fn render(&mut self, _cx: &mut ViewContext<Self>) -> impl IntoElement { div() .flex() .bg(rgb(0x2e7d32)) .size_full() .justify_center() .items_center() .text_xl() .text_color(rgb(0xffffff)) .child(format!("Hello, {}!", &self.text

              • Android 14でRustがカバーする範囲が広がりました | gihyo.jp

                Googleは、Android 13に続き、Android 14でハードウェアに近いレベルの開発(ベアメタル環境)でもC/C++からRustへの切り替えを行なっており、この取り組みをGoogle Security Blogで公開しています。 Google Online Security Blog: Bare-metal Rust in Android どうしてRustなのか? OSのカーネル外で実行されるようなモジュールは、歴史的な経緯もありC/C++が用いられて開発されています。筆者の古い感覚では、ハードウェア層に近い開発は、いまだCを使うという意識があります。いやいや「アセンブラでしょ」という強者もいるかと思いますが… Cの言語特性をご存知であれば、実行速度や自由度の面で優れているが、メモリ管理はプログラマ任せなのは承知のとおりです。よって、ウェブアプリ開発で使われる言語と比較すると、

                  Android 14でRustがカバーする範囲が広がりました | gihyo.jp
                • 【Rust入門】宮乃やみさんにRustの所有権とライフタイムを絶対理解させる #ch789

                  "わからせる" って読むんですよ。 Rust の鬼門とされる「所有権」「ライフタイム」などを、ヒープとスタックの違いなどの基礎からちゃんと説明します。 【Rust開発環境構築】 実はいい動画があるんですよ→ https://youtu.be/677kcyyPwJ4 ★宮乃やみさん(コラボ相手) X: https://x.com/miyanoyami83 YouTube: https://www.youtube.com/@miyanoyami 【Rustに興味がある方向け情報】 [初級]Rustなんでもお悩み相談→ https://youtube.com/watch?v=C_qKda3WO_8 [初級]GraphQLサーバーをRustで→ https://youtube.com/watch?v=qZSYrggRQVI [中級]Rustが題材のCTFを解く(冒頭1時間)→ https:/

                    【Rust入門】宮乃やみさんにRustの所有権とライフタイムを絶対理解させる #ch789
                  • Rustで始める安全第一プログラミング【世はまさに大安全時代】

                    Rustを勉強中の、万年駆け出しエンジニアです。 学べば学ぶほど、プログラミングの大きな壁に阻まれ日々苦戦しております。 今回は「Rustで始める安全第一プログラミング」という主題で、各種安全の重要性やRustで何がどのように解決されているのかについて書こうと思っています。 ※ この記事のコメント欄も、とても詳しい方々が書いてくださっているので是非読んでみてください! プログラミングにおける"安全"の重要性 プログラミングには危険がいっぱいです。 動的型付け言語であれば、例えばnull/undefinded が関数に渡されてるが、メソッド内ではその中のプロパティにアクセスしようとしてる場合、実行してからエラーが発覚します。 以下は動的型付け言語であるJavaScriptでの例:

                      Rustで始める安全第一プログラミング【世はまさに大安全時代】
                    • GitHub - boustrophedon/pgtemp: Rust library and daemon for easily starting postgres databases per-test without Docker

                      pgtemp is a Rust library and cli tool that allows you to easily create temporary PostgreSQL servers for testing without using Docker. The pgtemp Rust library allows you to spawn a PostgreSQL server in a temporary directory and get back a full connection URI with the host, port, username, and password. The pgtemp cli tool allows you to even more simply make temporary connections, and works with any

                        GitHub - boustrophedon/pgtemp: Rust library and daemon for easily starting postgres databases per-test without Docker
                      • neue cc - 他言語がメインの場合のRustの活用法 - csbindgenによるC# x Rust FFI実践事例

                        他言語がメインの場合のRustの活用法 - csbindgenによるC# x Rust FFI実践事例 2023-10-23 Rust.Tokyo 2023というRustのカンファレンスで、「他言語がメインの場合のRustの活用法 - csbindgenによるC# x Rust FFI実践事例」と題してcsbindgen周りの話をしてきました。 タイトルが若干かなり回りっくどい雰囲気になってしまいましたが、Rustのカンファレンスということで、あまりC#に寄り過ぎないように、という意識があったのですが、どうでしょう……? 会場での質問含めて何点かフォローアップを。 FFIとパフォーマンス Rustは速い!FFIは速い!ということが常に当てはまるわけでもなく、例えばGoのcgoはかなり遅いという話があったりします。Why cgo is slow @ CapitalGo 2018。このことは直

                        • Verso Browser

                          Verso Browser

                          • Making a Secure Chat in Rust

                            PreludeHello! Today, we are going to make a secure chat in Rust. “Secure” means that we don’t want attackers/eavesdroppers to be able to find out the contents of our messages (privacy), and we also want to make sure that we know who we’re talking to on the other side (authentication). To do this, we are going to use some common cryptographical concepts. I’ll explain all the cryptographical concept

                            • WebAssembly・PWAの習作アプリを作成して感じたこと

                              はじめに この記事では、個人の習作としてwasm-image-resizerという簡易な画像リサイズ・フォーマット変換ツールをWebAssembly + PWA + Reactで作成したので、そのときに私の得た知見を記載したいと思います。 アプリとしては実に単純であんまり面白みもないのですが、半ばちょっとした好奇心と勢いで自分なりに作ってみました。手探りで拙いですが、ソースコードは以下に配布していますので、よかったら見てみてください。 アプリの技術目標 このアプリを通して私が考えた技術目標は以下のとおりです。 フロントエンドとしては言語はTypeScript、Viteをベースにする UIのフレームワークとしてReactを使用 画像変換などのアプリでやりたいコアな処理はRustで記述 wasm-bindgenとwasm-packでWebAssembly化・javascriptパッケージ化を行

                                WebAssembly・PWAの習作アプリを作成して感じたこと
                              • [小ネタ] Pklをビルド時に実行する[Rust] | DevelopersIO

                                Introduction Pkl(ぴっくる)はAppleが開発した、 OSSのconfig file生成用プログラミング言語です。 条件式やループなどの基本構文に加え、クラス・継承・抽象化などの プログラミング言語機能も使えます。 pklファイルからJSON形式やYAML形式などの各種設定ファイルが出力可能で、 CLIツールや各言語のライブラリやプラグインとして使えます。 ※Pklの詳細については公式や紹介記事をご確認ください。 現状想定されているユースケースとしては、 下記のものがあります。 Generating Static Configuration(静的構成ファイル生成) 設定ファイルのgenerate機能です。 Pklで記述したコードをJSON、YAML、XML、プロティリスト形式で出力できます。 Application Runtime Configuration(アプリランタイ

                                  [小ネタ] Pklをビルド時に実行する[Rust] | DevelopersIO
                                • Webアプリ実装で学ぶ、現場で役立つRust入門

                                  Rustは、安全なプログラミングでき高いパフォーマンスのバイナリを生成できるなど、システムプログラミングの世界を中心に人気上昇中のプログラミング言語です。本連載では、連載「基本からしっかり学ぶRust入門」の続編として、Webアプリの開発を通じて現場で役立つRustのノウハウを紹介していきます。

                                    Webアプリ実装で学ぶ、現場で役立つRust入門
                                  • Rust の Stream の基本的な取り回しを理解する - Activ8 Tech Blog

                                    こんにちは、エンジニアの渡辺(@mochi_neko_7)です。 今回は Rust における Stream の基本的な取り回しを紹介します。 Anthropic の Claude API の Rust Client を書いていた際に Streaming API の対応をしていたところ、自身が Rust の Stream をちゃんと理解していなかったことに気づき勉強し直していました。 ところが日本語で解説している記事をあまり見かけなかったため、本記事で自分の理解している範囲で基礎的な内容を整理して紹介したいと思います。 もし間違った記述等ありましたらご指摘いただけますと幸いです。 環境 Rust の Stream 1. 非同期版 Iterator としての Stream 2. Poll の扱い Stream の周辺 crate 1. futures_core 2. async_stream

                                      Rust の Stream の基本的な取り回しを理解する - Activ8 Tech Blog
                                    • Async Rust can be a pleasure to work with (without `Send + Sync + 'static`)

                                      Async Rust can be a pleasure to work with (without `Send + Sync + 'static`) Sep 04, 2024 Async Rust is powerful. And it can be a pain to work with (and learn). If you’ve used async Rust, you’ve almost certainly run into the need to add Send + Sync + ‘static bounds to functions, wrap variables in Arcs and Mutexes, clone those Arcs all over the place, and you've inevitably hit the "future is not Sen

                                      • GitHub - maelstrom-software/maelstrom: Maelstrom is a fast Rust and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.

                                        Maelstrom is a suite of tools for running tests in hermetic micro-containers locally on your machine or distributed across arbitrarily large clusters. Maelstrom currently has test runners for Rust and Python, with more on the way. You might use Maelstrom to run your tests because: It's easy. Maelstrom provides drop-in replacements for cargo test and pytest. In most cases, it just works with your e

                                          GitHub - maelstrom-software/maelstrom: Maelstrom is a fast Rust and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.
                                        • NGINXモジュールがRustで書けるようになった

                                          原文リンク(2023-10-25) NGINXは、NGINXモジュールを Rustで記述できるngx-rustプロジェクトを発表 した。Rustプログラミング言語は、その安定性、セキュリティ機能、豊富なエコシステム、コミュニティの強力なサポートにより、強力で人気のある選択肢として浮上している。 NGINXは高性能なオープンソースのウェブサーバーとリバースプロキシサーバーソフトウェアで、インターネットのウェブサイトの大部分を支えている。2002年にIgor Sysoevによって開発されたNGINXは、その後進化を遂げ、ウェブホスティング、コンテンツ配信、アプリケーションデプロイメントにおいて広く人気を集めている。NGINXはそのパフォーマンス、スケーラビリティ、多用途性で知られ、ウェブコンテンツを提供し、インターネットトラフィックを効率的に管理するための重要なコンポーネントとなっている。 N

                                            NGINXモジュールがRustで書けるようになった
                                          • GitHub - say4n/jf: flatten them json

                                            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 - say4n/jf: flatten them json
                                            • Easy Mode Rust — Llogiq on stuff

                                              This post is based on my RustNationUK ‘24 talk with the same title. The talk video is on youtube, the slides are served from here. Also, here’s the lyrics of the song I introduced the talk with (sung to the tune of Bob Dylan’s “The times, they are a-changin’”): Come gather Rustaceans wherever you roam and admit that our numbers have steadily grown. The community’s awesomeness ain’t set in stone, s

                                              • GitHub - nyxpsi/nyxpsi: WIP: Next-gen network protocol for reliable data transfer in lossy environments. Outperforms TCP/UDP in high packet loss scenarios.

                                                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 - nyxpsi/nyxpsi: WIP: Next-gen network protocol for reliable data transfer in lossy environments. Outperforms TCP/UDP in high packet loss scenarios.
                                                • RustとActix Webで投稿アプリの一覧画面を開発しよう

                                                  RustとActix Webで投稿アプリの一覧画面を開発しよう:Webアプリ実装で学ぶ、現場で役立つRust入門(2) 今回から数回に分けて、RustのWebアプリフレームワークであるActix Webを紹介します。題材は、シンプルな投稿アプリです。今回は、投稿アプリの基本形を作成し、Actix Webでのルーティングやハンドラー関数の書き方を理解して一覧表示機能まで実装してみます。

                                                    RustとActix Webで投稿アプリの一覧画面を開発しよう
                                                  • xavxav - Visions of the future: formal verification in Rust

                                                    May 22, 2024 In response to a recent Boats article, I mentioned that Rust’s type system drastically changes things for verification. This comment seems to have aroused a lot of interest, so I figured I’d expand on it, explaining how Rust simplifies formal verification and why this had the verification community excited for a while now. I assume that most of you reading this post won’t be experts i

                                                    • Rustで型付Webアプリケーション開発 - DIGGLE開発者ブログ

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

                                                        Rustで型付Webアプリケーション開発 - DIGGLE開発者ブログ
                                                      • 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 🦀 ?
                                                        • Rust・AxumのDockerイメージをAWS Lambdaにサクッとデプロイする(Lambda Web Adapter) - Qiita

                                                          Rust・AxumのDockerイメージをAWS Lambdaにサクッとデプロイする(Lambda Web Adapter)AWSRustDockerlambdaaxum 先日こんな記事を書きました! Rustの「Axum」というWebAPI用のフレームワークを利用して、レイヤードアーキテクチャでTodoアプリを作る記事になります。 その過程でちょっとこだわってDockerfileを作成したので、せっかくなのでこれをAWSのLambdaを使ってサクッとデプロイしてみようと思います! Lambda Web Adapterという比較的最近リリースされた機能を利用すると、Dockerイメージをほんの数分でデプロイできるので、今回はこちらを利用していきます! 参考記事 Lambda Web Adapter でウェブアプリを (ほぼ) そのままサーバーレス化する Dockerfileを作成 僕の書い

                                                            Rust・AxumのDockerイメージをAWS Lambdaにサクッとデプロイする(Lambda Web Adapter) - Qiita
                                                          • Developing a cryptographically secure bootloader for RISC-V in Rust

                                                            Developing a cryptographically secure bootloader for RISC-V in Rust SentinelBoot is a demonstrative, cryptographically secure RISC-V bootloader written in Rust. This project forms a final-year project at The University of Manchester sponsored by Codethink. Motivation Memory safety is a persistent issue in software, especially system software, such as bootloaders. Implementing some kinds of run-tim

                                                              Developing a cryptographically secure bootloader for RISC-V in Rust
                                                            • Rails + Ruby 3.3.0でYJITを使ってみる - BitArts Blog

                                                              Rubyインストール時にRust環境が必要 Ruby 3.3.0では簡単にYJITが選択できるようになっているのですが、前提条件としてRubyビルド時にRustコンパイラがインストールされている必要があります。Rustが入っていない場合、YJITが使えないRubyがビルドされてしまうので注意しましょう。 これはrbenvでRubyをインストールする場合も例外ではありません。Macの場合は次のような手順で事前にRust環境をインストールしておきます。 $ brew install rustup-init $ rustup-init $ exec $SHELL -l $ rbenv install 3.3.0 rubyを--yjitオプション付きで実行するとYJITが有効になります。バージョン情報を確認すると「+YJIT」と表示されて、YJITが有効になっていることが確認できます。 % rub

                                                                Rails + Ruby 3.3.0でYJITを使ってみる - BitArts Blog
                                                              • async対応版Rocket、v0.5を試してみる - paild tech blog

                                                                Rocketの特徴 Rocketにはこれまで何が起きていたのか v0.5を使う 今回作るアプリケーションのお題 使用するクレートの追加 Routing JSON Fairings: データベース接続 1. コネクションプールを保持するための構造体を用意する 2. 設定ファイルに情報を書く 3. 1で作った構造体をサーバーにattachし、アプリケーションを起動する。 Todoを作成するRoutingを用意する Responder: エラーハンドリング 注意したいこと まとめ 参考サイト お手伝いの @helloyuki です。 最近、asyncに完全対応したRocketがついにリリースされ、v0.5から使えるようになったというニュースが舞い込んできました。RocketはRustのエコシステムをかなり前から支えてきたクレートではあったものの、いくつかの事情によりしばらくなかなか技術選定されな

                                                                  async対応版Rocket、v0.5を試してみる - paild tech blog
                                                                • 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
                                                                  • CQRS/Event Sourcingシステム実装入門

                                                                    CQRS/Event Sourcingは、非機能要件の側面で注目されがちですが、本来はDDDのための設計パターンの一つです。 今回は言語非依存に実装する方法を共有しつつ、一緒に手を動かして理解できるようするハンズオン用セッションです。 想定条件 コードを書きたい人はPCをご持参ください 事前にソースコードとセットアップ手順を共有します。あかじめセットアップし動作確認可能な状態でご参加ください。 対象言語でFizzBuzz以上のプログラムが書ける開発者向け ※難しいコードは書きません。手本のコードは共有します。 参加者はプログラミング言語としてGoもしくはRustの好きな方を選択できます ※このセッションを受けると他の言語でも実装できるようになります 想定データベースとしてはコマンド側がDynamoDB、クエリ側はMySQL(RDS) 実装ではREST API,GraphQLを使うのでその経

                                                                      CQRS/Event Sourcingシステム実装入門
                                                                    • An Empirical Study of Rust-for-Linux: The Success, Dissatisfaction, and Compromise | USENIX

                                                                      An Empirical Study of Rust-for-Linux: The Success, Dissatisfaction, and Compromise Hongyu Li, Beijing University of Posts and Telecommunications; Liwei Guo, University of Electronic Science and Technology of China; Yexuan Yang, Shangguang Wang, and Mengwei Xu, Beijing University of Posts and Telecommunications Awarded Best Paper! Developed for over 30 years, Linux has already become the computing

                                                                      • 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

                                                                        • BlueskyのTUI Client Appを作り始めてしまった - すぎゃーんメモ

                                                                          memo.sugyan.com の続き…? I've published `tuisky`, a TUI Client for Bluesky, as v0.0.1. (It's still a work in progress.) Were there already other clients available for use in the terminal? #atdev #bluesky-client #tui crates.io/crates/tuisky [image or embed]— すぎゃーん (@sugyan.com) Jul 1, 2024 at 12:12 AM 経緯 RatatuiによるTUI開発 Asynchronous Event Handling Components Architecture 自作Client用の設計 機能 完全に分離された Multi

                                                                            BlueskyのTUI Client Appを作り始めてしまった - すぎゃーんメモ
                                                                          • Wasmtime and Cranelift in 2023

                                                                            It’s that time of year: time to start winding down for the winter holiday season, time to reflect on the past year, and time to think about what we can accomplish together in 2024. The Wasmtime and Cranelift projects are no exception. This article recounts Wasmtime and Cranelift progress in 2023 and explores what we might do in 2024. Wasmtime is a standalone WebAssembly runtime. It is fast, secure

                                                                              Wasmtime and Cranelift in 2023
                                                                            • Debugging a rustc segfault on illumos :: sunshowers

                                                                              At Oxide, we use Helios as the base OS for the cloud computers we sell. Helios is a distribution of illumos, a Unix-based operating system descended from Solaris. As someone who learned illumos on the job, I’ve been really impressed by the powerful debugging tools it provides. I had a chance to use some of them recently to track down a segmentation fault in the Rust compiler, with the help of seve

                                                                                Debugging a rustc segfault on illumos :: sunshowers
                                                                              • GitHub - Proglang-Uni-Freiburg/minirust: an interpreter for a subset of the rust language with main focus on algebraic data types + pattern matching

                                                                                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 - Proglang-Uni-Freiburg/minirust: an interpreter for a subset of the rust language with main focus on algebraic data types + pattern matching
                                                                                • Farm Documentation | Farm

                                                                                  Super FastWritten in Rust, start a React / Vue project in milliseconds and perform an HMR update within 10ms for most situations. Rich FeaturesFarm support compiling Html, Css, Css Modules, Js/Jsx/Ts/Tsx, Json, Static Assets out of box, support sass, less, postcss, vue, react, solid by official plugins, support lazy compiling, partial bundling and more

                                                                                    Farm Documentation | Farm