並び順

ブックマーク数

期間指定

  • から
  • まで

281 - 320 件 / 506件

新着順 人気順

rustの検索結果281 - 320 件 / 506件

  • GitHub - radekvit/coffee_break: Take a break while compiling.

    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 - radekvit/coffee_break: Take a break while compiling.
    • Node.jsから呼び出したWASMバイナリ(Rust製)と非同期に通信したい話

      どうもこんにちは。筆者はここ1年くらいnitrogqlというTypeScript + GraphQL向けコード生成ツールを開発しています。(初手宣伝) このツールの本体はRustで書かれており、コンパイルするとWASMバイナリが生成されます。このWASMバイナリをNode.jsから呼び出すようなラッパーを作って、コマンドラインツールとしてnpmで公開しています。 その性質上、Node.js側とWASM側で通信(データのやり取り)が発生します。特に、設定ファイルなどが.jsや.tsで書かれていても読み込む機能があり、その際はRust側からNode.js側に制御を渡してNode.js側でファイルを読み込み、結果をRust側に返すようになっています。 実は、nitrogqlの(Rust側)コードにはこれまで非同期処理が含まれていませんでした。しかし、パフォーマンスのことなどを考えると非同期処理に

        Node.jsから呼び出したWASMバイナリ(Rust製)と非同期に通信したい話
      • Type Erasure in Rust

        Rust traits have the neat property where you can use them either as generic bounds or as dynamic dispatch, with the &dyn MyTrait syntax. The latter is necessary in heterogeneous scenarios, where you want to use multiple concrete types together that all implement a common trait. However, that requires that you have an instance, so that the reference actually “refers” to something. What if you have

          Type Erasure in Rust
        • How I Improved My Rust Compile Times by 75%

          A woman with a pixie haircut looking at a computer in an office environment, waiting for her code to compile. If you're looking for a talented Rust developer, or a good senior software engineer, please reach out. I'm looking for a full time role doing something neat, and am available for contract gigs. Contact info is in the footer. Thank you! There's now a Part 2, where I cover a couple more opti

            How I Improved My Rust Compile Times by 75%
          • GitHub - pythops/impala: 🛜 TUI for managing wifi on Linux.

            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 - pythops/impala: 🛜 TUI for managing wifi on Linux.
            • コンテナーの保護にVM関連技術を応用--「Rust」ベースの新ソリューション「Edera」

              Steven J. Vaughan-Nichols (Special to ZDNET.com) 翻訳校正: 川村インターナショナル 2024-04-18 07:30 クラウドセキュリティにおける究極の悪夢の1つは、何者かにコンテナーランタイムのセキュリティを突破され、基盤となるOSに侵入されることだ。「Leaky Vessels」などの攻撃では、ハッカーがプログラムに大打撃を与えて、他のコンテナー化されたアプリケーションを破壊し、攻撃者にルートユーザーレベルの権限を付与してしまう可能性がある。つまり、セキュリティが完全に崩壊するということだ。そのような攻撃を防ぐために、「Edera」は古いプログラムを新しい言語に取り込んで、メモリー安全性に優れたコンテナーランタイムを提供する。 「Rust」で記述されたEderaは、従来のオープンソースのタイプ1ベアメタル仮想マシンハイパーバイザーである

                コンテナーの保護にVM関連技術を応用--「Rust」ベースの新ソリューション「Edera」
              • Write a JavaScript Parser in Rust | Write a JavaScript Parser in Rust

                Write a JavaScript Parser in RustRust、JavaScript、そしてパーサーはすべて学びにくいものですが、これら3つを組み合わせて Rust で JavaScript のパーサーを書くという挑戦をしてみましょう! このサイトは、Rustやパーサーを学びたい方 oxc, swc or Biome などへの貢献を考えている方への助けとなります。 ガイドでは、Rust で JavaScript パーサーを書くための基本的なトピックを網羅します。チュートリアルでは、いくつかのトピックをより詳しく説明します。

                • Writing a scheduler for Linux in Rust that runs in user-space

                  Overview I’ve decided to start a series of blog posts to cover some details about scx_rustland, my little Linux scheduler written in Rust that runs in user-space. This project started for fun over the Christmas break, mostly because I wanted to learn more about sched-ext and I also needed some motivation to keep practicing Rust (that I’m still learning). In this series of articles I would like to

                  • The State of Async Rust: Runtimes | corrode Rust Consulting

                    Recently, I found myself returning to a compelling series of blog posts titled Zero-cost futures in Rust by Aaron Turon about what would become the foundation of Rust's async ecosystem and the Tokio runtime. This series stands as a cornerstone in writings about Rust. People like Aaron are the reason why I wanted to be part of the Rust community in the first place. While 2016 evokes nostalgic memor

                      The State of Async Rust: Runtimes | corrode Rust Consulting
                    • A Grounded Conceptual Model for Ownership Types in Rust

                      Posted on 17 September 2023. Rust is establishing itself as the safe alternative to C and C++, making it an essential component for building a future software univers that is correct, reliable, and secure. Rust achieves this in part through the use of a sophisticated type system based on the concept of ownership. Unfortunately, ownership is unfamiliar to most conventionally-trained programmers. Su

                      • GitHub - sabledb-io/sabledb: Ultra fast, persistent database supporting Redis 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 - sabledb-io/sabledb: Ultra fast, persistent database supporting Redis API
                        • LocoはRailsにインスパイアされたRustの新しいフレームワーク

                          垂直スケーラビリティと効果的なテストによる金融取引システムのパフォーマンスと効率の最大化 Peter Lawrey氏はJavaチャンピオンであり、Chronicle SoftwareのCEOとして、開発者を鼓舞してソリューションのクラフトマンシップを高めることに情熱を注いでいる。経験豊富なソフトウェアエンジニアとして、Lawrey氏はソフトウェア開発プロセスにおけるシンプルさ、パフォーマンス、創造性、革新性を奨励することに努めている。

                            LocoはRailsにインスパイアされたRustの新しいフレームワーク
                          • GitHub - loco-rs/loco: 🚂 🦀 The one-person framework for Rust for side-projects and startups

                            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 - loco-rs/loco: 🚂 🦀 The one-person framework for Rust for side-projects and startups
                            • Release 🚀 Farm v1.0 is released! · farm-fe/farm

                              Farm⭐️ is a next-generation web build tool written in Rust. It is currently the most powerful, fastest, and most stable Rust web build tool. Since Farm open its source code of version 0.3 in March 2023, after a year of development and contributions by many community developers, version v1.0 has finally been released! The v1.0 version supports a large number of features including lazy compilation,

                                Release 🚀 Farm v1.0 is released! · farm-fe/farm
                              • GitHub - prefix-dev/rip: Solve and install Python packages quickly with rip (pip 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 - prefix-dev/rip: Solve and install Python packages quickly with rip (pip in Rust)
                                • Rustの学び方

                                  はじめに Rustを学んでいる最中です。完全に理解したとは全く言えない状態ですが初心者は脱しつつあり、それなりに知見が蓄えられつつあります。 そこで、学習の流れを振り返ることにしました。何をどのような順序で学んだらスムーズに理解が深まるか、自分なりにまとめてみたので学習の手助けとして、ひとつの参考になれば幸いです。 目指すべき状態 私はIDEの補完や生成AIを全く利用せず、コードを読み書きできる状態を目指しています。具体的にはメモ帳・rustc(Rustコンパイラ)・cargo(Rustのパッケージマネージャ)の3つがあればコードの読み書きができる状態を目指しています。 極端に思えるかもしれませんが、自力でコードを読み書きできることはRustのコンセプトに習熟するのと同義であると考えています。当たりのコードが出るまで生成や補完を繰り返して、ビルドが成功したらOKという方法を否定はしませんが

                                    Rustの学び方
                                  • Faster linking times on nightly on Linux using `rust-lld` | Rust Blog

                                    TL;DR: rustc will use rust-lld by default on x86_64-unknown-linux-gnu on nightly to significantly reduce linking times. Some context Linking time is often a big part of compilation time. When rustc needs to build a binary or a shared library, it will usually call the default linker installed on the system to do that (this can be changed on the command-line or by the target for which the code is co

                                      Faster linking times on nightly on Linux using `rust-lld` | Rust Blog
                                    • ScalaだけではなくGo/Rustもやっていくぞというお話|かとじゅん(j5ik2o)

                                      こういうつぶやきをした。書いたまんま。ScalaというよりJVMがしんどいって話。Scala Nativeに希望を見出せるだろうか… あ、誤解がないように書いておくと、Scalaを辞めるという話ではない。仕事は普通にあるのでScalaは使っていく(Scala3もやると思う) Scalaについては、2019年ぐらいが潮目だったのかもしれないなと。 グーグル・トレンドをみると、2014年ぐらいからGoの検索ボリュームが伸びていてScalaより増えている。Goの勢いがすごい。KotlinがAndroid公式言語に採用されたのは2017年。2019年ぐらいからKotilnとScalaの検索ボリュームが反転して、ScalaよりKotlinのほうが多くなっている。まぁ比較すると相関があるとミスリードしがちなんで要注意だけど、なんにしも2019年ぐらいからScalaの検索ボリュームがだいぶ減ってきている

                                        ScalaだけではなくGo/Rustもやっていくぞというお話|かとじゅん(j5ik2o)
                                      • Make the Rust compiler 5% faster with this one weird trick

                                        TL;DR: On Linux, if you have Transparent Huge Pages enabled, you can try to run cargo with the environment variable MALLOC_CONF="thp:always,metadata_thp:always" for a potential ~5% speed boost. …Sorry for the clickbait title, I just couldn’t help myself. I am regularly trying to search for opportunities how to speed up the Rust compiler without necessarily changing its code, just by modifying its

                                        • An Introduction to Asynchronous Programming in Rust and a High-level Overview of Tokio's Architecture

                                          An Introduction to Asynchronous Programming in Rust and a High-level Overview of Tokio's Architecture Asynchronous programming allows the development of services that can handle millions of requests without saturating memory and CPU utilization. Support for asynchrony is usually baked into the programming language; we take a look at async support in Rust, a type-safe and memory-safe systems progra

                                            An Introduction to Asynchronous Programming in Rust and a High-level Overview of Tokio's Architecture
                                          • The First Stable Release of a Memory Safe sudo Implementation

                                            The First Stable Release of a Memory Safe sudo Implementation Prossimo is pleased to announce the first stable release of sudo-rs, our Rust rewrite of the critical sudo utility. The sudo utility is one of the most common ways for engineers to cross the privacy boundary between user and administrative accounts in the ubiquitous Linux operating system. As such, its security is of the utmost importan

                                              The First Stable Release of a Memory Safe sudo Implementation
                                            • 【書評】RustとWebAssemblyによるゲーム開発は Rust 開発における設計を学べる良書

                                              【書評】RustとWebAssemblyによるゲーム開発は Rust 開発における設計を学べる良書 2023.07.30 本のタイトルは「Rust と WebAssembly によるゲーム開発」となっていますが、反して WebAssembly についての話題はほとんど出てきません。主に Rust における開発の設計についての話題が中心となっています。 本のタイトルは「Rust と WebAssembly によるゲーム開発」となっていますが、反して WebAssembly についての話題はほとんど出てきません。主に Rust における開発の設計についての話題が中心となっています。 本書籍の中で Rust の基本を理解していることを前提としており、文法などの説明は行われていません。もし Rust に全く触れたことがない場合には、Rust ツアー のようなチュートリアルをひと通り進めると良いでし

                                                【書評】RustとWebAssemblyによるゲーム開発は Rust 開発における設計を学べる良書
                                              • GitHub - mattwparas/steel: An embedded scheme interpreter 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 - mattwparas/steel: An embedded scheme interpreter in Rust
                                                • Introduction to Ratatui - Ratatui Book

                                                  Introduction to Ratatui Ratatui is a Rust library for cooking up delicious text user interfaces (TUIs). It is a lightweight library that provides a set of widgets and utilities to build simple or complex rust TUIs. Ratatui is an immediate mode graphics library. Applications imperatively declare how to render each frame in full by combining widgets and layout. Ratatui then draws the described UI wi

                                                  • Rust1.75で追加された機能を使ってモナドを作ってみる

                                                    Rust1.74でモナドを作ってみようとしてたのですが、今回はその続きになります。 なんで続きをやろうと思ったの? Rust1.74で導入された以下の機能を使って、モナドを作ろうとしたのですがその時は残念ながらできませんでした。(詳細はこちらを参照ください。) その時は、traitの中で -> impl Traitをすることができなかったので断念したのですが、Rust1.75で導入された以下の機能を使えばできそうに見えました。 そのため、この機能を使って再チャレンジしようとしたのがこの記事になります。 この機能で何ができるようになるのか 詳細は上記blogを見ていただくとして、ざっくり説明すると、Trait内で-> impl Traitを定義することができるようになります。 上記blogからの引用ですが、こんな感じです。 trait Container { fn items(&self)

                                                      Rust1.75で追加された機能を使ってモナドを作ってみる
                                                    • GitHub - WINSDK/bite: Disassembler focused on comprehensive rust support.

                                                      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 - WINSDK/bite: Disassembler focused on comprehensive rust support.
                                                      • Effective Rust

                                                        A collection of specific ways to improve your use of Rust

                                                        • rust-magic-patterns/rust-stream-visualized/Readme.md at master · alexpusch/rust-magic-patterns

                                                          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

                                                            rust-magic-patterns/rust-stream-visualized/Readme.md at master · alexpusch/rust-magic-patterns
                                                          • Rust、WASI 0.2への対応を表明 ー WebAssemblyの更なる促進に期待

                                                            4月10日、Rust言語はWASI(WebAssembly System Interface)ターゲットを現在の0.1から0.2に切り替えることを発表した。 4月10日、Rust言語はWASI(WebAssembly System Interface)ターゲットを現在の0.1から0.2に切り替えることを発表した。 この更新が行われるのはRust 1.78からで、wasm32-wasip1とwasm32-wasip2の二つの新しいターゲットが導入される。 wasm32-wasip2がWASI 0.2をサポートするターゲット名で、これを指定することでRustから出力されるWebAssemblyコードがWASI 0.2に対応したものとなる。 wasm32-wasip1は、既存のwasm32-wasiターゲットの別名として当面は機能するが、2025年1月5日のRust 1.84で削除される予定であ

                                                              Rust、WASI 0.2への対応を表明 ー WebAssemblyの更なる促進に期待
                                                            • GitHub - sidju/hired: A modern take on 'ed'

                                                              After tiring of emacs freezing up on me one time too many and concluding that vim isn't any less of a monstrosity I made the reasonable choice and started using ed. It was a bit frustrating at the start but grew to be quite nice. The only missing feature really being syntax highlighting. After some research I couldn't find any ed fork or clone with syntax highlighting, so I once again made the rea

                                                                GitHub - sidju/hired: A modern take on 'ed'
                                                              • Rust製ツールのmiseでランタイムバージョンを管理する|Taro Yamashita

                                                                アキッパの山下です。 手元の環境を汚さずに、PHP/Python/Node.jsなどのランタイムバージョンを切り替えたいというニーズでは、Dockerの利用がすっかり主流だと思いますが、シーンによってはPythonのvenvといったツールもまだまだ活躍するシーンは多いのではないでしょうか。 そんなツールの中で、今回はRust製ツールのmiseを紹介します。 ランタイムバージョン管理とは?あらためて、ITシステムやWebサービスを開発・運用していく場合、どのプログラミング言語で構築されているか?だけでなく、そのバージョンは?も重要なポイントです。 稼動しているサーバにインストールされている言語バージョンと、手元の開発環境でバージョンが異なれば、手元で動くのにサーバで動かない(あるいはその逆)が往々にして起こります。 開発環境にサーバと同じバージョンをインストールすれば良いのですが、サーバAで

                                                                  Rust製ツールのmiseでランタイムバージョンを管理する|Taro Yamashita
                                                                • Rust製TypeScript Linterにおける型情報Lintルールの模索

                                                                  Rust製TypeScript LinterであるBiome, Oxc, deno_lintなどは、TypeScriptの型情報を利用するLintルール(型情報Lintルール)[1]を持っていません。本記事では、その背景から、Rust製TypeScript Linterが型情報Lintルールを実現するための手段についてまとめます。 筆者のTSKaigi 2024で利用した下記登壇資料に情報を追加し、文章化したものです。 要約すると、以下になります。 Rust製TypeScript Linterは、安全性をさらに高めてくれるtypescript-eslintの型情報Lintルールが欲しいが、パフォーマンスを犠牲にしたくない。TypeScript Compilerに頼らずに実現するには、Alternative TypeScript Compilerや型推論が必要。型情報Lintルールの実装を型

                                                                    Rust製TypeScript Linterにおける型情報Lintルールの模索
                                                                  • Zed - Code at the speed of thought

                                                                    Welcome to the first article in a new series called Zed Decoded. In Zed Decoded I'm going to take a close look at Zed — how it's built, which data structures it uses, which technologies and techniques, what features it has, which bugs we ran into. The best part? I won't do this alone, but get to interview and ask my colleagues here at Zed about everything I want to know. Companion Video: Async Rus

                                                                      Zed - Code at the speed of thought
                                                                    • GitHub - Speykious/cve-rs: Blazingly 🔥 fast 🚀 memory vulnerabilities, written in 100% safe 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 - Speykious/cve-rs: Blazingly 🔥 fast 🚀 memory vulnerabilities, written in 100% safe Rust. 🦀
                                                                      • Rustで実装しながら学ぶWebSocketの基本

                                                                        WebSocketを双方向通信のために使うプロトコルでしょ、という感じのうっすら理解で誤魔化していた[1]のですが、IoTアプリケーションぽいものを作ることがあって、理解を深めるためにあらためて学びました、という投稿です。 今回はWebSocketでエコーするサーバーを、TCPライブラリだけを用いてRustで実装していきます。コードは以下です。 WebSocketとは RFC 6455で定義された、主に双方向でやり取りするために用いられる通信プロトコルです。 WebSocketが直接用いるプロトコルはTCPですが、ハンドシェイクはHTTP(S)によって行われます。WebSocketを使うプロトコルとして、MQTT over WebSocketやSTOMPなどがあります。 最近のWebアプリケーションではごく普通に用いられてます。企業サイトなどでよく見る問い合わせ用のチャットフォームなどは、

                                                                          Rustで実装しながら学ぶWebSocketの基本
                                                                        • GitHub - huggingface/candle: Minimalist ML framework for 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 - huggingface/candle: Minimalist ML framework for Rust
                                                                          • A memory model for Rust code in the kernel [LWN.net]

                                                                            LWN.net needs you!Without subscribers, LWN would simply not exist. Please consider signing up for a subscription and helping to keep LWN publishing The Rust programming language differs from C in many ways; those differences tend to be what users admire in the language. But those differences can also lead to an impedance mismatch when Rust code is integrated into a C-dominated system, and it can b

                                                                            • Why async Rust?

                                                                              Async/await syntax in Rust was initially released to much fanfare and excitement. To quote Hacker News at the time: This is going to open the flood gates. I am sure lot of people were just waiting for this moment for Rust adoption. I for one was definitely in this boat. Also, this has all the goodness: open-source, high quality engineering, design in open, large contributors to a complex piece of

                                                                              • Leaving Rust gamedev after 3 years | Hacker News

                                                                                That's a good article. He's right about many things.I've been writing a metaverse client in Rust for several years now. Works with Second Life and Open Simulator servers. Here's some video.[1] It's about 45,000 lines of safe Rust. Notes: * There are very few people doing serious 3D game work in Rust. There's Veloren, and my stuff, and maybe a few others. No big, popular titles. I'd expected some A

                                                                                • [Rust] 静的ディスパッチ(Enum)と動的ディスパッチ(dyn Trait)はどちらが速いのか?

                                                                                  ある時、 Rust で動的ポリモーフィズムを実現するには、 Enum は dyn Trait より遅いという主張を見ました。 dyn Trait は仮想関数テーブルのルックアップがある分、遅いはずだと思っていたので、これは確かめてみようと思いました。 [2024/5/24追記]: 少し後で考えると、ここで静的ディスパッチという言葉を使うのは語弊があるような気がしたので補足します。静的ディスパッチとは、 dyn Trait に対する impl Trait のことを呼ぶことが多く、ここで Enum で実現しているのは「一つのコンテナに異なる型や挙動を示すオブジェクトを含める」という意味では動的ディスパッチです。正確に言うならば、この記事で示しているのは、同じ動的ディスパッチでも、 Enum を使った場合分けか、 dyn Trait を使った仮想関数テーブルを使ったポリモーフィズムかという違いで

                                                                                    [Rust] 静的ディスパッチ(Enum)と動的ディスパッチ(dyn Trait)はどちらが速いのか?